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.34 | nat2610 | hey, 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.23 | onats_ | hi, i am running on ubuntu karmic 9.10, installed default package tomcat6, running java1.6. |
05:48.43 | onats_ | 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.53 | kaushal | hi |
07:45.26 | kaushal | is there a centralized tomcat server for accessing the catalina.out log files ? |
07:45.40 | kaushal | I 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.45 | Neeraja | OS - Kubuntu 9.10 AMD64, Java - java version "1.6.0_15", Tomcat - 6.0.20-2ubuntu2 (From Repositories) |
09:05.55 | Neeraja | I 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.38 | Neeraja | same war file if I try to test on Linux i get servlet not found error |
09:06.55 | Neeraja | the log output on linux is as follows |
09:07.20 | Neeraja | 17 Nov, 2009 2:19:54 PM org.apache.catalina.core.ApplicationContext log |
09:07.20 | Neeraja | INFO: ContextListener: contextInitialized() |
09:07.20 | Neeraja | 17 Nov, 2009 2:19:54 PM org.apache.catalina.core.ApplicationContext log |
09:07.20 | Neeraja | INFO: SessionListener: contextInitialized() |
09:07.20 | Neeraja | 17 Nov, 2009 2:19:56 PM org.apache.catalina.core.ApplicationContext log |
09:07.21 | Neeraja | INFO: Marking servlet MessageBrokerServlet as unavailable |
09:07.23 | Neeraja | 17 Nov, 2009 2:19:56 PM org.apache.catalina.core.StandardContext loadOnStartup |
09:07.25 | Neeraja | SEVERE: Servlet /blazeds threw load() exception |
09:07.28 | Neeraja | javax.servlet.UnavailableException |
09:07.30 | Neeraja | at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:170) |
09:07.33 | Neeraja | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
09:07.34 | Neeraja | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) |
09:07.37 | Neeraja | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) |
09:07.39 | Neeraja | at java.lang.reflect.Method.invoke(Method.java:597) |
09:07.41 | Neeraja | at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269) |
09:07.43 | Neeraja | at java.security.AccessController.doPrivileged(Native Method) |
09:07.45 | Neeraja | at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) |
09:07.47 | Neeraja | at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301) |
09:07.50 | Neeraja | at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) |
09:07.52 | Neeraja | at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115) |
09:07.54 | Neeraja | at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1167) |
09:07.56 | Neeraja | at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) |
09:08.00 | Neeraja | at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149) |
09:08.01 | Neeraja | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458) |
09:08.03 | Neeraja | at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) |
09:08.05 | Neeraja | at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123) |
09:08.07 | Neeraja | at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145) |
09:08.10 | Neeraja | at java.security.AccessController.doPrivileged(Native Method) |
09:08.12 | Neeraja | at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769) |
09:08.14 | Neeraja | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) |
09:08.16 | Neeraja | at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630) |
09:08.18 | Neeraja | at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556) |
09:08.21 | Neeraja | at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491) |
09:08.23 | Neeraja | at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206) |
09:08.25 | Neeraja | at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314) |
09:08.27 | Neeraja | at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) |
09:08.29 | Neeraja | at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) |
09:08.32 | Neeraja | at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) |
09:08.34 | Neeraja | at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) |
09:08.36 | Neeraja | at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) |
09:08.38 | Neeraja | at org.apache.catalina.core.StandardService.start(StandardService.java:516) |
09:08.40 | Neeraja | at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) |
09:08.43 | Neeraja | at org.apache.catalina.startup.Catalina.start(Catalina.java:583) |
09:08.45 | Neeraja | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
09:08.47 | Neeraja | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) |
09:08.49 | Neeraja | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) |
09:08.52 | Neeraja | at java.lang.reflect.Method.invoke(Method.java:597) |
09:08.54 | Neeraja | at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) |
09:08.56 | Neeraja | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
09:08.58 | Neeraja | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) |
09:09.00 | Neeraja | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) |
09:09.02 | Neeraja | at java.lang.reflect.Method.invoke(Method.java:597) |
09:09.05 | Neeraja | at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177) |
09:09.07 | Neeraja | 17 Nov, 2009 2:20:24 PM org.apache.catalina.core.StandardWrapperValve invoke |
09:09.09 | Neeraja | INFO: Servlet MessageBrokerServlet is currently unavailable |
09:09.16 | Neeraja | can somebody help me in this situation. |
09:09.20 | Neeraja | I am newbie to Java and Tomcat rather this is my first web application |
09:09.22 | Neeraja | thanks |
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.16 | kaushal | hi |
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.29 | kaushal | hi |
10:50.46 | kaushal | is there a centralized application to access all the tomcat server |
10:50.47 | kaushal | catalina.logs |
10:50.47 | kaushal | ? |
11:34.58 | Thijssss | huh? |
11:35.17 | Thijssss | cat 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.10 | visitor | hello |
13:03.12 | visitor | when Tomcat returns a file to the browser : where to change the name of this file from the JSP page |
13:03.54 | visitor | any ideas plz ?!! |
13:04.34 | visitor | hola anybody there ? |
13:04.39 | visitor | hallo |
13:04.54 | visitor | gibt 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.45 | gilesw | heya all |
13:29.13 | gilesw | I'm looking for some docs on what the difference is between %{Content-Type}o and %{Content-Type}r |
13:29.20 | gilesw | in 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.20 | MrStein | Is 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.12 | karstensrage | ugh |
15:21.13 | karstensrage | yes |
15:21.25 | karstensrage | but man, rethink your problem that is going to be ugly |
15:21.43 | dvinchi | syncrinized ? |
15:21.49 | MrStein | yes, the poroblem is ugly. But it must be solved. |
15:21.53 | MrStein | :-( |
15:21.54 | karstensrage | wonders why people dont have internal 'red flag' monitors |
15:22.06 | dvinchi | or something like that for the method |
15:22.17 | karstensrage | MrStein, rethink the problem, there are often "other" ways to achieve the desired results |
15:22.39 | karstensrage | make the two servlets independent of each other for obvious example |
15:23.27 | karstensrage | dvinchi, since tomcat owns the vm, synchronized would probably work, yes |
15:23.32 | MrStein | we 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.46 | karstensrage | OH!!!!! |
15:23.50 | MrStein | trid= transaction ID# |
15:23.52 | karstensrage | you mean another tomcat instance!!!! |
15:24.03 | MrStein | karstensrage: no, only one instance. |
15:24.09 | MrStein | but that can change in the future |
15:24.20 | karstensrage | hmm |
15:24.20 | karstensrage | ok |
15:24.34 | karstensrage | MrStein, do a little research on Terracotta |
15:24.57 | karstensrage | its designed, among other things, to solve this exact problem |
15:25.11 | MrStein | so 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.30 | karstensrage | MrStein, its not that simple |
15:26.52 | karstensrage | well maybe it is |
15:27.05 | *** join/#tomcat bugz__ (n=bugz@adsl-99-129-31-240.dsl.lsan03.sbcglobal.net) |
15:27.05 | karstensrage | wait |
15:27.15 | picosam | hello 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.31 | karstensrage | you 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.11 | MrStein | karstensrage: what do you mean by processing TWO requests? |
15:28.29 | MrStein | I must do it exaclty once, no matter how many times I get the request. |
15:29.05 | MrStein | It is like: Joe, pay the bill for january..... Joe! Pay the bill for january!!!... ..... JOE! Did you pay the january bil!??? |
15:29.23 | MrStein | no matter how often I get informed, I must pay that single bill only once. |
15:30.26 | MrStein | the 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.33 | rdg | if 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.53 | Maximumi | Hello |
15:44.20 | Maximumi | What 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.11 | Maximumi | i would like UTF8 by default |
15:54.42 | *** part/#tomcat rdg (n=chatzill@65.212.66.19) |
16:02.18 | karstensrage | ok well i think that some hairy db locking is necessary |
16:02.26 | karstensrage | i assume the trid gets written into the db |
16:02.36 | karstensrage | along with the transaction details |
16:03.00 | karstensrage | so you handle all this in the db and in your code just deal with unique constraint exceptions |
16:03.23 | karstensrage | how you uniquely qualify the trid is going to be very important too |
16:04.11 | karstensrage | i mean it better be very REST'ful |
16:04.28 | karstensrage | i.e. a GET always returns the same trid resource |
16:05.51 | karstensrage | i wouldnt try to handle this in code |
16:05.58 | karstensrage | impossible 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.38 | clovisw | hi, 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.21 | clovisw | s/stay/keep |
16:32.58 | *** join/#tomcat km (n=km@66-7-254-75.static-ip.telepacific.net) |
16:42.19 | MrStein | karstensrage: thanks for your help |
16:49.17 | karstensrage | good luck MrStein |
17:19.06 | *** join/#tomcat nathacof (n=ncoffiel@hq-vpn.safesecureweb.com) |
17:19.52 | nathacof | Anyone 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.11 | randrewj | should we say a little collective prayer for nathacof? |
17:46.14 | randrewj | : ) |
17:54.15 | *** join/#tomcat codeshah (n=codeshah@S010600259c0c9d2a.ed.shawcable.net) |
17:54.26 | codeshah | hey 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.00 | codeshah | in there... Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader |
18:00.43 | nat2610 | hey, 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.49 | Odin_ | nat2610, limit is around 2Gb for Java heap |
18:37.32 | Odin_ | nat2610, on linux at least, maybe less on Win32 |
18:37.54 | Odin_ | nat2610, the other 2Gb is used for memory mappings |
18:46.45 | nat2610 | Odin_, 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.30 | Odin_ | nat2610, on linux you can have a little more maybe at much as 3G |
18:47.34 | Odin_ | but no more than 3G |
18:47.50 | Odin_ | its limited because memory mapping is used/needed to load libraries and even JAR files |
18:48.29 | Odin_ | mmap's grow down the address space and heap grows up |
18:48.36 | Odin_ | 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.34 | ech0s7 | hi |
19:50.48 | ech0s7 | why 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.19 | dan__t | 'evening. |
21:52.35 | dan__t | Are there any command-line administration utils available to do things that would normally be reserved for the Manager application? |
21:52.41 | dan__t | Loading, unloading, stopping, yada yada. |
21:56.55 | dan__t | Guess I could curl it... |
22:22.08 | ech0s7 | why my application works only if i set <url-pattern>/</url-pattern> ? |
22:23.25 | Thijssss | dan__t : hrm.. no idea really, if you script one .. usually killall -9 java is my best friend to be honest ;p |
22:32.54 | dan__t | Yea. |
22:33.03 | dan__t | I'll just use curl, and map out the manager commands :/ |
22:56.44 | Odin_ | ech0s7, tomcat blocks ? |
22:57.31 | Odin_ | ech0s7, how does it block it? what HTTP error response do you get? what methods are you defining in your servlet ? |
22:58.08 | Odin_ | ech0s7, <url-pattern>/</url-pattern> on what ? maybe pastebin your web.xml ? what other settings did you try ? |
22:58.34 | ech0s7 | Odin_: i'm using mod_jk with apache |
22:58.43 | ech0s7 | i think that this is the problem |
22:59.18 | Odin_ | ech0s7, which version of apache/mod_jk ? 1.2.x ? |
22:59.32 | ech0s7 | 1.2.28 |
22:59.44 | Odin_ | 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.48 | ech0s7 | Odin_: you suggest me to use mod_jk or ProxyPass ? |
23:00.15 | ech0s7 | Odin_: because with ProxyPass to me doesn't works URL Rewritten |
23:00.41 | ech0s7 | for example getPathInfo() return me always null |
23:00.53 | ech0s7 | also if i add other string to servlet url |
23:01.02 | ech0s7 | (this with ProxyPass) |
23:01.10 | ech0s7 | now i would try this with mod_jk |
23:02.13 | Odin_ | what is the URL the client sents ? |
23:02.45 | Odin_ | 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.52 | Odin_ | are you using urls like: /foo;fooName=fooValue/bar;barName=barValue/file;fileName=fileValue?arg0Name=arg0Value&arg1Name=arg1Value ? |
23:04.47 | ech0s7 | Odin_: for example |
23:04.56 | ech0s7 | http://localhost/jsp/ServletSessionTracking/ is my servlet |
23:05.10 | ech0s7 | if i post http://localhost/jsp/ServletSessionTracking/123 |
23:05.18 | ech0s7 | getPathInfo() return me null |
23:06.27 | ech0s7 | http://localhost/jsp/ServletSessionTracking=90 return me |
23:06.28 | ech0s7 | The requested resource (/ServletSessionTracking=90) is not available. |
23:07.09 | ech0s7 | with http://localhost/jsp/ServletSessionTracking/?var=90 getPathInfo() return null |
23:07.35 | ech0s7 | with http://localhost/jsp/ServletSessionTracking?var=90 |
23:07.39 | ech0s7 | browser change to |
23:07.44 | ech0s7 | http://localhost/jsp/ServletSessionTracking/?var=90 |
23:07.52 | ech0s7 | Odin_: have you seen ? |
23:09.14 | ech0s7 | Odin_: here http://dpaste.com/121756/ there are html, server.xml and web.xml |
23:09.50 | Odin_ | ech0s7, are you sure getPathInfo() is meant to be non-null ? |
23:10.05 | ech0s7 | yes |
23:10.09 | ech0s7 | i write on response |
23:10.10 | Odin_ | try: http://localhost/jsp/ServletSessionTracking/foo;fooName=fooValue/bar;barName=barValue/file;fileName=fileValue?arg0Name=arg0Value&arg1Name=arg1Value |
23:10.23 | Odin_ | use "/ServletSesisonTracking/*" in your servlet-mapping |
23:11.26 | ech0s7 | Odin_: you are saying in <url-pattern> ? |
23:12.38 | Odin_ | ech0s7, yup |
23:12.43 | Odin_ | have 2 mappings |
23:13.03 | Odin_ | "/ServletSesisonTracking/*" and "/ServletSesisonTracking" |
23:15.54 | ech0s7 | Odin_: with this <url-pattern>/ServletSessionTracking/*</url-pattern> |
23:16.06 | ech0s7 | now getPathInfo() return right value |
23:16.49 | Odin_ | ??? |
23:16.57 | ech0s7 | Odin_: for example |
23:17.03 | ech0s7 | http://localhost/jsp/ServletSessionTracking/ServletSessionTracking/23 |
23:17.12 | ech0s7 | getPathInfo() return /23 |
23:17.47 | Odin_ | what are the servlet-mapping entires? |
23:18.05 | ech0s7 | <servlet-mapping> |
23:18.06 | ech0s7 | <servlet-name>ExampleSessionTracking</servlet-name> |
23:18.06 | ech0s7 | <url-pattern>/ServletSessionTracking/*</url-pattern> |
23:18.06 | ech0s7 | </servlet-mapping> |
23:20.10 | ech0s7 | Odin_: as you can see i have two times the servlet name in url |
23:21.35 | Odin_ | ech0s7, LOL |
23:21.54 | Odin_ | ech0s7, it looks like you have named your contextPath="/jsp/ServletSessionTracking" |
23:22.01 | Odin_ | ech0s7, when you may have meant just "/jsp" |
23:22.35 | ech0s7 | Odin_: in httpd.conf i have |
23:22.35 | ech0s7 | ProxyPass /jsp/ http://localhost:8080/ |
23:22.35 | ech0s7 | ProxyPassReverse /jsp/ http://localhost:8080/ |
23:23.06 | ech0s7 | so with /jsp i forwards to tomcat |
23:23.07 | Odin_ | ech0s7, what is the name of the WAR ? |
23:23.27 | ech0s7 | is not a WAR but a directory with inside WEB-INF |
23:23.28 | Odin_ | ech0s7, "ServletSessionTracking" ? lol |
23:23.32 | ech0s7 | yes |
23:23.36 | ech0s7 | ServletSessionTracking |
23:23.39 | ech0s7 | is the name :) |
23:23.59 | Odin_ | ech0s7, well thats why you have the URL like this |
23:24.16 | Odin_ | ech0s7, use a mapping for "/*" to remove the extra ServletSessionTracking |
23:24.38 | Odin_ | ech0s7, use a ContextPath of "/" or change the WAR name to ROOT.WAR to remove the middle ServletSessionTracking |
23:25.04 | Odin_ | ech0s7, or add "ServletSessionTracking" to the URL in the argument to ProxyPass / ProxyPassReverse |
23:25.32 | ech0s7 | Odin_: to remove the middle ServletSessionTracking i have to remove this |
23:25.42 | ech0s7 | path in <Context docBase="/srv/http/servlets/ServletSessionTracking" path="/ServletSessionTracking" reloadable="true"/> |
23:25.54 | ech0s7 | but i can't remove path there |
23:26.47 | ech0s7 | Odin_: i think that is best if i use mod_jk, what do yo you think about this ' |
23:26.48 | ech0s7 | ? |
23:26.48 | Odin_ | you can keep "docBase" as it is |
23:26.56 | Odin_ | you can change path="" |
23:27.04 | ech0s7 | Odin_: i have tried |
23:27.18 | Odin_ | where is the <Context ..> defined what file what path on you system? |
23:27.20 | ech0s7 | but after if i have more servlet with path="" tomcat doesn't starts |
23:27.37 | ech0s7 | Odin_: all my servlets are in /srv/http/servlets |
23:27.57 | Odin_ | huh |
23:32.29 | ech0s7 | Odin_: now i have done this changes |
23:32.31 | ech0s7 | ProxyPass /ServletSessionTracking http://localhost:8080/ServletSessionTracking |
23:32.31 | ech0s7 | ProxyPassReverse /ServletSessionTracking http://localhost:8080/ServletSessionTracking |
23:32.34 | ech0s7 | in http.conf |
23:32.48 | ech0s7 | <servlet-mapping> |
23:32.48 | ech0s7 | <servlet-name>ExampleSessionTracking</servlet-name> |
23:32.49 | ech0s7 | <url-pattern>/*</url-pattern> |
23:32.49 | ech0s7 | </servlet-mapping> |
23:32.54 | ech0s7 | in web.xml |
23:32.55 | Odin_ | ok if you are happy its working |
23:33.17 | Odin_ | I think the issue is more your understanding of contextPath and ProxyPass config and servlet-mapping "inter-play" |
23:33.50 | ech0s7 | and now with this action |
23:33.52 | ech0s7 | <form action="/ServletSessionTracking" method="post"> |
23:34.18 | ech0s7 | servlets works |
23:34.33 | ech0s7 | but getPathInfo() return me / |
23:34.34 | ech0s7 | why ? |
23:35.16 | Odin_ | because there is no path |
23:35.44 | Odin_ | <PROTECTED> |
23:36.23 | Odin_ | and in a homepage there is no path is there |
23:36.50 | ech0s7 | http://localhost/ServletSessionTracking?var=90 |
23:36.51 | Odin_ | I think you need to fix your "<Context" to have path="" |
23:36.55 | ech0s7 | return always / |
23:37.08 | Odin_ | and your servlet to be "/ServletSessionTracking" then it will work like you expect |
23:37.32 | Odin_ | you need to understand better how a WAR deployed into a Context Path |
23:37.46 | Odin_ | and then inside that context path a servlet deploys at a servlet-mapping |
23:37.50 | ech0s7 | ok |
23:37.54 | ech0s7 | Odin_: now this is the situation |
23:37.56 | ech0s7 | <Context docBase="/srv/http/servlets/ServletSessionTracking" path="" reloadable="true"/> |
23:38.10 | Odin_ | ok where is the file with that <Context ...> ? |
23:38.10 | ech0s7 | <servlet-mapping> |
23:38.11 | ech0s7 | <servlet-name>ExampleSessionTracking</servlet-name> |
23:38.11 | ech0s7 | <url-pattern>/*</url-pattern> |
23:38.11 | ech0s7 | </servlet-mapping> |
23:38.13 | Odin_ | what is the full path of that file |
23:38.30 | Odin_ | is it in META-INF/context.xml ? |
23:38.35 | ech0s7 | no |
23:38.49 | ech0s7 | it is /opt/tomcat/server.xml |
23:39.08 | Odin_ | or is it tomcat-x.y.z/conf/server.xml l ? |
23:39.16 | Odin_ | ok after the edit, shut down tomcat |
23:39.16 | ech0s7 | no no |
23:39.21 | ech0s7 | yes |
23:39.31 | ech0s7 | i restart always tomcat after each edit |
23:39.41 | ech0s7 | now i have this |
23:39.41 | ech0s7 | <servlet-mapping> |
23:39.41 | ech0s7 | <servlet-name>ExampleSessionTracking</servlet-name> |
23:39.41 | ech0s7 | <url-pattern>/*</url-pattern> |
23:39.42 | ech0s7 | </servlet-mapping> |
23:39.49 | Odin_ | not with TC shutdown |
23:39.54 | Odin_ | what is in the /opt/tomcat/work folder ? |
23:40.00 | ech0s7 | i change to <url-pattern>/ServletSessionTracking</url-pattern> |
23:40.15 | Odin_ | now with TC shutdown, what is in the /opt/tomcat/work folder ? |
23:40.26 | ech0s7 | /opt/tomcat/work $ pwd && ls |
23:40.26 | ech0s7 | /opt/tomcat/work |
23:40.26 | ech0s7 | Catalina |
23:41.05 | ech0s7 | in Catalina i have localhost and in localhost i have: |
23:41.31 | ech0s7 | 10 directory one for each servlet |
23:41.53 | Odin_ | ok type "find /opt/tomcat/work/Catalina -type f" |
23:42.10 | Odin_ | you need to delete the context.xml it saved for your web-app |
23:42.15 | Odin_ | then restart tomcat |
23:42.33 | Odin_ | so delete any dir maybe called /opt/tomcat/work/Catalina/localhost/ServletSessionTracking/context.xml |
23:42.45 | Odin_ | opps the file and the dir: /opt/tomcat/work/Catalina/localhost/ServletSessionTracking |
23:43.18 | ech0s7 | ok removed |
23:43.26 | Odin_ | then restart tomcat |
23:43.46 | Odin_ | is that file exists it override the one in the WAR (even it the timestamp is different) |
23:43.55 | ech0s7 | Odin_: i change <url-pattern>/*</url-pattern> to <url-pattern>/ServletSessionTracking</url-pattern> ? |
23:44.17 | Odin_ | ech0s7, yup... well use 2 "/ServletSessionTracking" and "/ServletSessionTracking/*" |
23:44.25 | Odin_ | ech0s7, in 2 mappings |
23:45.21 | ech0s7 | ok |
23:45.25 | ech0s7 | but http://localhost/ServletSessionTracking?id=2 |
23:45.29 | ech0s7 | return null |
23:45.42 | ech0s7 | in getPathInfo |
23:46.49 | ech0s7 | and localhost:8080 is not available, i think because we have setted path="" |
23:56.02 | Odin_ | ok fix your apache config |
23:56.13 | Odin_ | ProxyPass /jsp/ http://localhost:8080/ |
23:56.22 | ech0s7 | Odin_: now i'm trying with mod_jk |
23:56.29 | ech0s7 | so i have removed ProxyPass |
23:56.52 | ech0s7 | Odin_: all tomcat servlets by default are in /opt/tomcat/webapps |
23:57.39 | Odin_ | ok the web-apps are in there |
23:57.40 | Odin_ | no the web-apps are in there |
23:57.40 | Odin_ | each dir in that "webapps" dir is called a "webapp" |
23:57.40 | ech0s7 | it's possible to put in this directory only a link to another servlet directory ? |
23:57.40 | Odin_ | inside each web-app are servlets |
23:57.54 | ech0s7 | a symlink (ln -s) |
23:58.02 | Odin_ | you should have a dir: /opt/tomcat/webapps/ROOT.war/ |
23:58.16 | Odin_ | and all your servlet merged into there, its "unusual" to have multiple webapps with one servlet in each |
23:58.36 | Odin_ | can you pastebin a "find /opt/tomcat/webapps" |