IRC log for #tomcat on 20101207

01:21.00fruitwerkstomcat should have a setting to ignore embedded servlets
02:09.14*** join/#tomcat gusario (~Adium@67.218.107.199)
02:09.37*** part/#tomcat gusario (~Adium@67.218.107.199)
02:46.21jasonbfruitwerks: How do you define 'embedded servlets'?
02:54.07fruitwerkswar files that have their own servlets, causing tomcat to bork
04:07.49*** part/#tomcat chetan- (freetibet@lando.pixelcop.org)
04:29.48jasonbfruitwerks: Well, Tomcat exists to run webapps, especially their servlets.
05:03.23*** join/#tomcat jasonb_ (~jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
07:09.06*** join/#tomcat gurkanerdogdu (~gurkanerd@78.186.14.202)
08:09.51*** join/#tomcat IceFacesIsAFix (~IceFacesI@xdsl-78-34-215-132.netcologne.de)
08:56.13*** join/#tomcat naoki (~naoki@firewall-gw.valuecommerce.com)
08:57.46naokiHi all. Looking for some assistance with Tomcat 6.0.26-14 on Fedora14 with native libs. Problem is I have a lot of data under /usr/share/tomcat6/webapps/myapp/WEB-INF/data and tomcat is taking forever to load because it stats all the files in there. Anyway I can disable that behavior?
08:58.25naoki(for completeness it does lstat, stat, and finally access on a million files)
08:59.30naokiOh and the JDK is java-1.6.0-openjdk-1.6.0.0-49.1.9.3.fc14.x86_64
09:04.20*** join/#tomcat ttiicc (~ttiicc200@static-213-115-74-170.sme.bredbandsbolaget.se)
09:08.48*** join/#tomcat drindt (~drindt@g228051228.adsl.alicedsl.de)
09:12.10naokiHi all. Looking for some assistance with Tomcat 6.0.26-14 on Fedora14 with native libs, JDK is java-1.6.0-openjdk-1.6.0.0-49.1.9.3.fc14.x86_64. Problem is I have a lot of data under /usr/share/tomcat6/webapps/myapp/WEB-INF/data and tomcat is taking forever to load because it stats the million files in there. Anyway I can disable that behavior?
09:12.23naokiGoogle has been pretty short on answers here.
09:22.48*** join/#tomcat ExtraSpice (~XtraSpice@88.118.33.48)
10:05.47*** join/#tomcat Boohemian (~Boohemian@209-6-67-222.c3-0.abr-ubr1.sbo-abr.ma.cable.rcn.com)
10:12.44*** join/#tomcat }ls{ (~}ls{@p4FF0ACF1.dip.t-dialin.net)
10:59.39*** join/#tomcat ohsix (ohsix@66.220.111.99)
11:51.47ttiiccdoes some in here knows the version of tomcat which is shipped with jboss?
12:00.43gurkanerdogdujboss has an own web container forked from tomcat
12:06.21*** join/#tomcat Boohemian_ (~Boohemian@209-6-67-222.c3-0.abr-ubr1.sbo-abr.ma.cable.rcn.com)
13:23.11*** join/#tomcat swi7ch (~anonymous@ip70-178-50-106.ks.ks.cox.net)
13:27.48*** join/#tomcat rbanffy (~rbanffy@200.226.123.253)
13:58.51*** join/#tomcat OldCode101 (d851d0f1@gateway/web/freenode/ip.216.81.208.241)
14:02.01OldCode101(Tomcat 6.0.29, JRE6; Windows XP) Is there anything else I have to do to specify a listening port for tomcat other than create the connector?
14:07.37*** join/#tomcat whiteflag (~whiteflag@nat/redhat/x-shvxtcqyjcvzihxe)
14:08.08whiteflagdo I need to restart tomcat everytime I add/compile a servlet ?
14:09.06*** join/#tomcat schmolly159 (~schmolly1@rrcs-76-79-50-2.west.biz.rr.com)
14:10.00OldCode101yes
14:11.20whiteflagOldCode101 any option to make it auto load the classes?
14:11.30whiteflagOldCode101 and avoid a tomcat restart?
14:11.37*** join/#tomcat iredux (~michaelg@mail2.creditcards.com)
14:12.05OldCode101lol I wish
14:24.49*** join/#tomcat rmrfslash (~quassel@140.247.89.29)
14:58.37*** join/#tomcat tarik (~chatzilla@41.140.248.167)
15:00.30*** join/#tomcat randrewj (~u1@dyn-128-59-53-67.dyn.columbia.edu)
16:35.26*** join/#tomcat km (~km@little-black-box.vmware.com)
16:36.27*** join/#tomcat LzrdKing (~umop-apis@unaffiliated/lzrdking)
17:07.07*** join/#tomcat calavera (~calavera_@15.Red-88-6-160.staticIP.rima-tde.net)
17:17.53*** join/#tomcat bartek (~bartekc@202.123.207.205.sta.connection.ca)
17:19.15bartekHi there. I'm trying to run Hudson under Tomcat and it's working fine. However, since switching to Tomcat, the environment doesn't seem to recognize certain applications (e.g. virtualenv) .. What would be the cause for this? Any ideas?
17:50.47*** join/#tomcat ExtraSpice (~XtraSpice@88.118.33.48)
17:53.27*** join/#tomcat dvayanu (~another@ds87-230-56-22.dedicated.hosteurope.de)
18:01.09LzrdKinganyone know why tomcat 6.0.29 would give the errors "java.util.zip.ZipException: error in opening zip file" and "java.lang.IllegalArgumentException: Invalid or unreadable WAR file : error in opening zip file" when deploying a war that unzip can read just fine? (centOS 5.5)
18:03.27*** join/#tomcat ttiicc (~ttiicc200@static-213-115-74-170.sme.bredbandsbolaget.se)
18:10.07*** join/#tomcat jasonb (~jasonb@12.201.129.162)
18:10.27LzrdKinghi jasonb
18:12.27jasonbHi LzrdKing..  how's it going?
18:13.11LzrdKingany ideas why tomcat 6.0.29 would give the errors "java.util.zip.ZipException: error in opening zip file" and "java.lang.IllegalArgumentException: Invalid or unreadable WAR file : error in opening zip file" when deploying a war that unzip can read just fine? (centOS 5.5)
18:16.20jasonbJava version?
18:16.26jasonb(and brand?)
18:17.21LzrdKingJava(TM) SE Runtime Environment (build 1.6.0_22-b04)
18:17.43LzrdKingor Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode) if you prefer
18:17.46jasonbIf you do "unzip -l yourwebapp.war" does it list the contents without error?
18:18.04jasonbAlso, if you do "jar tf yourwebapp.war" does jar list the contents without error?
18:18.43LzrdKingno jar command on the machine
18:18.58*** join/#tomcat IceFacesIsAFix (~IceFacesI@xdsl-89-0-64-160.netcologne.de)
18:19.01jasonbYou have a JRE and not a JDK?
18:19.26LzrdKingi htought it was JDK
18:19.28LzrdKingthought*
18:19.39LzrdKingnope, JRE
18:19.55LzrdKingnever needed a JDK before
18:23.53LzrdKinghmmmm manager is giving me a 403
18:26.19*** join/#tomcat acidjnk (~havenone@46-229-103-86.dynamic.dsl.tng.de)
18:30.09jasonbIs one of your filesystems full?
18:30.33LzrdKingnope, 172 GB free
18:30.47jasonbWhat does unzip say about your war file?
18:31.09LzrdKingnothing, it just unzips it
18:31.18jasonbOkay, so then the zip archive isn't corrupt.
18:31.34LzrdKingdoesn't appear to be
18:31.41jasonbCan you put the full ZipException stack trace on a paste server like http://fpaste.org ?
18:33.06LzrdKingin a moment
18:42.45bartekHas anyone here deployed hudson on tomcat where-in hudson was testing Python applications? I seem to be having trouble with python modules after switching to tomcat (worked under using the .war file method)
18:53.51LzrdKingjasonb: http://pastebin.com/vw5pZLze
18:54.58jasonbwaits and waits
18:55.12jasonbCould you use fpaste.org instead?
18:55.19LzrdKingsorry, had to use the bathroom really bad :)
18:55.27LzrdKingwhats so greate about fpaste?
18:56.04LzrdKinghttp://fpaste.org/vYPI/
18:56.28jasonbWell, I don't sit and wait for it for a few minutes.. that's one thing that's better about it.
18:56.46LzrdKingoh pastebin never loaded?
18:56.49jasonb(or maybe I should say that it actually works)
18:58.01jasonbMaybe the user that the Tomcat JVM runs as doesn't have read permission to the war file?
18:58.39LzrdKingits 777
18:59.00LzrdKingoh, no its 755
18:59.19LzrdKingbut let me verify that
18:59.49LzrdKingnope, tomcat user can unzip -l it
19:01.41jasonbWell, since the JDK is complaining that it can't open the file, and since you've got only a JRE, then you can't just test jar (the JDK's ability to unzip it) separately from Tomcat.
19:03.18LzrdKingis it worth installing a whole JDK just the test this?
19:03.28LzrdKingi am trying to get a hold of another copy of the war
19:06.32LzrdKingi will try to explode it manually, just to see
19:08.32LzrdKingwell it worked till it ate it
19:15.04LzrdKingwell it deploys now, but not from the war
19:20.05LzrdKinghere's the REAL error now: "SEVERE: The web application [/L4] registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered."
19:20.16*** join/#tomcat epapi (~epapi@78.134.14.237)
19:20.49*** part/#tomcat epapi (~epapi@78.134.14.237)
19:22.33*** part/#tomcat OldCode101 (d851d0f1@gateway/web/freenode/ip.216.81.208.241)
19:27.40*** join/#tomcat jasonb (~jasonb@12.201.129.162)
19:32.26*** part/#tomcat bartek (~bartekc@202.123.207.205.sta.connection.ca)
19:38.35LzrdKingjasonb: here's the REAL error now: "SEVERE: The web application [/L4] registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered."
19:39.01jasonbHow did you get past the ZipException?
19:39.03LzrdKingi tried the latest version of the mysql-connector
19:39.08LzrdKingi just exploded it manually
19:39.20jasonbWhatever works, I guess.
19:42.15LzrdKingwell no, because i need to correct the zepexception too
19:42.18LzrdKingzip*
19:43.50LzrdKinghere's some info but nothing helpful to me since i can't edit the app: https://issues.apache.org/jira/browse/DBCP-332
19:45.19LzrdKingbut i guess this is no longer a tomcat error
19:45.40LzrdKingis there a way to see all the jars that tomcat has loaded?
19:47.04jasonbYou can turn on verbose classloading, and then sift through the megabytes worth of log data to parse out all the jar file names..
20:20.37LzrdKingok, it fixed
20:20.40LzrdKingit's
20:39.33*** join/#tomcat rmrfslash (~quassel@140.247.89.29)
21:54.13nfrsis it possible to use tomcat6's juli library with tomcat 5.5?
21:54.27nfrsi.e. deploy it as a library together with webapp
22:01.20jasonbnfrs: Nope.
22:02.33nfrsjasonb: well, I need it as dependency for tomcat-jdbc.jar
22:03.16nfrsactually, I tried deploying it, and the web app works just fine, but its logging.properties is somehow ignored... not sure it's related, though
22:03.17jasonbit = juli?
22:03.23nfrsyes
22:03.31nfrsit depends on a class inside the newer tomcat-juli
22:03.33jasonbWell, Tomcat 5.5 doesn't know anything about JULI.
22:03.44jasonberr, hmm.
22:03.47nfrsthat's weird, because it has an older version of the same library
22:04.10jasonbhmm, actually, I'm wrong, 5.5 had JULI too.
22:04.11nfrsproblem is it's too old and doesn't have the class that tomcat-jdbc depends upon
22:04.43jasonbWell, yeah, you're experiencing bit-rotting of old code.
22:04.58jasonbUse Tomcat 6 and this problem goes away.
22:05.03jasonb(as well as lots of other problems)
22:05.06nfrsI can't due to maintenance reasons
22:05.22nfrsit's not my decision. I just need to figure out how to make it work with 5.5
22:05.27jasonbThen your new job is to figure out how to add just that one class to Tomcat 5.5's classpath.
22:05.46jasonb(and, figure out how to make that one class work with an older JULI impl)
22:05.59nfrsI doubt adding a single class will solve the problem, since it'll probably be incompatible with the rest of julie
22:06.01nfrs*juli
22:06.23jasonbYou never know until you either try it or compare APIs.
22:06.41nfrsso I'd rather dig in the direction of figuring out why my logging.properties doesn't work and fixing that
22:06.53jasonbThe good news is: this is all open source software, and you have source code you can modify if/when you need to.
22:07.17jasonbIt's up to you what you want to spend your time on.  :)
22:07.17nfrsthat will defeat the purpose (make maintenance easier)
22:08.11nfrsso, who's responsible for picking up logging.properties in my app's WEB-INF/classes?
22:08.27*** join/#tomcat IceFacesIsAFix (~IceFacesI@xdsl-89-0-64-160.netcologne.de)
22:09.08jasonbthe log manager.. JULI.
22:09.32*** join/#tomcat IceFacesIsAFix_ (~IceFacesI@xdsl-89-0-64-160.netcologne.de)
22:09.58nfrsyou think the presence of another implementation on the classpath confuses it?
22:10.11nfrsI actually thought the older implementation would be completely hidden. why doesn't it work that way?
22:20.48jasonbnfrs: It all depends on classpath ordering.  But, in general you shouldn't try to have two different versions of something on the classpath.
22:48.36*** join/#tomcat scribe (~scribe@host81-151-50-112.range81-151.btcentralplus.com)
22:48.54scribeHey guys.  I'm having a strange problem.  Let me know if I'm just being stupid (likely)
22:49.45scribeI have a simple <form method="post" action="path/">
22:50.00scribeand request.getParameter doesn't give me any of my parameters
22:50.20scribebut if I change to: <form method="post" action="path/index.jsp">
22:50.22scribeit all works
23:01.25scribefurther information:
23:01.46scribeit seems tomcat works ok if I use action="path/" but not action="path"
23:01.56scribedoesn't that seem like a bug?
23:03.25scribeI'm writing "RESTful" services which use object/action convention for URLs and my clients have to be sure to add a trailing '/' to the end or things won't work with tomcat?
23:04.03scribee.g., if they use a URL http://server.com/api/user/add  then it will fail
23:04.16scribee.g., if they use a URL http://server.com/api/user/add/  then it will work
23:04.53scribeThat still seems dodgy.  I'm up for hearing that I'm wrong on this one, but this is the result I'm seeing.
23:05.46scribeJust to be clear, my index.jsp is being called in both example URLs, but I can't get POST params with request.getParameter when using the first example
23:06.41scribeobviously if I use method="get" both work because the params are included in the actual URL
23:13.52*** join/#tomcat hex` (~hex@unaffiliated/hex/x-261681)
23:41.47*** join/#tomcat kritter (406c0582@gateway/web/freenode/ip.64.108.5.130)
23:43.05kritterHey guys, I'm having some trouble getting tomcat to run with jsvc. When I run jsvc as root everything works as according to plan. However, when I specify -user $TOMCAT_USER, where $TOMCAT_USER=tomcat5 I get an error telling me that the request resource () does not exist.
23:43.22kritterMight anyone have any ideas as to how I could fix this?
23:46.25*** join/#tomcat acidjnk (~havenone@46-229-103-86.dynamic.dsl.tng.de)
23:55.52*** join/#tomcat Boohemian (~Boohemian@209-6-67-222.c3-0.abr-ubr1.sbo-abr.ma.cable.rcn.com)

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