00:35.49 | *** join/#tomcat jasonb (~jasonb@67.124.81.122) |
01:22.16 | *** join/#tomcat jboss_ (~jboss@137.132.31.162) |
01:22.26 | jboss_ | hello, anyone here? |
01:24.34 | jboss_ | 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.42 | redloh | hi |
10:39.42 | *** join/#tomcat MiLLo2 (~MiLLo2@cpe-24-196-195-222.hkry.nc.charter.com) |
10:40.18 | MiLLo2 | anyone in here ever set up tomcat on windows 200 server |
11:31.15 | *** join/#tomcat sc (~chatzilla@218.104.80.12) |
11:32.36 | sc | hi |
11:32.43 | sc | anybody here |
11:32.44 | sc | ? |
11:35.16 | *** join/#tomcat aicean (~chatzilla@218.104.80.12) |
11:35.31 | sc | hi |
11:35.50 | sc | who are you guys? |
11:36.23 | aicean | i ma a chat bot |
11:36.51 | sc | shit!!! another bot!!! |
11:37.13 | aicean | are 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.20 | bolsh | Grmbl |
14:49.17 | bolsh | I 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.44 | shane_ | 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.52 | shane_ | there error is: |
15:58.53 | shane_ | Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener |
15:59.07 | shane_ | I'm using j2sdk1.4.2 |
16:02.01 | shane_ | shen starting in debug mode, the CLassLoaderFactory says its loading server/lib/catalina.jar which includes that class. |
16:02.08 | shane_ | s/shen/when |
16:03.31 | tang^ | binary? for what system or are you just using a .tar.gz? |
16:04.02 | shane_ | debian |
16:04.52 | tang^ | I'm not familiar with debian packages myself, though I haven't heard anything good about them |
16:05.06 | shane_ | its not the debian package. |
16:05.19 | shane_ | its the .tar.gz from the jakarta website |
16:05.31 | tang^ | ahh, running on debain |
16:05.36 | shane_ | yes. |
16:05.36 | tang^ | spelling optional |
16:06.00 | shane_ | my j2sdk is from the sun website |
16:06.50 | tang^ | 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.53 | shane_ | i copied the ones from common/endorsed to jre/lib/endorsed but still get the same error. |
16:19.30 | tang^ | I don't know the answer, sorry |
16:28.38 | shane_ | thanks for the help |
16:33.09 | *** join/#tomcat Spline (~dj_aia@wsip-68-99-67-114.ok.ok.cox.net) |
16:34.50 | BigDog|Work | I'm having a problem with getting JNDI working with Tomcat 4.1.24 |
16:35.28 | BigDog|Work | here's the class it couldn't find: java.lang.ClassNotFoundException: org.hsql.jdbcDriver |
16:35.50 | BigDog|Work | any idea where I can D/L hsql.jar? |
16:37.05 | randrew | BigDog|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.24 | BigDog|Work | randrew: 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.43 | BigDog|Work | and I can't find that file anywhere (been gooling for about an hour now) |
16:45.47 | BigDog|Work | googling |
17:10.27 | BigDog|Work | any 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.09 | awallace | Hello 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.08 | copter | uhm not sure but SSL is usually running in different port |
17:49.54 | copter | standard is 443 .. hmm .. dunno what's that 8443 is for |
17:50.04 | copter | havent used it ever so i guess my answer is not much help for you :) |
17:51.21 | copter | hmm .. 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.49 | copter | if you change http into 80, then you should change ssl into 443 |
17:51.59 | awallace | ok |
17:52.04 | awallace | thankyou |
17:52.18 | copter | np |
17:52.57 | awallace | i 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.08 | copter | awallace, you will need root privileges to use any ports below 1025 |
18:11.08 | copter | you can use just root account or create some other account that has required privileges (belongs to root group) |
18:11.36 | copter | or 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.31 | awallace | copter: got it, thanks. |
18:26.04 | awallace | can 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.26 | copter | awallace, hmm .. im really not sure does tomcat have virtual hosts |
19:23.47 | jasonb | ibot: vhosts |
19:23.49 | | i heard vhosts is at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html |
19:23.54 | copter | ok :) |
19:23.59 | jasonb | :) |
19:24.00 | copter | <PROTECTED> |
19:24.37 | copter | heh 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.22 | awallace | thanks! |
20:43.51 | awallace | question. 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.43 | jasonb | awallace: Nope. You could let the host autodeploy all webapps, allowing Tomcat to automatically map them. |
20:50.38 | jasonb | awallace: 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.46 | awallace | jasonb: Thankyou, but how do i indicate that the virtual host should use one of those webaps as it's default "" context? |
21:06.44 | jasonb | Well, to do that, you'd probably need at least a context fragment, since then you could specify where it gets mapped. |
21:07.30 | jasonb | Have 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.09 | awallace | yes, 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.31 | awallace | can one put the <HOST directive in a separate file too or does it have to be in server.xml? |
21:11.52 | jasonb | It has to be in server.xml. |
21:11.58 | awallace | ok. |
21:13.08 | awallace | jasonb: 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.40 | jasonb | awallace: Do you have autoDeploy="true" on your Host? |
21:14.19 | awallace | jasonb: no |
21:14.39 | *** join/#tomcat schlumpf (~vx_schlum@dsl-082-082-068-057.arcor-ip.net) |
21:14.52 | jasonb | awallace: 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.21 | jasonb | The 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.30 | jasonb | http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html |
21:15.46 | awallace | it 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.06 | jasonb | Nope! No way to do that yet. |
21:16.28 | awallace | heh... oh well... You have been very helpful! Thankyou very much. |
21:16.38 | jasonb | Oh wait.. maybe.. with an XML entity perhaps? |
21:16.52 | awallace | I'm very naive as far as xml. |
21:17.01 | awallace | let me see if i can google some.. |
21:17.19 | jasonb | I'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.02 | awallace | ok, let me see if i find info on it to give it a try... |
21:18.03 | awallace | thanks |
21:19.34 | awallace | http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg100625.html |
21:19.39 | awallace | they say it can be done. |
21:21.22 | jasonb | Yeah, totally. I still haven't tried it, but it might work that way. |
21:21.38 | jasonb | I was going to suggest something like <!ENTITY server-include SYSTEM "file:server-include.xml"> |
21:21.59 | jasonb | (inside of the <!DOCTYPE>) |
21:22.54 | jasonb | BTW: that's a great URL you've got there, and it's also a very valueable feature to know about. |
21:26.20 | awallace | hey, i didn't do anything :) |
21:26.34 | jasonb | Sure you did. You found that URL and shared it with us. :) |
21:26.55 | awallace | heh :) |
21:27.13 | awallace | forgive my ignorance... the DOCTYPE, does it have to be anything in particular? |
21:28.17 | awallace | i guess not becouse it worked, and i typed "host" |
21:28.41 | jasonb | heh. hmm.. I was wondering that myself, since server.xml has no doctype, really. |
21:28.55 | jasonb | I guess if there isn't one, whatever you put there becomes the one. :) |
21:29.17 | awallace | I just typed hostFile and worked, I guess it is for uses ignored by tomcat |
21:29.27 | awallace | well, this is very cool |
21:29.46 | jasonb | Yep, it is. That's why I thanked you. :) |
21:31.07 | awallace | you 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.26 | jasonb | I 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.59 | awallace | that is rally a pain... :( |
21:34.01 | jasonb | And, 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.57 | awallace | i guess it would if you switch back to http, but I would not allow my users to do that. |
21:35.54 | awallace | I 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.16 | jasonb | I 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.02 | awallace | so basically, if you want to use HTTPS, you have to use it all the time? |
21:37.27 | jasonb | And, 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.38 | awallace | that'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.05 | jasonb | Yep. Also, you don't need to use Apache just for HTTPS. Tomcat does it fine too. |
21:40.43 | awallace | I 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.43 | jasonb | See Chapter 6 in our book: http://www.oreilly.com/catalog/tomcat/ |
21:41.01 | jasonb | The example chapter 6 there shows how to set up Tomcat to do HTTPS. |
21:41.29 | jasonb | hmm, have you done that with Apache & Tomcat yet though? |
21:41.31 | awallace | jasonb: Yea, i have it working with https..... |
21:41.43 | awallace | yes |
21:41.51 | jasonb | oh. Cool. |
21:41.55 | awallace | i've been doing it like that for a year or so... |
21:42.09 | jasonb | I wasn't sure that would work. |
21:42.18 | awallace | but 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.00 | jasonb | Yeah, I think there is some way around that.. using just Tomcat, but I haven't tried it so I don't know. |
21:43.39 | awallace | that be something to try... I think at one point someone told me it had to do with the way cookies were handled |
21:45.09 | jasonb | Well, 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.04 | jasonb | With 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.59 | jasonb | So with HTTP, the session ID cookie just rides along with the request or response, but with HTTPS it's part of neither. |
21:48.26 | awallace | i c |
21:48.35 | *** join/#tomcat hof (~jhoffman@host-226-160.dhcp.pdx.edu) |
21:50.06 | awallace | i 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.50 | jasonb | Was it about the SingleSignOnValve? |
21:51.03 | jasonb | I don't know if that'll work in that situation or not, but it's also worth a shot. |
21:51.41 | jasonb | Scroll all the way to the bottom of this page: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html |
21:53.47 | awallace | jasonb:thanks, checking it out. |
21:55.18 | awallace | I guess is something to try.... |
21:55.45 | jasonb | If you try that, please please please let me know how it turns out. |
21:55.56 | awallace | I may also ask in the tc mailing list again to se if someone knows how to handle that situation... |
21:56.07 | awallace | I sure will, you always around this irc? |
21:56.18 | jasonb | Pretty much. :) |
21:56.27 | awallace | cool |
21:58.19 | hof | Hello--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.45 | jasonb | http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html |
22:03.20 | hof | I'll check that out--thanks for the help |
22:03.53 | jasonb | hof: No prob. |
22:29.25 | awallace | jasonb: 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.34 | jasonb | neat. |
22:36.57 | jasonb | I've never had that problem. |
22:37.25 | jasonb | I guess I'd suggest starting over with your keystore. |
22:37.37 | awallace | the first time I did this was a long time ago, I may have skipped some steps... |
22:37.48 | awallace | I'm reading the pdf you pointed to |
22:38.14 | awallace | i ges I also need a certificate (a self issued one for now). |
22:38.59 | awallace | up to now i only did what was written in server.xml |
22:39.46 | jasonb | Yeah, real docs help. :) |
22:39.55 | awallace | hehe |
22:39.58 | awallace | :) |
22:43.05 | awallace | i still get the same error.... :( |
22:43.21 | *** part/#tomcat hof (~jhoffman@host-226-160.dhcp.pdx.edu) |
22:43.33 | awallace | once i create the certificate do i copy it somewhere? |
22:44.48 | awallace | ah |
22:44.58 | awallace | never mind |
22:47.55 | awallace | no, still doesn't work... I created the .keystore file, it's in root's home and still says the same thing.... |
22:53.58 | awallace | ok, got it. |
23:16.44 | jasonb | cool. |
23:22.25 | awallace | thanks a lot for everything.. g2g now... cu1 |
23:22.28 | *** part/#tomcat awallace (~aw@adsl-66-136-203-156.dsl.austtx.swbell.net) |