IRC log for #tomcat on 20091117

01:01.47*** part/#tomcat bendar (n=bendar@dslb-084-058-147-079.pools.arcor-ip.net)
01:55.16*** join/#tomcat dvinchi (n=dvinchi_@148.245.35.9)
02:29.34nat2610hey, how can I know what's the limit of memory I can use for java/tomcat. I have 6G of ram on the server and its a 32bit (running java 1.6.u16 and tomcat 5.0.28) http://pastie.org/702022
02:37.59*** join/#tomcat jasonb (n=jasonb@m430e36d0.tmodns.net)
03:04.07*** join/#tomcat hope (n=chatzill@121.0.29.237)
03:39.45*** join/#tomcat roue (n=roue@24-179-221-253.dhcp.dlth.mn.charter.com)
03:45.52*** join/#tomcat km (n=km@adsl-76-195-3-151.dsl.pltn13.sbcglobal.net)
04:14.41*** join/#tomcat JabDesign (n=Jabber@c-69-142-19-84.hsd1.nj.comcast.net)
04:22.11*** join/#tomcat uwe_guenther (n=Notebook@p5B283FD9.dip.t-dialin.net)
04:48.59*** join/#tomcat jasonb (n=jasonb@ip65-46-57-190.z57-46-65.customer.algx.net)
05:47.49*** join/#tomcat onats_ (n=onats@unaffiliated/onats)
05:48.23onats_hi, i am running on ubuntu karmic 9.10, installed default package tomcat6, running java1.6.
05:48.43onats_when i drop a war file on the /usr/share/tomcat6/webapps/ directory, it does not get unpacked automatically. any setting that i should tweak?
06:08.44*** join/#tomcat McGo (n=McGo@dyndsl-085-016-200-164.ewe-ip-backbone.de)
06:21.41*** join/#tomcat anoopb (n=chatzill@twvpn.trustwave.com)
06:39.04*** join/#tomcat anoopb_ (n=chatzill@c-67-167-209-89.hsd1.il.comcast.net)
07:02.17*** join/#tomcat Jiyu_ (n=jiyu@m56s07.vlinux.de)
07:44.51*** join/#tomcat kaushal (n=kaushal@125.22.61.162)
07:44.53kaushalhi
07:45.26kaushalis there a centralized tomcat server for accessing the catalina.out log files ?
07:45.40kaushalI mean in a centralized position
07:59.07*** join/#tomcat _MHSL_ (i=mhsl@cm9.eta6.maxonline.com.sg)
08:02.02*** join/#tomcat NotInternat (n=nf@123-243-184-161.static.tpgi.com.au)
08:02.35*** join/#tomcat lonecoder (n=lonecode@91.198.24.10) [NETSPLIT VICTIM]
08:07.00*** join/#tomcat internat (n=nf@123-243-184-161.static.tpgi.com.au)
08:07.01*** join/#tomcat |MHSL| (i=mhsl@116.88.6.9) [NETSPLIT VICTIM]
08:07.35*** join/#tomcat nat2610 (n=nfelsen@adsl-99-185-243-218.dsl.pltn13.sbcglobal.net) [NETSPLIT VICTIM]
08:17.38*** join/#tomcat mseethar (n=chatzill@nat2.maa.collab.net)
08:18.04*** part/#tomcat mseethar (n=chatzill@nat2.maa.collab.net)
08:19.38*** join/#tomcat bogeyman0815 (n=breuer@wormhole.infoware.de)
09:01.12*** join/#tomcat Neeraja (n=quassel@114.143.123.36)
09:04.45NeerajaOS - Kubuntu 9.10 AMD64, Java - java version "1.6.0_15", Tomcat - 6.0.20-2ubuntu2 (From Repositories)
09:05.55NeerajaI am trying to Install Blazeds on Linux. I have downloaded the current stable version of it and it works fine on win XP
09:06.38Neerajasame war file if I try to test on Linux i get servlet not found error
09:06.55Neerajathe log output on linux is as follows
09:07.20Neeraja17 Nov, 2009 2:19:54 PM org.apache.catalina.core.ApplicationContext log
09:07.20NeerajaINFO: ContextListener: contextInitialized()
09:07.20Neeraja17 Nov, 2009 2:19:54 PM org.apache.catalina.core.ApplicationContext log
09:07.20NeerajaINFO: SessionListener: contextInitialized()
09:07.20Neeraja17 Nov, 2009 2:19:56 PM org.apache.catalina.core.ApplicationContext log
09:07.21NeerajaINFO: Marking servlet MessageBrokerServlet as unavailable
09:07.23Neeraja17 Nov, 2009 2:19:56 PM org.apache.catalina.core.StandardContext loadOnStartup
09:07.25NeerajaSEVERE: Servlet /blazeds threw load() exception
09:07.28Neerajajavax.servlet.UnavailableException
09:07.30Neerajaat flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:170)
09:07.33Neerajaat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09:07.34Neerajaat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
09:07.37Neerajaat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09:07.39Neerajaat java.lang.reflect.Method.invoke(Method.java:597)
09:07.41Neerajaat org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269)
09:07.43Neerajaat java.security.AccessController.doPrivileged(Native Method)
09:07.45Neerajaat javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
09:07.47Neerajaat org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301)
09:07.50Neerajaat org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
09:07.52Neerajaat org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115)
09:07.54Neerajaat org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1167)
09:07.56Neerajaat org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
09:08.00Neerajaat org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
09:08.01Neerajaat org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
09:08.03Neerajaat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
09:08.05Neerajaat org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
09:08.07Neerajaat org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
09:08.10Neerajaat java.security.AccessController.doPrivileged(Native Method)
09:08.12Neerajaat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
09:08.14Neerajaat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
09:08.16Neerajaat org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
09:08.18Neerajaat org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
09:08.21Neerajaat org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
09:08.23Neerajaat org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
09:08.25Neerajaat org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
09:08.27Neerajaat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
09:08.29Neerajaat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
09:08.32Neerajaat org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
09:08.34Neerajaat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
09:08.36Neerajaat org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
09:08.38Neerajaat org.apache.catalina.core.StandardService.start(StandardService.java:516)
09:08.40Neerajaat org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
09:08.43Neerajaat org.apache.catalina.startup.Catalina.start(Catalina.java:583)
09:08.45Neerajaat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09:08.47Neerajaat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
09:08.49Neerajaat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09:08.52Neerajaat java.lang.reflect.Method.invoke(Method.java:597)
09:08.54Neerajaat org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
09:08.56Neerajaat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09:08.58Neerajaat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
09:09.00Neerajaat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
09:09.02Neerajaat java.lang.reflect.Method.invoke(Method.java:597)
09:09.05Neerajaat org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
09:09.07Neeraja17 Nov, 2009 2:20:24 PM org.apache.catalina.core.StandardWrapperValve invoke
09:09.09NeerajaINFO: Servlet MessageBrokerServlet is currently unavailable
09:09.16Neerajacan somebody help me in this situation.
09:09.20NeerajaI am newbie to Java and Tomcat rather this is my first web application
09:09.22Neerajathanks
09:14.57*** part/#tomcat silentNinja (n=mooo@41.203.24.140)
09:16.24*** join/#tomcat ReaphSharc (n=John@77.74.50.119)
09:31.56*** join/#tomcat des` (i=huhlo@a91-152-177-10.elisa-laajakaista.fi)
09:34.23*** join/#tomcat km (n=km@adsl-76-195-3-151.dsl.pltn13.sbcglobal.net) [NETSPLIT VICTIM]
09:35.14*** join/#tomcat zerok (n=zerok@67-207-133-71.slicehost.net) [NETSPLIT VICTIM]
09:40.48*** join/#tomcat jstrom (i=johan@core.stromnet.se) [NETSPLIT VICTIM]
09:41.29*** join/#tomcat acarbs12 (n=acarbone@173-9-89-1-NewEngland.hfc.comcastbusiness.net) [NETSPLIT VICTIM]
09:42.21*** join/#tomcat jasonb (n=jasonb@ip65-46-57-190.z57-46-65.customer.algx.net) [NETSPLIT VICTIM]
09:58.05*** join/#tomcat uebera|| (n=nnuser@enton.tm.informatik.uni-frankfurt.de)
10:26.10*** join/#tomcat ReaphSharc (n=John@77.74.50.119)
10:33.33*** join/#tomcat Alagar (n=helpdesk@174-143-172-49.static.cloud-ips.com)
10:35.14*** join/#tomcat kaushal (n=kaushal@125.22.61.162)
10:35.16kaushalhi
10:39.03*** join/#tomcat ReaphSharc (n=John@77.74.50.119)
10:39.18*** join/#tomcat ReaphSharc (n=John@77.74.50.119)
10:50.29kaushalhi
10:50.46kaushalis there a centralized application to access all the tomcat server
10:50.47kaushalcatalina.logs
10:50.47kaushal?
11:34.58Thijsssshuh?
11:35.17Thijsssscat catalina* ? :)
12:09.58*** join/#tomcat magentar (n=magentar@ip-109-90-135-190.unitymediagroup.de)
12:11.37*** join/#tomcat magentar (n=magentar@ip-109-90-135-190.unitymediagroup.de)
12:14.13*** join/#tomcat magentar (n=magentar@ip-109-90-135-190.unitymediagroup.de)
12:15.02*** join/#tomcat user01 (n=user01@e179073154.adsl.alicedsl.de)
12:15.54*** join/#tomcat magentar (n=magentar@ip-109-90-135-190.unitymediagroup.de)
12:29.52*** join/#tomcat uwe_guenther_de (n=Notebook@p5B283FD9.dip.t-dialin.net)
12:43.59*** join/#tomcat magentar (n=magentar@ip-109-90-135-190.unitymediagroup.de)
12:59.23*** join/#tomcat visitor (n=visitor@217.109.70.126)
13:01.10visitorhello
13:03.12visitorwhen Tomcat returns a file to the browser : where to change the name of this file from the JSP page  
13:03.54visitorany ideas plz ?!!
13:04.34visitorhola anybody there ?
13:04.39visitorhallo
13:04.54visitorgibt es Leben hier ?
13:24.24*** join/#tomcat karstensrage_alt (n=karstens@c-71-202-243-186.hsd1.ca.comcast.net)
13:28.41*** join/#tomcat gilesw (n=chatzill@91.208.163.140)
13:28.45gileswheya all
13:29.13gileswI'm looking for some docs on what the difference is between %{Content-Type}o and %{Content-Type}r
13:29.20gileswin the access log valve
13:33.48*** join/#tomcat Djannakhan (n=quassel@194.3.24.254)
13:36.57*** join/#tomcat picosam (n=picosam@85-169-114-20.rev.numericable.fr)
14:06.51*** join/#tomcat apelW (n=metaltux@secure.dreampark.se)
14:09.55*** join/#tomcat apelW (n=metaltux@secure.dreampark.se)
14:30.45*** join/#tomcat randrewj (n=u1@dyn-128-59-53-3.dyn.columbia.edu)
14:45.01*** join/#tomcat dvinchi (n=dvinchi_@148.245.35.9)
15:14.30*** join/#tomcat dvinchi (n=dvinchi_@148.245.35.9)
15:19.14*** join/#tomcat MrStein (i=3e639182@gateway/web/freenode/x-llaibwuigfqpbcup)
15:20.20MrSteinIs there a way to synchronize two servlets in tomcat? Some form of a critical section, that should be entered only by one process. Can a database be used for this?
15:21.12karstensrageugh
15:21.13karstensrageyes
15:21.25karstensragebut man, rethink your problem that is going to be ugly
15:21.43dvinchisyncrinized ?
15:21.49MrSteinyes, the poroblem is ugly. But it must be solved.
15:21.53MrStein:-(
15:21.54karstensragewonders why people dont have internal 'red flag' monitors
15:22.06dvinchior something like that for the method
15:22.17karstensrageMrStein, rethink the problem, there are often "other" ways to achieve the desired results
15:22.39karstensragemake the two servlets independent of each other for obvious example
15:23.27karstensragedvinchi, since tomcat owns the vm, synchronized would probably work, yes
15:23.32MrSteinwe get one request for a servlet "trid=3, deposit 10 EUR to user account 123", but another servlet can get the same. How to make sure only once are 10 UER deposited to the user account?
15:23.46karstensrageOH!!!!!
15:23.50MrSteintrid= transaction ID#
15:23.52karstensrageyou mean another tomcat instance!!!!
15:24.03MrSteinkarstensrage: no, only one instance.
15:24.09MrSteinbut that can change in the future
15:24.20karstensragehmm
15:24.20karstensrageok
15:24.34karstensrageMrStein, do a little research on Terracotta
15:24.57karstensrageits designed, among other things, to solve this exact problem
15:25.11MrSteinso I have a uniueq transacktion number. How to do  this :  if (nobodyWorksOnTr(trid) {markMeWorkingonTr(trid);   doTheJob(...)} ?
15:25.20*** join/#tomcat bugz__ (n=bugz@adsl-99-129-31-240.dsl.lsan03.sbcglobal.net)
15:26.30karstensrageMrStein, its not that simple
15:26.52karstensragewell maybe it is
15:27.05*** join/#tomcat bugz__ (n=bugz@adsl-99-129-31-240.dsl.lsan03.sbcglobal.net)
15:27.05karstensragewait
15:27.15picosamhello all, how can I have tomcat6 not respond to the url www.myserver.com/api and respond to the url api.myserver.com instead? that said, the application api is deployed and runs with no problems
15:27.31karstensrageyou said "we get one request for a servlet "trid=3, deposit 10 EUR to user account 123", but another servlet can get the same" thats two requests, why wouldnt you process TWO requests?
15:28.11MrSteinkarstensrage: what do you mean by processing TWO requests?
15:28.29MrSteinI must do it exaclty once, no matter how many times I get the request.
15:29.05MrSteinIt is like: Joe, pay the bill for january..... Joe! Pay the bill for january!!!...             ..... JOE! Did you pay the january bil!???
15:29.23MrSteinno matter how often I get informed, I must pay that single bill only once.
15:30.26MrSteinthe problem is, if I get two request in so short time, that the two handler processes overlap. Otherwise I could just make a note in the DB, that the january bill is paid. The next process will check it, and ignore the request.
15:33.15*** join/#tomcat rdg (n=chatzill@65.212.66.19)
15:33.33rdgif I just want to change the port tomcat uses, that's just server.xml right?
15:39.50*** join/#tomcat Maximumi (i=56d6082e@gateway/web/freenode/x-sowomlhvskbegwmr)
15:39.53MaximumiHello
15:44.20MaximumiWhat is the default configuration of encoding on  debian lenny OS with tomcat5.5 > tomcat5.5_5.5.26-5_all.deb java > sun-java6-bin_6-12-1_i386.deb
15:45.11Maximumii would like UTF8 by default
15:54.42*** part/#tomcat rdg (n=chatzill@65.212.66.19)
16:02.18karstensrageok well i think that some hairy db locking is necessary
16:02.26karstensragei assume the trid gets written into the db
16:02.36karstensragealong with the transaction details
16:03.00karstensrageso you handle all this in the db and in your code just deal with unique constraint exceptions
16:03.23karstensragehow you uniquely qualify the trid is going to be very important too
16:04.11karstensragei mean it better be very REST'ful
16:04.28karstensragei.e. a GET always returns the same trid resource
16:05.51karstensragei wouldnt try to handle this in code
16:05.58karstensrageimpossible to test
16:19.11*** join/#tomcat Vanuatoo (n=Vanuatoo@92.54.192.70)
16:19.14*** join/#tomcat clovisw (n=dvl@189.26.121.1)
16:20.38cloviswhi, anyone knows how to control HTTPS to give a session that use always "stay alive" until that session goes out? i need this for low latency network, and avoid the use and configure VPNs that works but i think with HTTPS "stay alive" that can be achieved too.
16:21.21clovisws/stay/keep
16:32.58*** join/#tomcat km (n=km@66-7-254-75.static-ip.telepacific.net)
16:42.19MrSteinkarstensrage: thanks for your help
16:49.17karstensragegood luck MrStein
17:19.06*** join/#tomcat nathacof (n=ncoffiel@hq-vpn.safesecureweb.com)
17:19.52nathacofAnyone have a good reference site for Tomcat performance configuration? I've got to do a call with a customer today, and I'm not entirely up to speed. (we don't officially support Tomcat at my job)
17:35.47*** join/#tomcat Alagar (n=Administ@122.164.88.149)
17:46.11randrewjshould we say a little collective prayer for nathacof?
17:46.14randrewj: )
17:54.15*** join/#tomcat codeshah (n=codeshah@S010600259c0c9d2a.ed.shawcable.net)
17:54.26codeshahhey guys, I am trying to setup jira on tomcat6, and getting Error configuring application listener of class com.atlassian.jira.soap.axis.JiraAxisHttpListener
17:55.00codeshahin there... Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader
18:00.43nat2610hey, how can I know what's the limit of memory I can use for java/tomcat. I have 6G of ram on the server and its a 32bit (running java 1.6.u16 and tomcat 5.0.28) http://pastie.org/702022
18:36.49Odin_nat2610, limit is around 2Gb for Java heap
18:37.32Odin_nat2610, on linux at least, maybe less on Win32
18:37.54Odin_nat2610, the other 2Gb is used for memory mappings
18:46.45nat2610Odin_, yeah I'm on linux, as you said, I can put up to 2G in my heap but how come it's limited like that ? There is no way to have more even so I have 6G or ram ?
18:47.30Odin_nat2610, on linux you can have a little more maybe at much as 3G
18:47.34Odin_but no more than 3G
18:47.50Odin_its limited because memory mapping is used/needed to load libraries and even JAR files
18:48.29Odin_mmap's grow down the address space and heap grows up
18:48.36Odin_maybe consider 64bit linux
19:27.37*** join/#tomcat puskar (n=puskar@PUSKAR.ES.ITS.NYU.EDU)
19:50.33*** join/#tomcat ech0s7 (n=ech0s7@host132-97-dynamic.49-82-r.retail.telecomitalia.it)
19:50.34ech0s7hi
19:50.48ech0s7why tomcat blocks POST request to a servlet/jsp ?
20:22.12*** join/#tomcat VaNNi_ (n=VaNNi___@38.98.61.142)
21:37.51*** join/#tomcat prgrmr (n=prgrmr@unaffiliated/prgrmr)
21:52.14*** join/#tomcat dan__t (i=vpn@vpn.withparity.net)
21:52.19dan__t'evening.
21:52.35dan__tAre there any command-line administration utils available to do things that would normally be reserved for the Manager application?
21:52.41dan__tLoading, unloading, stopping, yada yada.
21:56.55dan__tGuess I could curl it...
22:22.08ech0s7why my application works only if i set <url-pattern>/</url-pattern> ?
22:23.25Thijssssdan__t  : hrm.. no idea really, if you script one .. usually killall -9 java is my best friend to be honest ;p
22:32.54dan__tYea.
22:33.03dan__tI'll just use curl, and map out the manager commands :/
22:56.44Odin_ech0s7, tomcat blocks ?
22:57.31Odin_ech0s7, how does it block it?  what HTTP error response do you get?  what methods are you defining in your servlet ?
22:58.08Odin_ech0s7, <url-pattern>/</url-pattern> on what ?  maybe pastebin your web.xml ?  what other settings did you try ?
22:58.34ech0s7Odin_: i'm using mod_jk with apache
22:58.43ech0s7i think that this is the problem
22:59.18Odin_ech0s7, which version of apache/mod_jk ?  1.2.x ?
22:59.32ech0s71.2.28
22:59.44Odin_ech0s7, I use apache 2.2.x and mod_proxy_ajp now (its been some years since I last used apache 1.2.x)
22:59.48ech0s7Odin_: you suggest me to use mod_jk or ProxyPass ?
23:00.15ech0s7Odin_: because with ProxyPass to me doesn't works URL Rewritten
23:00.41ech0s7for example getPathInfo() return me always null
23:00.53ech0s7also if i add other string to servlet url
23:01.02ech0s7(this with ProxyPass)
23:01.10ech0s7now i would try this with mod_jk
23:02.13Odin_what is the URL the client sents ?
23:02.45Odin_what is the response from getPathInfo() in the following three situations, direct tomcat/jboss ?  with mod_jk in front ?  with mod_proxy_ajp in front ?
23:03.52Odin_are you using urls like: /foo;fooName=fooValue/bar;barName=barValue/file;fileName=fileValue?arg0Name=arg0Value&arg1Name=arg1Value ?
23:04.47ech0s7Odin_: for example
23:04.56ech0s7http://localhost/jsp/ServletSessionTracking/ is my servlet
23:05.10ech0s7if i post http://localhost/jsp/ServletSessionTracking/123
23:05.18ech0s7getPathInfo() return me null
23:06.27ech0s7http://localhost/jsp/ServletSessionTracking=90 return me
23:06.28ech0s7The requested resource (/ServletSessionTracking=90) is not available.
23:07.09ech0s7with http://localhost/jsp/ServletSessionTracking/?var=90  getPathInfo() return null
23:07.35ech0s7with http://localhost/jsp/ServletSessionTracking?var=90
23:07.39ech0s7browser change to
23:07.44ech0s7http://localhost/jsp/ServletSessionTracking/?var=90
23:07.52ech0s7Odin_: have you seen ?
23:09.14ech0s7Odin_: here http://dpaste.com/121756/ there are html, server.xml and web.xml
23:09.50Odin_ech0s7, are you sure getPathInfo() is meant to be non-null ?
23:10.05ech0s7yes
23:10.09ech0s7i write on response
23:10.10Odin_try: http://localhost/jsp/ServletSessionTracking/foo;fooName=fooValue/bar;barName=barValue/file;fileName=fileValue?arg0Name=arg0Value&arg1Name=arg1Value
23:10.23Odin_use "/ServletSesisonTracking/*" in your servlet-mapping
23:11.26ech0s7Odin_: you are saying in <url-pattern> ?
23:12.38Odin_ech0s7,  yup
23:12.43Odin_have 2 mappings
23:13.03Odin_"/ServletSesisonTracking/*" and  "/ServletSesisonTracking"
23:15.54ech0s7Odin_: with this <url-pattern>/ServletSessionTracking/*</url-pattern>
23:16.06ech0s7now getPathInfo() return right value
23:16.49Odin_???
23:16.57ech0s7Odin_: for example
23:17.03ech0s7http://localhost/jsp/ServletSessionTracking/ServletSessionTracking/23
23:17.12ech0s7getPathInfo() return /23
23:17.47Odin_what are the servlet-mapping entires?
23:18.05ech0s7<servlet-mapping>
23:18.06ech0s7<servlet-name>ExampleSessionTracking</servlet-name>
23:18.06ech0s7<url-pattern>/ServletSessionTracking/*</url-pattern>
23:18.06ech0s7</servlet-mapping>
23:20.10ech0s7Odin_: as you can see i have two times the servlet name in url
23:21.35Odin_ech0s7, LOL
23:21.54Odin_ech0s7, it looks like you have named your contextPath="/jsp/ServletSessionTracking"
23:22.01Odin_ech0s7, when you may have meant just "/jsp"
23:22.35ech0s7Odin_: in httpd.conf i have
23:22.35ech0s7ProxyPass /jsp/ http://localhost:8080/
23:22.35ech0s7ProxyPassReverse /jsp/ http://localhost:8080/
23:23.06ech0s7so with /jsp i forwards to tomcat
23:23.07Odin_ech0s7, what is the name of the WAR ?
23:23.27ech0s7is not a WAR but a directory with inside WEB-INF
23:23.28Odin_ech0s7, "ServletSessionTracking" ? lol
23:23.32ech0s7yes
23:23.36ech0s7ServletSessionTracking
23:23.39ech0s7is the name :)
23:23.59Odin_ech0s7, well thats why you have the URL like this
23:24.16Odin_ech0s7, use a mapping for "/*" to remove the extra ServletSessionTracking
23:24.38Odin_ech0s7, use a ContextPath of "/" or change the WAR name to ROOT.WAR to remove the middle ServletSessionTracking
23:25.04Odin_ech0s7, or add "ServletSessionTracking" to the URL in the argument to ProxyPass / ProxyPassReverse
23:25.32ech0s7Odin_: to remove the middle ServletSessionTracking i have to remove this
23:25.42ech0s7path in <Context docBase="/srv/http/servlets/ServletSessionTracking" path="/ServletSessionTracking" reloadable="true"/>
23:25.54ech0s7but i can't remove path there
23:26.47ech0s7Odin_: i think that is best if i use mod_jk, what do yo you think about this '
23:26.48ech0s7?
23:26.48Odin_you can keep "docBase" as it is
23:26.56Odin_you can change path=""
23:27.04ech0s7Odin_: i have tried
23:27.18Odin_where is the <Context ..> defined what file what path on you system?
23:27.20ech0s7but after if i have more servlet with path="" tomcat doesn't starts
23:27.37ech0s7Odin_: all my servlets are in /srv/http/servlets
23:27.57Odin_huh
23:32.29ech0s7Odin_: now i have done this changes
23:32.31ech0s7ProxyPass /ServletSessionTracking http://localhost:8080/ServletSessionTracking
23:32.31ech0s7ProxyPassReverse /ServletSessionTracking http://localhost:8080/ServletSessionTracking
23:32.34ech0s7in http.conf
23:32.48ech0s7<servlet-mapping>
23:32.48ech0s7<servlet-name>ExampleSessionTracking</servlet-name>
23:32.49ech0s7<url-pattern>/*</url-pattern>
23:32.49ech0s7</servlet-mapping>
23:32.54ech0s7in web.xml
23:32.55Odin_ok if you are happy its working
23:33.17Odin_I think the issue is more your understanding of contextPath and ProxyPass config and servlet-mapping "inter-play"
23:33.50ech0s7and now with this action
23:33.52ech0s7<form action="/ServletSessionTracking" method="post">
23:34.18ech0s7servlets works
23:34.33ech0s7but getPathInfo() return me /
23:34.34ech0s7why ?
23:35.16Odin_because there is no path
23:35.44Odin_<PROTECTED>
23:36.23Odin_and in a homepage there is no path is there
23:36.50ech0s7http://localhost/ServletSessionTracking?var=90
23:36.51Odin_I think you need to fix your "<Context" to have path=""
23:36.55ech0s7return always /
23:37.08Odin_and your servlet to be "/ServletSessionTracking" then it will work like you expect
23:37.32Odin_you need to understand better how a WAR deployed into a Context Path
23:37.46Odin_and then inside that context path a servlet deploys at a servlet-mapping
23:37.50ech0s7ok
23:37.54ech0s7Odin_: now this is the situation
23:37.56ech0s7<Context docBase="/srv/http/servlets/ServletSessionTracking" path="" reloadable="true"/>
23:38.10Odin_ok where is the file with that <Context ...> ?
23:38.10ech0s7<servlet-mapping>
23:38.11ech0s7<servlet-name>ExampleSessionTracking</servlet-name>
23:38.11ech0s7<url-pattern>/*</url-pattern>
23:38.11ech0s7</servlet-mapping>
23:38.13Odin_what is the full path of that file
23:38.30Odin_is it in META-INF/context.xml ?
23:38.35ech0s7no
23:38.49ech0s7it is /opt/tomcat/server.xml
23:39.08Odin_or is it tomcat-x.y.z/conf/server.xml l ?
23:39.16Odin_ok after the edit, shut down tomcat
23:39.16ech0s7no no
23:39.21ech0s7yes
23:39.31ech0s7i restart always tomcat after each edit
23:39.41ech0s7now i have this
23:39.41ech0s7<servlet-mapping>
23:39.41ech0s7<servlet-name>ExampleSessionTracking</servlet-name>
23:39.41ech0s7<url-pattern>/*</url-pattern>
23:39.42ech0s7</servlet-mapping>
23:39.49Odin_not with TC shutdown
23:39.54Odin_what is in the /opt/tomcat/work folder ?
23:40.00ech0s7i change to <url-pattern>/ServletSessionTracking</url-pattern>
23:40.15Odin_now with TC shutdown, what is in the /opt/tomcat/work folder ?
23:40.26ech0s7/opt/tomcat/work $ pwd && ls
23:40.26ech0s7/opt/tomcat/work
23:40.26ech0s7Catalina
23:41.05ech0s7in Catalina i have localhost and in localhost i have:
23:41.31ech0s710 directory one for each servlet
23:41.53Odin_ok type "find /opt/tomcat/work/Catalina -type f"
23:42.10Odin_you need to delete the context.xml it saved for your web-app
23:42.15Odin_then restart tomcat
23:42.33Odin_so delete any dir maybe called /opt/tomcat/work/Catalina/localhost/ServletSessionTracking/context.xml
23:42.45Odin_opps the file and the dir: /opt/tomcat/work/Catalina/localhost/ServletSessionTracking
23:43.18ech0s7ok removed
23:43.26Odin_then restart tomcat
23:43.46Odin_is that file exists it override the one in the WAR (even it the timestamp is different)
23:43.55ech0s7Odin_: i change  <url-pattern>/*</url-pattern> to  <url-pattern>/ServletSessionTracking</url-pattern> ?
23:44.17Odin_ech0s7, yup... well use 2 "/ServletSessionTracking" and "/ServletSessionTracking/*"
23:44.25Odin_ech0s7, in 2 mappings
23:45.21ech0s7ok
23:45.25ech0s7but http://localhost/ServletSessionTracking?id=2
23:45.29ech0s7return null
23:45.42ech0s7in getPathInfo
23:46.49ech0s7and localhost:8080 is not available, i think because we have setted path=""
23:56.02Odin_ok fix your apache config
23:56.13Odin_ProxyPass /jsp/ http://localhost:8080/
23:56.22ech0s7Odin_: now i'm trying with mod_jk
23:56.29ech0s7so i have removed ProxyPass
23:56.52ech0s7Odin_: all tomcat servlets by default are in /opt/tomcat/webapps
23:57.39Odin_ok the web-apps are in there
23:57.40Odin_no the web-apps are in there
23:57.40Odin_each dir in that "webapps" dir is called a "webapp"
23:57.40ech0s7it's possible to put in this directory only a link to another servlet directory ?
23:57.40Odin_inside each web-app are servlets
23:57.54ech0s7a symlink (ln -s)
23:58.02Odin_you should have a dir: /opt/tomcat/webapps/ROOT.war/
23:58.16Odin_and all your servlet merged into there, its "unusual" to have multiple webapps with one servlet in each
23:58.36Odin_can you pastebin a "find /opt/tomcat/webapps"

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.