IRC log for #tomcat on 20080314

00:08.55*** join/#tomcat Dwayne_Hicks (n=elsie@adsl-68-74-64-32.dsl.emhril.ameritech.net)
00:11.14*** join/#tomcat toens (n=t@196-209-13-171-ndn-esr-2.dynamic.isadsl.co.za)
00:52.05*** join/#tomcat albert_kam (n=albert_k@222.124.39.108)
01:13.37*** join/#tomcat kanai (n=kanai@124.32.114.226)
03:31.55*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
03:35.36*** join/#tomcat kid1412 (n=kid1412@n058152151086.netvigator.com)
04:01.24*** join/#tomcat IvrGuru (n=1234@cpe-71-79-32-108.cinci.res.rr.com)
04:05.03*** topic/#tomcat by IvrGuru -> Stable versions: 6.0.16, 5.5.26 and 4.1.37. Newbies use the official binary from tomcat.apache.org, or an RPM package from http://www.webdroid.org:8080/archives/tomcat-package. Check your Tomcat logs before you ask for an answer. SLOW MOTION CHANNEL (we all have jobs & kids): Ask your question, including your TC, Java, & OS versions, then wait; check back often for answers...
04:53.13*** join/#tomcat acidjnk (n=have@pD95098FB.dip0.t-ipconnect.de)
05:33.35*** join/#tomcat rambo123 (n=rocky@59.96.161.0)
05:57.25*** join/#tomcat blue_asterisk (n=blue_ast@adsl-75-15-85-248.dsl.sndg02.sbcglobal.net)
06:11.36*** join/#tomcat albert_kam (n=albert_k@222.124.39.108)
06:23.30*** join/#tomcat kanai (n=kanai@124.32.114.226) [NETSPLIT VICTIM]
06:23.30*** join/#tomcat NielsP (n=npm@cpe-75-83-171-237.socal.res.rr.com) [NETSPLIT VICTIM]
06:31.33*** join/#tomcat albert_kam (n=albert_k@222.124.39.108) [NETSPLIT VICTIM]
06:31.33*** join/#tomcat Dwayne_Hicks (n=elsie@adsl-68-74-64-32.dsl.emhril.ameritech.net) [NETSPLIT VICTIM]
06:31.33*** join/#tomcat Vanuatoo (n=Vanuatoo@host-85-114-227-35.adsl.caucasus.net) [NETSPLIT VICTIM]
06:31.33*** join/#tomcat victori_ (n=victori@cpe-75-80-141-237.san.res.rr.com) [NETSPLIT VICTIM]
06:31.33*** join/#tomcat ruxpin (n=pkunk@195.148.225.17)
06:40.16*** join/#tomcat tom17bombadil (n=tom@BAH75d9.bah.pppool.de)
06:42.19*** join/#tomcat albert_kam (n=albert_k@222.124.39.108)
06:50.24*** join/#tomcat kanai_ (n=kanai@124.32.114.226)
07:03.12*** join/#tomcat fifo_ (n=quintin@196.38.199.139)
07:03.15fifo_I keep getting: Mar 14, 2008 8:19:10 AM org.apache.tomcat.util.http.Parameters processParameters
07:03.18fifo_WARNING: Parameters: Invalid chunk ignored.
07:03.32fifo_And I can't seem to determine where it's coming from. Can anyone perhaps enlighten me?
07:03.45fifo_Btw, I get it for every single request.
07:14.02*** join/#tomcat rambo123 (n=rocky@59.96.164.201)
07:22.48*** join/#tomcat Mauriez (i=maui@xs2.xs4all.nl)
07:24.51*** join/#tomcat Mauriez (i=maui@xs2.xs4all.nl)
07:25.53*** join/#tomcat Mauriez (i=maui@xs2.xs4all.nl)
07:28.37*** join/#tomcat Mauriez (i=maui@xs2.xs4all.nl)
07:29.56*** join/#tomcat maui (i=maui@xs2.xs4all.nl)
07:30.41*** join/#tomcat maui (i=maui@xs2.xs4all.nl)
07:31.18*** join/#tomcat mauriez (i=maui@xs2.xs4all.nl)
07:47.36*** join/#tomcat ries (n=ries@200.110.78.134)
07:53.59*** join/#tomcat gin1412 (n=kid1412@n058152151086.netvigator.com)
07:57.02*** join/#tomcat sarts_ (n=stephan@mocha.foo-projects.org)
08:41.05*** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-0e3ea1d46fbf1e65)
09:12.50*** join/#tomcat prgrmr (n=prgrmr@bzq-79-181-10-56.red.bezeqint.net)
09:51.36*** join/#tomcat sveajobb (n=tommy@83.233.28.240)
09:52.58*** join/#tomcat toens (n=t@196-209-13-171-ndn-esr-2.dynamic.isadsl.co.za)
10:13.20deebobah, is it not possible to make an alias or a defautl redirect for a <Context>
10:13.31deebolike this app i have has login.jsp but no index.html or index.jsp
10:13.45deeboi need the login.jsp to be the frontpage, without being able to chagne its name
10:17.46sveajobbHiya, anyone in here who knows of a good way of checking from which country an ip comes ?
10:26.56*** join/#tomcat rambo123 (n=rocky@59.94.100.244)
10:44.39Dwayne_Hicksgeoip
10:44.46Dwayne_Hicksfree localy library
10:45.01Dwayne_Hicksbindings for a few language... tho dunno any java bindings
10:45.31Dwayne_Hicksgreat python library... dunno if that will help you... also great C library
10:45.34Dwayne_Hicksgeo-ip
10:45.43Dwayne_Hickssearch your package manager
11:13.51*** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.ip.zebra.lt)
11:48.44*** part/#tomcat rambo123 (n=rocky@59.94.100.244)
12:13.12*** join/#tomcat machtin_ (n=machtin@152.94.79.12)
12:13.54*** join/#tomcat rambo123 (n=rocky@59.94.101.218)
12:17.44*** part/#tomcat machtin_ (n=machtin@152.94.79.12)
12:35.27*** join/#tomcat fripette (n=fripette@germande-251.univ-mrs.fr)
12:35.32fripetteHello
12:53.07sveajobbDwayne_Hicks,  ah thank you for the tip ;)
12:55.30*** join/#tomcat Internat (n=nf@123-243-184-161.static.tpgi.com.au)
13:15.20fripetteplease I have a question about a definition : what is the difference between jre and jdk ?
13:19.33deebojre is the vm that runs java programs
13:19.45deebojdk is the development kit containing all the base classes used for development
13:21.15*** join/#tomcat rambo123 (n=rocky@59.94.101.218)
13:22.30fripettethanks you deebo
13:34.00*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
13:40.38*** join/#tomcat charm911 (n=chatzill@251.9.39-62.rev.gaoland.net)
13:42.12charm911hello all... anyone ever have issues with connections remaining in CLOSE_WAIT state (netstat -n) on RHEL with apache 2.2.3, mod_jk 1.2.26 and Jonas 4.5.3 (Tomcat 5.5.17)?
13:42.31charm911hum...Jonas 4.8.6....sorry :(
13:50.30MHSLjonas?
13:53.56charm911yes..jonas..
13:54.07charm911http://wiki.jonas.objectweb.org/xwiki/bin/view/Main/WebHome
14:07.30MHSLcharm911, i dont think jonas = tomcat, but this is a channel for tomcat
14:10.31charm911jonas contains a web container (tomcat or jetty) and does more : ejb container, java EE connectors, etc..
14:12.05MHSLhowever, the configuration may be different
14:14.32charm911sure... but if someone in this channel has ever come across this issue, they might have a hint for me... :)
14:32.12*** join/#tomcat olought (n=olought@12.104.6.129)
14:38.36oloughthey guys, tomcat 4.1.12, jdk 1.4.1, redhat 7.2 (old app they won't update); in `ps -ef` I show multiple tomcat.4 /usr/java ... -Xms 128MB - now for each one of those, is it really using 128MB for each pid?
14:53.09*** join/#tomcat rambo123 (n=rocky@59.94.107.94)
14:57.35*** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.ip.zebra.lt)
15:34.53*** join/#tomcat mmu_man (n=revol@vaf26-2-82-244-111-82.fbx.proxad.net)
15:37.26*** join/#tomcat toens (n=t@196-209-13-171-ndn-esr-2.dynamic.isadsl.co.za)
15:38.18mmu_mananyone using debian here ? I have a problem with the 5.5 package on debian stable... (5.5.20-2etch2), with java 1.5.0_14... it seems to miss org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper, at least it gives an exception in OpenAguila...
15:39.11mmu_mancommon/lib/commons-dbcp.jar seems to contain it, but maybe it's not searched for... it seems to have been migrated to org.apache.tomcat.dbcp at some point in 5.5 history...
15:39.58mmu_manpeople had success using the official tomcat archive, but it seems unclean to use a zip instead of the package in debian.
15:51.49MHSLmmu_man, i've seen many people having problem with tomcat package, better use the zip/tar.gz form from tomcat website
15:52.09MHSLmmu_man, it seems unclean because the configs, logs, etc are not at the right directory?
15:52.32mmu_manthat's what ubuntu docs suggest, but that's not really an answer to me, I mean why having packages then :D
15:52.51mmu_manwell ubuntu's is quite broken I think
15:53.04mmu_manhad to add/remove symlinks to get things working
15:53.10MHSLmmu_man, you may want to ask the person who did the packaging of tomcat
15:53.26mmu_mandebian is better (maybe it's not from tomcat itself I do'nt know)
15:53.31mmu_manbut still this missing class
15:53.50mmu_manthere is a jar that has it, but it doesn't seem to find it
15:54.07MHSLyou can try to set the classpath
15:54.20mmu_manyeah I'll try to append to it
15:54.39MHSLbut the best way is still using the original one from tomcat website
15:55.20MHSLpersonally i prefer to download any apps from the original website whenever possible
15:56.02MHSLeven prefer to compile one myself instead of using broken packages
15:56.41mmu_manyeah, but it kinda defeats the purpose of package managment :))
15:56.51*** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.ip.zebra.lt)
15:57.07MHSLyes i know, but in linux you cant expect everyone to follow the same way, it's not windows
15:58.38mmu_manproblem is with things with optional deps, you never know if the packager will put it in or not, so you always have one package missing something that someone needs :^)
15:59.10mmu_manAt least BeOS was much simpler, you had everything in so you were sure it'd work :))
15:59.34mmu_manlet's hope Haiku won't go the bad way.
15:59.37MHSLi know, packager are meant to make things simpler, but may not be the case for everything
16:00.04MHSLwell at least for tomcat case, downloading the archive file from tomcat website is the best way
16:00.50MHSLnever have problem with it on suse, slackware, windows, centos, redhat enterprise
16:02.34mmu_manshrug, some ppl use OpenAguila on a windoze server (those 2 words really don't go along in the same sentense)
16:02.34mmu_manwithout much prob it seem
16:02.35mmu_mans
16:09.32*** join/#tomcat huff (n=dhuff@nat/redhat/x-92cee5eff817ab4e)
16:09.47*** part/#tomcat huff (n=dhuff@nat/redhat/x-92cee5eff817ab4e)
16:15.31*** join/#tomcat blue_asterisk (n=blue_ast@mail.catholic.com)
16:22.52*** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.ip.zebra.lt)
16:50.20*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
17:03.42*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
17:13.05*** join/#tomcat Georgy_32 (n=Georgy32@216.12.218.169)
17:23.29*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
17:28.30*** join/#tomcat ong_ (n=alex_g@p549FFA7E.dip.t-dialin.net)
17:29.03ong_hi
17:31.14ong_I am tryin for a few days to get a JBoss Seam Project run on Tomcat, experienced some strange behaviors: how can I completely remove all war stuff, when I restart the tomcat there are still stuff from old session or something like that
17:31.34*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
17:31.36ong_Im using tomcat 6.0.14  on windowsXP and linux
17:37.32ong_have this message in the log, after removing the warfile: WARNUNG: A docBase /home/alex/apps/tc4s2/webapps/jboss-seam-jpa inside the host appBase has been specified, and will be ignored
17:37.50ong_and: java.lang.IllegalArgumentException: Document base /home/alex/apps/tc4s2/webapps/jboss-seam-jpa does not exist or is not a readable directory
17:38.01*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
17:45.33*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
18:00.37*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
18:04.24*** join/#tomcat SethX (i=wizard@loeblich.linuxteam.at)
18:07.57*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
18:10.45*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
18:17.46*** join/#tomcat gregor_k (n=a@stgt-4dbe149d.pool.einsundeins.de)
18:17.59*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
18:19.01*** join/#tomcat rambo123 (n=rocky@59.94.98.195)
18:28.35*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
18:30.15*** join/#tomcat gatewayer (n=gatewaye@h081217074223.dyn.cm.kabsi.at)
18:37.52*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
18:43.23*** join/#tomcat jeevan_ullas (n=deepsa@fedora/jeevanullas)
18:43.31jeevan_ullashello
18:44.28jeevan_ullasguys, i am trying to configure a typical tomcat setup on a server machine. in this i want every user to put his/her webapp in the home directory assigned to him/her and then it gets deployed. does tomcat provides any such feature?
18:44.44jeevan_ullascurrently i am sharing the webapps/ folder via samba.
18:49.09*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
18:54.30*** join/#tomcat Georgy32 (n=Georgy32@216.12.218.169)
19:05.29*** join/#tomcat randrewj (n=raj-user@dyn-160-39-254-100.dyn.columbia.edu)
19:06.07*** part/#tomcat rambo123 (n=rocky@59.94.98.195)
19:34.16*** join/#tomcat tom17bombadil_ (n=tom@BAH75d9.bah.pppool.de)
19:46.09jasonbjeevan_ullas: It had a feature like that long ago, but over time it broke and nobody maintained it, so it doesn't work currently.
19:47.37jeevan_ullasjasonb: personally what you suggest for such kind of scenario SCM?
19:48.11jeevan_ullasor sharing webapps/ with samba/ftp with sticky bit (as i dont want one user to delete other persons webapp)
19:48.15jasonbjeevan_ullas: It is really situational, so it depends on a number of factors of your environment, employees, hardware, business model, etc that I don't know.
19:49.07jeevan_ullasjasonb: computer science lab at a university with 60 students and 15 computers all with windows only server fedora tomcat 5.5
19:49.30jasonbjeevan_ullas: It's true that you could serve up the webapps/ dir and pre-deploy 1 webapp for each person, and give just that one person write access to their webapp, and make the webapps reloadable.  But, what I've found is that even with reloading turned on, I still need to restart Tomcat sometimes for changes to take effect -- or for Tomcat to work properly.
19:50.05jasonbWell, first thing: I'd upgrade to Tomcat 6.0.16.
19:50.16jeevan_ullasjasonb: okay.
19:50.44jasonbIf it's a university setting, and if you want the students to learn how deployment is done in the real world, then they should deploy via Ant, and the Tomcat ant tasks that deal with deployment.
19:50.59jeevan_ullasjasonb: for this setup i am using mod_jk.so too, is it good (performance wise)?
19:51.02jasonb(as seen in the "deployer" build file)
19:51.17jasonbNo, mod_jk is the worst performing way to configure Tomcat.
19:51.29jasonbibot: tdg-benchmarks
19:51.29ibottdg-benchmarks is, like, http://www.oreilly.com/catalog/9780596101060/chapter/index.html
19:51.46jeevan_ullasjasonb: does, ant provides deployment remotely?
19:51.48jasonbSee my benchmarks at that URL to see just how each configuration performs.
19:51.55jeevan_ullasokay
19:52.05jasonbYes, with Ant and the Tomcat ant tasks, you may do remote deployment just fine.
19:52.37jeevan_ullasjasonb: again, i have to create users and give them deployment rights or just use manager?
19:54.13jasonbIt really depends on what you're trying to do.  For maximum security, you'd need to create 1 user account for each student to use the manager webapp.
19:54.56jasonbBut, once inside the manager webapp, they can restart|stop|start|undeploy|redeploy any webapp in there, if they know what they're doing.
19:55.19jasonbYou *could* give each one a host, and each host its own manager webapp.
19:55.36jasonbThat way, each manager controls only one host's webapp.
19:55.43jasonbBut, then that's trickier to set up with DNS.
19:55.57jeevan_ullasjasonb: okay. i have a dns with CNAME, does that helps?
19:56.10jasonbSure.  That would work.
19:56.27jeevan_ullasjasonb: okay, where should i look for this thing in tomcat docs?
19:56.58*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
19:57.04jasonbFirst, read my benchmarks.. that will help you a lot I think.
19:57.12a4akbaalo
19:57.18jeevan_ullasjasonb: okay. off to reading ...
19:57.35jasonbjeevan_ullas: After that, just read about the manager webapp, and the standalone deployer.
20:06.34*** join/#tomcat Brainix (n=brainix@houston.enfoldsystems.com)
20:07.13BrainixGreetings.  :-)  I'm trying to make Tomcat run on port 443 instead of 8443.  I've changed all instances of 8443 to 443 in server.xml and restarted as root.  Is there a reason this doesn't work?
20:12.00pfnthat works, but it's not necessarily a good idea to run as root
20:12.07pfnand if you do run as root, it's best to use a security manager
20:12.14pfnor jsvc, that will drop privileges
20:14.47jasonbI would suggest neither.  I'd suggest running as non-root, and using iptables to remap 443 to 8443.
20:15.04jasonbWorks great for me.
20:16.23pfnthere are reasons why using a drop-privs approach is desirable
20:17.20jeevan_ullasjasonb: same you suggest if i had said i will take off mod_jk and still dont want 8080 in the url?
20:17.25jasonbpfn: As in jsvc?  What reasons?
20:17.38pfnportability across unix platforms
20:17.56pfnespecially in an application which bundles tomcat internally and has a shrinkwrapped type of installer
20:17.58jasonbpfn: There's an easy way to remap ports in all "unix" platforms though.
20:18.07pfnno, there isn't
20:18.22jasonbpfn: Like, on which OS?
20:18.47pfnsolaris, osx, etc.
20:19.07jasonbpfn: There are packet filter implementations on both of those.
20:19.24pfnthere are, but the commands aren't often accessible, or require a pain in the ass config
20:19.40pfnit's fine if you are targetting to run only on those platforms specifically
20:20.04jasonbpfn: If it's shrink wrapped software with an installer, I can see how it would be easier to deal with jsvc.  But, the other way could work, it just depends on whether you have the answers on how to make it work or not.  :)
20:23.56pfnthe other reason is that it requires additional work during IP changes
20:24.31jasonbIt doesn't if your filter rule doesn't specify an IP address.
20:24.48pfniirc, the iptables rules require an ip address
20:24.53jasonbBut, whether that would be required or not depends on your use case(s).
20:25.15jasonbNope!  iptables doesn't necessarily require an IP address.
20:25.54BrainixThanks, guys.  iptables, it is.  :-)
20:26.02jasonbYou can say "send all TCP packets destined to port 443 to port 8443".
20:26.40jasonbYou can make the rule as specific or as inspecific as you want.
20:50.04*** join/#tomcat milesd (n=milesd@71.39.2.158)
20:50.51milesdHi, everybody. I'm having some trouble with apache axis libraries. I'm using wsdl2java to generate client stubs based on a wsdl from the server (I have *no* idea what the server actually is)
20:51.02milesdand it successfully generates some java classes
20:51.24milesdbut when I execute a method against one of the stubs, I get a SAXError saying I have an invalid element
20:52.15milesdI found some forum posts saying there was a bug in axis1.4 that might cause this so I switched my jar files to 1.3 and re-generated my stubs but it didn't help
20:53.44*** join/#tomcat clovisw (n=clovis@201-40-80-180.cscgo300.ipd.brasiltelecom.net.br)
20:54.13cloviswhi, i'm with a doubt, what is better tomcat cluster, or use terracota to cluster the VM?
20:55.20*** part/#tomcat Brainix (n=brainix@houston.enfoldsystems.com)
21:03.57*** part/#tomcat clovisw (n=clovis@201-40-80-180.cscgo300.ipd.brasiltelecom.net.br)
21:43.12*** join/#tomcat Blissex2 (n=pcg@82-69-39-138.dsl.in-addr.zen.co.uk)
22:26.44*** join/#tomcat toens (n=t@196-209-13-211-ndn-esr-2.dynamic.isadsl.co.za)
22:46.16ong_I found the solution of my problem: tomcat copies the context.xml file of each webapp to conf/Catalina/lcalhost/webapp-name.xml ... and keep it  even throu redeploys... I didn't see it in the documentation...
23:22.44riesHey guys... I have a option to deploy my classes as .class files... or as a .jar file... is there any difference when it comes to performance? Just wondering this....

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