IRC log for #tomcat on 20080911

00:28.09*** join/#tomcat juan--d-_-b (n=juan-d-_@unaffiliated/juan--d--b/x-561435)
00:31.24*** join/#tomcat kim0 (n=kimoz@41.233.104.156)
00:35.40*** join/#tomcat roadt (n=roadt@61.191.27.34)
00:36.17*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
00:46.26*** part/#tomcat juan--d-_-b (n=juan-d-_@unaffiliated/juan--d--b/x-561435)
01:21.43*** join/#tomcat keenerdog (n=kdog@cpe-66-69-81-195.satx.res.rr.com)
01:49.56*** join/#tomcat karstensrage (n=karstens@76.21.8.74)
03:17.14*** join/#tomcat acidjnk (n=have@pD9509DE0.dip0.t-ipconnect.de)
03:33.43*** join/#tomcat gottadoit (n=gottadoi@unaffiliated/gottadoit)
03:37.54*** join/#tomcat Duckydapp (n=ducky_sp@70.231.46.95)
03:38.14DuckydappTomcat 6, java 6, windows 32
03:38.43Duckydapphi, is there anyway you can evaluate a JSP expression inside a say TagSupport class?
03:39.23Duckydappfor example I want to evaluate the string "<%= blah %>", how to do it inside the code
03:52.49*** join/#tomcat kanai (n=kanai@124.32.114.226)
04:06.31*** join/#tomcat cppexpert (n=cppexper@c-24-130-62-198.hsd1.ca.comcast.net)
04:09.38cppexpertHi guys. I have a question about log4j. For some reason my log output duplicates if I restart my application. If I restart it again I will have 3 same lines per each call of "Logger.getLogger(clazz).fatal(sError)". Why does it happen ?
04:10.16cppexpertJAR of log4j resides in Tomcat library folder.
05:09.20*** join/#tomcat roadt (n=roadt@61.191.27.34)
05:11.14*** join/#tomcat shashi (n=shashi@125.16.213.2)
05:29.17*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
06:02.55*** join/#tomcat loiseau (n=marius@dslb-084-063-033-195.pools.arcor-ip.net)
06:11.42*** join/#tomcat rhonabwy (n=rhonabwy@dslb-084-057-029-150.pools.arcor-ip.net)
06:13.47*** join/#tomcat magentar (n=magentar@ip-81-210-151-106.hsi.iesy.net)
06:14.18*** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-56-206.dynamic.mnet-online.de)
06:18.38*** join/#tomcat jfclere (n=jfclere@57.79.66.141)
06:20.47*** join/#tomcat bindaas (n=chatzill@59.94.101.221)
06:22.55*** join/#tomcat magentar (n=magentar@ip-81-210-151-106.hsi.iesy.net)
06:26.24*** join/#tomcat mesut (n=power@tuxhacker/mesut)
06:41.08*** join/#tomcat barnum (i=pt@disgruntled.sysadmins.com)
06:49.08*** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-56-206.dynamic.mnet-online.de)
07:10.10*** join/#tomcat Bollinger (n=peter@88-105-163-210.dynamic.dsl.as9105.com)
07:16.07*** join/#tomcat power (n=power@tuxhacker/mesut)
07:22.11*** join/#tomcat mesut (n=power@tuxhacker/mesut)
07:24.49*** join/#tomcat kim0 (n=kimoz@213.131.86.196)
07:37.15*** join/#tomcat kjkoster5489 (n=kjkoster@233-250-103-145.cust.glaslokaal.nl)
07:39.12*** join/#tomcat power (n=power@tuxhacker/mesut)
07:43.42*** join/#tomcat keenerdog (n=kdog@cpe-66-69-81-195.satx.res.rr.com)
07:59.59*** join/#tomcat loiseau (n=marius@dslb-084-063-033-195.pools.arcor-ip.net)
08:01.50*** join/#tomcat power (n=power@tuxhacker/mesut)
08:02.37*** join/#tomcat keenerdo_ (n=kdog@cpe-66-69-81-195.satx.res.rr.com)
08:05.16*** join/#tomcat Sebboh (n=hobbes@ip68-13-127-183.om.om.cox.net)
08:07.59Sebbohhi.  Tomcat 6.0.16 on Sun Java 1.6 on Debian Linux.  Question: my context is taking up 100% cpu usage.  How can I identify where?
08:29.53*** join/#tomcat Woufeigh (n=woufeigh@229.38-65-87.adsl-static.isp.belgacom.be)
08:35.51kim0Hi guys, I am deploying atlassian crowd inside tomcat. I am getting outOfMemory errors like: http://fpaste.org/paste/5941
08:36.06kim0I am totally new to tomcat and java. Could someone please help ?
08:36.43*** join/#tomcat vikumar (n=Vimal@59.160.127.177)
09:02.10kjkoster5489Sebboh: hook up jconsole and see what threads are busy all the time.
09:02.49kjkoster5489kim0: http://java-monitor.com/forum/showthread.php?t=30
09:03.40Sebbohkjkoster5489, hmm, I tried that last night.. I wasn't able to reach any conclusions..  What I'd really like is to see a stack trace for each thread..  ?
09:04.41kjkoster5489Sebboh: on the threads tab you can click on each thread to see thge stack trace.
09:04.59kjkoster5489You can also dump the stack with a signal. Kill -somethio
09:05.06kjkoster5489kill -something, but I forget which one.
09:05.35kjkoster5489kim0: let me know if that answers your question.
09:05.51Sebbohkj, cool, thanks for the tips.
09:06.10kim0kjkoster5489: Thanks ... I have given java Mx2048M and it took longer but still crashed
09:06.23kim0kjkoster5489: closing other apps now .. and giving it 3GB
09:06.39kjkoster5489kim0: sounds more like you have a memory leak.
09:06.57kim0kjkoster5489: It is a commercial application (atlassian crowd)
09:07.10kjkoster5489kim0: so?
09:07.17kjkoster5489They don't leak?
09:07.25kim0so .. I am presuming it's not as bad :)
09:07.49kim0such an error would be so easy to catch, right!
09:07.56kim0detect that is ..
09:10.54kim0kjkoster5489: Last line where it burns a lot of CPU .. and eventually crashes is:
09:11.09kim0<PROTECTED>
09:11.42kjkoster5489kim0: one line from a stacktrace is pointless. Please pastebin the whole thing.
09:11.52kim0that's not a stacktrace
09:12.00kim0it's just catalina.out
09:12.36kim0kjkoster5489: crap ... crashed again
09:12.43kim0kjkoster5489: Here's the stack http://fpaste.org/paste/5941
09:14.29kjkoster5489Are you trying to set up a database?
09:14.35kim0kjkoster5489: yes
09:14.38kjkoster5489...setup/setupdatabase.actio
09:14.41kjkoster5489n
09:14.44kim0the application is setting up a DB
09:14.48kim0hsqldb
09:14.53kjkoster5489Are you sure the db can be reached?
09:15.05kim0actually no ... it's an hsqldb
09:15.09kim0and I never used one of those
09:15.16kim0I have no idea how to reach it
09:15.28kim0I was assuming it's internal only ?!
09:15.34kim0like embdedded in the app
09:15.38kjkoster5489They are pretty much idiot-proof. It's just a file with the SQL statements in it.
09:16.01kim0kjkoster5489: Do you think things would be better if I switch to postgresql ?
09:16.06kim0It is an option in the app
09:16.11kim0I just thought hsqldb is easier
09:16.24kjkoster5489No idea why it would crash the way it does.
09:16.48kjkoster5489You could try postgres. You'll want to run a normal database instead of hsqldb anyway.
09:16.59kim0Yeah ..
09:17.11kjkoster5489Also, check the Atlassion people. It's a commercial app ...
09:17.25kim0I'm just evaluating it .. no support yet
09:29.26*** join/#tomcat mesutt (n=power@tuxhacker/mesut)
09:36.17*** join/#tomcat kanai_ (n=kanai@124.32.114.226)
09:43.30*** join/#tomcat power (n=power@tuxhacker/mesut)
09:44.42*** join/#tomcat mesut` (n=power@tuxhacker/mesut)
11:24.47*** join/#tomcat bindaas (n=chatzill@59.94.99.181)
12:13.52*** join/#tomcat bindaas (n=chatzill@59.94.99.181)
12:47.10*** join/#tomcat randrew (n=raj@dyn-128-59-53-165.dyn.columbia.edu)
13:29.45*** join/#tomcat cgp_-_ (n=chatzill@165.215.99.245)
14:04.13*** join/#tomcat aje (n=aj@itersys.dk)
14:04.16ajehi there
14:04.28ajei am running a jruby on  rails application in a tomcat 6.0.18 installation.
14:04.38ajethe app resides in http://localhost/appname
14:04.53ajenow, i'd like to move the application to http://localhost
14:04.57aje(on port 8080.)
14:05.10ajehow should i do that? i want to skip the /appname part for running the application.
14:05.15ajewhats best practice in this field?
14:06.46aje(btw, it's OS X 10.5.4 and java 1.5.)
14:09.50MHSLaje, rename your webapp directory name to ROOT
14:10.14ajeokay...
14:10.19ajeisn't that a bit ugly? :/
14:11.41MHSL?
14:12.02MHSLthat's the only way to do it, unless you create a ROOT.xml context file to point to your webapp directory
14:12.28ajewhere should i place that ROOT.xml file then?
14:12.34MHSLbut you may need to place your webapp directory outside of your appBase directory
14:12.53MHSLaje, <CATALINA_HOME>/conf/<Engine>/<Host>
14:13.00MHSLaje, e.g. conf/Catalina/localhost
14:14.42ajehave you got nice guide on how to do that?
14:14.56ajeor any example installation?
14:15.12ajeactually, it would be more appropriate to make a new listener on port 80 and run the webapp on that port.
14:15.29ajeso that localhost:80 will run the application residing in webapps/webapp
14:15.44ajeas the webapp will have to go into production sometime.
14:29.38*** join/#tomcat magentar (n=magentar@ip-81-210-151-106.hsi.iesy.net)
14:34.55MHSLaje, you meant you want to be able to access http://localhost which will point to webapp residing on webapps/webapp?
14:35.10MHSLaje, you can read Context documentation on tomcat website
14:35.46MHSLaje, basically the name of the context file will be the context path, so ROOT context path will refer to /
14:36.21MHSLaje, if you want to configure tomcat to listen on port 80, then you just need to change the port in tomcat server.xml
14:41.05ajewell, what is want is to configure tomcat to run on port 80 and run my webapp in http://localhost:80/
14:41.10aje(for production.)
14:43.33*** join/#tomcat Bollinger (n=peter@88-105-163-210.dynamic.dsl.as9105.com)
14:46.49ajebtw, renaming webapp into ROOT causes the server to lose heap space.
14:52.05*** join/#tomcat bwr (n=bwr@64.47.121.98)
14:53.35*** join/#tomcat loiseau (n=marius@dslb-084-063-033-195.pools.arcor-ip.net)
14:54.08MHSLaje, what do you mean?
14:54.28MHSLaje, renaming webapp? which webapp? you mean webapps or your webapp directory?
14:55.14ajeno... i'll try once more:
14:55.29aje1) i have a jruby on rails application packed in meeho.war.
14:55.48aje2) i'd like to run that application in tomcat on localhost:80 rather than localhost:8080/meeho
14:56.18ajewhen i deply the application in tomcat's webapp dir, the application is automacially deployed to the url http://localhost:8080/meeho/
14:56.57ajebut since i need to run meeho.war as the main application on the server, i'd like to run it on http://localhost:80 and skip the ':8080/meeho' part.
14:57.42ajeok?
14:57.54Sebbohwe understand perfectly. :)
14:58.21ajeso...
14:58.37Sebbohscroll up.
14:58.47SebbohSorry, I'm being rude.  It's late. :(
14:58.58ajehmmm, i don't know what to say. :/
14:59.18Sebbohfirst the 8080 --> 80 part, that's easy.
14:59.27ajeyeah.
14:59.49Sebbohfind server.xml and edit that..  there's a line that contains the text 8080. :)
15:00.03ajebut if i rename the application (located in $TOMCAT_HOME/webapps/meeho to $TOMCAT_HOME/webapps/ROOT) then i can't load it.
15:00.12ajetomcat goes crazy -- and the application is not loaded.
15:00.27ajei can fix the port part.
15:00.46MHSLaje, rename meeho.war to ROOT.war
15:01.06MHSLaje, you really need to read tomcat documentation more
15:01.28bwrHi, I am trying to configure the JNDIRealm on tomcat to just connect with the user and password that the user enters and determine if it is a valid user if the bind is successful. I am trying to configure the manager app to use the JNDIRealm to test wether i have the JNDIrealm setup correctly. But I don't really understand either how to setup the JNDIRealm or how to change the manager app to use the JNDIRealm. There is also an issue that the manager app is looking
15:01.29SebbohI've never tried moving a 'context' (that's what a webapp is called) while it's running.  Have you checked out the manager interface?  http://localhost:8080/manager/html you'll have to configure a password.  (If you view that location, it will give you directions on how to do that.)
15:02.57MHSLthere is no need to do that, just rename the war file to ROOT.war
15:03.10MHSLthen your context path for your webapp should become /
15:03.28MHSLhence you should be able to access it via http://localhost (assuming the port 80 has been configured)
15:03.59ajethen it stalls :/
15:04.04MHSLbwr, what issue? your message was cut off
15:04.11bwroh
15:04.14MHSLaje, don't rename the directory, but rename the war file, and check the log
15:04.14ajeif i deploy the application using meeho.war it loads perfectly.
15:04.23bwrThere is also an issue that the manager app is looking for a "manager" role and I don't care about roles. Any assistance anyone can provide would be much appreciated.
15:04.27bwrsorry.
15:04.32SebbohNo need for what?  To undeploy the other copy of his app? ...
15:04.33MHSLaje, do you have an existing ROOT directory on the same directory where you deploy your war file?
15:04.42ajenope, i renamed that dir.
15:05.14MHSLaje, ok, so you renamed ROOT to something else, and you renamed your meeho.war to ROOT.war?
15:05.19ajeyep.
15:05.36ajeSep 11, 2008 5:05:22 PM org.apache.catalina.core.StandardWrapperValve invoke
15:05.36ajeSEVERE: Servlet.service() for servlet default threw exception
15:05.36ajejava.lang.OutOfMemoryError: Java heap space
15:05.37MHSLaje, and please post your log, cant really say anything just by seeing you said "stall"
15:05.55MHSLaje, restart tomcat
15:06.48MHSLbwr, to be able to access the manager webapp, you need a manager role in your tomcat-user.xml and assign a user to that manager role, otherwise you cant access the manager webapp
15:07.47MHSLbwr, you may also want to read this page http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html
15:08.05bwrMHSL: I am trying to make the manager app use the JNDIRealm instead
15:08.16bwrI want to remove the role requirement
15:08.23bwrI only want it to check for a valid user
15:09.08MHSLbwr, then you need to change the manager webapp web.xml
15:09.09bwrI have been reading the realm-howto at apache
15:09.29*** join/#tomcat seshf (i=kvirc@web.hesgdv.de)
15:30.16bwrso is it possible to define the user's role in the tomcat-users file and check the user/password using ldap?
15:55.10MHSLbwr, i dont think you can mix both
15:57.24*** join/#tomcat odin_ (n=dlm@host86-142-13-0.range86-142.btcentralplus.com)
16:21.19*** join/#tomcat Stefan_ (n=Stefan@ppp-93-104-116-188.dynamic.mnet-online.de)
16:21.34*** part/#tomcat Stefan_ (n=Stefan@ppp-93-104-116-188.dynamic.mnet-online.de)
16:25.53*** part/#tomcat rabbit7 (i=rabbit7@stat.siff.org)
17:01.01*** join/#tomcat mesut (n=power@tuxhacker/mesut)
17:04.30*** join/#tomcat Stefan_ (n=Stefan@ppp-93-104-116-188.dynamic.mnet-online.de)
17:04.50*** part/#tomcat Stefan_ (n=Stefan@ppp-93-104-116-188.dynamic.mnet-online.de)
17:14.24*** join/#tomcat xspager (n=chatzill@20151050005.user.veloxzone.com.br)
17:19.37*** join/#tomcat Sebboh (n=hobbes@ip68-13-127-183.om.om.cox.net)
17:29.41*** join/#tomcat kim0 (n=kimoz@41.233.104.156)
17:32.02*** join/#tomcat dogmeat (n=Bob@unaffiliated/dogmeat)
17:37.15*** join/#tomcat p_masho (n=mash@84-45-225-28.no-dns-yet.enta.net)
17:48.22*** join/#tomcat bindaas (n=chatzill@59.94.100.115)
17:51.37*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
17:56.17*** join/#tomcat Necker (n=Necker@0x50c4f3e2.ronxx1.dynamic.dsl.tele.dk)
17:58.19*** join/#tomcat vinse (n=vinse_@208.253.223.146)
18:00.14*** join/#tomcat mesut (n=power@tuxhacker/mesut)
18:37.09*** join/#tomcat squiddle (n=squiddle@pD9E4B316.dip0.t-ipconnect.de)
19:09.35bwrOk, I think i am getting close.
19:12.57bwrI am trying to setup JNDIRealm. This is my setup and the error i am seeing. http://rafb.net/p/8JbH9Q39.html
19:13.36bwrI am trying to use the "Bind Mode" described http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JNDIRealm
19:20.19bwrAny ideas?
19:29.06bwrCan no one point me in the right direction? :/
19:35.23*** join/#tomcat yassine_ (n=yassine@p54BB53A5.dip.t-dialin.net)
19:52.12bwrSorry, I am on debian testing, with apache tomcat 6.0.18
19:52.36bwrjava version "1.5.0_16"
19:56.15*** join/#tomcat kim0 (n=kimoz@196.219.88.16)
20:19.46*** part/#tomcat randrew (n=raj@dyn-128-59-53-165.dyn.columbia.edu)
21:49.12*** join/#tomcat da_krowa (n=Miranda@chello089077099221.chello.pl)
21:50.49*** join/#tomcat roue (n=roue@afterthought.ACS.Carleton.edu)
21:53.35*** join/#tomcat MadHosoi (n=madhosoi@84.76.222.197)
21:59.27*** join/#tomcat mithraic (n=mithraic@dyn-160-39-19-165.dyn.columbia.edu)
22:10.12Hellaenergyanyone here gziping their catalina.out*'s?
22:10.21Hellaenergywhen rotating?
22:10.36Hellaenergyor using logrotate?
22:12.49*** join/#tomcat acidjnk (i=acid@pD9509DE0.dip0.t-ipconnect.de)
22:26.53*** join/#tomcat Internat (n=nf@123-243-184-161.static.tpgi.com.au)
23:34.44MHSLHellaenergy, use log4j instead, if you use logrotate, you have to restart tomcat when rotating log file, but you can use logrotate or cron job to zip your catalina.out
23:47.30*** join/#tomcat da_krowa (n=Miranda@chello089077099221.chello.pl)

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