IRC log for #tomcat on 20071210

00:02.12hubickwaoh... my virtual hosts are seriously gimped up somehow
00:06.46hubickhmm...the ETags are the same between virtual hosts, I wonder if it's mixing up the cached gziped content between hosts
00:12.34*** join/#tomcat another (n=another@ppp-62-245-208-174.dynamic.mnet-online.de)
00:12.43*** join/#tomcat another (n=another@ppp-62-245-208-174.dynamic.mnet-online.de)
00:35.27*** join/#tomcat kousuke (n=kikuchi@221x251x19x21.ap221.ftth.ucom.ne.jp)
00:38.42*** join/#tomcat WarDog5 (n=chatzill@dslb-088-068-179-000.pools.arcor-ip.net)
00:40.25WarDog5hi, working with tomcat 6.0.13 with java 1.5 on linux (kernel 2.6...) (doesnt really matter), my question is: did anyone get the @PersistenceContext annotation (the injection of the EM or EMF) of JPA working with tomcat 6 + hibernate?
00:44.24hubickaccessing the tomcat manager from a virtual host in which it wasn't defined actually caused tomcat to swap the entire virtual hosts around to the opposite IP's momentarily (it magically reverted a minute or so later)
00:44.52*** join/#tomcat Internat (n=nf@dsl-58-6-125-95.qld.westnet.com.au)
00:45.55hubickgah, ok, so maybe it wasn't the manager that did this, cuz they just magically swapped again.  how how how *bangs head on desk*
01:45.15*** join/#tomcat steve__ (n=steve@c-98-198-199-37.hsd1.tx.comcast.net)
01:52.06hubickDoes anyone know what could be causing a repeat requests to a single IP running tomcat to alternate returning the content between the two virtual hosts provided on that machine? aka, why do I get content supposed to be hosted by the IP I'm not using, and why does it alternate randomly between the right/wrong content?
02:24.27*** join/#tomcat odin_ (n=dlm@host86-128-80-64.range86-128.btcentralplus.com)
02:30.41hubickGah, I sorted it out.  "if (connector.getUseIPVHosts()) {serverName = req.localName();" not req.getLocalAddr as one would expect!  What a horribly named property.
03:03.06*** join/#tomcat acidjnk (i=acid@p5B3F3C1F.dip0.t-ipconnect.de)
04:12.01*** join/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr)
04:34.11*** join/#tomcat acidjnk (i=acid@p5B3F3780.dip0.t-ipconnect.de)
04:48.32*** join/#tomcat rtmex (n=salomon@189.130.198.157)
04:49.32rtmexHi, I copyed all jar files of xmlrpc library to my $JAVA_HOME/jre/lib and I'm still getting the package org.apache.xmlrpc does not exist
04:49.58rtmexI also tryied with javac -cp /$JAVA_HOME/jre/lib/xmlrpc-client-3.1.jar
04:50.06rtmexAny idea please?
05:08.14*** join/#tomcat npm (n=npm@cpe-75-83-171-237.socal.res.rr.com)
05:12.31*** join/#tomcat acidjnk (i=acid@p5B3F3541.dip0.t-ipconnect.de)
05:13.38rtmex???
05:14.30npm<PROTECTED>
05:14.57npmdoes anybody know what happened to xwiki.org ? or does anybody have a copy of the source-code so i can deploy the latest version??
05:15.02rtmexnpm:I think they are all sleeping :)
05:15.24npmeverywhere, someone is sleeping
05:15.42rtmexI mean all the people signed in this channel now
05:16.13npmthey're awake at ##java
05:16.34rtmexBut I can login there
05:16.36rtmex:(
05:16.45rtmexI get You need to be identified to join that channel
05:20.58npm<PROTECTED>
05:21.07npmoops
05:22.07npm<PROTECTED>
05:22.44npmi mean : "/msg NickServ IDENTIFY PASSWORD
05:22.46npm"
05:23.01rtmexok, Thanks
05:23.10*** part/#tomcat rtmex (n=salomon@189.130.198.157)
07:35.23*** join/#tomcat TBBle_ (n=tbble@202.55.155.45)
07:42.05*** join/#tomcat FCron (n=FCron@infodiz.tyumen.ru)
07:51.22*** part/#tomcat FCron (n=FCron@infodiz.tyumen.ru)
08:08.36*** join/#tomcat kjkoster5489 (n=kjkoster@office.telecom.tno.nl)
09:03.11*** join/#tomcat kjkoster5489 (n=kjkoster@office.telecom.tno.nl)
09:09.22*** join/#tomcat AlexWorX (n=alexworx@port-87-234-51-210.static.qsc.de)
09:53.48*** join/#tomcat FormicAcid (n=ant@251.9.39-62.rev.gaoland.net)
10:04.07FormicAcidHi, I'm trying to figure out why I get BAD PACKET SIGNATURE 30309 (see stack: http://pastebin.com/m203659fc). The setup is a apache mod_jk 1.2.25 and Jonas 4.8.5 (which use tomcat but not sure which version). So far on the net I only saw unreplied thread :(
10:05.04FormicAcidThis is occuring on high load on methods that usually don't have this issue
10:20.23*** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
11:40.57*** join/#tomcat devel1 (n=zander@cons.jamalsoft.com)
11:41.00devel1Hello!
11:41.23devel1What is the best way to connect httpd and tomcat ? modjk or modproxy ?
12:56.25riesHey Guys, where can I find sample init.d scripts for tomcat 6? I am currently using a hand crafted script that calls 'catalina.sh start'
12:56.35riesbut then tomcat6 stops again after some time
12:57.30*** join/#tomcat kjkoster5489 (n=kjkoster@office.telecom.tno.nl)
13:00.36*** join/#tomcat Vanuatoo (n=Vanuatoo@host-85-114-227-35.adsl.caucasus.net)
13:14.36*** join/#tomcat isa (n=ighigiu@adsl-70-128-155-154.dsl.snantx.sbcglobal.net)
13:20.40*** join/#tomcat randrewj (n=raj-user@user-160u617.cable.mindspring.com)
13:45.43*** join/#tomcat memic (n=memic@timeoutd.org)
13:46.45memicis it possible to activate dirlisting for just for certain dirs?
13:49.15deebolook into 'DefaultServlet'
13:49.50deeboyou can naturaly just map it to the folders you want it to work in
13:50.54memichm
13:52.03randrewjmemic: in conf/web.xml
13:53.26*** part/#tomcat TBBle_ (n=tbble@202.55.155.45)
13:57.05memicrandrewj just for certain dirs too?
14:02.46*** join/#tomcat PirateLeChuck (n=A@c3amulet.gotadsl.co.uk)
14:25.51FormicAcid<FormicAcid> Hi, I'm trying to figure out why I get BAD PACKET SIGNATURE 30309 (see stack: http://pastebin.com/m203659fc). The setup is a apache mod_jk 1.2.25 and Jonas 4.8.5 (which use tomcat but not sure which version). So far on the net I only saw unreplied thread :(
14:58.02randrewjmemic: you can configure the DefaultServlet to respond to whichever URIS you want
14:59.32randrewjFormicAcid: does your setup work some of the time?
15:30.26*** join/#tomcat Kassec (n=Kassec@ves78-2-82-232-204-142.fbx.proxad.net)
15:55.24ekimus_Hmm if I have n tomcats on n physical boxes. What would I like to do to get something like: restart all tomcats, but make sure that n/2 of the tomcats are up at all times. Is some kind of cluster config my only option?
15:57.57*** join/#tomcat Tomasso (n=papito@201.216.202.89)
15:58.25Kassecekimus_: how would you restart them ?
15:59.46Tomassoi changed tomcat version to the latest, when I try to use an app that was running in the old tomcat i get "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' Why is this db connection issue happening?
16:00.21ekimus_Kassec: either thru a shell script on each node. where the node then communicates with the other nodes to make sure it is allowed to restart or by.. I have no idea what else could be good
16:00.54ekimus_Kassec: it doesn't need to restart immediately but it should be reliable that not all servers are down at the same time
16:01.13Kassecekimus_: good luck ;-)
16:01.14Kassecfor a 10 servers cluster, we just have 'sleep X' in our shell ...
16:01.19Kassecoverall, it works
16:01.50Kassecwe know we need up to five minutes to reload a node, we sleep 90 seconds between each ...
16:02.02ekimus_hmm so you just used a heuristic that is somewhat sure to keep some servers up
16:03.05Kassec"overall it works" is enough for us in this case, because we're always having a look at what's happening
16:03.07Kassecor you could have a look at ant's command to get status information do the computation yourself
16:03.48Kassecit depends on how much time you can afford to spend on it ;)
16:04.19*** join/#tomcat kab (n=abarrera@148.229.1.11)
16:04.43ekimus_Kassec: ah so you do something like: restart_servers.sh on a "master" and then just manually keep an eye on restarting (in the simplest form)
16:06.22ekimus_hmm I guess I could do that, I could just prepend a sleep to the restart script and if it goes whacko there's enough time kill it so that not all the nodes go down
16:07.15Kassecthis solution costs you 30 seconds, this is the real advantage of it ;)
16:08.22ekimus_guess I'll go that way. in any case I can just wget a testfile from all remote nodes and if some condition isn't met the restart isn't done. That should be enough, in that case human interaction is required anyway
16:12.03Kassecyou could wait for that condition to be met between each restart, meaning you only restart one node at a time ...
16:12.27Kassecthat would ensure you never have all nodes down
16:12.46Kassecbut could be quite slow to refresh a whole cluster of several nodes with a slow start application !
16:12.53*** join/#tomcat sene (n=sene@unaffiliated/sene)
16:15.36seneI need set the tomcat with apache2 using mod_jk, only that it needs context. Type http://localhost/ijij, must be only http://localhost
16:17.24*** join/#tomcat ries (n=ries@200.110.78.134)
16:17.46ekimus_sene: http://localhost/ijij is the tomcat?
16:18.16ekimus_sene: ah sorry i thought mod_proxy, I don't use mod_jk
16:19.43seneekimus_, I am using the server to respond both on port 8080 as using mod_jk to make a direct connection. Ijij would be the name of my application.
16:20.52ekimus_Kassec: with mod_proxy you can do "RewriteRule ^/(.*) http://tomcatserver/ijij/$1 [P]" to make apache server your app in the root level
16:21.16ekimus_Kassec: you can of course use the ajp protocol too if you use apache2
16:22.19seneekimus_, There is no other solution without using mod_proxy? Since I have a rather complex application that can not use this method. So are digital signatures.
16:23.41ekimus_sene: what do you mean by digital signatures?
16:23.57ekimus_what has ssl to do with that?
16:25.23seneekimus_,
16:25.24seneThe application is not being developed for me. So there is a complex here from 3 institutions involved in development. So the solution to the mod_proxy had already presented and tested and not satisfied because of ssl.
16:27.40ekimus_as I said I don't use mod_jk so can't help you there. I'm on mod_proxy especially since apache2.2 where I found that it can do ajp:// too
16:29.50seneekimus_, Thank .. But the problem is taking the whole door and context of the url of the application without using mod_proxy. Http://localhost now this accessing the application.
16:47.27*** join/#tomcat jwisher (n=jwisher@87-194-191-78.bethere.co.uk)
16:49.03jwisherhello... is it possible to share a session between aliases of a virtual host?  I would like to setup different domain names for different spoken-languages such as en.domain ar.domain nl.domain etc etc, but I don't want the user to have to reloggin if they change their language.
16:52.00*** join/#tomcat dibri (n=gvtjonga@obelix.its-s.tudelft.nl)
16:53.01dibrianyone understand webservices with jax-ws? I made on object in mypackage but netbeans seem to think there is a mypackage.client andworks if I type that, but the .toString method is a complete differnt one :S
16:54.30BULLEdibri: your question dont make that much sense to me
16:55.04BULLEdibri: and, i have no clue on how netbeans do things, my best bet is to read the jee tutorial, its pretty explanatory
16:56.37*** join/#tomcat melter (n=Melter@dyn082.morrill-116.ndsu.NoDak.edu)
16:56.38dibriBULLE: es, I'm not sure how to explain this, it seems netbeans created an output class with the same name, but with no implementatio
16:57.23dibriresult.tostring() nl.tudelft.itss.obelix.gstock.client.GStockDescription@c50d24 <_ :S
16:57.51dibriI have a GStockDescription i package l.tudelft.itss.obelix.gstock with a toString implementation
16:58.47BULLEdibri: i would guess its some generated client code that netbeans generates for you ?
16:59.55isahi, i have a different question: can anyone here help with InitialContext configuration? --specifically are the objects set up in this manner persisted across multiple sessions?
17:00.04isamy info is: tomcat version: apache-tomcat-5.5.25 / java version: 1.5.0_13 / OS: Windows XP Professional Version 2002, service pack 2
17:09.57dibriBULLE: I would guess that too, but why without copying the implementation :S
17:16.56dibribah it's annoying I'm getting the correct info in Java from my webservice, but it appears the jsp client doesn't seem to like it :S
17:17.53*** join/#tomcat mindux (n=mindux@189-47-131-57.dsl.telesp.net.br)
17:18.00*** part/#tomcat mindux (n=mindux@189-47-131-57.dsl.telesp.net.br)
17:22.11*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
17:27.08*** join/#tomcat planta (n=planta@200.175.196.236.adsl.gvt.net.br)
17:27.20*** part/#tomcat planta (n=planta@200.175.196.236.adsl.gvt.net.br)
17:28.25dibriwhoo hoo woks :)
18:04.22*** join/#tomcat fnord (n=fnord@24.151.90.116)
18:04.52fnordafternoon everyone
18:06.10jasonbhi fnord.
18:06.15fnordi'm working with 5.5.25, jvm 1.6.0_03-b05, on Windows, and I keep getting:
18:06.16fnord!!!!!!!!! Does this exist? C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\aim\WEB-INF/app_config.xml
18:06.34fnordis there something I need to do do deal with windows paths instead of unix paths?
18:06.38jasonbThat's pretty weird.
18:06.41fnordthe file definitely exists in that location
18:07.06jasonbWhat I would suggest is: do not install Tomcat in a path that contains spaces, even if the installer wants to put it there.
18:07.19fnordi can see that
18:07.35Kassecc:\tomcat is fine ;)
18:08.00fnordthat's what i've always done, but the client insisted on a specific installer
18:08.18fnordthe \ to /path thing looks odd to me too, is that normal?
18:08.23jasonbfnord: You can still use the installer, and choose the installation path.
18:08.30fnordtrue
18:08.39jasonbfnord: On Windows, yes, that's probably normal, sadly.
18:09.01fnordi remember having to use \\ in config files to deal with escape characters and whatnot
18:20.04fnordyup, reinstalling to c:\tomcat took care of it
18:20.11jasonbYup.  :)
18:20.24fnordseems weird that the default install path would fail that easily though.
18:28.20jasonbShows how much the committers are using what they've given the public.  :)
18:28.24jasonb(on Windows)
18:34.20fnordheh
18:34.30fnordwhy bother if you don't absolutely have to?
18:44.09fnordheheheheh:
18:44.11fnordjava.lang.NoClassDefFoundError: com/sun/tools/javac/Main
18:45.30fnordI am King of Breaking Things today
18:46.50*** join/#tomcat ries (n=ries@200.110.78.134)
18:46.51jasonbWell, you _are_ using Windows.. so..
18:46.57andytfnord - windows uses a messed up filesystem.  that said, i've used the default installer and installed fine to the blahblah/apache foundation/blah directory.
18:48.34*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
18:49.13a4akbahi all
18:53.22*** join/#tomcat gregor_k (n=a@p54A19789.dip0.t-ipconnect.de)
19:00.19*** join/#tomcat qupada (n=qupada@125-236-129-1.broadband-telecom.global-gateway.net.nz)
19:10.37*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
19:19.09*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
19:19.11*** join/#tomcat vinse (n=vinse_@208.253.223.146)
19:21.54*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
19:24.51*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
19:27.28*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
19:31.00*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
19:33.16*** join/#tomcat eripme (i=empire@null.routed.org)
19:33.54eripmehey I'm having an issue with the follwing errors reporting out of the event viewer in windows 2003; The description for Event ID ( 4 ) in Source ( Apache Jakarta Connector2 ) cannot be found.
19:33.59eripmeThe local computer may not have the necessary registry information or message DLL files to display messages from a remote computer.
19:34.02eripmeYou may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details.
19:34.06eripmeThe following information is part of the event:  [jk_isapi_plugin.c (308)]: In HttpFilterProc Virtual Host redirection of www.jawhite.com : 80
19:34.09eripmeI also get this one; [jk_isapi_plugin.c (420)]: HttpFilterProc [/images/Company Profile.pdf] is not a servlet url
19:34.13eripme.
19:34.16eripmeNo idea ... anyone can assist?
19:34.52*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
19:45.14melterdoes anyone know of some detailed documentation for getting cgi apps running in tomcat 6?
19:49.58pfntomcat is weak on documentation
20:01.40randrewj<PROTECTED>
20:10.53melterrandrewj: i already did that, but i'm getting a "privileged" error message
20:11.23melterfrom my research, i'm guessing i need to put privileged=true somewhere, but i don't know where
20:12.34melterare there any official apache forums?
20:14.00randrewjmelter: searchable archives: http://marc.info/?l=tomcat-user&r=1&w=2  http://marc.info/?l=tomcat-dev&r=1&w=2
20:14.41randrewjmelter: what is the error and what are you trying to do that causes it?
20:15.19melterI'm trying to get MapServer and TileCache running
20:15.32melterthey run in 5.0 just fine, but everything is different in 6.0
20:15.40eripmeI'm dying for a resolution for my issue
20:15.43eripmeI've never seen it before :\
20:16.14melterCaused by: java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.CGIServlet is privileged and cannot be loaded by this web application
20:16.24randrewjah
20:16.40*** join/#tomcat a4akb1 (n=a4akb@62.215.156.215)
20:17.15melteri assume i need a context.html somewhere with privileged="true", but i can't seem to find any information about doing this
20:17.59melter* context.xml
20:18.44randrewjhttp://tomcat.apache.org/tomcat-6.0-doc/config/context.html
20:18.53*** join/#tomcat tomgato (n=tomgato@200.119.3.204)
20:19.11*** join/#tomcat prgrmr (n=prgrmr@bzq-79-182-133-252.red.bezeqint.net)
20:19.48randrewjmelter: you might be depending on autodeploy behavior for your context. I'd recommend specifying your context in server.xml, but there are those who will tell you that is wrong. : )
20:19.56*** join/#tomcat a4akb1 (n=a4akb@62.215.156.215)
20:20.47a4akb1jasonb:  hi
20:25.00melteri created META-INF/context.xml with docBase="tilecache" and privileged="true" and i still get the same error
20:31.23tomgatoHi people.. I need a little bit of help running (apache 2.2.6  tomcat 5.5 with mod-jk on dedian testing) I configure all of them.. looks fine..  .jsp files are working but servlets are not... I wrote a simple servlet, and configure the CLASSPATH and it works.. so servlets are "fine". My problem is, Im not a java developer but I migrate some webapp's from an old version to my new configuration (apache-tomcat-modjk), can somebody plz give an idea about odt
20:31.24tomgatos (ok, pdf or doc), or a tip about what kind of thing should I have (configured) to be able to migrate.
20:36.25randrewjmelter: heheh. maybe you've got a $CATALINA_HOME/conf/[enginename]/[hostname]/[some_context].xml file. if you're using autodeploy maybe your app's docBase should be outside of appBase.
20:37.29randrewjtomgato: how old is old?
20:38.16tomgato...I knew it.
20:38.43tomgato"old".. I guess
20:40.04*** join/#tomcat prgrmr (n=prgrmr@bzq-79-182-133-252.red.bezeqint.net)
20:40.07tomgatorandrewj, I know.. looks like an stupid question.. and probably Im not thinking "clear".. and sure enough my english sucks!
20:40.34tomgatoBut I need help.
20:42.43tomgatoOk, Have u seen that movie where the american guy stays at the door of the monastery..
20:43.08tomgato.. im gonna stay here till I can fix it.
20:45.02tomgato..like stones wait for the river... or like dd hope that Canonica broke!
20:47.14meltertomgato: do you have a RELEASE-NOTES file?
20:56.52tomgatomelter, no.. I dont.
20:57.40randrewjtomgato: sometimes if you hit an invalid uri, tomcat will tell you it's version in the error
21:01.32meltertomgato: do you have any identifying files in the root directory?
21:18.09*** join/#tomcat khelll (n=khelll@91.186.226.59)
21:18.13khelllhello
21:18.34khelllanybody here?
21:19.13khelllam trying to run https and followed the instructions in the doc, but it didnt work!
21:20.27*** join/#tomcat Administrator (n=chatzill@91.186.226.59)
21:20.38Administratorhello
21:21.45melterkhelll: read the topic
21:23.42khellltc: 6.0.14 \jdk1.6.0_03 winxp profesional  sp2
21:26.27jasonbkhelll: Step by step verbose documentation on that is in our new book Tomcat: The Definitive Guide, 2nd Edition (O'Reilly), covering Tomcat 6.
21:26.55khelllwhere is that
21:27.21melterjasonb: you work for o'reilly?
21:27.47jasonbmelter: I'm an O'Reilly author.  I guess that qualifies.
21:28.07jasonbmelter: I don't work full time for them if that's what you're asking.  :)
21:28.55melteri was talking to a colleague about o'reilly at lunch today
21:29.05khelllheeeeeeeeeeelp
21:29.10melteri was wondering what ever happened to safari?
21:29.17jasonbIt's still there.
21:29.26jasonbsafari.oreilly.com.
21:29.27melterit seemed like an idea ahead of its time
21:29.34jasonbIt is.. still.
21:30.02melterthat just goes to proquest, which is a big mess
21:30.53khelllanyone to help or what?
21:30.55jasonbhmm, I don't know what proquest is, but when I go to safari.oreilly.com, I see O'Reilly's Safari web site.
21:31.44melterthat's odd, i get forwarded to http://proquest.safaribooksonline.com/
21:32.00jasonbHmm.. I don't.
21:32.17melterlet me try another browser...
21:32.32melternow i'm intrigued
21:35.08melterjasonb: i tried a couple other browsers and they do the same thing
21:35.22randrewjmelter: you may have an institutional subscription
21:35.47melteryeah, it tries to log me in, and i can't log out
21:35.52melteris there a way around it?
21:36.09melterthis proquest thing is a disaster
21:36.30jasonbSet up a web proxy on your home machine and then use that to browse the web.  :)
21:36.30randrewjkhelll: "it didn't work" is not a sufficient problem description
21:36.42melterjasonb: :)
21:37.01khelllUnable to connect, Firefox can't establish a connection to the server at localhost:8443.
21:37.29melterkhelll: what do the log files say?
21:37.34randrewjmelter: it may be a disaster, but it's likely to give you more content free of charge than no-subscription.
21:38.00randrewjmelter: if you can proxy through an IP outside of your institution, that would work
21:39.21melterall the free c#/.net books in the world are of no use to me
21:39.42melterat the very least, it should make it perfectly clear that safari != proquest
21:39.59randrewjkhelll: that suggests either tomcat not running, tomcat not listening on port 8443, or firewall preventing browser connecting to port 8443
21:40.14meltergoing to safari.oreilly.com should give me an option
21:40.54meltersorry for being off-topic :)
21:40.56khellltomcat is running cause i can run another project... i configured it to listen to 8443 in the server.xml
21:41.05khellland my firewall is turned off
21:41.41randrewjkhelll: is tomcat successfully listening on any other port?
21:41.48khelllhow shall i know
21:42.19randrewjkhelll: you will know by the content of server.xml and by having tested
21:42.53randrewjkhelll: a default tomcat server.xml will have a http listener on 8080
21:43.07khelll<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS"/>
21:43.55khellland i restarted the server after configuring it ...
21:44.13khellli worked on tomcat before 2 years... when i was at uni...
21:44.26khellland the funny thing is that i worked on ssl...
21:44.27*** join/#tomcat IIVQ (n=IIVQ@wikipedia/Iivq)
21:44.41IIVQhello
21:45.59IIVQQuestion. I'm new to tomcat. Experienced in "plain" java. I need to learn the basic principles to *understand* (not necessarily write) Tomcat / JSP in a few hours. Where do I look?
21:48.35andytworked with servlets?
21:49.13*** join/#tomcat roue (n=roue@afterthought.ACS.Carleton.edu)
21:49.52IIVQandyt: nope
21:55.30khellli used netstat
21:55.46khelllto watch the ports but i didnt find anyone used by tomcat
22:02.53puckoIIVQ: I would suggest you go to your closest bookstore and pick up this: http://www.oreilly.com/catalog/9780596101060/
22:03.20puckoit's is a very good investment if you're serious about learning tomcat/jsp/servlets
22:03.27IIVQpucko: I wish my closest bookstore would a) be open at 11:05 PM and b) carry such books :-)
22:03.33IIVQbut thx, I'll try tomorrow
22:04.04puckotrust me, it'll save you hours and hours of work.
22:04.04IIVQpucko: that book works for beginners as well?
22:04.07IIVQok
22:05.10puckoyes. it goes from installing & using tomcat and upwards with servlets/jsp and suck
22:05.14puckosuch
22:05.31IIVQok
22:05.34IIVQthx
22:05.51puckoif you want to go deeper in JSP though I'd suggest a book by Hans Bergsten
22:06.17puckohttp://www.oreilly.com/catalog/jserverpages3/index.html
22:06.35puckoit's a bit old but covers pretty much everything you need to know
22:10.16IIVQno, I want the start first
22:10.39isapucko: u got suggestions for books on Liferay?
22:10.46isai'm using LR w/Tomcat
22:11.14isa& the documentation online is not so good, nor do they have an irc channel :(
22:11.27puckono idea about liferay
22:11.35puckohaven't even heard abvout it :)
22:12.07isait's an open source portal dev tool, we're using it for app dev & tomcat as the server, thx anyway
22:12.25BULLEpucko: i like your nick
22:13.19jasonbheh!
22:13.20isapucko: does the book u recommend talk about how to store objects in memory at server start-up?
22:14.02jasonbisa: For learning webapp development, I suggest Java Servlet Programming by Jason Hunter (O'Reilly)
22:14.27jasonbpucko: Yeah, we really need a good wiki, don't we?
22:15.09BULLEi wouldnt mind a good simple wiki either, running on java
22:15.41puckoI like mediawiki, too bad it runs on php only
22:15.44isahuh, what i need to do is webapp dev? thought it was more server configuration..
22:16.17jasonbisa: It depends on what you mean.  Your request is very unspecific.
22:17.27isawell, i have a class that pulls data from a db & stores that data, so i would like for that object to be created when tomcat starts so my Liferay web app can use it
22:17.37isathat make more sense?
22:17.51jasonbisa: Yes, and that's webapp-specific, really.
22:18.35isawow, i've been way off base then :S  i need to go back & look at liferay's documenation, not tomcat (sigh...)
22:19.37isaat least i have some direction now so thx to both of u! :)
22:21.07jasonbYou're welcome.
22:21.26jasonbDon't blame us if we steer you into a tree.  :)
22:24.59isano, no -i take responsibility for my actions :D
22:26.03IIVQpucko: thx
22:26.27IIVQpucko: if you're porting mediawiki to jsp, why not also make it a more generic wiki?
22:27.00IIVQWikimedia will not soon switch to JSP. Many people out there running their own mediawiki's would like some more generic features
22:27.09IIVQsuch as a little more user control
22:27.17IIVQand linkable images :-P
22:28.16IIVQI've been working with mediawiki as a company wiki for over a year now and I've come to hate it more and more. It rules for wikipedia, but not for small or big business wikis. (too bloated for the first, to simple for the latter)
22:37.15IIVQpucko: is it very useful as a beginner to buy the tomcat and the JSP books (from o'reilly) or will tomcat cover JSP in enough detail?
22:40.07puckoI don't think the guide covers JSTL and such (which IMO is very cool stuff)
22:41.18pfnjstl isn't *very* cool stuff
22:41.29pfnbut it's certainly necessary to not write spaghetti garbage in jsp
22:42.58puckothat's the reason I think jstl is so cool. no more garbage in the jsps! ^^
22:50.14jasonbThat in itself is quite cool.
22:52.46jasonbI think the JSTL project should be renamed, and/or merged into the JSP JSR.  It always had a bad project name, IMO.
22:54.58IIVQwhat's JSTL?
22:55.36jasonbExactly!
23:02.12*** join/#tomcat chowells79_ (n=c_wraith@c-24-21-109-55.hsd1.mn.comcast.net)
23:06.50chowells79_Using Tomcat 6.0.14, Debian 4.0, sun jdk 1.6.0_03.  Is there any way to have a servlet run on /, but not every subpath?  <url-pattern>/</url-pattern> doesn't seem to do that.
23:07.55pfnno, set your <welcome-page> to point to /yourServlet
23:08.05pfnand map your servlet to /yourServlet
23:09.18chowells79_Oh.  Sounds obvious.  wonder why I didn't try it.  >_>
23:09.26chowells79_thanks. :)
23:09.27pfnit's not that obvious, imo
23:13.44chowells79_Hmmm.  Seems to not be working as I'd hope.
23:15.19chowells79_relevant chunk of web.xml http://pastebin.com/d674fec08
23:15.34chowells79_/home works correctly
23:15.40chowells79_but I get an error message at /
23:21.14pfnwhat's the error
23:21.45chowells79_404
23:21.49chowells79_http://commie.pwrsrc.net/
23:21.57chowells79_and http://commie.pwrsrc.net/home for the working case
23:22.03chowells79_Yes, it's dumb.  Just a test app. :)
23:22.33pfnI wonder why that is...
23:22.39pfngoogle welcome-file servlet I suppose
23:23.03chowells79_I remember seeing a lot of complaints about it on the tomcat-user mailing list.
23:23.17chowells79_I guess it was never resolved.
23:24.04jasonbThis has always been one of the weakness of the Java Servlet specification: you can't elegantly map a single servlet to just "/" for some reason.
23:24.26pfnsounds like you need a workaround
23:24.34pfnmap your servlet to /index.html
23:24.39pfnand create index.html as an empty file
23:24.43pfnset your welcome-file to /index.html
23:24.49pfnI know that's worked on websphere
23:24.57pfn(tried something similar a long time ago on websphere 6)
23:25.37chowells79_Hmm.  I'm seeing suggestions to just set up an index.jsp with only a <jsp:forward> tag in it.
23:25.41chowells79_I guess that'll work.
23:27.39jasonbThat's really similar to configuring a welcome file though.
23:27.58pfnbah, apple passed on me--at least this group
23:30.23chowells79_well, the jsp:forward thing works.  It's really silly, but it works.

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