IRC log for #tomcat on 20090918

00:18.14*** join/#tomcat ibot (i=ibot@rikers.org)
00:18.14*** topic/#tomcat is Stable versions: 6.0.20, 5.5.28, 4.1.40. Newbies use the official binary from tomcat.apache.org, or an RPM package from http://www.webdroid.org/archives/tomcat-package. Check your Tomcat logs before you ask for an answer. SLOW MOTION CHANNEL (we all have jobs & kids): Ask your question including your TC, Java, & OS versions, then wait; check back often for answers.. Use mod_proxy_ajp, not mod_jk
00:32.10jasonbFor those of you who have asked me in the past if I have a blog, and got a no answer, things change:
00:32.11jasonbhttp://blogs.mulesoft.org/2009/09/dont-you-have-a-blog/
00:32.57*** part/#tomcat wyvern` (n=wyvern@64.244.66.2)
01:36.05*** join/#tomcat benn_d_ (n=benn_d@c-67-176-147-20.hsd1.in.comcast.net)
01:41.40*** join/#tomcat l3v0n_ (n=l3v0n@p54BD60F3.dip.t-dialin.net)
01:46.42*** join/#tomcat benn_d_ (n=benn_d@c-67-176-147-20.hsd1.in.comcast.net)
02:10.44*** join/#tomcat karstensrage (n=karstens@c-71-202-243-186.hsd1.ca.comcast.net)
03:04.50*** join/#tomcat benn_d_ (n=benn_d@c-67-176-147-20.hsd1.in.comcast.net)
03:37.12*** join/#tomcat orionheroku (n=orionher@dsl081-064-072.sfo1.dsl.speakeasy.net)
03:54.23*** join/#tomcat acidjnk (i=acid@pD950A3C0.dip0.t-ipconnect.de)
04:24.36*** join/#tomcat bhagat (n=bhagat@218.248.24.18)
04:44.32*** join/#tomcat McGo (n=McGo@dyndsl-091-096-088-094.ewe-ip-backbone.de)
05:39.20*** join/#tomcat shashi_ (n=shashi@122.181.1.158)
05:41.45*** join/#tomcat McGo (n=McGo@dyndsl-091-096-101-055.ewe-ip-backbone.de)
05:49.15*** join/#tomcat jasonb (n=jasonb@m410436d0.tmodns.net)
06:07.34*** join/#tomcat bhagat_ (n=bhagat@203.129.255.188)
06:15.29*** join/#tomcat jjg (n=jjg@98.207.87.211)
06:37.40*** join/#tomcat orionheroku (n=orionher@c-67-180-210-117.hsd1.ca.comcast.net)
06:48.43*** join/#tomcat dvayanu (n=another@ppp-88-217-62-129.dynamic.mnet-online.de)
07:10.19*** join/#tomcat magentar (n=magentar@p4FC8474C.dip.t-dialin.net)
07:21.16*** join/#tomcat pitanga (n=pitanga@fsf/member/pitanga)
08:08.06*** join/#tomcat orionheroku (n=orionher@c-67-180-210-117.hsd1.ca.comcast.net)
08:38.32*** join/#tomcat Jiyu_ (n=jiyu@m56s07.vlinux.de)
09:03.18*** join/#tomcat shashi (n=shashi@122.181.1.158)
09:10.09*** join/#tomcat internat (n=nf@123-243-184-161.static.tpgi.com.au)
09:16.06*** join/#tomcat pitanga (n=pitanga@fsf/member/pitanga)
09:45.10*** join/#tomcat frinux (i=52e07397@gateway/web/freenode/x-lpruqetknlthrdji)
09:56.53frinuxhi
09:57.05frinuxI'm trying to install Liferay on a freshly installed tomcat server, but even if I added the dependencies, I get the error : java.lang.NoClassDefFoundError: Ljavax/transaction/TransactionManager;
09:57.15frinuxWhat lib do I need?
09:59.39*** join/#tomcat bhushanvmishra (n=bhushanv@202.46.197.70)
10:04.51bhushanvmishrahow can i monitor dbconnection pool
10:12.50bhushanvmishra<PROTECTED>
10:32.37*** join/#tomcat dvayanu (n=another@93.104.234.130)
11:06.03*** join/#tomcat barkbarkmeow (n=barkbark@115.184.87.135)
11:15.14*** join/#tomcat sven_eisenhauer (i=d95b9a28@gateway/web/freenode/x-brmomvdxizsusrjc)
11:15.30sven_eisenhauerhello
11:16.14sven_eisenhauerI have a question about using Comet technology
11:17.31sven_eisenhaueri'm using tomcat 6.0.18, Java 1.6.11 and windows xp sp3
11:19.09sven_eisenhauermy problem: i get a nullpointerexception when an external thread wants to flush a httpservletresponse
11:35.01sven_eisenhaueri think the reason is, that the session became invalid
11:36.03sven_eisenhauerso my question: how can I check in an external thread if the httpservletresponse is still writable?
11:36.49sven_eisenhauerthe structure of the servlet is similar to the ChatServlet of the tomcat documentation
11:46.46bhushanvmishrahow can i monitor dbconnection pool?
12:05.12*** join/#tomcat McGo (n=McGo@dyndsl-091-096-088-094.ewe-ip-backbone.de)
12:40.09*** join/#tomcat benn_d_ (n=benn_d@c-67-176-147-20.hsd1.in.comcast.net)
13:04.38*** join/#tomcat apelW (n=metaltux@62.209.163.98)
13:12.50*** join/#tomcat niraj (n=niraj@unaffiliated/niraj)
13:14.33nirajis there a way i can get my web app to load a database driver (specified in meta-inf/context.xml) from a jar in its web-inf/lib instead of the server's lib directory?
13:34.00*** join/#tomcat dvayanu (n=another@ppp-88-217-62-129.dynamic.mnet-online.de)
13:55.29*** join/#tomcat jaymeproni (n=jayme@nat-proaluno.ifsc.usp.br)
14:15.39*** join/#tomcat jaymeproni (n=jayme@nat-proaluno.ifsc.usp.br)
14:17.04*** join/#tomcat jaymeproni (n=jayme@nat-proaluno.ifsc.usp.br)
14:18.26*** join/#tomcat jaymeproni (n=jayme@nat-proaluno.ifsc.usp.br)
14:20.11*** join/#tomcat jaymeproni (n=jayme@nat-proaluno.ifsc.usp.br)
14:21.47*** join/#tomcat jaymeproni (n=jayme@nat-proaluno.ifsc.usp.br)
14:22.19*** join/#tomcat jaymeproni (n=jayme@nat-proaluno.ifsc.usp.br)
14:23.44*** join/#tomcat acarbs12 (n=acarbone@173-9-89-1-NewEngland.hfc.comcastbusiness.net)
14:24.08*** join/#tomcat jaymeproni (n=jayme@nat-proaluno.ifsc.usp.br)
14:26.31*** join/#tomcat acidjnk (i=acid@pD950A3C0.dip0.t-ipconnect.de)
14:29.21*** join/#tomcat jaymeproni (n=jayme@nat-proaluno.ifsc.usp.br)
14:30.41*** join/#tomcat jayme_sc_usp (n=jayme@nat-proaluno.ifsc.usp.br)
14:32.27*** join/#tomcat jaymeproni (n=jayme@nat-proaluno.ifsc.usp.br)
14:33.35*** join/#tomcat jaymeproni (n=jayme@nat-proaluno.ifsc.usp.br)
14:39.24*** join/#tomcat Moorea (n=cherif@41.227.199.103)
14:39.30MooreaHi guys
14:40.14Moorea2 tomcat installed in the same pc  do they necessarly cause a conflict  ?
14:51.46*** join/#tomcat lawful_evil (n=g@w005.z209031033.sjc-ca.dsl.cnc.net)
15:14.25*** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
15:32.05*** join/#tomcat benn_d_ (n=benn_d@98.223.227.38)
15:39.10*** join/#tomcat peter_ (n=chatzill@194.95.62.244)
15:40.08peter_hello all I try to create a mod_jk config with apache and jboss just by coping configuration from a running system I created before. I get a "not found worker" in mod_jk log. What did I miss?
15:40.34lawful_evillol
15:40.47lawful_evilmatch ports and hostnames in workers.properties
15:40.53lawful_evilif you are smart you forget apache
15:40.58lawful_evillet tomcat do it all
15:41.05lawful_evilbetter performance
15:41.19lawful_eviland use jio NOT apr/nio
15:41.29peter_apache is a jboss frontend
15:41.43lawful_evilthen use jboss alone
15:41.57lawful_evilit it up to you or work stuff
15:42.08lawful_evilworkers.properties maps mod jk crap
15:42.29lawful_evilbut whats interesting is mod_proxy_ajp is a newer way to use apache that  might be cleaner
15:42.35lawful_evilkinda simple
15:43.15peter_anyway I have a working system with jboss/apache/mod_jk and need to create a mirror. after copying all configs and installing components I get this error
15:53.13lawful_evilwell your workers.properties file I were I would look
15:53.15lawful_evil:)
15:53.30lawful_evilreview your jk_mounts in httpd.conf
15:53.39lawful_evilmake sure have connectivity to boxes on ports needed
15:53.41lawful_evil:)
16:01.49peter_I see that there is no open port 8009 but jboss is running
16:13.17*** join/#tomcat jjg (n=jjg@12.40.200.74)
16:24.32*** part/#tomcat Moorea (n=cherif@41.227.199.103)
16:38.00*** join/#tomcat orionheroku (n=orionher@67.180.210.117)
16:52.38*** join/#tomcat bkaatz (n=chatzill@netblock-208-127-86-102.dslextreme.com)
16:55.19bkaatzGreetings.  I need some assistance re-configuring the configuration files for an upgrade from an old 5.0.28 Tomcat server to a 5.5.28 Tomcat running on Sun JDK 1.5.0.13 on linux kernel 2.6.22.  Can someone give me a hand pls?
16:56.15bkaatzGetting an error message "org.apache.jasper.JasperException: Name jdbc is not bound in this Context" when I go to the index.jsp
17:02.41bkaatzStack trace traces it back to a call in a sub-page; Context envCtx = (Context) initCtx.lookup("java:comp");\n DataSource ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/dbs");
17:07.13bkaatzI get the same error with the additional output of the calling lines from the sub-page if I call the datasource with: DataSource ds = (DataSource)initCtx.lookup("jdbc/dbs");
17:09.32*** join/#tomcat jasonb (n=jasonb@m310436d0.tmodns.net)
17:19.57*** join/#tomcat jasonb (n=jasonb@m410436d0.tmodns.net)
17:43.19*** join/#tomcat JeffATL (i=46581eeb@gateway/web/freenode/x-yzkzmfemvuwehwtz)
17:46.13JeffATLwhat is used in this day and age to connect J2EE apps on tomcat to DB2?
17:50.49*** join/#tomcat epalm (n=epalm@utl-192-234.library.utoronto.ca)
17:52.18epalmit seems the cwd is wherever i run the bin/startup.sh file.  is there any way tomcat can tell me, in java, in which directory the current webapp lives?
17:53.43epalmi need to load a file sitting in the WEB-INF folder using new File(...)
17:54.53*** join/#tomcat l3v0n_ (n=l3v0n@p54BD749C.dip.t-dialin.net)
17:58.55*** join/#tomcat ShadowCat8 (n=chatzill@netblock-208-127-86-102.dslextreme.com)
17:59.56*** join/#tomcat urlgrey (n=skidder@75-55-199-5.mobitv.com)
18:00.22lawful_evilyeah
18:00.25lawful_evilgoto 8080
18:00.31lawful_eviland app will tell ye
18:00.33lawful_evil;)
18:01.01*** join/#tomcat j0nas` (n=tb@207.179.145.138)
18:03.22j0nas`I'm running tomcat 6.0.10 on java 1.5.0_13 (on Linux 2.6.22-16), i'm having trouble with log4j
18:04.35j0nas`i've got a log4j.properties file in the WEB-INF/classes subdirectory of my webapp and I've set the root logger to level debug
18:05.05j0nas`i've hooked up my debugger to the web app but the logger is set to level warn when inspect the logger's properties
18:05.25j0nas`*when +i inspect*
18:05.29lawful_evilrestart tomcat?
18:05.37j0nas`i have done that
18:05.46lawful_eviltake look to see if processes hung?
18:05.50lawful_evilkilled em off?
18:05.58j0nas`which processes specifically?
18:05.58lawful_evilto be sure really restarting
18:06.05lawful_evilps auxwww|grep java
18:06.07j0nas`okay 1 sec
18:06.08lawful_evilor grep tomcat
18:06.14lawful_evilor grep user you run it as
18:08.27j0nas`okay, tomcat really did stop and start
18:08.31j0nas`and still the same...
18:08.38j0nas`any other ideas?
18:11.21lawful_evilhm
18:11.29lawful_evilsure u set debug in right spot?
18:11.38lawful_evilgrep -i file for debug
18:11.40epalmi need to load a new File(...) which is sitting in WEB-INF of my webapp.  what's the Right Way (tm) to do this?
18:11.43lawful_evilor warn
18:11.59lawful_evilplace it in yer webapps and restart id imagine
18:12.01lawful_evil:)
18:12.06lawful_evilcheck perms fo course
18:12.17epalmplace what in my webapps
18:12.32lawful_evilyour file
18:12.47epalmi don't understand what you mean by "place it in yer webapps"
18:13.07j0nas`i'm fairly sure i've got the config right:
18:13.13j0nas`log4j.rootLogger=debug,MAIN
18:13.34j0nas`log4j.logger.com.xxx=DEBUG
18:13.58j0nas`plus appender configuration
18:14.24j0nas`appender configuration is not a concern at this point... it is that the root logger is configured at level warn and not debug as i've specified in my config file
18:15.07j0nas`what permissions should the file have?
18:15.19j0nas`i have 644
18:16.02j0nas`same permissions as my class files, so that should be ok
18:24.29kmany ideas why tomcat pause on startup? have to startup tomcat the second "catalina.sh start" time to resolve the problem.  here's the log: http://pastebin.com/m679e63db
18:24.37*** join/#tomcat ShadowCat8 (n=chatzill@netblock-208-127-86-102.dslextreme.com)
18:29.55*** join/#tomcat karstensrage (n=chatzill@70.42.238.2)
18:30.55*** join/#tomcat jasonb (n=jasonb@dsl027-180-244.sfo1.dsl.speakeasy.net)
18:39.56lawful_eviluse startup.sh ya boob
18:40.03lawful_eviland set java home inside it
18:40.35lawful_eviloptionally set you  heap
18:43.05*** join/#tomcat jieryn (n=jieryn@gentoo/contributor/jieryn)
18:44.46*** join/#tomcat ShadowCat8_ (n=chatzill@netblock-208-127-86-102.dslextreme.com)
18:45.00jierynusing tomcat-6.0.18, jdk-1.6; i am using virtual hosting with in server.xml (i know, bad, but it works) http://dpaste.com/95250/ - i find that tomcat deploys hudson.war twice.. once at / and once at /hudson .. how can i stop this?
18:46.37*** join/#tomcat vvalenti (i=cf8afb02@gateway/web/freenode/x-wmqhsospvqiwehef)
18:47.02*** join/#tomcat jasonb (n=jasonb@dsl027-180-244.sfo1.dsl.speakeasy.net)
18:48.50vvalentigeneral quesiton for Tomcats 5.0, 5.5 and 6.0....Is there an equivalent to httpd's 'Alias' directive in tomcat's configuration?
18:49.46*** part/#tomcat j0nas` (n=tb@207.179.145.138)
18:52.28*** join/#tomcat jaymeproni (n=jayme@143.107.228.78)
18:58.34lawful_evilproabbly
19:02.26*** join/#tomcat j2sentient (n=j2sentie@unaffiliated/j2sentient)
19:13.21*** join/#tomcat benn_d_ (n=benn_d@c-67-176-147-20.hsd1.in.comcast.net)
19:37.39jasonbvvalenti: I forget.. what does httpd's Alias directive do?
19:49.20vvalentijasonb: allows you to point a directory structure to another URL or local directory
19:51.49vvalentiso "alias /nfs /mnt/nfs" would worf for URL/nfs
19:51.57vvalentiwork*
19:52.31jasonbWith Tomcat, that's what symlinks are for.  :)
19:52.51jasonbUnless you're talking about URI aliasing though..
19:53.30jasonbYou could use the UrlRewriteFilter to remap URIs..
19:56.22kmi get modproxy loadbalancing working,  i stop  one instance app and it failover with problem, but when i start the instance backup it return 404 errors on UI unstill the apps is fully initialized. is there any way to this form happen in the middle of the initialized process?
19:59.33kmhere is the loadbalancer setup: http://pastebin.com/d4cce4885
19:59.52vvalentijasonb: I know symlkinking works, but here's my dilemma....we have a webapp that needs a symlink for a shared NFS mount that exists within the exploded webapp, which complicats auto-deployment
20:01.45vvalentiand the NFS mount is different depeding on the environment it's exploded in, so it's a manual step that we want to try to avoid
20:01.58vvalentiid rath keep the webapp uniform and use different conf files to handle the differences
20:21.18*** part/#tomcat jjg (n=jjg@12.40.200.74)
20:30.34kmcould the problem be related to not using timeout?
20:32.11lawful_evilI have all these security audit bullshit problems
20:32.18lawful_eviland I wish I could trash apache and use tomcat
20:32.23lawful_eviltomcat setup is a snap
20:32.29lawful_evilbarfbag apache
20:32.53ShadowCat8Until you run into a config problem... then it's a pain to run down what the *actual* issue is in Tomcat.  :-p
20:33.54ShadowCat8Does Tomcat-5.5.28 support DefaultContext in conf/server.xml still?
20:37.26jierynusing tomcat-6.0.18, jdk-1.6; i am using virtual hosting with in server.xml (i know, bad, but it works) http://dpaste.com/95250/ - i find that tomcat deploys hudson.war twice.. once at / and once at /hudson .. how can i stop this?
20:48.57*** join/#tomcat j2sentient (n=j2sentie@unaffiliated/j2sentient)
20:57.12*** join/#tomcat goldins (n=goldins@207.172.89.248)
21:17.16*** join/#tomcat barkbarkmeow (n=barkbark@203.199.213.3)
21:19.11ShadowCat8Does tomcat-5.5.28 support having more than one Realm in conf/server.xml?
21:19.47*** join/#tomcat dvayanu (n=another@ppp-88-217-62-129.dynamic.mnet-online.de)
21:23.17*** join/#tomcat clajo04_ (n=clajo04_@74.72.55.57)
21:38.15ShadowCat8Apparently not.  :-/
21:44.07*** join/#tomcat j2sentient (n=j2sentie@unaffiliated/j2sentient)
21:51.25*** join/#tomcat azlev (n=ze@200.234.206.72)
21:56.00*** join/#tomcat barkbarkmeow (n=barkbark@115.184.99.132)
22:00.01*** join/#tomcat steve888 (n=chatzill@D-69-91-151-171.dhcp4.washington.edu)
22:02.05*** part/#tomcat steve888 (n=chatzill@D-69-91-151-171.dhcp4.washington.edu)
22:09.58*** join/#tomcat BarryNL (n=goltharn@82-95-227-51.xs4all.nl)
22:33.42*** join/#tomcat orionheroku (n=orionher@dsl081-064-072.sfo1.dsl.speakeasy.net)
23:28.37*** part/#tomcat clajo04_ (n=clajo04_@74.72.55.57)

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