irclog2html for #tomcat on 20061005

00:02.32pfnjasonb no name yet, although, the "ria" is named "JAM"
00:03.03jasonbria?
00:03.05*** join/#tomcat gverig (n=MVeprin@12.44.117.10)
00:03.12pfnthe jws/jnlp app
00:03.39pfnwell, it's just an acronym... "journal/album manager"
00:03.50jasonbWhat does "ria" stand for?
00:03.55pfnrich internet application
00:04.04jasonbokay, that's what I thought, but I wanted to be sure.
00:07.29jasonbjws is really the right thing to use for that.
00:21.24pfnhow kind, eclipse OOM'd on me
00:21.41pfnI guess I'll do -Xmx512m for it
00:22.11pfnI guess I have a huge changeset coming up
00:26.36jasonbheh!
00:27.40pfnok, slapped in license header on every file
00:31.09jasonbWow, that was fast.
00:31.42jasonbYes, that looks excellent.
00:48.35*** join/#tomcat oxblood (n=lee@user-11212h2.dsl.mindspring.com)
01:04.22*** join/#tomcat hikozaemon (n=hikozaem@166.130.244.43.ap.yournet.ne.jp)
01:14.09*** join/#tomcat ngm_ (n=ngm@pool-70-23-36-12.ny325.east.verizon.net)
01:59.30*** part/#tomcat leonel (n=leonel@201.155.172.23)
02:30.41*** join/#tomcat ngm_ (n=ngm@pool-70-23-36-12.ny325.east.verizon.net)
02:31.13ngm_can some one offer advice with specifying Context in a war file?
02:33.19ngm_I have a war file with a context.xml in the META-INF folder...The application deployes correctly but it binds the a path which is equal to the name of the war file even though I specify in the context.xml file that it should bind to the root path(/)
02:34.07ngm_I have tomcat version 5.5.20 on windows 2000 with auto deploy turned on
02:34.16ngm_any ideas what could be wrong?
02:45.34*** join/#tomcat wsmoak_ (i=wsmoak@VDSL-130-13-157-245.PHNX.QWEST.NET)
03:20.10*** join/#tomcat retodd (n=opera@adsl-69-108-154-221.dsl.irvnca.pacbell.net)
03:21.45*** join/#tomcat ohsix (i=ohsix@bc111222.bendcable.com)
03:39.24*** join/#tomcat valmont (n=chrishol@pdpc/supporter/silver/valmont)
03:52.27*** join/#tomcat valmont (n=chrishol@pdpc/supporter/silver/valmont)
03:58.37*** join/#tomcat valmont_ (n=chrishol@dsl092-043-004.lax1.dsl.speakeasy.net)
04:34.39*** join/#tomcat columbo (n=chatzill@pool-71-104-18-28.lsanca.dsl-w.verizon.net)
04:58.46*** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-45-32.w83-114.abo.wanadoo.fr)
06:05.33*** join/#tomcat kasbah (n=kasbah@gprs-pool-1-008.eplus-online.de)
06:17.59jasonblyken: Were you ever able to get my Tomcat RPM package set to build (on suse I think you were trying?)?
06:42.49*** join/#tomcat flexable (n=flexable@host14-162.pool8249.interbusiness.it)
06:48.01*** join/#tomcat cypo (n=opera@217.13.174.82)
07:31.20jasonbAnyone here with a debian installation that I could ask some questions to?
07:42.22*** join/#tomcat fredrikmh (n=f@steria11.steria.no)
07:42.34fredrikmhHi
07:43.36fredrikmhI'm having a hard time finding out how to deploy a mbean to tomcat. What I want is to create my own mbean that should manage class in a web application.
07:45.30*** join/#tomcat prgrmr (n=prgrmr@bzq-88-153-178-249.red.bezeqint.net)
07:54.18*** join/#tomcat dvayanu (n=lrosenbe@tal2.friendscout24.de)
07:54.43dvayanure
07:56.42jasonbman people in #debian are asses.
07:57.31dvayanugoats rather
07:58.16jasonbI ask one question in there about UIDs and like four people begin to tell me that I'm asking stupid questions.
07:58.28dvayanuwhat was your question
07:58.51jasonbIf someone could look on their system and tell me if there is a stock user with a UID of 46 or not.
07:59.42dvayanui dont have any users with uid 46
08:00.03jasonbAnd, then they said there's no user that has that ID assigned specifically to it.. fine.  And when I asked them to see if there was one on their machines they told me to grep 46 /etc/password, and when I told them I'd do that if I ran Debian anywhere, they started saying I was asking stupid questions.
08:00.46jasonbhttp://www.arouse.net/despair-linux/debian.jpg
08:01.10jasonbOkay, so dvayanu, do you have a group with an id of 99?
08:01.55dvayanuboth no
08:02.24jasonbokay.  Thanks.
08:02.51dvayanuchecked on 3 different installations
08:03.26dvayanui have a group with id 46 though :-)
08:03.32jasonbThat's fine.
08:03.36jasonbThanks for looking.
08:03.45dvayanuwhat do you want to achieve, if i may ask?
08:04.04jasonbI was figuring that my script had a collision with an existing group and/or existing user that I didn't know about since I don't run Debian.
08:04.24jasonbThis is the Tomcat RPM.. it installs fine on debian, but has a problem with the tomcat JVM user and group.
08:04.47jasonbYou have to add the group and then the user manually before installing the RPM.  I want to fix that, but I'm not sure why the script can't just add them.
08:04.55*** join/#tomcat yango (n=yango@unaffiliated/yango)
08:05.28dvayanuhmm
08:05.33jasonbdvayanu: Could you try adding a group by hand for me?  It should be easy to remove.. I'll give you the exact command.. ?
08:05.36dvayanui dont have tomcat packages installed
08:05.46dvayanuyeah sure, addgroup will do
08:05.59dvayanugive the command
08:06.10jasonbTOMCAT_GROUP_ID="`id -g nobody`"
08:06.13jasonbFirst, run that.
08:06.17jasonbAnd, tell me what it does.
08:06.29jasonbDoes it set TOMCAT_GROUP_ID to nothing?
08:06.47jasonberr, like a no such user message?
08:06.55dvayanulrosenberg@acqua:~/priv$ TOMCAT_GROUP_ID="`id -g nobody`"
08:06.55dvayanulrosenberg@acqua:~/priv$ echo $TOMCAT_GROUP_ID
08:06.55dvayanu65534
08:07.06jasonbis there a nobody group?
08:07.19jasonbWhich debian is this, btw?
08:07.32dvayanunobody:x:65534:65534:nobody:/nonexistent:/bin/sh
08:07.36dvayanufrom etc/passwd
08:07.43jasonbahh.. how bout /etc/group ?
08:07.56dvayanulrosenberg@acqua:~/priv$ more /etc/debian_version
08:07.56dvayanutesting/unstable
08:08.17jasonbgrep nobody /etc/group
08:08.45dvayanunogroup:x:65534:
08:08.54jasonbThat's not "nobody"
08:09.02dvayanubut that matches
08:09.17dvayanuman id
08:09.17jasonbGrep would not say it matches.  :)
08:09.32dvayanuid -g nobody does print group id of user nobody
08:09.37dvayanunot the group nobody
08:09.46jasonbhmm..
08:10.22jasonbThat could be my problem, actually.
08:10.33jasonbHow would one print the group id of group "nobody"?
08:11.07dvayanuhmm
08:11.11dvayanumom please
08:12.24jasonbI can make a command to do that using a regexp grep and cut, but I'd rather not do it that way.
08:13.49fredrikmhare any of you familiar with mbeans in tomcat?
08:14.03dvayanufred: jason is familiar with everything in tomcat :-)
08:14.05jasonbegrep '^nobody:' /etc/group | cut -d':' -f 3
08:14.28jasonbfredrikmh: No dvayanu is the ultimate Tomcat expert!
08:16.17dvayanujason: no
08:16.43dvayanugrep ":nobody:" /etc/passwd | cut -d":" -f4
08:17.11jasonb# grep nobody: /etc/group
08:17.12jasonbnobody:x:99:
08:17.12jasonbnfsnobody:x:4294967294:
08:17.37jasonbDoes yours look different than that first line?  Does it have a colon in front of "nobody"???
08:18.01fredrikmhjason: what do I need to do to deploy an mbean to tomcat? I've tried googling, with little luck.
08:18.20dvayanunogroup:x:65534:
08:18.24jasonbfredrikmh: There's hardly any text about that anywhere.  It's actually pretty hard to do.
08:18.29dvayanuno nobody at all
08:18.41jasonbdvayanu: But if there was, it wouldn't have a colon in front of it.
08:18.57dvayanuit should be nogroup:x:65534:nobody i think
08:19.37jasonbin /etc/group??
08:19.41dvayanuyeah
08:19.53dvayanugroupname:grouppwd:groupid:groupmembers
08:19.59dvayanuscanner:x:105:another,cupsys
08:20.22jasonbWell, okay, what I'm doing here is I'm *only* looking for the group id of the group named (exactly) "nobody".
08:20.31jasonbSo, I do not care about the "nogroup" group.
08:20.37dvayanuthere is no such group on debian
08:20.44dvayanuah ok
08:20.45jasonb(nor that there is a "nobody" user who is in the "nogroup" group.
08:20.47jasonb)
08:21.16jasonbI'm fine with there being no such group on debian.  I'm actually happy about that.  :)
08:21.19dvayanuok, then your script works
08:21.29jasonbthe egrep one?
08:21.51dvayanuyeah
08:22.02jasonbCan you try this and see if you get the gid of nogroup?  egrep '^nogroup:' /etc/group | cut -d':' -f 3
08:22.16dvayanuyes
08:22.18dvayanuit works
08:22.25jasonbOkay.  that's a step in the right direction.
08:22.26dvayanui actually tried that before
08:22.31jasonbThanks.
08:22.35dvayanuand told you that the script works :-)
08:22.48jasonbOk.  I'm just trying to be really really sure.
08:23.09jasonbIt's amazing how suttle of a problem keeps a whole distro from being able to use stuff like this.
08:23.53dvayanubut
08:24.04dvayanui think you have to use the nogroup group on debian
08:25.40dvayanuwww-data is the group/user for apache under debian
08:25.42jasonbWhy would I have to?
08:25.49jasonbI do not care about that.
08:26.00jasonbMy stuff should never be mixed with that stuff at all.
08:26.39dvayanuk
08:26.49dvayanuyou want a shell on a debian system?
08:27.33jasonbThe idea here is that a debian person is unable to use whatever Tomcat that comes with their OS, and they're installing mine to get one working.. and mine is very specific and cross-distro.
08:27.58jasonbdvayanu: I'd like that, but I don't know how many of the answers I need could be gleamed from a non-root account.
08:28.02dvayanudo you have a source http for that?
08:28.14jasonbsource http?  :)
08:28.32dvayanujasonb: i can give you sudo if you promise to be nice
08:28.45jasonbdvayanu: I'm almost always nice.  :)
08:29.06dvayanujason: on debian you don't install rpms
08:29.22jasonbdvayanu: I don't do anything on debian.  :)  Other people do.
08:29.33dvayanui dont see the point in installing an rpm
08:29.50jasonbdvayanu: But, I want my RPM to work.  It already does work on debian, with some extra commands due to this user and group snafu.
08:29.51dvayanui can install it from the binary distro then
08:30.05dvayanuon debian i want it to work in aptitude
08:30.06jasonbdvayanu: You can install Tomcat from the binary distro, and you'll have no init script.
08:30.27jasonbdvayanu: If there was a good Tomcat package for debian, I would spend no time on this.  I'm 100% sure there is no such thing.
08:31.04dvayanuthere is a tomcat in the std. package
08:31.14jasonbAnd it's broken.
08:31.29dvayanulibtomcat5-java - Java Servlet engine -- core libraries
08:31.29dvayanutomcat5 - Java Servlet 2.4 engine with JSP 2.0 support
08:31.29dvayanutomcat5-admin - Java Servlet engine -- admin web interfaces
08:31.29dvayanutomcat5-webapps - Java Servlet engine -- documentation and example web applications
08:31.33dvayanuthats on kubuntu
08:31.40jasonbYeah..  That's broken.
08:31.53jasonbIt may run (barely), but all kinds of things are wrong with it.
08:32.04dvayanuits not really broken... it just wont run as expected :-)
08:32.18dvayanui had to work with a tomcat from distro on suse
08:32.26jasonbMy RPM is a highly polished Tomcat that installs and runs robustly across basically all popular Linux distros.
08:32.26dvayanuthe tomcat was all around the disk
08:32.39dvayanujason: ok, you want a sudo
08:32.45jasonbSure.
08:34.04jasonbI promise to try to not goof anything.  :)
08:34.53jasonbI could run qemu and debian inside that, but I know so little about debian that I don't actually even know how to install a decent image of it.. and I also don't really have the time for that.
08:38.46*** join/#tomcat jsisson (n=sissonj@ppp20-141.lns2.syd7.internode.on.net)
09:06.23*** join/#tomcat Hugh (n=Hugh@puma.mxtelecom.com)
09:11.22*** join/#tomcat kou_note (n=chocoa@221x249x58x12.ap221.ftth.ucom.ne.jp)
09:36.59*** join/#tomcat yanickd (n=yanick@193.171.131.235)
09:44.58*** join/#tomcat golqm-noob (i=poisoner@11383.unitednetworx.com)
10:22.45*** join/#tomcat kasbah_ (n=kasbah@port-212-202-42-55.dynamic.qsc.de)
10:33.03*** join/#tomcat kasbah (n=kasbah@port-212-202-42-55.dynamic.qsc.de)
10:41.38*** join/#tomcat kasbah (n=kasbah@port-212-202-42-55.dynamic.qsc.de)
10:45.29*** join/#tomcat Vanuatoo (n=vano@213.131.37.174)
10:57.20*** part/#tomcat yanickd (n=yanick@193.171.131.235)
12:08.27*** join/#tomcat mael__ (n=mael@xdsl-87-78-156-51.netcologne.de)
12:15.04*** join/#tomcat prgrmr (n=prgrmr@bzq-88-153-178-249.red.bezeqint.net)
12:48.40*** join/#tomcat nilesh (n=nilesh@59.145.239.100)
12:51.43*** join/#tomcat dreivier (n=dreivier@port-87-234-92-4.dynamic.qsc.de)
12:53.22nexacthey all, id like to know how I can do that.. I have /index.jsp and I want that tomcat parse it but its only parsing /jsp/*.jsp .. is there a way to parse it safely?
12:59.26*** join/#tomcat wsmoak_ (i=wsmoak@VDSL-130-13-157-245.PHNX.QWEST.NET)
14:01.31*** join/#tomcat max_ (n=max@host186-154.pool8289.interbusiness.it)
14:13.23*** join/#tomcat leonel (n=leonel@201.155.188.137)
14:14.06*** join/#tomcat jieryn (i=jieryn@unaffiliated/jieryn)
14:14.20jierynanyone know how i can have tomcat remove all unnecessary spaces?
14:14.47jierynif i manually remove all the blank lines and unnecessary tabs/spaces from a generated html page (from JSP) i can save about 25k
14:20.10jieryni'm using trimSpaces init-param in my TOMCAT_BASE/conf/web.xml ... this does get rid of blank lines
14:20.15jierynbut it doesn't compact it to be the smallest possible
14:25.09*** join/#tomcat mozart (n=chatzill@chello080108161048.5.12.vie.surfer.at)
14:25.16mozarthi
14:31.49*** join/#tomcat JavaPoet (n=JavaPoet@pat.xmradio.com)
14:32.19JavaPoethello everyone.... I think I have a common problem but I can't find a solution on the web
14:32.44JavaPoetI'm using container managed security/authentication however none of the images on my login.html page are rendured
14:33.01JavaPoetit appears that tomcat can't find the images
14:33.06JavaPoetcan someone give me any ideas?
14:36.49JavaPoetBTW, my tomcat version is 5.0.28 and my OS is Mac OS 10.4.8
14:43.28*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
15:04.08*** join/#tomcat kiwi128 (n=kiwi128@h195202175108.med.cm.kabsi.at)
15:05.44kiwi128hi i have a "simple" question: i successfully estabilished a connection from apache2 to tomcat5 using mod_jk in an apache2 vhost. now what i need to do is map all request going to / to tomcat /asdf. can mod_jk acheive this? if not, how can i do this using mod_rewrite? thanks a lot!
15:14.04*** join/#tomcat mike_k___ (n=mikek2@dhcp204-171.medford.tufts.edu)
15:14.51mike_k___is there anyway to run tomcat on port 80 in solaris without running it as root?
15:36.48*** join/#tomcat woolyninja (n=woolynin@ip72-196-8-86.om.om.cox.net)
15:38.26*** part/#tomcat woolyninja (n=woolynin@ip72-196-8-86.om.om.cox.net)
16:19.29*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
16:39.02*** join/#tomcat coryb (i=cory@trinidad.altec.org)
16:39.36corybhey, I have a question about tomcat performance.  I've got a tomcat 5.0.27 instance that is in system calls like 50-67% of the time
16:39.42corybon a linux rhel3 host - calling futex a ton
16:40.35corybjust wondering if there is something obvious I'm overlooking re: performance
16:43.13corybbecause it seems to be spending a lot of time calling futex.  many many calls a second
16:43.17corybI don't know much about the particular webapp though
16:43.38coryblike 10000 - 50000 context switches per second :)
16:48.06*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
16:52.24*** join/#tomcat another (n=mcrg_for@r190-0-139-152.dialup.adsl.anteldata.net.uy)
16:54.23randrewg
16:54.29anotherhi
16:58.22anotherHow can configure tomcat for not allowing the user to access arbitrary urls? sorry for may bad english
17:08.00*** join/#tomcat gregor_k (n=Miranda@p54A1BA51.dip0.t-ipconnect.de)
17:10.02pfndoes tomcat support pack200 content-encoding automatically?
17:11.16pfnanother "accessing arbitrary urls", what do you want specifically?  security constraints?
17:11.56jasonbpfn: What is pack200?  A character encoding or what?
17:12.05pfnjasonb java5 jar file encoding
17:12.17pfnup to 80% compression over compressed jars
17:12.26pfn(it cheats by reorganizing common class file bits)
17:12.30pfn"cheats"
17:12.32jasonbpfn: Well, but that's supported by the JDK right?
17:12.44pfnright, but I'm asking about http spec
17:12.58jasonbpfn: In what way would HTTP need to support it?
17:13.02pfnis tomcat aware of Accept-Encoding: pack200-gzip = Content-Encoding: pack-gzip
17:13.11pfnauto-negotiating file resources
17:13.20jasonbNo, Tomcat does not do that.
17:13.32jasonbIt supports gzip compression only.
17:13.32pfnAccept-Encoding: pack200-gzip => means I can receive file.jar, file.jar.pack.gz, etc.
17:14.30pfnwill tomcat be able to parse that pack200-gzip should mean fetch file.jar.pack.gz
17:14.31jasonbYou might want to suggest that as a new feature for TC 6.0 though.
17:14.50pfnhttp://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html
17:18.18pfnthis is an example of pack200's effectiveness
17:18.18pfnls -l[pfnguyen@ares dist]$ ls -l spring.jar*
17:18.18pfn-rw-r--r--  1 pfnguyen Users 2545110 Oct  3 15:04 spring.jar
17:18.18pfn-rw-r--r--  1 pfnguyen Users 2222607 Oct  5 10:17 spring.jar.gz
17:18.18pfn-rw-r--r--  1 pfnguyen Users  580395 Oct  4 15:25 spring.jar.pack.gz
17:18.36pfnspring.jar.gz is gzip -9
17:18.46pfnI don't know if the original spring.jar is compressed
17:22.47pfnnow if tomcat 5.5 has support for content negotiation intrinsically, I would be happy  :)
17:22.57pfnI would dislike having to code up a controller to do it for me
17:24.59jasonbI actually don't know, but I don't think it is as elegant as you'd like it to be.
17:26.30jasonbI think the gzip compression that it can do is mainly for sending non-gzipped resources (highly compressable stuff) across to the client as a gzipped stream for transmission performance.
17:26.41jasonbI do not know what it does when you send already gzipped files like that.
17:26.59jasonbI have a feeling that the data goes through a gzipper again before it's sent out, but I am not sure.
17:29.04pfnI'll have to try it and see if it does it natively...
17:34.30*** join/#tomcat Kalavera (n=Kalavera@200.31.127.86)
17:34.33Kalaverahi guys
17:35.15Kalaverai want to authenticate one directory with tomcat
17:35.25pfnso use a security-constraint
17:35.33Kalaverai do an .htaccess file
17:35.38Kalaverais ok?
17:35.59pfntomcat doesn't know anything about .htaccess
17:36.16puckokalavera, some tips about your topic I guess you can find in; http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html
17:36.33puckoit is an older version, but still applicable I think
17:36.37Kalaveraok thanks i am going to review that
17:36.45pucko(not tried it myself ;)
17:39.46Kalavera:D
17:45.52Kalaverammm i was applied the security constrait but nothing happend
17:45.55Kalavera:S
17:48.42*** join/#tomcat cooperg (n=chatzill@c-71-203-245-211.hsd1.tn.comcast.net)
17:50.33Kalaverai dont see any Basic Auth box
17:53.53coopergHey guys, newbie here. I've set up tomcat (5.5.20) and am attempting to go through the example "first webapp" ( http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html ) but I'm having an issue with the set up instructions. They had me create (copy) a build.xml file and modify a few lines, but "ant install" gives the error "<deploy> task doesn't support the 'localwar' attribute". Googling...
17:53.54cooperg...didn't help. =(
17:54.20*** join/#tomcat SharkWave (n=irvine@dragontooth.cems.umn.edu)
17:54.37SharkWaveanybody know if it's possible to set a "ServerTokens" setting in Apache Tomcat?
18:00.58*** join/#tomcat tottinge (n=tottinge@ip67-153-232-125.z232-153-67.customer.algx.net)
18:02.38*** part/#tomcat SharkWave (n=irvine@dragontooth.cems.umn.edu)
18:04.15pfnno idea
18:04.36pfncooperg look at the documentation for the deploy task
18:04.52coopergI have, it says "localwar" is OK
18:05.23coopergI've found documentation saying when to use localwar over war... "war" in a deploy task implies you have a war file, where "localwar" allows you to use a directory
18:05.50pfnI don't know, I don't use ant to deploy my applications
18:06.08pfnI deploy once manually and then use hot-deploy from there
18:06.16pfnand occasionally a full-deploy using the manager
18:06.39coopergthough, hm, when I use "ant compile" it created a build/WEB-INF directory... and... I'm not sure why I'd need that... The tutorial had me make a web/WEB-INF...
18:10.12*** join/#tomcat valmont (n=chrishol@pdpc/supporter/silver/valmont)
18:17.10randrewcooperg: a common pattern is to assemble all the files that need to be in a war in one temporary directory, "build", or "dist" for instance
18:17.28coopergOk
18:18.16coopergI found one guy on google that had my issue
18:18.19cooperghttp://mail-archives.apache.org/mod_mbox/tomcat-users/200607.mbox/%3CPine.LNX.4.62.0607031539230.10610@ofb.net%3E
18:18.25coopergBut no responses to the thread =(
18:38.50*** join/#tomcat J-Pro (n=Miranda@195.22.236.41)
18:38.58J-Prohey everybody
18:51.00*** join/#tomcat J-Pro (n=Miranda@195.22.236.41)
18:51.56J-Proswente: you are the one who knows me a little :)  Hi. Can I ask you a question please?
18:52.17swentesure
18:54.07J-ProI've just uninstalled my old Tomcat 5.0, then all JRE and JRE Updates, then J2SE DevKit. After that I've installed J2SE DevKit 1.5 + JRE 1.5. And installed Apache Tomcat 5.5.17.
18:54.08J-ProBut the first log event in Tomcat log when it starts is: INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
18:54.19J-Prowhy?
18:55.15swenteJ-Pro: honestly i'm not sure where you can find that library. but, it's only a warning.
18:55.46J-ProI could not even see it if there wasn't another error below in this log:
18:55.48J-ProOct 5, 2006 9:49:49 PM org.apache.catalina.startup.HostConfig deployDescriptor
18:55.48J-ProSEVERE: Error deploying configuration descriptor host-manager.xml
18:55.48J-Projava.lang.NoSuchMethodError: org.apache.naming.NamingContextBindingsEnumeration.<init>(Ljava/util/Iterator;Ljavax/naming/Context;)V
18:56.28swentehmmm .. about the second one i have entirely no clue :)
18:57.08J-ProI thought that error is a consequence of that warning... I don't know why it's there... :(
18:57.49J-ProI searched internet about it - nothing there, only one question "why is in in my log?" this is it.
18:57.50jasonbThe second thing looks like a bug in Tomcat.
18:58.02J-Progoogle gives only one search result :(
18:58.12swenteno the warning is "common", i know it .. so far i thought apache-tomcat would use some apache-httpd-library, but as you quoted it doesn't seem to be  httpd-library..
18:58.18J-Prodon't know what to do...
18:58.19J-Promaybe anyone else can help me?
18:58.23pfnthe first warning just means you need to install libtcnative and apr
18:58.28pfnif you want jni "performance"
18:58.35pfnyou can ignore it if you like
18:58.41pfnpeople say tomcat performs well-enough without it
18:58.55jasonbJ-Pro: You *should* ignore that first warning.
18:59.12pfn/me shrugs, I installed libtcnative... seems to work ok
18:59.22jasonbpfn: On windows?
18:59.24J-Prook, thanks, people, for the first answer. But what about the second error?
18:59.32pfnjasonb I run nothing server-ish on windows
18:59.33J-Prowindows, yes
18:59.48J-Proah.. not for me :)
19:00.14jasonbJ-Pro: I don't know any way of fixing the error.. except for trying to run 5.5.20 (it is the latest stable version now).  But, it might do the same thing.  You won't know until you try it.
19:00.28jasonbpfn: He's using Windows, so it's a windows-specific question.
19:00.29J-Prohmm...
19:00.53*** join/#tomcat ves_ (n=gavin@cpc2-john1-0-0-cust80.renf.cable.ntl.com)
19:01.07J-Projasonb: I'll try it... it's the only thing left for me... I'm really confused... If I can't find the answer in google, then I think that only developers can help me :(
19:01.34jasonbJ-Pro: I believe the developers do not know of the existence of that bug.  You could file a bug report for it.
19:03.54J-ProI'll try...
19:08.55J-Proinstalled 5.5.20 - no problems yet. Just like when I installed 5.5.17. They've just appeared when I copied my web application in webapps folder...
19:11.09J-ProI can't beleive - it works :))
19:11.35jasonbheh
19:11.36J-Projasonb: thanks for 5.5.20 advance
19:11.48J-Prodidn't know it was released
19:11.53jasonbIt may be a coincidence.  I found no evidence of a bug fix for that.
19:12.05J-ProI think so too
19:12.17J-Probut I reinstalled 5.5.19 a few times
19:12.20jasonbJ-Pro:  See this channel's topic line.
19:12.22J-Prothe same error
19:12.59J-Projasonb: yeah, just was very worried about my question...  next time will be more attentive :)
19:13.12J-Prothx again
19:13.16jasonbyup
19:13.22J-Pro2 everybody who answered
19:13.40J-Progood to know that there is a place where people always help ;)
19:14.03jasonbalmost always.. :)
19:22.48*** join/#tomcat vinse (n=vinse@208.253.223.146)
19:36.44*** join/#tomcat columbo (n=chatzill@pool-71-104-18-28.lsanca.dsl-w.verizon.net)
19:37.04*** join/#tomcat lintlock (i=lintlock@152.12.31.30)
19:37.25lintlockgood evening everyone
19:38.09*** join/#tomcat flexable (n=flexable@host14-162.pool8249.interbusiness.it)
19:39.48jasonbhi lintlock
19:51.06swentelintlock!
19:54.43lintlockhey heyguys
19:55.17lintlockwell my professor sort of lead me in the right direction assuming that the form action works the way I am assuming it will
19:55.58swentelintlock: your prof "assumes"? :)
19:56.13lintlocksee
19:56.22lintlockim the only one at the university that knows velocity
19:56.35lintlocki am assuming this as well :P
19:56.51swente:)
19:57.09lintlockbut she knows java insanly well
19:57.33lintlockbut velocity is evil
19:58.05swentehm. just had some quick glimpse @ velocity last year
19:59.00lintlocki need to do what the developers say
19:59.10lintlockseperate my java from my web design
19:59.26lintlockerm web programming
19:59.52swenteseparate java from web-programming?!
20:01.22*** join/#tomcat f0rget (n=f0rget@12.104.6.129)
20:01.31*** join/#tomcat Hellaenergy (n=Hellaene@206.231.92.67)
20:02.17HellaenergyQuestion... can maxPostSize be set in a AJP connector (in the server.xml)
20:03.04HellaenergyQ2: If someone does a large post is there a potential that the session would timeout before the post is done?
20:04.02jasonbQ1: Dunno.  I don't use that.  ;)
20:04.36HellaenergyI think you can.
20:05.07jasonbQ2: Probaby you could fill the entire JVM's heap ram with post data in a span of time far shorter than session timeout duration.
20:05.27HellaenergyWow I didn't think of that.
20:05.28lintlockerm i ment that in a weird way swente
20:05.47swentelintlock: :)
20:05.50J-ProGood people, I've got another question :)
20:05.51J-ProWhere are all files like catalina.bat, service.bat from the bin dir of Tomcat 5.5.20?
20:06.00lintlocklike do my java coding in eclipse and webprogramming in whatever... kinda trying to seperate them
20:06.09lintlockBin folder j-pro
20:06.44jasonbJ-Pro: You're running Windows, so you obviously don't want any of those.  :)
20:07.08J-Prolintlock: bin folder:
20:07.09J-Pro<PROTECTED>
20:07.09J-Pro<PROTECTED>
20:07.09J-Pro<PROTECTED>
20:07.09J-Pro<PROTECTED>
20:07.09J-Pro<PROTECTED>
20:07.10J-Pro5 File(s)        214,323 bytes
20:07.15lintlock......
20:07.22lintlockummmm
20:07.31J-Prostrange... I had all these files in 5.0.17
20:07.50lintlocksigh they just did the tomcat5.exe
20:07.53lintlocki hate tht thing
20:07.55J-Proswente: I wanted to say that :)
20:08.21lintlocklol
20:08.33pfnwtf, why am I getting a deprecation warning here: http://paste.hanhuy.com/getRealPathDeprecated
20:08.41lintlocki also wondered but kept my mouth shut to not remove doubt of my stupidity
20:08.54J-Prowhy am I asking... I had some problems with UTF-8 encoding... my data from HTML forms stores in DB wrong. I've found one advise: http://wiki.apache.org/tomcat/Tomcat/UTF-8
20:09.05lintlockjava deprecates useful variables
20:09.11lintlockamd methods
20:09.14pfnlintlock read closer
20:09.19pfnit's complaining about getRealPath()
20:09.24pfnof which I don't even come close to using
20:09.28pfn(except in the call above it)
20:09.30J-Prothe first thing I need to do is to add a switch in catalina.bat: -Dfile.encoding=UTF-8
20:09.47J-Probut I don't see this file...
20:09.59J-Promaybe some new methods in 5.5.20 version?
20:10.28lintlockno no pfn i was just making a gernal statement
20:10.40lintlockbecause of some issues i had with java earlier this year
20:10.51lintlockgernal = general
20:11.01Hellaenergyjasonb: So that whole post would go into memory in one chunk?
20:11.28HellaenergyThen write to the DB?
20:11.40HellaenergyHow does that work?
20:12.49jasonbswente: Sure it was.
20:13.14swentejasonb: i'd say it missed .. the session-timeout-point.
20:13.32jasonbswente: It did not.
20:13.43HellaenergySo lets say we have a Heap with a mx of 1024mb and we try to post  a 2GB file. What would happen and why?
20:13.44pfnjasonb any idea about why I get that deprecation warning above?
20:14.07pfnhellaenergy depends on your file upload handling
20:14.13pfnyou can read to file or read in memory
20:14.50jasonbHellaenergy: OOME and erratic Tomcat behavior *if* you don't have a max post size enforced.
20:15.15*** join/#tomcat dvayanu (n=another@ppp-62-245-162-19.dynamic.mnet-online.de)
20:15.28HellaenergyOOME?
20:15.37dvayanure
20:15.54jasonbOutOfMemoryException
20:16.01Hellaenergyah
20:16.25Hellaenergypfn: Even if you wrote to a file wouldn't it take up the Heap?
20:17.02pfnhellaenergy only as much of the heap required to hold the buffer used to write to a file
20:18.10lintlocki used to enjoy downloading something so fast that the computer had to copy the file back over to my computer from the temp 15MBs up and down.... i miss YOU!!
20:19.12HellaenergyIn our case we are writing to a DB through a DataSource.
20:19.37HellaenergySo I guess that would go to Memory and then through the datasource to the DB?
20:19.37jasonbpfn: You really are calling getRealPath().  Also, remember our discussion the other day about getRealPath() where I said I was pretty sure it had been deprecated at some point?  I still think that.
20:19.53jasonbpfn: Although I can't find a deprecation of it in the javadocs.
20:20.00pfnno, servletContext.getRealPath() is not deprecated
20:20.06pfnservletRequest.getRealPath() *is*
20:20.11jasonbahh..
20:20.11pfnI'm using the former, and not the latter
20:20.13jasonbok.
20:20.26jasonbThat's probably right.
20:20.55pfnas soon as I comment out my anonymous class' override of getRequestURI() it goes away
20:21.01pfnhmm, or not
20:21.08pfnmy use of HttpServletRequestWrapper is what's causing it
20:21.14pfnhow lame...
20:21.19jasonbpfn: To figure out the other deprecation situation you're getting I'd have to see all the source.
20:22.39pfnthe problem is because HttpServletRequestWrapper itself has deprecated APIs
20:22.54pfnhow stupid...
20:22.57jasonbswente: Hellaenergy asked me if a large post data request could take long enough to make the user's session time out..  whether it *could* take that long depends on the behavior and performance, and the behavior and performance depends on how much heap RAM the JVM started up with, max..  so my answer is indirect, but I do think he understood.  :)
20:23.53jasonbJ-Pro: The reason you don't get those bat files is because one of the Tomcat developers chose for you to not get them since you're a windows user.
20:23.55swentejasonb: is the heapram really important if uploading with say .. GSM 9600bps?
20:24.18pfnjasonb if you reload that page again, you'll see another example that throws the same deprecation warnings
20:25.22jasonbswente: What if someone started their GSM tomcat server with 40 megs of heap ram?
20:25.40swentejasonb: what is the default-session-lifetime in tomcat?
20:25.47dvayanuswente: 30min
20:25.52*** join/#tomcat prgrmr (n=prgrmr@bzq-88-153-178-249.red.bezeqint.net)
20:25.57dvayanuor was it 2 hours?
20:26.49swentewell .. it's probably nitpicking, but the average-upstream [internet] at least in germany should to be around ~150kbit/sec.
20:26.57J-Projasonb: swente mentioned once and I'm agree. If Windows user doesn't need them, then who does??
20:27.40swenteJ-Pro: i assume they [developers] mean they [win-users] don't need batchfiles, but an exe :)
20:28.11J-Proswente: did you see the link about UTF-8 fix?
20:28.24J-Proswente: http://wiki.apache.org/tomcat/Tomcat/UTF-8
20:28.52jasonbJ-Pro: Non-windows users need to be able to control their computers.
20:28.59jasonb:)
20:29.44J-Projasonb: so? :) I thought .bat-files are for MS pruducts only...
20:30.22jasonbJ-Pro: They are.  But, since you're a windows user, and not a Tomcat developer, they decided you don't need those.
20:31.02J-Projasonb: hmm, understand. But how then should I use switch "-Dfile.encoding=UTF-8" ?
20:31.11*** join/#tomcat another (n=another@ppp-62-245-162-19.dynamic.mnet-online.de)
20:31.29swentejasonb: is it correct to assume that tomcat "opens" the session before e.g. doPost, and "saves" it back after uploading?
20:31.39another123
20:31.41jasonbJ-Pro: That's a great question which I'd know the answer to if I ran windows at all (I don't, really).
20:32.12jasonbbrb.. 2 year old needs me..
20:32.20anotherwhat the hack
20:32.27J-Projasonb: thz anyway...
20:32.31J-ProthX
20:32.43*** join/#tomcat another (n=another@ppp-62-245-162-19.dynamic.mnet-online.de)
20:32.45swenteJ-Pro: utf?
20:32.52swenteJ-Pro: we discussed that once?
20:33.12J-Proswente: no, we didn't
20:33.25J-Proswente: a few minutes ago I just asked for a first time
20:33.32swenteJ-Pro: ok .. well .. i didn't read it :)
20:34.01J-ProI hoped you read :)
20:34.10swenteJ-Pro: now you need to use that -D and don't know how to set with .exe?
20:34.14J-Proswente: I had some problems with UTF-8 encoding... my data from HTML forms stores in DB wrong. I've found one advise: http://wiki.apache.org/tomcat/Tomcat/UTF-8
20:34.22dvayanu1swente: you was a debian fan, btw?
20:34.35J-Prothe first thing I need to do is to add a switch in catalina.bat: -Dfile.encoding=UTF-8 ,  but I don't see this file... maybe some new methods in 5.5.20 version?
20:34.35swentedvayanu: s/fan/user/
20:35.05dvayanu1swente: don't like it but have to use it?
20:35.11swenteJ-Pro: perhaps you can set that with a java-properties-file?
20:35.17swentedvayanu: just using it :)
20:35.37dvayanu1J-Pro: you downloaded the zip or exe?
20:36.01J-Proswente: anywhere is written about catalina.bat only... Don't you know anything about that java-properties-file?
20:36.09swenteJ-Pro: common java
20:36.59swenteJ-Pro: mompl
20:37.06J-Proswente: common dir of 5.5.20:
20:37.07dvayanu1J-Pro: the .exe distribution misses .bat files. Since its ment to run as service then
20:37.07J-Proclasses
20:37.07J-Proendorsed
20:37.07J-Proi18n
20:37.07J-Prolib
20:37.15pfnjasonb do you know which property of HttpServletRequest is used to determine which file to serve?
20:37.17pfnin tomcat?
20:37.19pfnrequestURI?
20:37.33dvayanu1J-RPo: however you can set this in an environment variable called JAVA_OPTS
20:37.39pfn(assuming that we're passing through to the file serving filter)
20:37.45J-Prodvayanu1: I've installed 5.0.19 as a service from an exe-file and it still had all the bat-files needed
20:38.31dvayanu1j-pro: 5.0.19 is like 3 years old
20:38.34dvayanu1they changed that
20:38.35lintlockwhen is it appropriate to update tomcat
20:38.58lintlocki know from 5.5.17 -5.5.20 seems pointless in my case
20:39.03dvayanu1lintlock: when yours doesn't work as desired and you are sure they haven't broke anything important
20:39.11dvayanu15.5.17 is VERY buggy
20:39.19swenteJ-Pro: did you try the last-available-scripts?
20:39.21lintlockSSO is BUGGY!
20:39.22dvayanu1they mixing up classloaders
20:39.38dvayanu1if you reload your apps, you should upgrade
20:39.49Hellaenergyl8tr
20:39.52*** part/#tomcat Hellaenergy (n=Hellaene@206.231.92.67)
20:39.59J-Prodvayanu1: in the link I pasted above is said: In the Catalina.bat (windows) catalina.sh (windows) apache$jakarta_config.com (OpenVMS), file there must be a switch added to the call to java.exe. In LINUX (FC5), use /etc/tomcat5/tomcat5.conf and update the JAVA_OPTS switch.
20:40.14lintlocknah im not donig alot of reloading
20:40.23lintlockim moreso doing alot of fixing on one end
20:40.30J-Prodvayanu1: so I thought that JAVA_OPTS isn't an environment variable, but it's something from Linux...
20:40.30lintlockthen reloading onto the main
20:40.48dvayanu1J-Pro: java opts is what you set in catalina.sh/bat
20:40.50swentedvayanu: debian?
20:41.46jasonbpfn: Yes, it's getRequestURI().
20:41.57J-Prodvayanu1: aha, understood... but If I had no any bat-files? Don't you know how to set this switch while Tomcat is loading?
20:42.06J-Promaybe through registry or something?
20:42.50swenteJ-Pro: did you try the batchfiles from last tomcat version?
20:43.20dvayanu1J-Pro: do you start tomcat as service?
20:43.34J-ProOh, I see it now ;)) Tomcat Monitor has Configure options, there are Java options in Java-tab... But these values are written in registry as I thought.
20:43.58J-Proswente: I didn't find any place where java.exe is called in catalina.bat of 5.0.19
20:44.06J-Prodvayanu1: yes, I do
20:44.28swenteJ-Pro: i doubt the batchfile called tomcat.exe at all. :)
20:44.55dvayanu1j-pro: you got it, for the service options use the java-tab :-)
20:45.10dvayanu1j-pro: but let me note that running tomcat as service on windowz is lame
20:46.07pfnthanks... need to override it so I can transparently return the pack.gz file instead  :)
20:46.08J-Proswente: I doubted it too, but just didn't know exactly... Now I know
20:46.20J-Prodvayanu1: why it's lame?
20:46.28swenteJ-Pro: any .. as it works now :)
20:46.31dvayanuj-pro: do you develop or host?
20:46.33swente+way
20:46.49J-Proswente: thx, you always helped me :)
20:46.54swente:)
20:46.59J-Prodvayanu: develop and host
20:47.14J-ProI mean develop a web-app
20:47.22dvayanuj-pro: ok, hosting on windows is lame (and insecure) anyway
20:47.56dvayanuand for development the service option is the lamest, since hitting ctrl-c in a shell is the fastest way to stop tomcat
20:48.00dvayanuand restart
20:48.22jasonbI was going to say the computer's power switch.  :)
20:48.33J-Prodvayanu: I know that, but people asked for that web-app. And in plus I write the web-app in java for sure, using jsp and servlets. So It will be available to deployit on any platform
20:49.02jasonbswente: Tomcat runs on Java when running in Windows as well.
20:49.58swenteuh does it? hm. did sun such a bad job with their windows-vm?
20:51.37J-Prowell, thanks everybody for help... going home already... Really thanks
20:51.41dvayanuswente: the only difference is: it rans in a stupid ms-service-component-be-lame-and-slow wrapper
20:51.51dvayanus/rans/runs
20:52.21lintlockoh this is hillarious.... how the hell does my java code just suddenly stop seeing an entire package
20:52.26lintlockFUDGE!
20:52.41*** part/#tomcat J-Pro (n=Miranda@195.22.236.41)
20:53.03lintlocki havent touched 5.5.20
20:53.20lintlocki dont plan to till they fix SSO and how it acts on servlet timeouts
20:55.46pfnjasonb, can you tell me why this doesn't work?  http://svntrac.hanhuy.com/repo/browser/hanhuy/trunk/cms/src/com/hanhuy/common/web/Pack200Filter.java
20:55.59pfnthe .pack.gz file doesn't get sent to the client
20:56.40pfnconceptually, it should send the .pack.gz file
20:57.46dvayanureq = new Pack200RequestWrapper(req);
20:57.49dvayanu?
20:58.00dvayanusreq = new Pack200RequestWrapper(req);
20:58.19dvayanui think this is against the spec
20:59.10dvayanupfn: however you should probably send it through the dispatcher again
20:59.12pfnjust using the original servlet request that is passed to chain.doFilter
20:59.34pfnmy filter should occur before the file dispatcher
21:00.06dvayanui think the filter chain is ready before first filter is called
21:00.20dvayanudo you think it remaps?
21:01.06dvayanuwhat d you want to achive anyway?
21:01.27pfnI want to use pack200 content-encoding
21:01.33pfnand yes, I would expect that it remaps
21:01.59dvayanuwhat is pack200
21:03.08pfnhttp://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html
21:03.20dvayanufound that out already :-)
21:03.49pfn[pfnguyen@ares ria]$ ls -l signed-spring.jar*
21:03.49pfn-rw-r--r--  1 pfnguyen Users 2015306 Oct  5 13:45 signed-spring.jar
21:03.50pfn-rw-r--r--  1 pfnguyen Users 1742039 Oct  5 14:03 signed-spring.jar.gz
21:03.50pfn-rw-r--r--  1 pfnguyen Users  513000 Oct  5 13:45 signed-spring.jar.pack.gz
21:03.58dvayanuwhy dont you just stream it out from the filter?
21:04.15pfnI could do that, but I would rather let the native file serving occur
21:04.39pfne.g. if it uses jni underneath (apr) to serve the file, I'd rather let it do it, than have myself do it
21:05.21dvayanusuns example also does it by theirself
21:05.25dvayanuitself
21:05.29pfnyeah, sun's example sucks  :p
21:05.35pfnmine is more elegant  :)
21:05.45dvayanunot really
21:05.57dvayanuactually its not :-) its more complicated
21:06.05pfnit's not more complicated at all
21:06.15pfnall it does is remap the request/response and send it out
21:06.19pfnno need to read the file, write, etc.
21:06.23pfnit's shorter line count
21:06.31pfnand no need to do a servlet mapping to all of *.jar
21:06.43pfnalthough, I suppose I could do the same url mapping if I wanted to apply only to .jar
21:06.59pfnit's got a much shorter line count than the sun example as well
21:07.10dvayanuhowever, i think you have to send a redirect or something
21:07.14dvayanuinternal
21:07.15dvayanuforward
21:07.31dvayanui dont think the filter can change the url by simply switching the request
21:07.34pfnI guess I have to, if tomcat won't remap automatically
21:08.09pfnyes, it's sounding like the FileServingFilter occurs before my filter
21:08.19pfnalthough, I don't see how...
21:11.07dvayanuis it a filter or a vavle?
21:11.54pfnit's a ServletFilter
21:12.07pfnI avoid container-specific api's
21:14.10dvayanui mean your suspected fileservingfilter
21:14.30pfnI'm guessing it's a filter
21:14.35pfnI have no idea if tomcat implemented it as a valve
21:15.10dvayanucheck the web.xml :-)
21:15.19pfnactually, looked
21:15.21pfnit's DefaultServlet
21:15.32*** part/#tomcat jieryn (i=jieryn@unaffiliated/jieryn)
21:16.29pfnin that case, I guess I'll dig into DefaultServlet to see which file it accesses
21:17.29jasonbDefaultServlet is good to read.  It does all kinds of stuff!
21:17.43pfnindeed, it checks PathInfo and ServletPath
21:17.50pfnnot RequestURI as I had suspected
21:18.30pfnin this case, I still maintain that my Filter is more elegant than the Sun reference servlet
21:18.42jasonbDefaultServlet contains lots of suttle hacks that are not documented, to work around all kinds of weird situations.
21:19.00pfnexcept, at this point, I'm really only guaranteed to work with tomcat
21:19.03pfnbecause of the impl
21:20.09pfnthe main reason why I want to let it pass through is to allow as much as the container functionality as possible
21:20.16pfn(caching, performance, etc.)
21:23.56dvayanuthe container shouldn't perform any filecaching
21:24.25dvayanui mean the filesystem already caches
21:24.30pfnbut defaultservlet does
21:24.41dvayanufreaks :-)
21:24.45pfnmeh, now I get an error 400
21:25.09pfnI wonder why...
21:26.00jasonbdvayanu: If the JVM was one with the kernel, then it would be fine for Tomcat to never cache things in its own code.
21:26.11pfnah, nevermind
21:26.17pfnI had to uninstall my cached jnlp app
21:26.26pfnpack200 is teh win
21:26.34jasonbhehe
21:26.46pfnI'm dropping my jnlp app install size from 5mb down to like 2mb
21:27.24dvayanudanke
21:27.33jasonbpfn: That rocks!
21:27.51pfnit could go even smaller, I'm just estimating going by how much improvement I get out of spring
21:28.03pfnfrom 2mb down to 500k for that one jar file
21:28.35jasonbYou should subset spring.
21:28.40pfnand it's a transparent filter, which is nice
21:28.41odin_5.5.17 is buggy?
21:28.47pfnyeah, I can split out individual components of spring
21:28.51pfntoo lazy to do that right now
21:29.18jasonbodin_: I don't agree with that either.
21:29.29jasonbpfn: Doing that could bring your install size down a bunch I bet.
21:29.47pfnmy ria only needs the HTTP remoting component of spring
21:30.20pfnHTTP-Serializable remoting = teh winnar as well
21:30.36pfnit's so simple, I can't understand why no one else has done it before spring
21:30.53jasonbpfn: You could turn on verbose class loading and put all the class names in a log file, and then write a script to grep that log for each fully qualified class name in the spring jar and if it isn't found, add it to the kill list.
21:31.12dvayanujasonb: if you assume that log.debug throwing a nullpointer after 10.000 calls is a normal behaviour, than its not :-)
21:31.33jasonbdvayanu: After exactly 10000 calls?
21:31.46jasonbdvayanu: That's just one bug though.  :)
21:32.13dvayanunot exactly... just after shutdown is initiated
21:32.29jasonbdvayanu: Tomcat shutdowns have just about always been hosed.
21:33.06dvayanuhosed?
21:33.28pfnjasonb I don't really need to do that as spring already comes with component-ized jar files
21:33.41pfnso I can just pull the jar files I need
21:33.45dvayanujasonb: and i ment application shutdown
21:33.47pfninstead of the mega-spring.jar
21:33.48dvayanureload
21:34.04pfnbut it's a pain in the ass, more jar files for my build script to sign, heh
21:34.13pfnnow I need to add the ant-pack200 task
21:34.48Kalaveraguys i have a proble with basic authentication, and i can see the validation box but i can not access to the directory
21:34.51Kalaveraany idea?
21:35.54pfnhttp://svntrac.hanhuy.com/repo/browser/hanhuy/trunk/cms/src/com/hanhuy/common/web/Pack200Filter.java
21:36.04*** join/#tomcat dmk (n=dmk@host81-154-92-73.range81-154.btcentralplus.com)
21:36.06pfnwhoop, and there's my working Pack200 content-encoding filter
21:36.09pfnsimple as pie  :)
21:37.10*** part/#tomcat dmk (n=dmk@host81-154-92-73.range81-154.btcentralplus.com)
21:37.38pfnand it's elegant, damnit  :)
21:37.46jasonbsweet.
21:38.18jasonbThis means that your ria only works on Java 1.5 and above?
21:38.30jasonb(on the client end?)
21:38.45pfnoops, need to remove old dispatcher members, heh
21:38.48pfnyes, only 1.5 and above
21:39.02pfnthe code itself uses 1.5-only constructs already
21:39.17pfn(stuff like the concurrency ExecutorService interfaces, etc.)
21:39.36jasonbok.
21:39.47jasonbSoon 1.4 will be a thing of the past anyway.
21:39.59jasonb1.6 is getting close to be out and 1.7 is already in the works.
21:40.16dvayanuheh
21:40.23pfnwell, for desktops and workstations, I don't see what the holdup is with migrating to 1.5+
21:40.28pfnon the server side, it's a much different story
21:40.31dvayanuwe have obtained a third party crm product which is tied to 1.3 on the server side
21:40.35pfntoo many app servers only primarily support 1.4
21:40.50pfne.g. my main work app that runs on websphere is probably gonna be stuck on 1.4 for a long time
21:40.59dvayanupfn: can you tell me, how something can be bound to a specific java version?
21:41.07dvayanui mean, what do you have to use to tie?
21:41.24pfndvayanu tie?  jnlp can specify a jre version
21:41.39pfnit can specify an exact version or a range, I understand
21:41.52dvayanupfn: yes, but why
21:42.02dvayanui mean how to you tie your code to a specific java version
21:42.23dvayanus/to/do
21:44.05pfneasiest way would be to simply do it upon application startup
21:44.35*** part/#tomcat jsisson (n=sissonj@ppp20-141.lns2.syd7.internode.on.net)
21:44.39dvayanupfn: stop
21:44.55dvayanupfn: i dont ask how to check java version and stop
21:44.59dvayanuthats clear
21:45.02dvayanubut WHY???
21:45.19dvayanudo you have any code you wrote for 1.4 that can't run in 1.5?
21:46.06pfnyou mean why is my code tied to 1.4?  fear of migrating everything to 1.5
21:46.26dvayanumigrating? just switch the vm and restart. works.
21:46.30pfnworries over incompatibility
21:46.41pfnit doesn't work in my particular case, as I have clients that I need to support with java 1.3
21:47.04pfnand simply switching the jvm isn't necessarily guaranteed to work...
21:47.11pfnjvm options may have changed between revisions
21:47.18pfnwho knows what esoteric options my app server uses
21:47.54dvayanupfn: stop again
21:48.10dvayanupfn: i wonder why app-server developers bring in such dependencies
21:48.23dvayanupersonally i never had code which couldn't run in a greater java version
21:48.32dvayanuso i wonder how do they achieve it and why
21:49.23pfndunno, perhaps each individual app server does specific jdk tuning
21:49.35pfnperhaps it depends on internal classes
21:49.46pfne.g. take a look at jstl standard xml tags
21:49.48dvayanuinternal classes?
21:49.55pfnthey use sun internal implementation classes
21:50.02pfnand thus, standard.jar cannot run on java5
21:50.12pfnnot without introducing a compatibility library... which I don't think anyone's done
21:50.38pfnsun renamed the xml (internal, com.sun, etc.) packages from 1.4 to 1.5
21:50.54pfnstandard.jar xml tags don't work under 1.5
21:51.06pfnand the same could likely be said of any 1.4 app server
21:51.23dvayanudo you mean apache xerces?
21:51.50pfnhttp://www.hanhuy.com/~pfnguyen/java5_jstl112.diff
21:52.03pfnthat's what I had to do to make jstl xml tags work under java 1.5
21:52.51pfnI suppose it could have been solved by finding the correct versions of xalan/xerces, but I didn't want to do that
21:53.04dvayanupfn: rather removing any custom versions
21:53.13dvayanupfn: since its in the jdk right now
21:53.59pfnsee above diff--it didn't work by simply moving to java5, the imports and some code changes had to be made
21:54.41pfnin any case, that's just 1 example of a java 1.4 to 5 migration that could have been caught by something...
21:54.44dvayanuok, any other usecases?
21:55.37pfnI don't know any others, as I haven't tried migrating anything else yet
21:55.56pfnbut stuff like that makes me worry about larger problems
21:56.02pfnthat take much more than just my effort to fix
21:56.50pfnespecially when it comes to closed-source app servers
21:56.51dvayanupfn: i don't quite get your example though... why don't you just take the proper jstl download?
21:57.00pfnwhat proper jstl download?
21:57.11pfnthere hasn't been a standard.jar released since 2004
21:57.14dvayanuone for 1.5?
21:57.21dvayanui mean i had no problems running jstl in 1.5
21:57.26dvayanusimply downloaded ....
21:57.41pfndvayanu that's because you haven't used the xml tags
21:57.47pfntry using the jstl xml taglibs
21:57.51pfnand you'll see the pain
21:57.55dvayanuhmm
21:58.05pfnthat demonstrates another problem--just because 1 thing works fine may not mean the entire suite is ok
21:58.13dvayanuthats true
21:58.29pfnit could be that I'm the only person on earth who uses the jstl xml taglibs
21:58.37dvayanustill i can't believe that there is no working version
21:58.41pfnand in my case, I only use it in one place
21:59.06pfnhttp://svntrac.hanhuy.com/repo/browser/hanhuy/trunk/cms/jsp/xmlxslt.jsp
21:59.28pfnit's very possible that no one uses jstl xml on java5
22:00.44pfnespecially since sun is heavily pushing jsf...
22:01.14pfnand there are numerous other "better" packges out there (webworks, etc.)
22:03.49dvayanustill :-9
22:04.46dvayanuThe J2EE 1.4 SDK includes an implementation of JSTL 1.1.
22:05.11pfnhow about java ee 5, does it?
22:05.15pfnI haven't looked
22:05.26pfnand until recently, I don't think there was an official java ee 5 sdk was there?
22:06.18dvayanuJava EE 5 SDK
22:07.18dvayanuhttp://java.sun.com/javaee/downloads/index.jsp
22:08.40lintlockhorray for class
22:11.41pfnI'll have to look and see if they have a working standard.jar sometime
22:15.21dvayanuhmm
22:15.50dvayanuthe struts channel just told me to drop an "old" xerces.jar into the webapp to make the old standard tags work
22:18.08pfndvayanu right--but that's not my point, that's just one problem that occurred while migrating to java5... who knows how many others there are, and what their scope to fix is?
22:18.36pfnanyway, time to go pick up the wife... bbiaw
22:19.33dvayanucu
22:23.04lintlocksigh i just coded myself into another hoe
22:23.46lintlockwhole that is
22:30.10puckohmmm...
22:30.40puckohow was it one redirects/forwards to another page/servlet w/o returning to caller?
22:31.28lintlocki only know how to do that with taglibs
22:31.49puckoah, maybe I'm thinking php again.
22:31.50lintlockdont know if im returning to the caller or not though
22:32.54lintlockmaybe i stuck my foot in my mouth again
22:40.01lintlockwould i have to recompile tomcat if i want to change apache
23:00.35lintlocksigh relearning stuff from 6 years ago is exciting
23:06.37*** join/#tomcat Meztli-xictli (n=Meztli-x@red-corp-201.143.209.206.telnor.net)
23:11.09jasonbpucko: perform a request dispatcher include.
23:13.00*** join/#tomcat Bison (n=sgillesp@70.151.150.167)
23:13.02Bisonhello
23:20.41*** part/#tomcat Meztli-xictli (n=Meztli-x@red-corp-201.143.209.206.telnor.net)
23:36.49puckojasonb, thanks. did it just like that
23:36.58puckoI'm gettin' rusty :S

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.