00:02.32 | pfn | jasonb no name yet, although, the "ria" is named "JAM" |
00:03.03 | jasonb | ria? |
00:03.05 | *** join/#tomcat gverig (n=MVeprin@12.44.117.10) |
00:03.12 | pfn | the jws/jnlp app |
00:03.39 | pfn | well, it's just an acronym... "journal/album manager" |
00:03.50 | jasonb | What does "ria" stand for? |
00:03.55 | pfn | rich internet application |
00:04.04 | jasonb | okay, that's what I thought, but I wanted to be sure. |
00:07.29 | jasonb | jws is really the right thing to use for that. |
00:21.24 | pfn | how kind, eclipse OOM'd on me |
00:21.41 | pfn | I guess I'll do -Xmx512m for it |
00:22.11 | pfn | I guess I have a huge changeset coming up |
00:26.36 | jasonb | heh! |
00:27.40 | pfn | ok, slapped in license header on every file |
00:31.09 | jasonb | Wow, that was fast. |
00:31.42 | jasonb | Yes, 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.13 | ngm_ | can some one offer advice with specifying Context in a war file? |
02:33.19 | ngm_ | 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.07 | ngm_ | I have tomcat version 5.5.20 on windows 2000 with auto deploy turned on |
02:34.16 | ngm_ | 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.59 | jasonb | lyken: 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.20 | jasonb | Anyone 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.34 | fredrikmh | Hi |
07:43.36 | fredrikmh | I'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.43 | dvayanu | re |
07:56.42 | jasonb | man people in #debian are asses. |
07:57.31 | dvayanu | goats rather |
07:58.16 | jasonb | I ask one question in there about UIDs and like four people begin to tell me that I'm asking stupid questions. |
07:58.28 | dvayanu | what was your question |
07:58.51 | jasonb | If someone could look on their system and tell me if there is a stock user with a UID of 46 or not. |
07:59.42 | dvayanu | i dont have any users with uid 46 |
08:00.03 | jasonb | And, 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.46 | jasonb | http://www.arouse.net/despair-linux/debian.jpg |
08:01.10 | jasonb | Okay, so dvayanu, do you have a group with an id of 99? |
08:01.55 | dvayanu | both no |
08:02.24 | jasonb | okay. Thanks. |
08:02.51 | dvayanu | checked on 3 different installations |
08:03.26 | dvayanu | i have a group with id 46 though :-) |
08:03.32 | jasonb | That's fine. |
08:03.36 | jasonb | Thanks for looking. |
08:03.45 | dvayanu | what do you want to achieve, if i may ask? |
08:04.04 | jasonb | I 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.24 | jasonb | This is the Tomcat RPM.. it installs fine on debian, but has a problem with the tomcat JVM user and group. |
08:04.47 | jasonb | You 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.28 | dvayanu | hmm |
08:05.33 | jasonb | dvayanu: 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.36 | dvayanu | i dont have tomcat packages installed |
08:05.46 | dvayanu | yeah sure, addgroup will do |
08:05.59 | dvayanu | give the command |
08:06.10 | jasonb | TOMCAT_GROUP_ID="`id -g nobody`" |
08:06.13 | jasonb | First, run that. |
08:06.17 | jasonb | And, tell me what it does. |
08:06.29 | jasonb | Does it set TOMCAT_GROUP_ID to nothing? |
08:06.47 | jasonb | err, like a no such user message? |
08:06.55 | dvayanu | lrosenberg@acqua:~/priv$ TOMCAT_GROUP_ID="`id -g nobody`" |
08:06.55 | dvayanu | lrosenberg@acqua:~/priv$ echo $TOMCAT_GROUP_ID |
08:06.55 | dvayanu | 65534 |
08:07.06 | jasonb | is there a nobody group? |
08:07.19 | jasonb | Which debian is this, btw? |
08:07.32 | dvayanu | nobody:x:65534:65534:nobody:/nonexistent:/bin/sh |
08:07.36 | dvayanu | from etc/passwd |
08:07.43 | jasonb | ahh.. how bout /etc/group ? |
08:07.56 | dvayanu | lrosenberg@acqua:~/priv$ more /etc/debian_version |
08:07.56 | dvayanu | testing/unstable |
08:08.17 | jasonb | grep nobody /etc/group |
08:08.45 | dvayanu | nogroup:x:65534: |
08:08.54 | jasonb | That's not "nobody" |
08:09.02 | dvayanu | but that matches |
08:09.17 | dvayanu | man id |
08:09.17 | jasonb | Grep would not say it matches. :) |
08:09.32 | dvayanu | id -g nobody does print group id of user nobody |
08:09.37 | dvayanu | not the group nobody |
08:09.46 | jasonb | hmm.. |
08:10.22 | jasonb | That could be my problem, actually. |
08:10.33 | jasonb | How would one print the group id of group "nobody"? |
08:11.07 | dvayanu | hmm |
08:11.11 | dvayanu | mom please |
08:12.24 | jasonb | I can make a command to do that using a regexp grep and cut, but I'd rather not do it that way. |
08:13.49 | fredrikmh | are any of you familiar with mbeans in tomcat? |
08:14.03 | dvayanu | fred: jason is familiar with everything in tomcat :-) |
08:14.05 | jasonb | egrep '^nobody:' /etc/group | cut -d':' -f 3 |
08:14.28 | jasonb | fredrikmh: No dvayanu is the ultimate Tomcat expert! |
08:16.17 | dvayanu | jason: no |
08:16.43 | dvayanu | grep ":nobody:" /etc/passwd | cut -d":" -f4 |
08:17.11 | jasonb | # grep nobody: /etc/group |
08:17.12 | jasonb | nobody:x:99: |
08:17.12 | jasonb | nfsnobody:x:4294967294: |
08:17.37 | jasonb | Does yours look different than that first line? Does it have a colon in front of "nobody"??? |
08:18.01 | fredrikmh | jason: what do I need to do to deploy an mbean to tomcat? I've tried googling, with little luck. |
08:18.20 | dvayanu | nogroup:x:65534: |
08:18.24 | jasonb | fredrikmh: There's hardly any text about that anywhere. It's actually pretty hard to do. |
08:18.29 | dvayanu | no nobody at all |
08:18.41 | jasonb | dvayanu: But if there was, it wouldn't have a colon in front of it. |
08:18.57 | dvayanu | it should be nogroup:x:65534:nobody i think |
08:19.37 | jasonb | in /etc/group?? |
08:19.41 | dvayanu | yeah |
08:19.53 | dvayanu | groupname:grouppwd:groupid:groupmembers |
08:19.59 | dvayanu | scanner:x:105:another,cupsys |
08:20.22 | jasonb | Well, okay, what I'm doing here is I'm *only* looking for the group id of the group named (exactly) "nobody". |
08:20.31 | jasonb | So, I do not care about the "nogroup" group. |
08:20.37 | dvayanu | there is no such group on debian |
08:20.44 | dvayanu | ah ok |
08:20.45 | jasonb | (nor that there is a "nobody" user who is in the "nogroup" group. |
08:20.47 | jasonb | ) |
08:21.16 | jasonb | I'm fine with there being no such group on debian. I'm actually happy about that. :) |
08:21.19 | dvayanu | ok, then your script works |
08:21.29 | jasonb | the egrep one? |
08:21.51 | dvayanu | yeah |
08:22.02 | jasonb | Can you try this and see if you get the gid of nogroup? egrep '^nogroup:' /etc/group | cut -d':' -f 3 |
08:22.16 | dvayanu | yes |
08:22.18 | dvayanu | it works |
08:22.25 | jasonb | Okay. that's a step in the right direction. |
08:22.26 | dvayanu | i actually tried that before |
08:22.31 | jasonb | Thanks. |
08:22.35 | dvayanu | and told you that the script works :-) |
08:22.48 | jasonb | Ok. I'm just trying to be really really sure. |
08:23.09 | jasonb | It's amazing how suttle of a problem keeps a whole distro from being able to use stuff like this. |
08:23.53 | dvayanu | but |
08:24.04 | dvayanu | i think you have to use the nogroup group on debian |
08:25.40 | dvayanu | www-data is the group/user for apache under debian |
08:25.42 | jasonb | Why would I have to? |
08:25.49 | jasonb | I do not care about that. |
08:26.00 | jasonb | My stuff should never be mixed with that stuff at all. |
08:26.39 | dvayanu | k |
08:26.49 | dvayanu | you want a shell on a debian system? |
08:27.33 | jasonb | The 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.58 | jasonb | dvayanu: 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.02 | dvayanu | do you have a source http for that? |
08:28.14 | jasonb | source http? :) |
08:28.32 | dvayanu | jasonb: i can give you sudo if you promise to be nice |
08:28.45 | jasonb | dvayanu: I'm almost always nice. :) |
08:29.06 | dvayanu | jason: on debian you don't install rpms |
08:29.22 | jasonb | dvayanu: I don't do anything on debian. :) Other people do. |
08:29.33 | dvayanu | i dont see the point in installing an rpm |
08:29.50 | jasonb | dvayanu: 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.51 | dvayanu | i can install it from the binary distro then |
08:30.05 | dvayanu | on debian i want it to work in aptitude |
08:30.06 | jasonb | dvayanu: You can install Tomcat from the binary distro, and you'll have no init script. |
08:30.27 | jasonb | dvayanu: 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.04 | dvayanu | there is a tomcat in the std. package |
08:31.14 | jasonb | And it's broken. |
08:31.29 | dvayanu | libtomcat5-java - Java Servlet engine -- core libraries |
08:31.29 | dvayanu | tomcat5 - Java Servlet 2.4 engine with JSP 2.0 support |
08:31.29 | dvayanu | tomcat5-admin - Java Servlet engine -- admin web interfaces |
08:31.29 | dvayanu | tomcat5-webapps - Java Servlet engine -- documentation and example web applications |
08:31.33 | dvayanu | thats on kubuntu |
08:31.40 | jasonb | Yeah.. That's broken. |
08:31.53 | jasonb | It may run (barely), but all kinds of things are wrong with it. |
08:32.04 | dvayanu | its not really broken... it just wont run as expected :-) |
08:32.18 | dvayanu | i had to work with a tomcat from distro on suse |
08:32.26 | jasonb | My RPM is a highly polished Tomcat that installs and runs robustly across basically all popular Linux distros. |
08:32.26 | dvayanu | the tomcat was all around the disk |
08:32.39 | dvayanu | jason: ok, you want a sudo |
08:32.45 | jasonb | Sure. |
08:34.04 | jasonb | I promise to try to not goof anything. :) |
08:34.53 | jasonb | I 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.22 | nexact | hey 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.20 | jieryn | anyone know how i can have tomcat remove all unnecessary spaces? |
14:14.47 | jieryn | if 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.10 | jieryn | i'm using trimSpaces init-param in my TOMCAT_BASE/conf/web.xml ... this does get rid of blank lines |
14:20.15 | jieryn | but 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.16 | mozart | hi |
14:31.49 | *** join/#tomcat JavaPoet (n=JavaPoet@pat.xmradio.com) |
14:32.19 | JavaPoet | hello everyone.... I think I have a common problem but I can't find a solution on the web |
14:32.44 | JavaPoet | I'm using container managed security/authentication however none of the images on my login.html page are rendured |
14:33.01 | JavaPoet | it appears that tomcat can't find the images |
14:33.06 | JavaPoet | can someone give me any ideas? |
14:36.49 | JavaPoet | BTW, 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.44 | kiwi128 | hi 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.51 | mike_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.36 | coryb | hey, 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.42 | coryb | on a linux rhel3 host - calling futex a ton |
16:40.35 | coryb | just wondering if there is something obvious I'm overlooking re: performance |
16:43.13 | coryb | because it seems to be spending a lot of time calling futex. many many calls a second |
16:43.17 | coryb | I don't know much about the particular webapp though |
16:43.38 | coryb | like 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.23 | randrew | g |
16:54.29 | another | hi |
16:58.22 | another | How 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.02 | pfn | does tomcat support pack200 content-encoding automatically? |
17:11.16 | pfn | another "accessing arbitrary urls", what do you want specifically? security constraints? |
17:11.56 | jasonb | pfn: What is pack200? A character encoding or what? |
17:12.05 | pfn | jasonb java5 jar file encoding |
17:12.17 | pfn | up to 80% compression over compressed jars |
17:12.26 | pfn | (it cheats by reorganizing common class file bits) |
17:12.30 | pfn | "cheats" |
17:12.32 | jasonb | pfn: Well, but that's supported by the JDK right? |
17:12.44 | pfn | right, but I'm asking about http spec |
17:12.58 | jasonb | pfn: In what way would HTTP need to support it? |
17:13.02 | pfn | is tomcat aware of Accept-Encoding: pack200-gzip = Content-Encoding: pack-gzip |
17:13.11 | pfn | auto-negotiating file resources |
17:13.20 | jasonb | No, Tomcat does not do that. |
17:13.32 | jasonb | It supports gzip compression only. |
17:13.32 | pfn | Accept-Encoding: pack200-gzip => means I can receive file.jar, file.jar.pack.gz, etc. |
17:14.30 | pfn | will tomcat be able to parse that pack200-gzip should mean fetch file.jar.pack.gz |
17:14.31 | jasonb | You might want to suggest that as a new feature for TC 6.0 though. |
17:14.50 | pfn | http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html |
17:18.18 | pfn | this is an example of pack200's effectiveness |
17:18.18 | pfn | ls -l[pfnguyen@ares dist]$ ls -l spring.jar* |
17:18.18 | pfn | -rw-r--r-- 1 pfnguyen Users 2545110 Oct 3 15:04 spring.jar |
17:18.18 | pfn | -rw-r--r-- 1 pfnguyen Users 2222607 Oct 5 10:17 spring.jar.gz |
17:18.18 | pfn | -rw-r--r-- 1 pfnguyen Users 580395 Oct 4 15:25 spring.jar.pack.gz |
17:18.36 | pfn | spring.jar.gz is gzip -9 |
17:18.46 | pfn | I don't know if the original spring.jar is compressed |
17:22.47 | pfn | now if tomcat 5.5 has support for content negotiation intrinsically, I would be happy :) |
17:22.57 | pfn | I would dislike having to code up a controller to do it for me |
17:24.59 | jasonb | I actually don't know, but I don't think it is as elegant as you'd like it to be. |
17:26.30 | jasonb | I 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.41 | jasonb | I do not know what it does when you send already gzipped files like that. |
17:26.59 | jasonb | I have a feeling that the data goes through a gzipper again before it's sent out, but I am not sure. |
17:29.04 | pfn | I'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.33 | Kalavera | hi guys |
17:35.15 | Kalavera | i want to authenticate one directory with tomcat |
17:35.25 | pfn | so use a security-constraint |
17:35.33 | Kalavera | i do an .htaccess file |
17:35.38 | Kalavera | is ok? |
17:35.59 | pfn | tomcat doesn't know anything about .htaccess |
17:36.16 | pucko | kalavera, 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.33 | pucko | it is an older version, but still applicable I think |
17:36.37 | Kalavera | ok thanks i am going to review that |
17:36.45 | pucko | (not tried it myself ;) |
17:39.46 | Kalavera | :D |
17:45.52 | Kalavera | mmm i was applied the security constrait but nothing happend |
17:45.55 | Kalavera | :S |
17:48.42 | *** join/#tomcat cooperg (n=chatzill@c-71-203-245-211.hsd1.tn.comcast.net) |
17:50.33 | Kalavera | i dont see any Basic Auth box |
17:53.53 | cooperg | Hey 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.54 | cooperg | ...didn't help. =( |
17:54.20 | *** join/#tomcat SharkWave (n=irvine@dragontooth.cems.umn.edu) |
17:54.37 | SharkWave | anybody 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.15 | pfn | no idea |
18:04.36 | pfn | cooperg look at the documentation for the deploy task |
18:04.52 | cooperg | I have, it says "localwar" is OK |
18:05.23 | cooperg | I'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.50 | pfn | I don't know, I don't use ant to deploy my applications |
18:06.08 | pfn | I deploy once manually and then use hot-deploy from there |
18:06.16 | pfn | and occasionally a full-deploy using the manager |
18:06.39 | cooperg | though, 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.10 | randrew | cooperg: 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.28 | cooperg | Ok |
18:18.16 | cooperg | I found one guy on google that had my issue |
18:18.19 | cooperg | http://mail-archives.apache.org/mod_mbox/tomcat-users/200607.mbox/%3CPine.LNX.4.62.0607031539230.10610@ofb.net%3E |
18:18.25 | cooperg | But no responses to the thread =( |
18:38.50 | *** join/#tomcat J-Pro (n=Miranda@195.22.236.41) |
18:38.58 | J-Pro | hey everybody |
18:51.00 | *** join/#tomcat J-Pro (n=Miranda@195.22.236.41) |
18:51.56 | J-Pro | swente: you are the one who knows me a little :) Hi. Can I ask you a question please? |
18:52.17 | swente | sure |
18:54.07 | J-Pro | I'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.08 | J-Pro | But 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.19 | J-Pro | why? |
18:55.15 | swente | J-Pro: honestly i'm not sure where you can find that library. but, it's only a warning. |
18:55.46 | J-Pro | I could not even see it if there wasn't another error below in this log: |
18:55.48 | J-Pro | Oct 5, 2006 9:49:49 PM org.apache.catalina.startup.HostConfig deployDescriptor |
18:55.48 | J-Pro | SEVERE: Error deploying configuration descriptor host-manager.xml |
18:55.48 | J-Pro | java.lang.NoSuchMethodError: org.apache.naming.NamingContextBindingsEnumeration.<init>(Ljava/util/Iterator;Ljavax/naming/Context;)V |
18:56.28 | swente | hmmm .. about the second one i have entirely no clue :) |
18:57.08 | J-Pro | I thought that error is a consequence of that warning... I don't know why it's there... :( |
18:57.49 | J-Pro | I searched internet about it - nothing there, only one question "why is in in my log?" this is it. |
18:57.50 | jasonb | The second thing looks like a bug in Tomcat. |
18:58.02 | J-Pro | google gives only one search result :( |
18:58.12 | swente | no 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.18 | J-Pro | don't know what to do... |
18:58.19 | J-Pro | maybe anyone else can help me? |
18:58.23 | pfn | the first warning just means you need to install libtcnative and apr |
18:58.28 | pfn | if you want jni "performance" |
18:58.35 | pfn | you can ignore it if you like |
18:58.41 | pfn | people say tomcat performs well-enough without it |
18:58.55 | jasonb | J-Pro: You *should* ignore that first warning. |
18:59.12 | pfn | /me shrugs, I installed libtcnative... seems to work ok |
18:59.22 | jasonb | pfn: On windows? |
18:59.24 | J-Pro | ok, thanks, people, for the first answer. But what about the second error? |
18:59.32 | pfn | jasonb I run nothing server-ish on windows |
18:59.33 | J-Pro | windows, yes |
18:59.48 | J-Pro | ah.. not for me :) |
19:00.14 | jasonb | J-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.28 | jasonb | pfn: He's using Windows, so it's a windows-specific question. |
19:00.29 | J-Pro | hmm... |
19:00.53 | *** join/#tomcat ves_ (n=gavin@cpc2-john1-0-0-cust80.renf.cable.ntl.com) |
19:01.07 | J-Pro | jasonb: 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.34 | jasonb | J-Pro: I believe the developers do not know of the existence of that bug. You could file a bug report for it. |
19:03.54 | J-Pro | I'll try... |
19:08.55 | J-Pro | installed 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.09 | J-Pro | I can't beleive - it works :)) |
19:11.35 | jasonb | heh |
19:11.36 | J-Pro | jasonb: thanks for 5.5.20 advance |
19:11.48 | J-Pro | didn't know it was released |
19:11.53 | jasonb | It may be a coincidence. I found no evidence of a bug fix for that. |
19:12.05 | J-Pro | I think so too |
19:12.17 | J-Pro | but I reinstalled 5.5.19 a few times |
19:12.20 | jasonb | J-Pro: See this channel's topic line. |
19:12.22 | J-Pro | the same error |
19:12.59 | J-Pro | jasonb: yeah, just was very worried about my question... next time will be more attentive :) |
19:13.12 | J-Pro | thx again |
19:13.16 | jasonb | yup |
19:13.22 | J-Pro | 2 everybody who answered |
19:13.40 | J-Pro | good to know that there is a place where people always help ;) |
19:14.03 | jasonb | almost 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.25 | lintlock | good evening everyone |
19:38.09 | *** join/#tomcat flexable (n=flexable@host14-162.pool8249.interbusiness.it) |
19:39.48 | jasonb | hi lintlock |
19:51.06 | swente | lintlock! |
19:54.43 | lintlock | hey heyguys |
19:55.17 | lintlock | well 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.58 | swente | lintlock: your prof "assumes"? :) |
19:56.13 | lintlock | see |
19:56.22 | lintlock | im the only one at the university that knows velocity |
19:56.35 | lintlock | i am assuming this as well :P |
19:56.51 | swente | :) |
19:57.09 | lintlock | but she knows java insanly well |
19:57.33 | lintlock | but velocity is evil |
19:58.05 | swente | hm. just had some quick glimpse @ velocity last year |
19:59.00 | lintlock | i need to do what the developers say |
19:59.10 | lintlock | seperate my java from my web design |
19:59.26 | lintlock | erm web programming |
19:59.52 | swente | separate 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.17 | Hellaenergy | Question... can maxPostSize be set in a AJP connector (in the server.xml) |
20:03.04 | Hellaenergy | Q2: If someone does a large post is there a potential that the session would timeout before the post is done? |
20:04.02 | jasonb | Q1: Dunno. I don't use that. ;) |
20:04.36 | Hellaenergy | I think you can. |
20:05.07 | jasonb | Q2: 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.27 | Hellaenergy | Wow I didn't think of that. |
20:05.28 | lintlock | erm i ment that in a weird way swente |
20:05.47 | swente | lintlock: :) |
20:05.50 | J-Pro | Good people, I've got another question :) |
20:05.51 | J-Pro | Where are all files like catalina.bat, service.bat from the bin dir of Tomcat 5.5.20? |
20:06.00 | lintlock | like do my java coding in eclipse and webprogramming in whatever... kinda trying to seperate them |
20:06.09 | lintlock | Bin folder j-pro |
20:06.44 | jasonb | J-Pro: You're running Windows, so you obviously don't want any of those. :) |
20:07.08 | J-Pro | lintlock: bin folder: |
20:07.09 | J-Pro | <PROTECTED> |
20:07.09 | J-Pro | <PROTECTED> |
20:07.09 | J-Pro | <PROTECTED> |
20:07.09 | J-Pro | <PROTECTED> |
20:07.09 | J-Pro | <PROTECTED> |
20:07.10 | J-Pro | 5 File(s) 214,323 bytes |
20:07.15 | lintlock | ...... |
20:07.22 | lintlock | ummmm |
20:07.31 | J-Pro | strange... I had all these files in 5.0.17 |
20:07.50 | lintlock | sigh they just did the tomcat5.exe |
20:07.53 | lintlock | i hate tht thing |
20:07.55 | J-Pro | swente: I wanted to say that :) |
20:08.21 | lintlock | lol |
20:08.33 | pfn | wtf, why am I getting a deprecation warning here: http://paste.hanhuy.com/getRealPathDeprecated |
20:08.41 | lintlock | i also wondered but kept my mouth shut to not remove doubt of my stupidity |
20:08.54 | J-Pro | why 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.05 | lintlock | java deprecates useful variables |
20:09.11 | lintlock | amd methods |
20:09.14 | pfn | lintlock read closer |
20:09.19 | pfn | it's complaining about getRealPath() |
20:09.24 | pfn | of which I don't even come close to using |
20:09.28 | pfn | (except in the call above it) |
20:09.30 | J-Pro | the first thing I need to do is to add a switch in catalina.bat: -Dfile.encoding=UTF-8 |
20:09.47 | J-Pro | but I don't see this file... |
20:09.59 | J-Pro | maybe some new methods in 5.5.20 version? |
20:10.28 | lintlock | no no pfn i was just making a gernal statement |
20:10.40 | lintlock | because of some issues i had with java earlier this year |
20:10.51 | lintlock | gernal = general |
20:11.01 | Hellaenergy | jasonb: So that whole post would go into memory in one chunk? |
20:11.28 | Hellaenergy | Then write to the DB? |
20:11.40 | Hellaenergy | How does that work? |
20:12.49 | jasonb | swente: Sure it was. |
20:13.14 | swente | jasonb: i'd say it missed .. the session-timeout-point. |
20:13.32 | jasonb | swente: It did not. |
20:13.43 | Hellaenergy | So 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.44 | pfn | jasonb any idea about why I get that deprecation warning above? |
20:14.07 | pfn | hellaenergy depends on your file upload handling |
20:14.13 | pfn | you can read to file or read in memory |
20:14.50 | jasonb | Hellaenergy: 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.28 | Hellaenergy | OOME? |
20:15.37 | dvayanu | re |
20:15.54 | jasonb | OutOfMemoryException |
20:16.01 | Hellaenergy | ah |
20:16.25 | Hellaenergy | pfn: Even if you wrote to a file wouldn't it take up the Heap? |
20:17.02 | pfn | hellaenergy only as much of the heap required to hold the buffer used to write to a file |
20:18.10 | lintlock | i 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.12 | Hellaenergy | In our case we are writing to a DB through a DataSource. |
20:19.37 | Hellaenergy | So I guess that would go to Memory and then through the datasource to the DB? |
20:19.37 | jasonb | pfn: 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.53 | jasonb | pfn: Although I can't find a deprecation of it in the javadocs. |
20:20.00 | pfn | no, servletContext.getRealPath() is not deprecated |
20:20.06 | pfn | servletRequest.getRealPath() *is* |
20:20.11 | jasonb | ahh.. |
20:20.11 | pfn | I'm using the former, and not the latter |
20:20.13 | jasonb | ok. |
20:20.26 | jasonb | That's probably right. |
20:20.55 | pfn | as soon as I comment out my anonymous class' override of getRequestURI() it goes away |
20:21.01 | pfn | hmm, or not |
20:21.08 | pfn | my use of HttpServletRequestWrapper is what's causing it |
20:21.14 | pfn | how lame... |
20:21.19 | jasonb | pfn: To figure out the other deprecation situation you're getting I'd have to see all the source. |
20:22.39 | pfn | the problem is because HttpServletRequestWrapper itself has deprecated APIs |
20:22.54 | pfn | how stupid... |
20:22.57 | jasonb | swente: 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.53 | jasonb | J-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.55 | swente | jasonb: is the heapram really important if uploading with say .. GSM 9600bps? |
20:24.18 | pfn | jasonb if you reload that page again, you'll see another example that throws the same deprecation warnings |
20:25.22 | jasonb | swente: What if someone started their GSM tomcat server with 40 megs of heap ram? |
20:25.40 | swente | jasonb: what is the default-session-lifetime in tomcat? |
20:25.47 | dvayanu | swente: 30min |
20:25.52 | *** join/#tomcat prgrmr (n=prgrmr@bzq-88-153-178-249.red.bezeqint.net) |
20:25.57 | dvayanu | or was it 2 hours? |
20:26.49 | swente | well .. it's probably nitpicking, but the average-upstream [internet] at least in germany should to be around ~150kbit/sec. |
20:26.57 | J-Pro | jasonb: swente mentioned once and I'm agree. If Windows user doesn't need them, then who does?? |
20:27.40 | swente | J-Pro: i assume they [developers] mean they [win-users] don't need batchfiles, but an exe :) |
20:28.11 | J-Pro | swente: did you see the link about UTF-8 fix? |
20:28.24 | J-Pro | swente: http://wiki.apache.org/tomcat/Tomcat/UTF-8 |
20:28.52 | jasonb | J-Pro: Non-windows users need to be able to control their computers. |
20:28.59 | jasonb | :) |
20:29.44 | J-Pro | jasonb: so? :) I thought .bat-files are for MS pruducts only... |
20:30.22 | jasonb | J-Pro: They are. But, since you're a windows user, and not a Tomcat developer, they decided you don't need those. |
20:31.02 | J-Pro | jasonb: 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.29 | swente | jasonb: is it correct to assume that tomcat "opens" the session before e.g. doPost, and "saves" it back after uploading? |
20:31.39 | another | 123 |
20:31.41 | jasonb | J-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.12 | jasonb | brb.. 2 year old needs me.. |
20:32.20 | another | what the hack |
20:32.27 | J-Pro | jasonb: thz anyway... |
20:32.31 | J-Pro | thX |
20:32.43 | *** join/#tomcat another (n=another@ppp-62-245-162-19.dynamic.mnet-online.de) |
20:32.45 | swente | J-Pro: utf? |
20:32.52 | swente | J-Pro: we discussed that once? |
20:33.12 | J-Pro | swente: no, we didn't |
20:33.25 | J-Pro | swente: a few minutes ago I just asked for a first time |
20:33.32 | swente | J-Pro: ok .. well .. i didn't read it :) |
20:34.01 | J-Pro | I hoped you read :) |
20:34.10 | swente | J-Pro: now you need to use that -D and don't know how to set with .exe? |
20:34.14 | J-Pro | swente: 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.22 | dvayanu1 | swente: you was a debian fan, btw? |
20:34.35 | J-Pro | the 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.35 | swente | dvayanu: s/fan/user/ |
20:35.05 | dvayanu1 | swente: don't like it but have to use it? |
20:35.11 | swente | J-Pro: perhaps you can set that with a java-properties-file? |
20:35.17 | swente | dvayanu: just using it :) |
20:35.37 | dvayanu1 | J-Pro: you downloaded the zip or exe? |
20:36.01 | J-Pro | swente: anywhere is written about catalina.bat only... Don't you know anything about that java-properties-file? |
20:36.09 | swente | J-Pro: common java |
20:36.59 | swente | J-Pro: mompl |
20:37.06 | J-Pro | swente: common dir of 5.5.20: |
20:37.07 | dvayanu1 | J-Pro: the .exe distribution misses .bat files. Since its ment to run as service then |
20:37.07 | J-Pro | classes |
20:37.07 | J-Pro | endorsed |
20:37.07 | J-Pro | i18n |
20:37.07 | J-Pro | lib |
20:37.15 | pfn | jasonb do you know which property of HttpServletRequest is used to determine which file to serve? |
20:37.17 | pfn | in tomcat? |
20:37.19 | pfn | requestURI? |
20:37.33 | dvayanu1 | J-RPo: however you can set this in an environment variable called JAVA_OPTS |
20:37.39 | pfn | (assuming that we're passing through to the file serving filter) |
20:37.45 | J-Pro | dvayanu1: I've installed 5.0.19 as a service from an exe-file and it still had all the bat-files needed |
20:38.31 | dvayanu1 | j-pro: 5.0.19 is like 3 years old |
20:38.34 | dvayanu1 | they changed that |
20:38.35 | lintlock | when is it appropriate to update tomcat |
20:38.58 | lintlock | i know from 5.5.17 -5.5.20 seems pointless in my case |
20:39.03 | dvayanu1 | lintlock: when yours doesn't work as desired and you are sure they haven't broke anything important |
20:39.11 | dvayanu1 | 5.5.17 is VERY buggy |
20:39.19 | swente | J-Pro: did you try the last-available-scripts? |
20:39.21 | lintlock | SSO is BUGGY! |
20:39.22 | dvayanu1 | they mixing up classloaders |
20:39.38 | dvayanu1 | if you reload your apps, you should upgrade |
20:39.49 | Hellaenergy | l8tr |
20:39.52 | *** part/#tomcat Hellaenergy (n=Hellaene@206.231.92.67) |
20:39.59 | J-Pro | dvayanu1: 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.14 | lintlock | nah im not donig alot of reloading |
20:40.23 | lintlock | im moreso doing alot of fixing on one end |
20:40.30 | J-Pro | dvayanu1: so I thought that JAVA_OPTS isn't an environment variable, but it's something from Linux... |
20:40.30 | lintlock | then reloading onto the main |
20:40.48 | dvayanu1 | J-Pro: java opts is what you set in catalina.sh/bat |
20:40.50 | swente | dvayanu: debian? |
20:41.46 | jasonb | pfn: Yes, it's getRequestURI(). |
20:41.57 | J-Pro | dvayanu1: 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.06 | J-Pro | maybe through registry or something? |
20:42.50 | swente | J-Pro: did you try the batchfiles from last tomcat version? |
20:43.20 | dvayanu1 | J-Pro: do you start tomcat as service? |
20:43.34 | J-Pro | Oh, 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.58 | J-Pro | swente: I didn't find any place where java.exe is called in catalina.bat of 5.0.19 |
20:44.06 | J-Pro | dvayanu1: yes, I do |
20:44.28 | swente | J-Pro: i doubt the batchfile called tomcat.exe at all. :) |
20:44.55 | dvayanu1 | j-pro: you got it, for the service options use the java-tab :-) |
20:45.10 | dvayanu1 | j-pro: but let me note that running tomcat as service on windowz is lame |
20:46.07 | pfn | thanks... need to override it so I can transparently return the pack.gz file instead :) |
20:46.08 | J-Pro | swente: I doubted it too, but just didn't know exactly... Now I know |
20:46.20 | J-Pro | dvayanu1: why it's lame? |
20:46.28 | swente | J-Pro: any .. as it works now :) |
20:46.31 | dvayanu | j-pro: do you develop or host? |
20:46.33 | swente | +way |
20:46.49 | J-Pro | swente: thx, you always helped me :) |
20:46.54 | swente | :) |
20:46.59 | J-Pro | dvayanu: develop and host |
20:47.14 | J-Pro | I mean develop a web-app |
20:47.22 | dvayanu | j-pro: ok, hosting on windows is lame (and insecure) anyway |
20:47.56 | dvayanu | and for development the service option is the lamest, since hitting ctrl-c in a shell is the fastest way to stop tomcat |
20:48.00 | dvayanu | and restart |
20:48.22 | jasonb | I was going to say the computer's power switch. :) |
20:48.33 | J-Pro | dvayanu: 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.02 | jasonb | swente: Tomcat runs on Java when running in Windows as well. |
20:49.58 | swente | uh does it? hm. did sun such a bad job with their windows-vm? |
20:51.37 | J-Pro | well, thanks everybody for help... going home already... Really thanks |
20:51.41 | dvayanu | swente: the only difference is: it rans in a stupid ms-service-component-be-lame-and-slow wrapper |
20:51.51 | dvayanu | s/rans/runs |
20:52.21 | lintlock | oh this is hillarious.... how the hell does my java code just suddenly stop seeing an entire package |
20:52.26 | lintlock | FUDGE! |
20:52.41 | *** part/#tomcat J-Pro (n=Miranda@195.22.236.41) |
20:53.03 | lintlock | i havent touched 5.5.20 |
20:53.20 | lintlock | i dont plan to till they fix SSO and how it acts on servlet timeouts |
20:55.46 | pfn | jasonb, 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.59 | pfn | the .pack.gz file doesn't get sent to the client |
20:56.40 | pfn | conceptually, it should send the .pack.gz file |
20:57.46 | dvayanu | req = new Pack200RequestWrapper(req); |
20:57.49 | dvayanu | ? |
20:58.00 | dvayanu | sreq = new Pack200RequestWrapper(req); |
20:58.19 | dvayanu | i think this is against the spec |
20:59.10 | dvayanu | pfn: however you should probably send it through the dispatcher again |
20:59.12 | pfn | just using the original servlet request that is passed to chain.doFilter |
20:59.34 | pfn | my filter should occur before the file dispatcher |
21:00.06 | dvayanu | i think the filter chain is ready before first filter is called |
21:00.20 | dvayanu | do you think it remaps? |
21:01.06 | dvayanu | what d you want to achive anyway? |
21:01.27 | pfn | I want to use pack200 content-encoding |
21:01.33 | pfn | and yes, I would expect that it remaps |
21:01.59 | dvayanu | what is pack200 |
21:03.08 | pfn | http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/pack200.html |
21:03.20 | dvayanu | found that out already :-) |
21:03.49 | pfn | [pfnguyen@ares ria]$ ls -l signed-spring.jar* |
21:03.49 | pfn | -rw-r--r-- 1 pfnguyen Users 2015306 Oct 5 13:45 signed-spring.jar |
21:03.50 | pfn | -rw-r--r-- 1 pfnguyen Users 1742039 Oct 5 14:03 signed-spring.jar.gz |
21:03.50 | pfn | -rw-r--r-- 1 pfnguyen Users 513000 Oct 5 13:45 signed-spring.jar.pack.gz |
21:03.58 | dvayanu | why dont you just stream it out from the filter? |
21:04.15 | pfn | I could do that, but I would rather let the native file serving occur |
21:04.39 | pfn | e.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.21 | dvayanu | suns example also does it by theirself |
21:05.25 | dvayanu | itself |
21:05.29 | pfn | yeah, sun's example sucks :p |
21:05.35 | pfn | mine is more elegant :) |
21:05.45 | dvayanu | not really |
21:05.57 | dvayanu | actually its not :-) its more complicated |
21:06.05 | pfn | it's not more complicated at all |
21:06.15 | pfn | all it does is remap the request/response and send it out |
21:06.19 | pfn | no need to read the file, write, etc. |
21:06.23 | pfn | it's shorter line count |
21:06.31 | pfn | and no need to do a servlet mapping to all of *.jar |
21:06.43 | pfn | although, I suppose I could do the same url mapping if I wanted to apply only to .jar |
21:06.59 | pfn | it's got a much shorter line count than the sun example as well |
21:07.10 | dvayanu | however, i think you have to send a redirect or something |
21:07.14 | dvayanu | internal |
21:07.15 | dvayanu | forward |
21:07.31 | dvayanu | i dont think the filter can change the url by simply switching the request |
21:07.34 | pfn | I guess I have to, if tomcat won't remap automatically |
21:08.09 | pfn | yes, it's sounding like the FileServingFilter occurs before my filter |
21:08.19 | pfn | although, I don't see how... |
21:11.07 | dvayanu | is it a filter or a vavle? |
21:11.54 | pfn | it's a ServletFilter |
21:12.07 | pfn | I avoid container-specific api's |
21:14.10 | dvayanu | i mean your suspected fileservingfilter |
21:14.30 | pfn | I'm guessing it's a filter |
21:14.35 | pfn | I have no idea if tomcat implemented it as a valve |
21:15.10 | dvayanu | check the web.xml :-) |
21:15.19 | pfn | actually, looked |
21:15.21 | pfn | it's DefaultServlet |
21:15.32 | *** part/#tomcat jieryn (i=jieryn@unaffiliated/jieryn) |
21:16.29 | pfn | in that case, I guess I'll dig into DefaultServlet to see which file it accesses |
21:17.29 | jasonb | DefaultServlet is good to read. It does all kinds of stuff! |
21:17.43 | pfn | indeed, it checks PathInfo and ServletPath |
21:17.50 | pfn | not RequestURI as I had suspected |
21:18.30 | pfn | in this case, I still maintain that my Filter is more elegant than the Sun reference servlet |
21:18.42 | jasonb | DefaultServlet contains lots of suttle hacks that are not documented, to work around all kinds of weird situations. |
21:19.00 | pfn | except, at this point, I'm really only guaranteed to work with tomcat |
21:19.03 | pfn | because of the impl |
21:20.09 | pfn | the main reason why I want to let it pass through is to allow as much as the container functionality as possible |
21:20.16 | pfn | (caching, performance, etc.) |
21:23.56 | dvayanu | the container shouldn't perform any filecaching |
21:24.25 | dvayanu | i mean the filesystem already caches |
21:24.30 | pfn | but defaultservlet does |
21:24.41 | dvayanu | freaks :-) |
21:24.45 | pfn | meh, now I get an error 400 |
21:25.09 | pfn | I wonder why... |
21:26.00 | jasonb | dvayanu: 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.11 | pfn | ah, nevermind |
21:26.17 | pfn | I had to uninstall my cached jnlp app |
21:26.26 | pfn | pack200 is teh win |
21:26.34 | jasonb | hehe |
21:26.46 | pfn | I'm dropping my jnlp app install size from 5mb down to like 2mb |
21:27.24 | dvayanu | danke |
21:27.33 | jasonb | pfn: That rocks! |
21:27.51 | pfn | it could go even smaller, I'm just estimating going by how much improvement I get out of spring |
21:28.03 | pfn | from 2mb down to 500k for that one jar file |
21:28.35 | jasonb | You should subset spring. |
21:28.40 | pfn | and it's a transparent filter, which is nice |
21:28.41 | odin_ | 5.5.17 is buggy? |
21:28.47 | pfn | yeah, I can split out individual components of spring |
21:28.51 | pfn | too lazy to do that right now |
21:29.18 | jasonb | odin_: I don't agree with that either. |
21:29.29 | jasonb | pfn: Doing that could bring your install size down a bunch I bet. |
21:29.47 | pfn | my ria only needs the HTTP remoting component of spring |
21:30.20 | pfn | HTTP-Serializable remoting = teh winnar as well |
21:30.36 | pfn | it's so simple, I can't understand why no one else has done it before spring |
21:30.53 | jasonb | pfn: 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.12 | dvayanu | jasonb: if you assume that log.debug throwing a nullpointer after 10.000 calls is a normal behaviour, than its not :-) |
21:31.33 | jasonb | dvayanu: After exactly 10000 calls? |
21:31.46 | jasonb | dvayanu: That's just one bug though. :) |
21:32.13 | dvayanu | not exactly... just after shutdown is initiated |
21:32.29 | jasonb | dvayanu: Tomcat shutdowns have just about always been hosed. |
21:33.06 | dvayanu | hosed? |
21:33.28 | pfn | jasonb I don't really need to do that as spring already comes with component-ized jar files |
21:33.41 | pfn | so I can just pull the jar files I need |
21:33.45 | dvayanu | jasonb: and i ment application shutdown |
21:33.47 | pfn | instead of the mega-spring.jar |
21:33.48 | dvayanu | reload |
21:34.04 | pfn | but it's a pain in the ass, more jar files for my build script to sign, heh |
21:34.13 | pfn | now I need to add the ant-pack200 task |
21:34.48 | Kalavera | guys i have a proble with basic authentication, and i can see the validation box but i can not access to the directory |
21:34.51 | Kalavera | any idea? |
21:35.54 | pfn | http://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.06 | pfn | whoop, and there's my working Pack200 content-encoding filter |
21:36.09 | pfn | simple as pie :) |
21:37.10 | *** part/#tomcat dmk (n=dmk@host81-154-92-73.range81-154.btcentralplus.com) |
21:37.38 | pfn | and it's elegant, damnit :) |
21:37.46 | jasonb | sweet. |
21:38.18 | jasonb | This means that your ria only works on Java 1.5 and above? |
21:38.30 | jasonb | (on the client end?) |
21:38.45 | pfn | oops, need to remove old dispatcher members, heh |
21:38.48 | pfn | yes, only 1.5 and above |
21:39.02 | pfn | the code itself uses 1.5-only constructs already |
21:39.17 | pfn | (stuff like the concurrency ExecutorService interfaces, etc.) |
21:39.36 | jasonb | ok. |
21:39.47 | jasonb | Soon 1.4 will be a thing of the past anyway. |
21:39.59 | jasonb | 1.6 is getting close to be out and 1.7 is already in the works. |
21:40.16 | dvayanu | heh |
21:40.23 | pfn | well, for desktops and workstations, I don't see what the holdup is with migrating to 1.5+ |
21:40.28 | pfn | on the server side, it's a much different story |
21:40.31 | dvayanu | we have obtained a third party crm product which is tied to 1.3 on the server side |
21:40.35 | pfn | too many app servers only primarily support 1.4 |
21:40.50 | pfn | e.g. my main work app that runs on websphere is probably gonna be stuck on 1.4 for a long time |
21:40.59 | dvayanu | pfn: can you tell me, how something can be bound to a specific java version? |
21:41.07 | dvayanu | i mean, what do you have to use to tie? |
21:41.24 | pfn | dvayanu tie? jnlp can specify a jre version |
21:41.39 | pfn | it can specify an exact version or a range, I understand |
21:41.52 | dvayanu | pfn: yes, but why |
21:42.02 | dvayanu | i mean how to you tie your code to a specific java version |
21:42.23 | dvayanu | s/to/do |
21:44.05 | pfn | easiest 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.39 | dvayanu | pfn: stop |
21:44.55 | dvayanu | pfn: i dont ask how to check java version and stop |
21:44.59 | dvayanu | thats clear |
21:45.02 | dvayanu | but WHY??? |
21:45.19 | dvayanu | do you have any code you wrote for 1.4 that can't run in 1.5? |
21:46.06 | pfn | you mean why is my code tied to 1.4? fear of migrating everything to 1.5 |
21:46.26 | dvayanu | migrating? just switch the vm and restart. works. |
21:46.30 | pfn | worries over incompatibility |
21:46.41 | pfn | it doesn't work in my particular case, as I have clients that I need to support with java 1.3 |
21:47.04 | pfn | and simply switching the jvm isn't necessarily guaranteed to work... |
21:47.11 | pfn | jvm options may have changed between revisions |
21:47.18 | pfn | who knows what esoteric options my app server uses |
21:47.54 | dvayanu | pfn: stop again |
21:48.10 | dvayanu | pfn: i wonder why app-server developers bring in such dependencies |
21:48.23 | dvayanu | personally i never had code which couldn't run in a greater java version |
21:48.32 | dvayanu | so i wonder how do they achieve it and why |
21:49.23 | pfn | dunno, perhaps each individual app server does specific jdk tuning |
21:49.35 | pfn | perhaps it depends on internal classes |
21:49.46 | pfn | e.g. take a look at jstl standard xml tags |
21:49.48 | dvayanu | internal classes? |
21:49.55 | pfn | they use sun internal implementation classes |
21:50.02 | pfn | and thus, standard.jar cannot run on java5 |
21:50.12 | pfn | not without introducing a compatibility library... which I don't think anyone's done |
21:50.38 | pfn | sun renamed the xml (internal, com.sun, etc.) packages from 1.4 to 1.5 |
21:50.54 | pfn | standard.jar xml tags don't work under 1.5 |
21:51.06 | pfn | and the same could likely be said of any 1.4 app server |
21:51.23 | dvayanu | do you mean apache xerces? |
21:51.50 | pfn | http://www.hanhuy.com/~pfnguyen/java5_jstl112.diff |
21:52.03 | pfn | that's what I had to do to make jstl xml tags work under java 1.5 |
21:52.51 | pfn | I suppose it could have been solved by finding the correct versions of xalan/xerces, but I didn't want to do that |
21:53.04 | dvayanu | pfn: rather removing any custom versions |
21:53.13 | dvayanu | pfn: since its in the jdk right now |
21:53.59 | pfn | see above diff--it didn't work by simply moving to java5, the imports and some code changes had to be made |
21:54.41 | pfn | in any case, that's just 1 example of a java 1.4 to 5 migration that could have been caught by something... |
21:54.44 | dvayanu | ok, any other usecases? |
21:55.37 | pfn | I don't know any others, as I haven't tried migrating anything else yet |
21:55.56 | pfn | but stuff like that makes me worry about larger problems |
21:56.02 | pfn | that take much more than just my effort to fix |
21:56.50 | pfn | especially when it comes to closed-source app servers |
21:56.51 | dvayanu | pfn: i don't quite get your example though... why don't you just take the proper jstl download? |
21:57.00 | pfn | what proper jstl download? |
21:57.11 | pfn | there hasn't been a standard.jar released since 2004 |
21:57.14 | dvayanu | one for 1.5? |
21:57.21 | dvayanu | i mean i had no problems running jstl in 1.5 |
21:57.26 | dvayanu | simply downloaded .... |
21:57.41 | pfn | dvayanu that's because you haven't used the xml tags |
21:57.47 | pfn | try using the jstl xml taglibs |
21:57.51 | pfn | and you'll see the pain |
21:57.55 | dvayanu | hmm |
21:58.05 | pfn | that demonstrates another problem--just because 1 thing works fine may not mean the entire suite is ok |
21:58.13 | dvayanu | thats true |
21:58.29 | pfn | it could be that I'm the only person on earth who uses the jstl xml taglibs |
21:58.37 | dvayanu | still i can't believe that there is no working version |
21:58.41 | pfn | and in my case, I only use it in one place |
21:59.06 | pfn | http://svntrac.hanhuy.com/repo/browser/hanhuy/trunk/cms/jsp/xmlxslt.jsp |
21:59.28 | pfn | it's very possible that no one uses jstl xml on java5 |
22:00.44 | pfn | especially since sun is heavily pushing jsf... |
22:01.14 | pfn | and there are numerous other "better" packges out there (webworks, etc.) |
22:03.49 | dvayanu | still :-9 |
22:04.46 | dvayanu | The J2EE 1.4 SDK includes an implementation of JSTL 1.1. |
22:05.11 | pfn | how about java ee 5, does it? |
22:05.15 | pfn | I haven't looked |
22:05.26 | pfn | and until recently, I don't think there was an official java ee 5 sdk was there? |
22:06.18 | dvayanu | Java EE 5 SDK |
22:07.18 | dvayanu | http://java.sun.com/javaee/downloads/index.jsp |
22:08.40 | lintlock | horray for class |
22:11.41 | pfn | I'll have to look and see if they have a working standard.jar sometime |
22:15.21 | dvayanu | hmm |
22:15.50 | dvayanu | the struts channel just told me to drop an "old" xerces.jar into the webapp to make the old standard tags work |
22:18.08 | pfn | dvayanu 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.36 | pfn | anyway, time to go pick up the wife... bbiaw |
22:19.33 | dvayanu | cu |
22:23.04 | lintlock | sigh i just coded myself into another hoe |
22:23.46 | lintlock | whole that is |
22:30.10 | pucko | hmmm... |
22:30.40 | pucko | how was it one redirects/forwards to another page/servlet w/o returning to caller? |
22:31.28 | lintlock | i only know how to do that with taglibs |
22:31.49 | pucko | ah, maybe I'm thinking php again. |
22:31.50 | lintlock | dont know if im returning to the caller or not though |
22:32.54 | lintlock | maybe i stuck my foot in my mouth again |
22:40.01 | lintlock | would i have to recompile tomcat if i want to change apache |
23:00.35 | lintlock | sigh 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.09 | jasonb | pucko: perform a request dispatcher include. |
23:13.00 | *** join/#tomcat Bison (n=sgillesp@70.151.150.167) |
23:13.02 | Bison | hello |
23:20.41 | *** part/#tomcat Meztli-xictli (n=Meztli-x@red-corp-201.143.209.206.telnor.net) |
23:36.49 | pucko | jasonb, thanks. did it just like that |
23:36.58 | pucko | I'm gettin' rusty :S |