irclog2html for #tomcat on 20031017

00:35.49*** join/#tomcat jasonb (~jasonb@67.124.81.122)
01:22.16*** join/#tomcat jboss_ (~jboss@137.132.31.162)
01:22.26jboss_hello, anyone here?
01:24.34jboss_i found that the welcome page is redirected by tomcat rather than be forwarded. Is there any patch to solve this?
02:35.25*** join/#tomcat bugfixer (~bugfixer@42gis175.gulftel.com) [NETSPLIT VICTIM]
02:49.21*** join/#tomcat bugfixer_ (~bugfixer@42gis175.gulftel.com)
03:34.50*** join/#tomcat fireangel (~fireangel@turtle.cowmeuh.net)
04:42.22*** join/#tomcat Geronimo (~jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
05:48.26*** join/#tomcat tang^ (~krachyn@d142-173-196-96.abhsia.telus.net) [NETSPLIT VICTIM]
07:50.10*** join/#tomcat willem (~willem@213-84-243-32.adsl.xs4all.nl)
08:21.37*** join/#tomcat copter (copter@desteem.org)
08:43.08*** join/#tomcat bolsh (~David@apollo.phenix.fr)
09:29.34*** join/#tomcat redloh (~klup@APuteaux-102-2-1-53.w193-251.abo.wanadoo.fr)
09:29.42redlohhi
10:39.42*** join/#tomcat MiLLo2 (~MiLLo2@cpe-24-196-195-222.hkry.nc.charter.com)
10:40.18MiLLo2anyone in here ever set up tomcat on windows 200 server
11:31.15*** join/#tomcat sc (~chatzilla@218.104.80.12)
11:32.36schi
11:32.43scanybody here
11:32.44sc?
11:35.16*** join/#tomcat aicean (~chatzilla@218.104.80.12)
11:35.31schi
11:35.50scwho are you guys?
11:36.23aiceani ma a chat bot
11:36.51scshit!!! another bot!!!
11:37.13aiceanare you bot too?
13:44.01*** join/#tomcat schlumpf (~vx_schlum@dsl-082-082-068-057.arcor-ip.net)
14:06.06*** join/#tomcat bugfixer (~bugfixer@42gis175.gulftel.com)
14:27.53*** join/#tomcat randrew (~raj@dolmen.cc.columbia.edu)
14:48.20bolshGrmbl
14:49.17bolshI have 2 contexts, and they have started sharing every instance of static classes - it's very disconcerting, because before it was very possible to have different non-interfering contexts, but now I've gone & messed something upo
14:49.56*** join/#tomcat schlumpf (~vx_schlum@dsl-082-082-068-057.arcor-ip.net)
15:18.38*** join/#tomcat mod_cure (~Cure@cs666863-15.austin.rr.com)
15:48.57*** join/#tomcat BigDog|Work (~BigDog@ip68-225-118-122.mc.at.cox.net)
15:53.05*** join/#tomcat shane_ (~shane@k2.bah-pki.com)
15:58.44shane_I'm having a problem starting up tomcat-4.1.27 that I just installed into /usr/local/jakarta-tomcat-4.1.27 from the binary package.
15:58.52shane_there error is:
15:58.53shane_Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener
15:59.07shane_I'm using j2sdk1.4.2
16:02.01shane_shen starting in debug mode, the CLassLoaderFactory says its loading server/lib/catalina.jar which includes that class.
16:02.08shane_s/shen/when
16:03.31tang^binary? for what system or are you just using a .tar.gz?
16:04.02shane_debian
16:04.52tang^I'm not familiar with debian packages myself, though I haven't heard anything good about them
16:05.06shane_its not the debian package.
16:05.19shane_its the .tar.gz from the jakarta website
16:05.31tang^ahh, running on debain
16:05.36shane_yes.
16:05.36tang^spelling optional
16:06.00shane_my j2sdk is from the sun website
16:06.50tang^istr something about having to copy/move the xalan/xerces jars over to the jdk endorsed dirs. perhaps that is affecting your particular error?
16:09.53shane_i copied the ones from common/endorsed to jre/lib/endorsed but still get the same error.
16:19.30tang^I don't know the answer, sorry
16:28.38shane_thanks for the help
16:33.09*** join/#tomcat Spline (~dj_aia@wsip-68-99-67-114.ok.ok.cox.net)
16:34.50BigDog|WorkI'm having a problem with getting JNDI working with Tomcat 4.1.24
16:35.28BigDog|Workhere's the class it couldn't find:  java.lang.ClassNotFoundException: org.hsql.jdbcDriver
16:35.50BigDog|Workany idea where I can D/L hsql.jar?
16:37.05randrewBigDog|Work: google hypersonic
16:39.19*** join/#tomcat sevenM (~chatzilla@193.231.184.80)
16:39.33*** part/#tomcat sevenM (~chatzilla@193.231.184.80)
16:39.36*** join/#tomcat schlumpf (~vx_schlum@dsl-082-082-068-057.arcor-ip.net)
16:45.24BigDog|Workrandrew: I tries compiling the latest HSQLDB (1.7.1), installed the jar in the common/lib directory, but I'm still getting the exception
16:45.43BigDog|Workand I can't find that file anywhere (been gooling for about an hour now)
16:45.47BigDog|Workgoogling
17:10.27BigDog|Workany idea where I can D/L hsql.jar (or a version of HSQLdb that will work with Tomcat 4.1.24)?  I've googled, and gone through the jakarta website.  Any  help will be greatly appreciated.
17:14.01*** join/#tomcat Spline (~dj_aia@wsip-68-99-67-114.ok.ok.cox.net)
17:28.15*** join/#tomcat awallace (~aw@adsl-66-136-203-156.dsl.austtx.swbell.net)
17:36.28*** join/#tomcat dsp_ (~dsp@bhnb.net.nz)
17:41.09awallaceHello there, I want to use tomcat as my server for static and dynamic content, i see that the connector for non SSL connections has a redirect clause (redirectPort=8443), can someone tell me what that is for?
17:49.08copteruhm not sure but SSL is usually running in different port
17:49.54copterstandard is 443 .. hmm .. dunno what's that 8443 is for
17:50.04copterhavent used it ever so i guess my answer is not much help for you :)
17:51.21copterhmm .. checked some docs .. 8443 is SSL for 8080 .. so it's normal SSL port there but cause http is in 8080 by standard on tomcat, so SSL is 8443
17:51.49copterif you change http into 80, then you should change ssl into 443
17:51.59awallaceok
17:52.04awallacethankyou
17:52.18copternp
17:52.57awallacei just realize that i can't start tomcat on port 80 as a regular user. Wonder if i should start it as root or is there a way to allow this user in particular to start stuff at port 80 and 443... You know?
18:00.34*** join/#tomcat schlumpf (~vx_schlum@dsl-082-082-068-057.arcor-ip.net)
18:10.08copterawallace, you will need root privileges to use any ports below 1025
18:11.08copteryou can use just root account or create some other account that has required privileges (belongs to root group)
18:11.36copteror create normal account and configure sudo to allow this user to run tomcat as root but otherwise act as normal user
18:16.44*** join/#tomcat Arnonym (~Arnonym@N912P000.adsl.highway.telekom.at)
18:25.31awallacecopter: got it, thanks.
18:26.04awallacecan you point me where to look for virtual hosts in tomcat? I want some names to point to particular web apps.
18:27.03*** join/#tomcat jasonb (~jasonb@67.124.81.122)
19:23.26copterawallace, hmm .. im really not sure does tomcat have virtual hosts
19:23.47jasonbibot: vhosts
19:23.49i heard vhosts is at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
19:23.54copterok :)
19:23.59jasonb:)
19:24.00copter<PROTECTED>
19:24.37copterheh i see :)
20:08.32*** join/#tomcat Gnug225 (Gnug225@24.236.252.214.gha.mi.chartermi.net)
20:15.14*** part/#tomcat BigDog|Work (~BigDog@ip68-225-118-122.mc.at.cox.net)
20:35.22awallacethanks!
20:43.51awallacequestion. If I want a url to point to a particular web app, do I have to nest the context in the HOST section in server.xml?
20:45.47*** join/#tomcat p3 (~p3sulliva@pikes200.centura.org)
20:46.09*** part/#tomcat p3 (~p3sulliva@pikes200.centura.org)
20:49.43jasonbawallace: Nope.  You could let the host autodeploy all webapps, allowing Tomcat to automatically map them.
20:50.38jasonbawallace: Another option is context fragments.  You could put a context xml fragment file for your webapp in the webapps dir where Tomcat can find it and map your webapp.
20:55.44*** join/#tomcat schlumpf (~vx_schlum@dsl-082-082-068-057.arcor-ip.net)
21:03.46awallacejasonb: Thankyou, but how do i indicate that the virtual host should use one of those webaps as it's default "" context?
21:06.44jasonbWell, to do that, you'd probably need at least a context fragment, since then you could specify where it gets mapped.
21:07.30jasonbHave a look at the admin.xml context fragment file in Tomcat's webapps/ dir for an example.. although that one doesn't map the admin webapp to the root ("").
21:11.09awallaceyes, i indeed was using an xml file inthe webapps directory to deply my webapp, but I could not make the virtual host use it... If i embed the context (that was in that xml file) in the <HOST directive, then it does work, but It be nicer if I could keep a separate xml file for each context.
21:11.31awallacecan one put the <HOST directive in a separate file too or does it have to be in server.xml?
21:11.52jasonbIt has to be in server.xml.
21:11.58awallaceok.
21:13.08awallacejasonb: i think that if i specify a context both in an xml in webapps and again in server.xml, the webapp get's loaded twice. Isn't that right?
21:13.40jasonbawallace: Do you have autoDeploy="true" on your Host?
21:14.19awallacejasonb: no
21:14.39*** join/#tomcat schlumpf (~vx_schlum@dsl-082-082-068-057.arcor-ip.net)
21:14.52jasonbawallace: A webapp probably would be deployed twice if you list it both in server.xml and in a context fragment (if autoDeploy="true"), but hopefully they'd each specify a different URI path or else I think there'd be a conflict on the second deploy.
21:15.21jasonbThe docs for the autoDeploy attribute say: "This flag value indicates if web applications from this host should be automatically deployed by the host configurator. The flag's value defaults to true. See Automatic Application Deployment for more information."
21:15.30jasonbhttp://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
21:15.46awallaceit all seems to be working ok, i can leave the stuff in server.xml, just one mor question if i may: Is ther a way to include a file in server.xml (an include directive like in httpd.conf)?
21:16.06jasonbNope!  No way to do that yet.
21:16.28awallaceheh... oh well... You have been very helpful! Thankyou very much.
21:16.38jasonbOh wait.. maybe..  with an XML entity perhaps?
21:16.52awallaceI'm very naive as far as xml.
21:17.01awallacelet me see if i can google some..
21:17.19jasonbI've never tried that, but it's possible that it could work.  It depends on how they wrote the Digester that reads server.xml.  If it's really XML-aware, one should be able to use XML entities.
21:18.02awallaceok, let me see if i find info on it to give it a try...
21:18.03awallacethanks
21:19.34awallacehttp://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg100625.html
21:19.39awallacethey say it can be done.
21:21.22jasonbYeah, totally.  I still haven't tried it, but it might work that way.
21:21.38jasonbI was going to suggest something like <!ENTITY server-include SYSTEM "file:server-include.xml">
21:21.59jasonb(inside of the <!DOCTYPE>)
21:22.54jasonbBTW: that's a great URL you've got there, and it's also a very valueable feature to know about.
21:26.20awallacehey, i didn't do anything :)
21:26.34jasonbSure you did.  You found that URL and shared it with us.  :)
21:26.55awallaceheh :)
21:27.13awallaceforgive my ignorance... the DOCTYPE, does it have to be anything in particular?
21:28.17awallacei guess not becouse it worked, and i typed "host"
21:28.41jasonbheh.  hmm..  I was wondering that myself, since server.xml has no doctype, really.
21:28.55jasonbI guess if there isn't one, whatever you put there becomes the one.  :)
21:29.17awallaceI just typed hostFile and worked, I guess it is for uses ignored by tomcat
21:29.27awallacewell, this is very cool
21:29.46jasonbYep, it is.  That's why I thanked you.  :)
21:31.07awallaceyou seem to be very knowledgable about all this... Last time I tried to use TC stand alone, I went back to use apache as a front end becouse (probably due to my ignorance) whenever I woudl switch from HTTP to HTTPS, whatever info i had in my sessions would be lost, (most likely it was creating a new session) is that the way it works still? or is ther a way around that?
21:32.26jasonbI think someone should write a paper about this topic if nobody already has.  :)  I recently got asked that from another developer who I used to work with.  As far as I can tell, HTTP and HTTPS URLs can't/don't share sessions still.
21:33.59awallacethat is rally a pain... :(
21:34.01jasonbAnd, as far as I know, there are a couple of reasons for it: 1) The session stuff is built into the SSL/TLS protocol, so it's tough to share with HTTP where it isn't really built in, and 2) If HTTP could share user session data with HTTPS, then that could/would render HTTPS less secure.
21:34.57awallacei guess it would if you switch back to http, but I would not allow my users to do that.
21:35.54awallaceI usually only use https when necesary, once they switch to https, i don't let them go back, but i need to keep the session info since it tells who is placing an order, for example.
21:36.16jasonbI think most developers don't want to even offer features that could potentially be used (knowingly or unknowingly) to make HTTPS less secure.
21:37.02awallaceso basically, if you want to use HTTPS, you have to use it all the time?
21:37.27jasonbAnd, I think in the Java Servlet Specification, a servlet Session object can either be an HTTPS one or not an HTTPS one (a boolean flag).  So it can't really ever be both.
21:39.38awallacethat's why i had to use apache as the front end, so it would hande https... i was hoping i didn't have to do that.... I guess I could force some thinks in my app to use HTTPS and pass some info to recreate the session objects i need....
21:40.05jasonbYep.  Also, you don't need to use Apache just for HTTPS.  Tomcat does it fine too.
21:40.43awallaceI know, but if I use apache like that, then I can switch from http to https in tomcat and preserve all the session objects.
21:40.43jasonbSee Chapter 6 in our book: http://www.oreilly.com/catalog/tomcat/
21:41.01jasonbThe example chapter 6 there shows how to set up Tomcat to do HTTPS.
21:41.29jasonbhmm, have you done that with Apache & Tomcat yet though?
21:41.31awallacejasonb: Yea, i have it working with https.....
21:41.43awallaceyes
21:41.51jasonboh.  Cool.
21:41.55awallacei've been doing it like that for a year or so...
21:42.09jasonbI wasn't sure that would work.
21:42.18awallacebut still, I rather not if I can avoid it, I don't see much use to have apache over there just for that...
21:43.00jasonbYeah, I think there is some way around that.. using just Tomcat, but I haven't tried it so I don't know.
21:43.39awallacethat be something to try... I think at one point someone told me it had to do with the way cookies were handled
21:45.09jasonbWell, the session is a cookie in HTTP, and part of the protocol of HTTPS, and those two different methods of session ID handling conflict.
21:46.04jasonbWith HTTPS, you have to have a session ID in order to establish any kind of communication between the client and the server (before any request is made at all), but with HTTP you have to have communication already in order to send the session ID cookie across.  :)
21:46.59jasonbSo with HTTP, the session ID cookie just rides along with the request or response, but with HTTPS it's part of neither.
21:48.26awallacei c
21:48.35*** join/#tomcat hof (~jhoffman@host-226-160.dhcp.pdx.edu)
21:50.06awallacei wish i kept that email, i can't find it, but someone in the tc mailing list once told me about how to share that cookie or something... Something having to do with browsers requesting a new session id when switching schemas and sharing the cookies or something like that... I don't know what i talk about.
21:50.50jasonbWas it about the SingleSignOnValve?
21:51.03jasonbI don't know if that'll work in that situation or not, but it's also worth a shot.
21:51.41jasonbScroll all the way to the bottom of this page: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html
21:53.47awallacejasonb:thanks, checking it out.
21:55.18awallaceI guess is something to try....
21:55.45jasonbIf you try that, please please please let me know how it turns out.
21:55.56awallaceI may also ask in the tc mailing list again to se if someone knows how to handle that situation...
21:56.07awallaceI sure will, you always around this irc?
21:56.18jasonbPretty much.  :)
21:56.27awallacecool
21:58.19hofHello--I'm trying to install tomcat 4.1.27 on SUSE 8.0. I am able to bring up the default home page (after uncommenting the root context in server.xml), but am unable to run any of the jsp/servlet examples or the admin application. Do I need to add a context entry in the server.xml file for these apps? I was under the impression from the docs that everything in the webapps directory was loaded automatically upon startup.
22:00.45jasonbhttp://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html
22:03.20hofI'll check that out--thanks for the help
22:03.53jasonbhof: No prob.
22:29.25awallacejasonb: now that I make tomcat be started by root, i have a problem with the keystore, i've created a new one as root, but still catalina out says the keystore has been tampered with and won't start. Any clues?
22:36.34jasonbneat.
22:36.57jasonbI've never had that problem.
22:37.25jasonbI guess I'd suggest starting over with your keystore.
22:37.37awallacethe first time I did this was a long time ago, I may have skipped some steps...
22:37.48awallaceI'm reading the pdf you pointed to
22:38.14awallacei ges I also need a certificate (a self issued one for now).
22:38.59awallaceup to now i only did what was written in server.xml
22:39.46jasonbYeah, real docs help.  :)
22:39.55awallacehehe
22:39.58awallace:)
22:43.05awallacei still get the same error.... :(
22:43.21*** part/#tomcat hof (~jhoffman@host-226-160.dhcp.pdx.edu)
22:43.33awallaceonce i create the certificate do i copy it somewhere?
22:44.48awallaceah
22:44.58awallacenever mind
22:47.55awallaceno, still doesn't work... I created the .keystore file, it's in root's home and still says the same thing....
22:53.58awallaceok, got it.
23:16.44jasonbcool.
23:22.25awallacethanks a lot for everything.. g2g now... cu1
23:22.28*** part/#tomcat awallace (~aw@adsl-66-136-203-156.dsl.austtx.swbell.net)

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.