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.46 | onats | hello |
10:41.48 | onats | anyone 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.15 | Guest68685 | Tomcat 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.32 | Guest68685 | isn'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.50 | whartung | yea 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.11 | Guest68685 | I agree, but I've obviously got something broken |
18:08.25 | Guest68685 | FWIW, Psi-probe is misbehaving in a similar way. |
18:08.47 | whartung | how about a simple hello world app? |
18:09.18 | Guest68685 | I don't really think the problem is the app itself, but how tomcat and the contexts are configured. |
18:09.34 | Guest68685 | Like I said, the apps work fine if I start it with the normal tomcat dir. |
18:09.55 | Guest68685 | FWIW, 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.31 | whartung | is /opt/tomcat7 your CATALINA_BASE? |
18:10.40 | whartung | because each BASE will have "its own" manager, right? |
18:11.25 | Guest68685 | I 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.05 | whartung | Each BASE is it's own "instance" of tomcat, the HOME stuff is all the shared core infrastructure (binaries, libs, etc.) |
18:12.17 | whartung | now, in theory |
18:12.42 | whartung | I 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.56 | whartung | but that's separate from the BASE/HOME "thing" (should be at least) |
18:13.36 | Guest68685 | The 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.56 | whartung | yea I don't know anything about psi-probe |
18:14.06 | whartung | maybe it's making assumptions |
18:14.55 | Guest68685 | If 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.18 | whartung | that suggest it can't find that JSP file. |
18:15.20 | Guest68685 | rather, pull it out into CATALINA_BASE/webapps |
18:15.54 | Guest68685 | I agree but being new to both Java and Tomcat, I don't have a clue *why* it wouldn't find it. |
18:16.08 | whartung | well |
18:16.09 | whartung | try this |
18:16.15 | whartung | install tomcat somplace |
18:16.22 | whartung | get psi-probe working |
18:16.28 | whartung | (see if it works) |
18:16.34 | whartung | then, when it does |
18:16.37 | whartung | clone the entire directory |
18:16.43 | whartung | point BASE at that, and HOME at the other, |
18:16.47 | whartung | then see if that works |
18:16.56 | whartung | ideally it should be just peachy, right? |
18:16.59 | whartung | but we'll see |
18:17.47 | Guest68685 | <PROTECTED> |
18:18.18 | *** join/#tomcat acidjnk (~havenone@pD9F86AE8.dip.t-dialin.net) |
18:18.29 | whartung | then 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.32 | Guest68685 | yep, that appears to work |
18:21.48 | whartung | yea, it better ! lol |
18:22.00 | Guest68685 | Trying to pull things back out... |
18:26.53 | whartung | I know it's not a particularly deterministic process, more of a "does it hurt here" style of diagnosis. |
18:32.55 | Guest68685 | sure |
18:33.05 | Guest68685 | so fwiw, I'm down to the conf dir |
18:33.23 | Guest68685 | not surprisingly, it appears to be a configuration problem ;) |
18:34.03 | whartung | shocking! |
18:37.37 | *** join/#tomcat Romeo- (~Romi@unaffiliated/romeo/x-000000001) |
18:39.49 | *** join/#tomcat yassine (~yassine@unaffiliated/yassine) |
18:41.07 | Guest68685 | So my CATALINA_BASE before didn't have a web.xml. It appears that I need one (or something in it). |
18:42.55 | whartung | yea that makes sense I suppose |
18:43.25 | whartung | it's a shame if there's a directory that has to be shared across HOME and BASE |
18:43.29 | whartung | (or split, perhaps) |
18:43.40 | whartung | rather than, say, config_home and config_base |
18:48.14 | Guest68685 | yep, 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.53 | whartung | ok, curious |
18:49.41 | whartung | the 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.32 | Guest68685 | bringing things up again to confirm |
18:51.15 | Guest68685 | Maybe tomcat won't even try to use the one from CATALINA_HOME and just requires that file to be in CATALINA_BASE? |
18:54.23 | whartung | Yea, 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.46 | Guest68685 | Why didn't you just say that to begin with? ;) |
18:56.30 | Guest68685 | Seriously, 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.54 | whartung | If you told me it was the problem up front, I would have told you earlier :) |
18:56.56 | whartung | yw |
22:19.11 | *** join/#tomcat zyngawow (1f04eee2@gateway/web/freenode/ip.31.4.238.226) |
22:23.33 | zyngawow | Could 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.36 | whartung | could easily be a permissions problem. Most web apps have their current directory set to where tomcat is started up (typically $tomcat/bin) |
22:28.46 | whartung | zyngawow: ... |
22:29.04 | whartung | you should be more explicit where you want the file to go |
22:29.36 | zyngawow | whartung: it saves it to /home/zyngawow/eclipse |
22:29.42 | whartung | ok |
22:29.59 | zyngawow | whartung: And I did chmod 777 /home/zyngawow/eclipse and /home/zyngawow/eclipse/* |
22:30.11 | whartung | and what errors are you getting? |
22:30.26 | zyngawow | See the check if the file is created? |
22:30.30 | zyngawow | Well, it is just not created |
22:30.55 | whartung | it just silently fails? |
22:31.07 | zyngawow | Yes |
22:31.37 | zyngawow | I'm on Ubuntu 12.10 |
22:31.44 | whartung | then 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.23 | whartung | oic |
22:32.28 | whartung | does the file already exist? |
22:32.36 | zyngawow | But on plain java File f = new File("test"); f.createNewFile(); works |
22:32.40 | whartung | this only creates a file if the file does not exists at all. |
22:32.50 | zyngawow | It does not exist |
22:32.54 | whartung | so it won't overwrite a file |
22:33.21 | *** join/#tomcat nevada-smith (~nevada-sm@S0106c8fb2641d848.vs.shawcable.net) |
22:33.23 | whartung | well 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.38 | zyngawow | I'll check that |
22:37.17 | zyngawow | whartung: yeah, now it works :) |
22:37.25 | whartung | ok |
22:37.36 | whartung | don't make no sense, unless the file was pre-existing. |
22:38.34 | zyngawow | Yeah.. |
22:38.39 | zyngawow | It just works like this, so... |
22:38.45 | whartung | cool 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) |