IRC log for #tomcat on 20090728

01:07.18*** join/#tomcat wsp4th (n=wperry@adsl-074-167-057-025.sip.jan.bellsouth.net)
01:37.22*** join/#tomcat NickDeNeger (n=none@koppel-12.sshunet.nl)
02:34.30*** join/#tomcat i3lack0p (n=wperry@adsl-074-167-057-025.sip.jan.bellsouth.net)
02:35.18*** join/#tomcat majikman (n=Adam@mail.dohring.com)
02:51.08*** join/#tomcat karstensrage (n=karstens@c-71-202-243-186.hsd1.ca.comcast.net)
02:57.35*** join/#tomcat NickDeNeger (n=none@koppel-12.sshunet.nl)
03:12.46*** join/#tomcat dvayanu (n=another@ppp-88-217-57-245.dynamic.mnet-online.de)
03:15.41*** join/#tomcat km (n=unknown@adsl-75-36-216-251.dsl.pltn13.sbcglobal.net)
04:04.27*** join/#tomcat wsp4th (n=wperry@adsl-074-167-057-025.sip.jan.bellsouth.net)
04:39.55*** join/#tomcat km (n=unknown@adsl-75-55-215-11.dsl.pltn13.sbcglobal.net)
05:30.02*** join/#tomcat shashi_ (n=shashi@122.181.1.158)
05:54.16*** join/#tomcat Theravadan (n=username@ip98-185-224-13.sb.sd.cox.net)
06:10.03*** join/#tomcat mturk (n=mturk@nat/redhat/x-310200bd55c1a9a4)
06:31.59*** join/#tomcat tijn (n=tijn@rev-84.64.222.77.virtu.nl)
06:37.54*** join/#tomcat bhagat (n=bhagat@203.129.255.188)
07:15.50*** join/#tomcat kjkoster5489 (n=kjkoster@233-250-103-145.static.glaslokaal.nl)
07:46.28*** join/#tomcat acarbs12 (n=acarbone@173-9-89-1-NewEngland.hfc.comcastbusiness.net)
07:58.47*** join/#tomcat Vanuatoo (n=Vanuatoo@92.54.192.70)
08:02.46*** join/#tomcat tijn (n=tijn@rev-84.64.222.77.virtu.nl) [NETSPLIT VICTIM]
08:02.46*** join/#tomcat smonte (n=smonte@vipunen.hut.fi) [NETSPLIT VICTIM]
08:02.47*** join/#tomcat pucko (n=andreas@h19n2fls304o253.telia.com) [NETSPLIT VICTIM]
08:05.29*** join/#tomcat Vanuatoo (n=Vanuatoo@92.54.192.70)
09:21.03*** join/#tomcat magentar (n=magentar@ip-94-79-137-93.unitymediagroup.de)
09:24.07*** join/#tomcat al (i=d@niel.cx)
09:48.13*** join/#tomcat BW^- (n=Miranda@89.123.93.69)
09:48.21BW^-is there any way that i can get an event into my java app that /etc/init.d/tomcat5.5 stop has been launched ?
09:49.42kjkoster5489read up on context listyeners.
10:17.52BW^-aha superocol!
10:18.35BW^-how is the contextDestroyed() executed - can i do any de-initiatlization/closing stuff in it, so it takes some seconds? i suppose it is executed in a thread separate of any servlet request's thread there is?
10:19.10kjkoster5489I would not rely on any particular implementation. ;-)
10:20.20BW^-what do you mena?
10:20.33BW^-i'm in tomcat5.5 on debian however.
10:24.20kjkoster5489You app should just use this mechanism to kill off background work and flush buffers, not do clever things that need a separate thread or something.
11:03.43*** join/#tomcat mib_wk3bzw (i=c3d41db3@gateway/web/freenode/x-103180e17f5fbd1a)
11:05.02mib_wk3bzwTomcat: 6.0.20 Java: jdk1.6.0_14 OS: Windows XP
11:05.56mib_wk3bzwmy tomcat crashs on startup. catalina_home and java_home are set and they are correct, there is no log file
11:06.19mib_wk3bzwand i forgot: i have got the zip version
11:06.33mib_wk3bzwso i start it in command prompt with startup
11:07.11mib_wk3bzwthe tomcat window appears and in the next moment it crashs
11:08.04mib_wk3bzwdo you know the problem?
11:13.52*** join/#tomcat Vanuatoo (n=Vanuatoo@92.54.192.70)
11:24.05kjkoster5489mib_wk3bzw: start tomcat from a cmd box and pastebin the error.
11:27.10mib_wk3bzwMicrosoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.  C:\Documents and Settings\Administrator>cd %CATALINA_HOME%\bin  C:\Program Files\apache-tomcat-6.0.20\bin>echo %CATALINA_HOME% C:\Program Files\apache-tomcat-6.0.20\  C:\Program Files\apache-tomcat-6.0.20\bin>echo %JAVA_HOME% C:\Program Files\Java\jdk1.6.0_14  C:\Program Files\apache-tomcat-6.0.20\bin>startup Using CATALINA_BASE:   C:\Program File
11:28.49mib_wk3bzwC:\Program Files\apache-tomcat-6.0.20\bin>echo %CATALINA_HOME%
11:28.49mib_wk3bzwC:\Program Files\apache-tomcat-6.0.20\
11:28.50mib_wk3bzwC:\Program Files\apache-tomcat-6.0.20\bin>echo %JAVA_HOME%
11:28.54mib_wk3bzwC:\Program Files\Java\jdk1.6.0_14
11:28.59mib_wk3bzwC:\Program Files\apache-tomcat-6.0.20\bin>startup
11:29.10mib_wk3bzwUsing CATALINA_BASE:   C:\Program Files\apache-tomcat-6.0.20\
11:29.16mib_wk3bzwUsing CATALINA_HOME:   C:\Program Files\apache-tomcat-6.0.20\
11:29.20mib_wk3bzwUsing CATALINA_TMPDIR: C:\Program Files\apache-tomcat-6.0.20\\temp
11:29.24mib_wk3bzwUsing JRE_HOME:        C:\Program Files\Java\jdk1.6.0_14
11:29.34mib_wk3bzwC:\Program Files\apache-tomcat-6.0.20\bin>
11:29.43mib_wk3bzwso thats what i do
11:30.04mib_wk3bzwand as i already said, the tomcat window apears and disapears....
11:33.07BW^-kjkoster5489: do you mean that the handler should do shutdown work as quickly as possible?
11:33.36kjkoster5489Yes, and don't do unnecaasry things.
11:33.51kjkoster5489mib_sdkfjhsdkjfhsfk: do catalina.bat run isnetad of startup.
11:34.20BW^-kjkoster5489: in my case, this means, set a global variable that will make no new work in the servlet start, and then wait for all currently running work to end.
11:34.25BW^-this should fit the purpose, right?
11:34.52kjkoster5489Why don't use an executor pool that has explicit support for this?
11:35.12BW^-what's that?
11:36.05mib_wk3bzw"catalina.bat start" makes the same thing...
11:42.09mib_wk3bzwok i installed tomcat instead of doing the zip thing and now tomcat works
11:44.52mib_wk3bzwbut by the way i've another question: in the past my tomcat ran already and i made a small jsp. in this jsp i needed some self-written classes. i compiled them with javac and put them into the classes directory, restart tomcat but it could not load my classes... did i something wrong?
12:10.38mib_wk3bzwok i got it know. thanks for your help... bye
12:10.52*** part/#tomcat mib_wk3bzw (i=c3d41db3@gateway/web/freenode/x-103180e17f5fbd1a)
12:14.29*** join/#tomcat acarbs12 (n=acarbone@173-9-89-1-NewEngland.hfc.comcastbusiness.net)
12:24.43*** join/#tomcat mturk (n=mturk@22-104.dsl.iskon.hr)
12:46.46*** join/#tomcat randrew (n=raj@dyn-128-59-53-15.dyn.columbia.edu)
13:03.10*** join/#tomcat dvayanu (n=another@92.42.225.138)
13:05.40*** join/#tomcat lanjelot (n=lanjelot@192.70.106.22)
13:07.00*** join/#tomcat barkbarkmeow (n=barkbark@203.199.213.3)
13:09.16*** join/#tomcat Vanuatoo (n=Vanuatoo@92.54.192.70)
13:09.28lanjelothi all (tomcat-5.5.25 java-1.6.0_14 linux-2.6) i am looking into CVE-2009-0580, i noticed that the MemoryRealm is commented out in a default conf/server.xml
13:09.43lanjelotUserDatabaseRealm is the realm configured insteand
13:10.37lanjelotis MemoryRealm fading away in favor of UserDatabaseRealm
13:13.30lanjelotany dev here?
13:23.07*** join/#tomcat rubIO (i=c82a3d9b@gateway/web/freenode/x-03df4c29fed3b5df)
13:23.10rubIOhi
13:23.23rubIOIf I put a new html to tomcat/webapps/ROOT
13:23.29rubIOdo I need to restart tomcat?
13:30.39kjkoster5489No.
13:31.27*** join/#tomcat NickDeNeger (n=none@koppel-12.sshunet.nl)
13:32.39*** join/#tomcat F|nger (n=finger@lounge.datux.nl)
13:32.39F|ngerHi all
13:33.07F|ngerCan I have a single tomcat instance with multiple application (say 2) using both differetne odbc classes in the shared dir?
13:38.43kjkoster5489You can put the ODBC stuff into the webapps and then it will work.
13:41.13*** join/#tomcat loddafnir (n=mike@193.53.80.81)
13:48.50F|ngerkjkoster5489: thanx, can that lead to the odbc not be available at the moment the application is starting or something ? Or won't that be an issue?
13:49.54kjkoster5489Well, you'd have to configure the data sources not in Tomcat but in the webapp itself.
13:50.02*** part/#tomcat rubIO (i=c82a3d9b@gateway/web/freenode/x-03df4c29fed3b5df)
14:06.08youeTomcat 5.0.28, Java 1.5.0_14, Linux 2.6.18-6
14:06.29youeIs there a way to configure multiple Connectors in a single Tomcat Service so that each Connector can access a subset of the webapps?
14:06.38youeFor example: 1 HTTP and 1 AJP connector.  HTTP connector can access all the webapps that the AJP connector can access, but can also access the admin/manager webapps that the AJP connector can not.
14:06.58kjkoster5489I don't think there is.
14:07.22youeThat's lame.  It's risky to make separate Services for the same webapps.
14:07.27kjkoster5489Why not use a few TOmcat instances instead? Apache can do the delegation.
14:08.39youeIt's important for me to be able to test specific instances of Tomcat through the HTTP connector.
14:08.52youeIf I run multiple instances of Tomcat, I lose that functionality.
14:09.00kjkoster5489Huh?
14:09.12kjkoster5489So you have web apps that depends on eachother?
14:09.22youeI run clusters Apaches in front of clusters of Tomcats.
14:09.55youeIf I have 2 separate Tomcats, I can't look at the one with the problem if it's a separate instance.
14:10.10youeTo verify the webapps are still functioning.
14:10.16youeRight?
14:10.38kjkoster5489Well, unless your monitoring would just patch straight into the Tomcat and bypass Apache.
14:10.46youeThat is correct.
14:10.58kjkoster5489So ... do that, if it is for monitoring.
14:11.04kjkoster5489Or use Java-monitor. :-)
14:11.32youeI do have monitoring to go straight into Tomcat right now.
14:11.43youeAnd I use both the HTTP and AJP connectors in a single Service.
14:11.58youeBut I want to be able to access the manager and admin webapps in that Service.
14:12.16youeFor security concern, I want to prevent AJP from being able to see those webapps.
14:12.31youeAdditionally, I don't have JkMounts for those webapps.
14:12.52youeAnd I'll also have some Allow,Deny rules set up for those URIs.
14:13.01youeBut it's still a security concern of mine.
14:13.59youeThe best I can think of is running separate Services and duplicating the Engines one for HTTP and one for AJP.
14:16.03youeCan you think of a better way?
14:16.38kjkoster5489I deleted the admin and manager webapps.
14:16.58kjkoster5489They don't do anything I cannot do better from the command line.
14:17.06kjkoster5489So I cannot help you there. :)
14:17.55youeWell, it could be any set of webapps.
14:18.52kjkoster5489*shrug* Sure>
14:19.34kjkoster5489Fact remains that I solve this access problem by 1) not having manager-type apps and 2) making webapps so that they can run anywhere Apache can see them.
14:22.35youeBeen trying to figure this out for a week.  I figured it was a shot in the dark, but I wanted to make sure.
14:22.39youeThank you for your help.
14:24.38*** join/#tomcat Sembiance (n=Sembianc@permafrost.telparia.com)
14:25.25SembianceHello. I have a set of cookies that when set cause tomcat to deny all requests, closing connections without sending any data back to the server, and not logging anything, including nothing in the access log.
14:25.52SembianceI'm trying to determine what the problem is, and was wondering if anyone knew how I could better debug tomcat, or set breakpoints in it, or what not to try and figure out why.
14:28.32youeEclipse is a java based IDE that has good remote debugging.
14:29.16youeHowever, you'll need to setup your webapps source in Eclipse and connect remotely to your Tomcat installations.
14:29.28youeYou'll also need to start Tomcat with remote debugging enabled.
14:30.21youeThis may help setting up remote debugging in Tomcat: http://wiki.apache.org/tomcat/FAQ/Developing
14:48.35*** join/#tomcat dorimar (n=quassel@32.97.110.59)
14:52.13*** join/#tomcat Gordon_Schoenmak (n=chatzill@dhcp-077-250-077-055.chello.nl)
14:53.21Gordon_BeHello, im having a problem with tomcat
14:54.24Gordon_BeIs there anybody in here?
14:54.45kjkoster5489Well, if you had asked your question, we might have answered it already.
14:55.00kjkoster5489See also channel topic.
14:55.43Gordon_BeHaha, alright then.
14:57.12*** join/#tomcat puskar (n=puskar@PUSKAR.ES.ITS.NYU.EDU)
14:59.46Gordon_BeI'm not even sure what Tomcat is, what it's used for or why the h*ll it's on my computer. But since this morning I've my internet browser start page has changed to the  'Congratulations, you've installed Tomcat'-page. Even though my browser is set to start with google. I hope you can help me with this.
15:00.45kjkoster5489Does Tomcat run on your machine?
15:01.17Gordon_BeI dont think so
15:01.28kjkoster5489What URL in the the bar?
15:01.59Gordon_Begoogle.nl
15:02.59Gordon_Beaccording to the task manager there is no application or proces running that is called Tomcat
15:03.07kjkoster5489Proxy settings?
15:03.46kjkoster5489(and no, this is not a Tomcat issue, Windows more likely)
15:03.56Gordon_BeThat could have something to do with it. yesterday i've installed FoxyProxy for mozilla firefox
15:06.19Gordon_BeOh in that case, i'm sorry to have bothered you with yet another one of Windows' flaws
15:07.51Gordon_BeDo you think, deinstalling the Proxy-AddOn and rebooting completely would help?
15:10.48kjkoster5489I don't use Windows. You tell me.
15:11.21Gordon_BeI'll let you know then, thanks for the help.
15:15.46*** join/#tomcat Gordon_Be (n=chatzill@dhcp-077-250-077-055.chello.nl)
15:15.50*** join/#tomcat dorimar (n=quassel@32.97.110.59)
15:25.45Gordon_BeWell that didn't work. Windows Vista Home Premium, Java (TM) 6 Update , don't know about Tomcat. Could you give me any advise on how to remove Tomcat. Since I have not installed it actively and do not know anything about the program I am unsure on how to do this and whether I should remove it all.
15:48.59*** join/#tomcat km (n=unknown@66-7-254-75.static-ip.telepacific.net)
16:24.26randrewyoue: it's a bit crazy, but you could add a request header with mod_rewrite or mod_headers to distinguish the requests which come through apache httpd. you'd have to sort out any interaction between mod_rewrite and mod_proxy_ajp (or whatever you are using to pass requests to tc).
16:27.12*** join/#tomcat Anarch (n=w3@elrond.hsl.washington.edu)
16:34.08youerandrew: I want the special webapps to be only available through the HTTP connector of Tomcat so I'm preventing all requests to these from Apache with Allow,Deny for security.
16:39.07youeThis is sufficient for now.
16:48.00*** join/#tomcat Theravadan (n=username@ip98-185-224-13.sb.sd.cox.net)
17:07.09*** join/#tomcat azlev (n=ze@200.234.206.72)
17:13.34*** join/#tomcat benn_d (n=benn_d@c-67-176-147-20.hsd1.in.comcast.net)
17:20.17*** join/#tomcat jasonb (n=jasonb@75-144-23-117-SFBACA.hfc.comcastbusiness.net)
17:37.59*** join/#tomcat r0bby (n=wakawaka@guifications/user/r0bby)
17:38.58*** join/#tomcat dvayanu (n=another@ppp-88-217-57-245.dynamic.mnet-online.de)
18:14.48*** join/#tomcat Lamo (n=jeremy@12.236.241.123)
18:18.29LamoI've installed Tomcat on my RHEL web server following this guide: http://www.mad09.net/solr-install-solr-on-centos/ and when go to localhost:8080 I get the Tomcat page. However I cant seem to get solr to work localhost:8080/solr gives a 404. I created the dir /opt/solr and copied all the files it says too.
18:19.35Lamohttp://nopaste.com/p/a9mmM0G1hb <---my /etc/init.d/tomcat
18:19.55Lamoeverything is located in /opt
18:52.03*** join/#tomcat shad0w_crash (n=shad0w_c@ip3e83d063.speed.planet.nl)
18:57.57*** join/#tomcat dorimar (n=quassel@32.97.110.59)
19:17.10shad0w_crash<PROTECTED>
19:17.21shad0w_crashdid anyone mention this?:)
19:19.43nDuff*shrug* -- ports that don't fit in an unsigned short are unsupported, thus their behavior is undefined
19:20.49shad0w_crashbut i think it's nice because there wasn't an option to disable the whole shutdown thing :)
19:36.25*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
19:58.27*** join/#tomcat user01 (n=user01@91-64-207-27-dynip.superkabel.de)
20:32.25randrewLamo: try  localhost:8080/solr/
20:32.37*** join/#tomcat da_krowa (i=Miranda@chello087207037180.chello.pl)
20:33.47*** part/#tomcat randrew (n=raj@dyn-128-59-53-15.dyn.columbia.edu)
20:33.47Lamorandrew, thanks i got it. forgot to rename the .war file >_>
21:32.42*** join/#tomcat yassine_ (n=yassine@p4FFE50E9.dip.t-dialin.net)
21:43.07*** join/#tomcat perr0 (n=dalanis@206.55.176.26)
22:20.39*** join/#tomcat Bollinger (n=peter@79-74-250-250.dynamic.dsl.as9105.com)
22:25.47Bollingertomcat 6.0.20, Sun Java 1.6.0_13-b03, Ubuntu 9.04:  How can I configure logging so the output only uses one line? (catalina.out is my first priority) double line log files are horrible.
22:32.43*** join/#tomcat NickDeNeger (n=none@koppel-12.sshunet.nl)
22:42.31*** join/#tomcat km (n=unknown@66-7-254-75.static-ip.telepacific.net)
22:43.38jasonbBollinger: You're saying that when your Tomcat logs something, it logs two lines of log output for each thing it tries to log??
22:51.08Bollingerjasonb, when my app logs something using jdk logger, I see 2 lines in catalina.out  e.g.  Jul 28, 2009 11:34:49 PM com.mycompany.JdkLogger info
22:51.08BollingerINFO: headers javax.mail.internet.InternetHeaders$matchEnum@34342fd2
22:51.15Bollingeropps didnt mean to spam
22:53.17jasonbI think most people just use log4j inside their webapp and log to a different file.. completely bypassing the jdk logger.  That's how most people end up with a log file that behaves how they want it to behave.
22:55.13BollingerI think thats what I'll end up doing, as setting the formatter in the logging.properties to a custom jdk log formatter does not seem to work. (and I use the formatter elsewhere successfully).. Logging is such a PITA
23:07.21*** join/#tomcat princezuda (n=chatzill@pool-173-51-81-233.lsanca.fios.verizon.net)
23:07.24princezudajoin #Apachefriends

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