IRC log for #tomcat on 20090908

00:14.21TheIdiotTimeHello
00:23.11TheIdiotTimeHello is there anyone online?
00:25.12TheIdiotTimejasonb: can you help me with the information i provided or is it a dead end?
00:28.53TheIdiotTime#emu
00:31.36TheIdiotTime...
00:32.06TheIdiotTime...
00:32.30TheIdiotTimePLEASE! is there anyone who can answer some questions about tomcat.
00:56.56TheIdiotTime!!!!!!!!!!!!!!!!!!
00:57.01TheIdiotTimeANYONE OUT HERE!
00:57.02TheIdiotTime?
00:59.43*** join/#tomcat frgomes (n=frgomes@87-194-69-80.bethere.co.uk)
00:59.58*** part/#tomcat frgomes (n=frgomes@87-194-69-80.bethere.co.uk)
02:00.33*** join/#tomcat Afterlawl_ (n=x@5e02941d.bb.sky.com)
02:28.20*** join/#tomcat barkbarkmeow (n=barkbark@115.184.84.239)
03:02.26*** join/#tomcat jbresesti (n=jcb@190.135.36.77)
04:15.26*** join/#tomcat Guest39788 (n=nf@123-243-184-161.static.tpgi.com.au)
04:16.10*** join/#tomcat Guest39788 (n=nf@123-243-184-161.static.tpgi.com.au)
04:31.38*** join/#tomcat Afterlawl_ (n=x@5e02810c.bb.sky.com)
05:13.44*** join/#tomcat onats (n=Juanito@222.127.167.130)
05:15.15onatshi, i am on tomcat 6.0.18, ubuntu 9.04 64 bit,  java version 1.6.0_14. is 6.0.18 stable?
05:17.39jasonbonats: Yes, 6.0.18 is quite stable.  There are some known bugs.  You may want to query those out of the ASF Bugzilla database.
05:21.43onatsok thanks. I am having issues on the autostart of tomcat, such that it seems to be not starting properly upon bootup, but when i do /etc/init.d/tomcat start, it starts correctly
05:23.10jasonbSounds like a distro-specific packaging problem.
05:23.24onatsjasonb, i downloaded the binaries from the apache website...
05:23.36onatsso im going to test using tomcat 5.5 now...
05:25.25jasonb6.0.18 is better than any 5.5.x release.  I strongly suggest not keeping 5.5.
05:25.33onatshmmm
05:27.19*** join/#tomcat shashi (n=shashi@122.181.1.158)
05:31.49onatsjasonb, got any ideas where to start looking?
05:33.11jasonbThe log files, after you boot.
05:33.33jasonbDelete all the Tomcat logs, then reboot, then when it doesn't come up, read Tomcat's log files.
05:37.05onatsjasonb, it looks like its specific to my app.. it actually hangs on something there.. anyway thanks...
05:37.06*** part/#tomcat onats (n=Juanito@222.127.167.130)
05:49.35*** join/#tomcat dvayanu (n=another@p548F6C2B.dip.t-dialin.net)
06:25.21*** join/#tomcat barkbarkmeow (n=barkbark@115.184.101.79)
07:29.18*** join/#tomcat km (n=km@adsl-99-25-117-46.dsl.pltn13.sbcglobal.net)
07:40.21*** join/#tomcat kjkoster5489 (n=kjkoster@233-250-103-145.static.glaslokaal.nl)
07:45.25*** join/#tomcat JohnBat26 (n=Eugene@89.175.77.35)
07:45.29JohnBat26hello
07:45.36JohnBat26please help me:
07:45.41JohnBat26https://issues.apache.org/bugzilla/show_bug.cgi?id=47797
07:45.45JohnBat26;)
08:00.03*** join/#tomcat Etherael (n=eric@203-19-70-160.perm.iinet.net.au)
08:03.22EtheraelAnyone know how to deal with deployed apps that need file access within tomcat?
08:03.42Etheraelstuff like direct file requests to a path that worked fine in jetty appear to fail in tomcat.
08:04.08kjkoster5489Check out the servletcontext, it has a realparh() metohd.
08:04.29kjkoster5489I use ClassLoader.getResourceAsStream() for static files and config files in the WAR.
08:23.20EtheraelHow exactly does that work, so for example I have a line like ;         Policy policy = Policy.getInstance("/WEB-INF/antisamy-ojam-1.3.xml");
08:26.45*** join/#tomcat Alagar (n=helpdesk@95.154.197.29)
08:35.50kjkoster5489ClassLoader.getResourceAsStream() loads from the classpath, so I load an ID file (roughly) as follows:
08:36.13kjkoster5489ClassLoader.getResourceAsStream("uuid"), which then loads the file "WEB-INF/classes/uuid" for me.
08:38.30EtheraelHmm,m gotcha, so I jus tshove my XML file in classes and I should be able to getResourcesAsStream from there?
08:40.01kjkoster5489Right.
08:40.12kjkoster5489Plus, it works when WARs are not unpacked.
08:40.37kjkoster5489So it can get the resource from the zipped WAR, on tomcats that don't unpack the WARs.
08:40.57kjkoster5489Not something that usually makes a difference, but it happens.
08:42.52EtheraelSuper, I'll have a look at that for a fix, thanks very much for your help.
08:59.35kjkoster5489np
09:01.44*** join/#tomcat onats (n=onats@222.127.167.130)
09:14.43*** join/#tomcat daniele_982 (n=daniele@93-63-230-98.ip29.fastwebnet.it)
09:15.36daniele_982hello all i've install Apache+virtual host+load balancer, 2 tomcat  the problem is that i don't know what tomcat satisfy the request of apache how i can see that??
09:20.34kjkoster5489Check the access logs for apache and tomcat.
09:22.54daniele_982in /logs aren't a file with access
09:23.27kjkoster5489Confire that in server.xml, enavle the accesslogvavle
09:24.01*** join/#tomcat Crayzon (n=Crayzon@213.115.205.138)
09:24.13daniele_982kjkoster5489:
09:24.14daniele_982<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"  
09:24.14daniele_982<PROTECTED>
09:24.26kjkoster5489right
09:25.02CrayzonHey... Using Tomcat 6.0.18, how do I get the original failing URL in an error-page jsp?
09:26.28daniele_982kjkoster5489: and the property resolveHosts set to false??
09:26.50kjkoster5489sure, if you like it like that.
09:30.33*** join/#tomcat shampoo (n=shampoo@pdbfw01.securecomputing.com)
09:41.11onatshas anyone encountered this error before? :log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
09:49.07*** join/#tomcat barkbarkmeow (n=barkbark@115.184.99.205)
10:09.40*** part/#tomcat daniele_982 (n=daniele@93-63-230-98.ip29.fastwebnet.it)
10:11.54kjkoster5489onats: safe to ignore, it is a classloading issue with log4j on redeployment.
10:13.08*** join/#tomcat cvasilak (n=cvasilak@casper.rd.forthnet.gr)
10:25.13*** join/#tomcat barkbarkmeow (n=barkbark@115.184.74.127)
10:47.26*** join/#tomcat Serge_HID (n=serge_hi@stc.47.93.188.95.dsl.krasnet.ru)
10:49.29*** part/#tomcat mrbrush (i=50629881@gateway/web/freenode/x-fqlrpdferffcrhot)
11:10.49*** join/#tomcat Tex-Twil (i=d43ce183@gateway/web/freenode/x-hbjwhzlipgcwafwq)
11:11.42Tex-Twil<PROTECTED>
11:11.49Tex-TwilI have tomcat 5.5
12:05.34*** join/#tomcat loddafnir (n=mike@at-vie-gaso-r11a.upc.at)
12:12.54*** join/#tomcat Moorea (n=cherif@41.227.162.234)
12:15.45Mooreaguys is there a way to assign a particular place for a page include ? I want to control where it is going to be displayed in a page
12:34.15*** join/#tomcat Afterlawl_ (n=x@5e00ad9e.bb.sky.com)
12:39.35*** join/#tomcat magentar (n=magentar@ip-94-79-143-196.unitymediagroup.de)
12:49.56*** join/#tomcat l3v0n (n=l3v0n@p54BD725F.dip.t-dialin.net)
12:50.02*** join/#tomcat Nanthrax (n=jb@ariane.fimasys.com)
12:50.06Nanthraxhi guys
12:50.19Nanthraxquick question regarding UTF-8 encoding on the HTTP request
12:50.49Nanthraxcurrently to manage UTF-8 request, I have to set in my code using setEncoding() on the request
12:50.59Nanthraxis it possible to do it by configuration (in the web.xml) ?
13:08.50*** join/#tomcat raymears (n=quassel@intern.ancud.de)
13:09.13raymearshi everyone. I'm experiencing some issues with jndi on tomcat 5.5.27. I really don't know whether or not my class gets exported to jndi. Does anyone know where i can find a jndi browser?
13:09.13raymearsthat is..."my bean" not "my class"
13:10.46raymearsusing sun java 1.6.0_0  under ubuntu 9.04
13:15.12*** join/#tomcat barkbarkmeow (n=barkbark@115.184.107.63)
13:30.03*** join/#tomcat randrew (n=raj@dyn-128-59-53-15.dyn.columbia.edu)
13:39.20*** join/#tomcat Moorea1 (n=cherif@41.227.162.197)
13:43.53*** join/#tomcat barkbarkmeow (n=barkbark@115.184.66.83)
14:09.17*** join/#tomcat Shur1 (n=Shuro@81.89.253.146)
14:25.43Shur1Hello tomcat-users, i have a problem: i've downloaded the tomcat 6.0 binarys and unzip'd it   modified the cat conf/tomcat-users.xml and added a manager user, started tomcat  and it works good, login works fine. now i've installed JOSSO (josso.org), installed it with quick-start guide and restarted tomcat. tomcat runs, but if i logon in Tomcat Manager it doesn't work, in catalina.out is something like that: "08.09.2009 16:03:41 org.apache.catalina.realm.JAASR
14:30.28Shur1here my full catalina.out: http://pastie.org/609627
14:47.40*** join/#tomcat barkbarkmeow (n=barkbark@115.184.97.40)
14:49.49*** part/#tomcat Shur1 (n=Shuro@81.89.253.146)
14:53.29*** join/#tomcat odin__ (n=dlm@host86-173-252-116.range86-173.btcentralplus.com)
14:55.19*** join/#tomcat odin__ (n=dlm@host86-173-252-116.range86-173.btcentralplus.com)
14:56.07*** part/#tomcat odin__ (n=dlm@host86-173-252-116.range86-173.btcentralplus.com)
14:56.13*** join/#tomcat odin (n=dlm@host86-173-252-116.range86-173.btcentralplus.com)
14:57.54*** join/#tomcat jasonb (n=jasonb@m380436d0.tmodns.net)
15:56.07*** join/#tomcat kaje (n=kaje@darboux.crhc.uiuc.edu)
15:57.17*** part/#tomcat Nanthrax (n=jb@ariane.fimasys.com)
16:00.47*** join/#tomcat jasonb (n=jasonb@dsl027-180-244.sfo1.dsl.speakeasy.net)
16:02.12kajeMy Tomcat is 5.5.25, Java is 1.6.0_14, OS version 2.6.24-24
16:04.33kajeI am putting the .war file in the web apps directory and it is unarchiving it into a directory. However, the tomcat server doesn't seem to be listening to any ports when I run netstat to check. I am very new to tomcat, so any advice would be greatly appreciated.
16:05.11*** join/#tomcat Afterlawl_ (n=x@5e00ad9e.bb.sky.com)
16:09.23*** join/#tomcat km (n=km@66-7-254-75.static-ip.telepacific.net)
16:57.40*** part/#tomcat Alagar (n=helpdesk@95.154.197.29)
17:04.41*** join/#tomcat anoopb (n=chatzill@38.106.143.248)
17:14.49*** join/#tomcat s34n (n=chatzill@ip-65-162-123-250.mvdsl.com)
17:50.46*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
18:02.29*** join/#tomcat tribina (n=root@173-30-57-27.client.mchsi.com)
18:03.28tribinausers
18:04.19tribinahello anyone here?
18:06.21tribinawho *
18:06.46tribinaquit
18:07.31*** join/#tomcat tribina (n=ai00020@173-30-57-27.client.mchsi.com)
18:08.49tribinaHello, I have a question about tomcat 5.5.27 with JRE 1.5  running on Win2k3.
18:09.27tribinaI have a 3rd party application BO/SAP XIR2 running fine under it.
18:10.02tribinaHowever, ever since I've moved to run under Tomcat 5.5.27 there's a very verbose stdout.log file
18:10.18tribinahere's an example of some of the messages I see.
18:10.45tribinaDEBUG org.apache.jasper.servlet.JspServlet  - JspEngine --> /InfoView/main/data.jsp
18:11.24*** join/#tomcat acarbs12 (n=acarbone@173-9-89-1-NewEngland.hfc.comcastbusiness.net)
18:12.10tribinaI don't know where this level of verbosity is set so I can turn it off.
18:13.04tribinahoping someone here can point me in the right direction to fix this.
18:13.48*** join/#tomcat prgrmr (n=prgrmr@unaffiliated/prgrmr)
18:15.55*** join/#tomcat prgrmr (n=prgrmr@unaffiliated/prgrmr)
18:16.58*** join/#tomcat YAY (i=53fa5367@gateway/web/freenode/x-alfjvkibiskywlor)
18:17.11kjkoster5489tribina: try ${tomcat}/conf/logging.properties
18:17.37kjkoster5489Or search for log4j.xml files in the app.
18:17.49tribinaI have the standard logging.properties that comes with Tomcat
18:17.52*** part/#tomcat acarbs12 (n=acarbone@173-9-89-1-NewEngland.hfc.comcastbusiness.net)
18:18.01YAYYAYA!
18:18.02tribinathe only thing I changed was to disable the console logger.
18:18.15YAYyes the logger is an issue
18:19.31tribinathis is the 1st message I see with DEBUG, [Thread-1] DEBUG org.apache.jasper.servlet.JspServlet  - Scratch dir for the JSP engine is:
18:20.25tribinasorry, this is the 1st message, [Thread-1] DEBUG org.apache.jasper.compiler.JspRuntimeContext  - Compilation classpath initialized:
18:26.11kmhi Thijssss
18:49.54tribina!
18:49.56tribina!lw
19:04.37kmanyone familar with setting up cluster/session replication?
19:24.52*** join/#tomcat NickDeNeger (n=none@145.107.2.171)
19:50.06*** join/#tomcat clajo04_ (n=clajo04_@cpe-24-193-72-7.nyc.res.rr.com)
19:52.43*** join/#tomcat s34n (n=chatzill@ip-208-76-93-125.mvdsl.com)
20:23.43*** part/#tomcat randrew (n=raj@dyn-128-59-53-15.dyn.columbia.edu)
20:23.58*** part/#tomcat kaje (n=kaje@darboux.crhc.uiuc.edu)
20:38.15*** join/#tomcat l3v0n_ (n=l3v0n@p54BD4392.dip.t-dialin.net)
20:39.29*** join/#tomcat [twisti] (n=fuckyou@85.197.20.3)
20:39.34[twisti]i have a tomcat running behind an apapche with ajp proxy, and when i use something like request.getRemoteAddr(), i always only get 127.0.0.1 (because it comes from the proxy). is there any way to get the actual remote info ?
20:39.34[twisti][2009/09/04 01:32:55] <km> i have apache/modjk loadbalancer working  with tomcat cluster session replication. for ip base load balancer, does it need to have a different tomcat cluster settings?  
20:39.38[twisti]sorry
20:39.42[twisti]i have a tomcat running behind an apapche with ajp proxy, and when i use something like request.getRemoteAddr(), i always only get 127.0.0.1 (because it comes from the proxy). is there any way to get the actual remote info ?
20:48.19jasonb[twisti]: Yes, you can.  In httpd, use "ProxyVia on" when you proxy your requests.  Then, in your AccessLogConfiguration, make the pattern use "%{x-forwarded-for}i".
20:48.35*** join/#tomcat Remy_ (n=iMac@17.12.71-86.rev.gaoland.net)
20:49.14jasonb[twisti]: I documented this on page 183 of the O'Reilly Tomcat 6 book if you want more detail.
20:49.53jasonb[twisti]: It works fine when you have both ends of it configured like that though.
20:50.32[twisti]im not using the access log, its for application logic
20:50.38[twisti]ill check the proxy setting
20:51.30jasonb[twisti]: Okay, well, ProxyVia on will tell httpd to send the client's IP address to Tomcat via the x-forwarded-for header.. which your application can read.
20:52.51[twisti]so i need to code it manually ?
20:53.55[twisti]as in, manually parse the header info instead of using something such as .getRemoteAddr
20:56.39jasonbYes.  :)  Manually.. pick the header off the vine, and slice it yourself.  :)
20:56.48[twisti]didnt work
20:57.04[twisti]i get "Via: 1.1 serverdemonain.com"
20:57.12[twisti]domain*
20:57.35[twisti]which really is no better than 127.0.0.1
20:57.42jasonbYou added the "ProxyVia on" to your httpd config?  And then you're doing request.getHeader("x-forwarded-for")?
20:58.06[twisti]no, i did getHeader("Via")
20:58.08[twisti]i know
20:58.10[twisti]im an idiot
20:58.14jasonb:)
20:58.28[twisti]oh
20:58.36[twisti]even the name i tried should have told me i was an idiot
20:58.42[twisti]obviously, its VIA localhost
20:58.43[twisti]lol
20:59.05[twisti]it works, awesome
20:59.25[twisti]ive been asking that same stupid question here for a week, and you were the first to reply, so <3 a lot
20:59.46jasonbYou're welcome.  Strange that I haven't heard you ask it previously.
21:00.10jasonbNotice that your patience paid off, eventually.
21:00.19[twisti]i run an odd time zone
21:00.25[twisti]late for europe, early for america
21:03.25tribinaquit
21:05.02kmproxyvia
21:33.51*** join/#tomcat ruaok (n=robert@adsl-75-15-140-0.dsl.snlo01.sbcglobal.net)
21:35.44ruaokjava version "1.6.0_0", Tomcat 6.0.18 (ubuntu), on Ubuntu 9.04
21:36.16ruaokI've got a problem where a webapp works fine in the source install of tomcat, but the package install of tomcat fails to serve the same webabb.
21:36.18ruaokapp
21:36.22ruaokanyone able to help?
21:39.13*** join/#tomcat jjg (n=jjg@12.40.200.74)
21:42.21jjghi, folks .. from what I've read it seems tomcat would be ideally suited to my needs .. could somewhere comment :   I have to create a bridge between a 3rd party application that is sending http posts that I must parse and send the information over a persistent socket connection to another 3rd party application.  I have a prototype built using ruby-on-rails, but it creates a new socket connection every time ( and have reasons to
21:42.22jjg<PROTECTED>
21:42.38*** join/#tomcat s34n (n=chatzill@ip-65-162-123-250.mvdsl.com)
22:08.09*** join/#tomcat chastic (n=sean@71.93.232.198)
22:10.51chasticAnybody have experience configuring java:comp/env contexts programatically for tomcat?
22:11.32chasticWith embedded tomcat specifically.
22:14.30*** part/#tomcat ruaok (n=robert@adsl-75-15-140-0.dsl.snlo01.sbcglobal.net)
22:21.42jasonbchastic: I have, a little.  It's a bit time consuming.  I ended up having to read a bunch of Tomcat source.  But, then again, there's a book named How Tomcat Works that might describe some of the internals.
22:23.35*** join/#tomcat vinse (n=vinse_@208.253.223.146)
22:32.15chasticthanks Jason
22:32.19*** part/#tomcat chastic (n=sean@71.93.232.198)
22:40.49*** join/#tomcat s34n (n=chatzill@ip-208-76-93-125.mvdsl.com)
22:45.19*** join/#tomcat Etherael (n=eric@ppp121-44-154-96.lns10.syd7.internode.on.net)
22:51.26*** join/#tomcat mediaslave (n=mediasla@72.171.1.17)
22:56.29*** join/#tomcat mediasla1e (n=mediasla@72.171.1.17)
23:21.04kmhi, here my sample server.xml file for 4 nodes cluster/session replicatoin: http://pastebin.com/d4e7634fa
23:21.31kmany ideas why session is not getting replicated?
23:25.08kmnote that 4 nodes are on 4 different machines

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