IRC log for #tomcat on 20130401

00:12.17*** join/#tomcat dan64 (dan64@dannyadam.com)
00:23.03*** mode/#tomcat [+o pucko] by ChanServ
00:23.15*** topic/#tomcat by pucko -> Stable versions: 7.0.39, 6.0.36, and (EOL'd) 5.5.36. Newbies use the official binary from tomcat.apache.org, an RPM from http://code.google.com/p/webdroid-tomcat-package , or the latest tomcat deb. Check logs before asking a question. SLOW MOTION CHANNEL: Ask your question including your TC, Java, & OS versions, then wait; check back for answers.
00:23.22*** mode/#tomcat [-o pucko] by pucko
02:10.52*** join/#tomcat Asterix (~Romi@dslb-188-104-148-178.pools.arcor-ip.net)
02:10.52*** join/#tomcat Asterix (~Romi@unaffiliated/burebista)
02:25.15*** join/#tomcat augustl_ (uid10075@gateway/web/irccloud.com/x-nzwwlxectsfjyglp)
02:25.31*** join/#tomcat kantlive- (~kantlivel@home.kantlivelong.com)
02:43.25*** join/#tomcat jahor (~jahor@89.185.248.105)
02:43.25*** join/#tomcat adaro_ (~jkuperus@53518F8B.cm-6-2c.dynamic.ziggo.nl)
05:08.55*** join/#tomcat surfdue (surfdue@unaffiliated/surfdue)
05:45.04*** join/#tomcat acidjnk22 (~havenone@pD9F865CD.dip.t-dialin.net)
05:49.02*** join/#tomcat surfdue (surfdue@unaffiliated/surfdue)
10:41.38*** join/#tomcat onats (~onats@unaffiliated/onats)
10:41.46onatshello
10:41.48onatsanyone here?
10:47.34*** join/#tomcat classix (~salven@silenceisdefeat.com)
11:23.13*** join/#tomcat onats (~onats@unaffiliated/onats)
12:45.41*** join/#tomcat pradhand_ (~pradhand@142.68.241.199)
12:48.05*** join/#tomcat luckman212 (~luckman21@unaffiliated/luckman212)
12:50.13*** join/#tomcat luckman212 (~luckman21@unaffiliated/luckman212)
13:45.38*** join/#tomcat Ertac (~ertac@195.174.124.7)
13:47.46*** join/#tomcat randrewj (~u1@dyn-128-59-52-137.dyn.columbia.edu)
13:57.32*** join/#tomcat larrys (~lshatzer@c-76-27-113-134.hsd1.ut.comcast.net)
14:16.01*** join/#tomcat classix (~salven@silenceisdefeat.com)
14:20.16*** join/#tomcat petoo (~user_name@unaffiliated/petoo)
14:30.55*** join/#tomcat AJC_Z0 (~AJ_Z0@2610:1d0:2280:12:1::11)
14:30.55*** join/#tomcat AJC_Z0 (~AJ_Z0@pdpc/supporter/professional/ajz0)
14:39.35*** join/#tomcat acidjnk22 (~havenone@pD9F86AE8.dip.t-dialin.net)
15:09.15*** join/#tomcat franck (~franck@tibco-5.tibco.com)
15:37.34*** join/#tomcat SJS (~stremler@kernel-panic/member/ThunderChicken)
15:43.53*** part/#tomcat cythrawll (~cythrawll@unaffiliated/cythrawll)
16:19.43*** join/#tomcat jieryn (~jieryn@jenkins/developer/jieryn)
16:21.25*** join/#tomcat _BJFreeman (~bjfree@178.sub-75-233-204.myvzw.com)
16:25.15*** join/#tomcat jamespage (~jamespage@culvain.gromper.net)
16:25.15*** join/#tomcat jamespage (~jamespage@ubuntu/member/jamespage)
16:28.29*** join/#tomcat dknox (~dknox@pool-71-165-47-233.lsanca.dsl-w.verizon.net)
17:27.05*** join/#tomcat Gio^ (~VaNNi___@216-240-49-78.mxu.aerioconnect.net)
17:27.09*** join/#tomcat Jerkan (~jerkan@81-232-162-224-no29.tbcn.telia.com)
17:45.45*** join/#tomcat Archer_ (42069350@gateway/web/freenode/ip.66.6.147.80)
17:50.06*** join/#tomcat odin_ (~Odin@2a01:348:261:32:c20:3db4:9e71:ddf0)
18:06.15Guest68685Tomcat 7.0.25, Sun JVM 1.6.0_43-b01, Linux 2.6.32-279.el6.x86_64 I'm trying to run multiple instances of Tomcat with different CATALINA_BASE directories.  Manager seems to mostly work but the two images at the top (like /manager/images/asf-logo.gif) are broken, which seems to indicate a problem.  The catalina logs indicate "SEVERE: Exception Processing ErrorPage[errorCode=404, location=/WEB-INF/jsp/404.jsp]" which makes me think tha
18:06.32Guest68685isn't configured properly.  FWIW, if I start tomcat with CATALINA_BASE == CATALINA_HOME, manager seems to work properly. Any thoughts on what I have misconfigured?  Please be kind.  I'm an experienced SA but have never really worked with Java/Tomcat.
18:07.50whartungyea I 'm don't dabble enough with manager app to really talk to this, it's "just" a simple app, so it should work fine.
18:08.11Guest68685I agree, but I've obviously got something broken
18:08.25Guest68685FWIW, Psi-probe is misbehaving in a similar way.
18:08.47whartunghow about a simple hello world app?
18:09.18Guest68685I don't really think the problem is the app itself, but how tomcat and the contexts are configured.
18:09.34Guest68685Like I said, the apps work fine if I start it with the normal tomcat dir.
18:09.55Guest68685FWIW, this is what I have in conf/Catalina/localhost in my CATALINA_BASE:  <Context privileged="true" docBase="/opt/tomcat7/webapps/manager" path="/manager" />
18:10.31whartungis /opt/tomcat7 your CATALINA_BASE?
18:10.40whartungbecause each BASE will have "its own" manager, right?
18:11.25Guest68685I was under the impression that it could be shared but I get the same results even if I have psi-probe pulled out in the webapps dir of CATALINA_BASE
18:12.05whartungEach BASE is it's own "instance" of tomcat, the HOME stuff is all the shared core infrastructure (binaries, libs, etc.)
18:12.17whartungnow, in theory
18:12.42whartungI guess you can have a single app shared across them all mapped in via a Context.xml (sort of like you did there)
18:12.56whartungbut that's separate from the BASE/HOME "thing" (should be at least)
18:13.36Guest68685The problem I'm actually trying to solve is psi-probe misbehaving but, as they seem to be related, I thought I'd start with the seemingly simpler problem of the 404s w/ the manager images.
18:13.56whartungyea I don't know anything about psi-probe
18:14.06whartungmaybe it's making assumptions
18:14.55Guest68685If I pull psi-probe out to the CATALINA_BASE, I get the following when I go to /probe/index.htm:  Could not get RequestDispatcher for [/WEB-INF/jsp/applications.jsp]
18:15.18whartungthat suggest it can't find that JSP file.
18:15.20Guest68685rather, pull it out into CATALINA_BASE/webapps
18:15.54Guest68685I agree but being new to both Java and Tomcat, I don't have a clue *why* it wouldn't find it.
18:16.08whartungwell
18:16.09whartungtry this
18:16.15whartunginstall tomcat somplace
18:16.22whartungget psi-probe working
18:16.28whartung(see if it works)
18:16.34whartungthen, when it does
18:16.37whartungclone the entire directory
18:16.43whartungpoint BASE at that, and HOME at the other,
18:16.47whartungthen see if that works
18:16.56whartungideally it should be just peachy, right?
18:16.59whartungbut we'll see
18:17.47Guest68685<PROTECTED>
18:18.18*** join/#tomcat acidjnk (~havenone@pD9F86AE8.dip.t-dialin.net)
18:18.29whartungthen you can start removing select chunks from each piece until it fails -- at least that will give you an idea of what might be going on
18:20.32Guest68685yep, that appears to work
18:21.48whartungyea, it better ! lol
18:22.00Guest68685Trying to pull things back out...
18:26.53whartungI know it's not a particularly deterministic process, more of a "does it hurt here" style of diagnosis.
18:32.55Guest68685sure
18:33.05Guest68685so fwiw, I'm down to the conf dir
18:33.23Guest68685not surprisingly, it appears to be a configuration problem ;)
18:34.03whartungshocking!
18:37.37*** join/#tomcat Romeo- (~Romi@unaffiliated/romeo/x-000000001)
18:39.49*** join/#tomcat yassine (~yassine@unaffiliated/yassine)
18:41.07Guest68685So my CATALINA_BASE before didn't have a web.xml.  It appears that I need one (or something in it).
18:42.55whartungyea that makes sense I suppose
18:43.25whartungit's a shame if there's a directory that has to be shared across HOME and BASE
18:43.29whartung(or split, perhaps)
18:43.40whartungrather than, say, config_home and config_base
18:48.14Guest68685yep, so it's definitely in web.xml and only that.  I've removed/replaced evrything else and that's the only thing different.
18:48.53whartungok, curious
18:49.41whartungthe web.xml is the "default" web.xml for all apps. Basically your apps web.xml is combined with this one at runtime to get an overall web.xml up and running. web.xml, for example, is why you don't have to map the JSP servlet.
18:50.32Guest68685bringing things up again to confirm
18:51.15Guest68685Maybe tomcat won't even try to use the one from CATALINA_HOME and just requires that file to be in CATALINA_BASE?
18:54.23whartungYea, that's exactly what I think would happen (it's what SHOULD happen, IMHO), since the web.xml can be tweaked on an instance basis
18:55.46Guest68685Why didn't you just say that to begin with?  ;)
18:56.30Guest68685Seriously, thanks for the help.  I probably would have tried debugging this way eventually but I was too far down the other path to see it.
18:56.54whartungIf you told me it was the problem up front, I would have told you earlier :)
18:56.56whartungyw
22:19.11*** join/#tomcat zyngawow (1f04eee2@gateway/web/freenode/ip.31.4.238.226)
22:23.33zyngawowCould anyone here tell me why I cant write to the file on this servlet? https://github.com/zyngawow/PuntoBile/blob/master/PuntoBile/src/com/puntobile/PuntobileUI.java See method saveSigns()
22:28.36whartungcould easily be a permissions problem. Most web apps have their current directory set to where tomcat is started up (typically $tomcat/bin)
22:28.46whartungzyngawow: ...
22:29.04whartungyou should be more explicit where you want the file to go
22:29.36zyngawowwhartung: it saves it to /home/zyngawow/eclipse
22:29.42whartungok
22:29.59zyngawowwhartung: And I did chmod 777 /home/zyngawow/eclipse and /home/zyngawow/eclipse/*
22:30.11whartungand what errors are you getting?
22:30.26zyngawowSee the check if the file is created?
22:30.30zyngawowWell, it is just not created
22:30.55whartungit just silently fails?
22:31.07zyngawowYes
22:31.37zyngawowI'm on Ubuntu 12.10
22:31.44whartungthen I would get ride of that and just start writing, the process of writing will create the file automatically -- apparently createNewFile is silent on the matter if it fails
22:32.23whartungoic
22:32.28whartungdoes the file already exist?
22:32.36zyngawowBut on plain java File f = new File("test"); f.createNewFile(); works
22:32.40whartungthis only creates a file if the file does not exists at all.
22:32.50zyngawowIt does not exist
22:32.54whartungso it won't overwrite a file
22:33.21*** join/#tomcat nevada-smith (~nevada-sm@S0106c8fb2641d848.vs.shawcable.net)
22:33.23whartungwell then I'd still skip the createnewfile part and see what happens. If you're getting an error, you should be seeing the stack trace with more details
22:33.38zyngawowI'll check that
22:37.17zyngawowwhartung: yeah, now it works :)
22:37.25whartungok
22:37.36whartungdon't make no sense, unless the file was pre-existing.
22:38.34zyngawowYeah..
22:38.39zyngawowIt just works like this, so...
22:38.45whartungcool beans
23:20.28*** join/#tomcat Guest74712 (cpt1138@gateway/shell/sh3lls.net/x-wkmcexjzonvfgiui)
23:23.40*** join/#tomcat jamespage (~jamespage@culvain.gromper.net)
23:23.41*** join/#tomcat jamespage (~jamespage@ubuntu/member/jamespage)
23:41.09*** join/#tomcat jamespag` (~jamespage@culvain.gromper.net)
23:41.10*** join/#tomcat jamespag` (~jamespage@ubuntu/member/jamespage)
23:54.38*** join/#tomcat jamespage (~jamespage@culvain.gromper.net)
23:54.38*** join/#tomcat jamespage (~jamespage@ubuntu/member/jamespage)

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