00:00.35 | jasonb | Well, but if you have META-INF/context.xml in the war file, you should be able to specify the URI path where the context is deployed. |
00:00.44 | jasonb | (via the manager) |
00:00.47 | iprone | hrmk |
00:01.04 | iprone | good point, let me check |
00:11.15 | iprone | yeah i didnt have that set, it deffo works only if i use manager, but it _looks_ like it works if i use a war file, but something is different |
00:11.57 | iprone | now its totally off on a tangent from what the original issue was, but now im pissed |
00:12.36 | iprone | maybe beer will help the situation |
00:24.46 | jasonb | Does it work if it's just a war file and you're deploying it without the manager, but with a META-INF/context.xml file in it? |
00:25.11 | jasonb | In that case, can you specify in your META-INF/context.xml where the webapp gets deployed in the URI space of your Tomcat? |
00:34.21 | jasonb | Guess not. |
01:28.11 | *** join/#tomcat MarkT (~Mark@markt.user) |
01:48.56 | *** join/#tomcat m0sir (~Miranda@222.240.210.29) |
02:05.54 | *** join/#tomcat brc_ (~brian@brc.base.supporter.pdpc) |
02:05.57 | brc_ | greetings |
02:07.16 | brc_ | getting the good 'ol Cannot create JDBC driver of class '' for connect URL 'jdbc:mysql://localhost/jiradb?autoReconnect=true' and can't seem to figure it out |
02:27.11 | *** join/#tomcat lilalinux (e-trolley@deepthroat.deswahnsinns.de) |
03:12.12 | *** join/#tomcat _W_ (johnw@dsl-201-204.o-d.tiscali.no) |
03:18.50 | *** join/#tomcat m0sir21 (~Miranda@222.240.210.29) |
04:11.11 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
04:11.11 | *** join/#tomcat valmont (~chrisholl@lsanca1-ar8-4-43-220-051.lsanca1.elnk.dsl.genuity.net) |
04:26.07 | *** join/#tomcat m0sir (~Miranda@222.240.210.29) |
04:28.05 | *** join/#tomcat iprone (~hula-kevi@adsl-065-012-167-027.sip.asm.bellsouth.net) |
04:43.17 | *** join/#tomcat ibot (ibot@apt.bot.TimRiker.active.supporter.pdpc) |
04:43.17 | *** topic/#tomcat is http://jakarta.apache.org/tomcat Latest stable versions of Tomcat are 5.5.9, 4.1.31, and 3.3.2 If you are a newbie, use the official distribution on Jakarta's site. |
05:06.04 | *** join/#tomcat Raboo (rabi@nikson.dataphone.se) [NETSPLIT VICTIM] |
05:06.04 | *** join/#tomcat frog (~magda@wbbi189.biozentrum.uni-wuerzburg.de) [NETSPLIT VICTIM] |
05:06.04 | *** join/#tomcat teite (shu@sun-shu.ision.net) [NETSPLIT VICTIM] |
05:43.14 | *** part/#tomcat _W_ (johnw@dsl-201-204.o-d.tiscali.no) |
07:16.14 | *** join/#tomcat valmont (~chrisholl@lsanca1-ar8-4-43-220-051.lsanca1.elnk.dsl.genuity.net) |
07:29.08 | *** join/#tomcat loquace (~seb@aqu33-4-82-233-55-6.fbx.proxad.net) |
07:30.34 | loquace | lo |
08:07.42 | *** join/#tomcat m_ (~m_@eacb01-00-cmmgga-70-34-128-236.atlaga.adelphia.net) |
08:33.15 | *** join/#tomcat BlueSmurf (~TheIceCre@233.Red-217-126-194.pooles.rima-tde.net) |
08:50.11 | *** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de) |
08:57.39 | BlueSmurf | how can I specify the start page in tomcat ? (like in apache where you say index.html, index.jsp, ...) |
09:06.22 | *** join/#tomcat nik (~nik@220.225.130.140) |
09:06.38 | HughWork__ | BlueSmurf: yes, i think it is done on a per web application basis in your web.xml |
09:07.06 | HughWork__ | or you can change it in the web.xml settings that are inherited by all webapps - this is set in conf/web.xml iirc |
09:07.37 | BlueSmurf | thanks. Ill see if I can set it. |
09:08.09 | HughWork__ | it's the <welcome-file-list> section |
09:08.32 | BlueSmurf | thanks HughWork__ |
09:13.55 | BlueSmurf | offtopic: what bandwidth is normal for a hosting ? |
09:14.33 | BlueSmurf | for a webportal to hold 100+ users ? |
09:14.48 | BlueSmurf | (sorry for the offtopic, ignore if not appropiate) |
09:35.14 | *** join/#tomcat ni1 (~nik@203.197.156.170) |
09:35.31 | *** join/#tomcat linuxfreck (~freck@fry.fmi.uni-passau.de) |
09:51.03 | *** join/#tomcat ibot (ibot@apt.bot.TimRiker.active.supporter.pdpc) |
09:51.03 | *** topic/#tomcat is http://jakarta.apache.org/tomcat Latest stable versions of Tomcat are 5.5.9, 4.1.31, and 3.3.2 If you are a newbie, use the official distribution on Jakarta's site. |
09:58.01 | *** join/#tomcat themoves (hidden-use@195-97-225-122.onyx.net) |
09:58.48 | *** join/#tomcat noodl (hidden-use@195-97-225-122.onyx.net) |
11:30.05 | BlueSmurf | How does one specify the "-server" option in tomcat on a Windows 2000 Server (that uses the manager). |
11:30.45 | BlueSmurf | I have set -XX: options for tweaking garbage collection ... but if I use -server tomcat wont start. |
11:31.48 | BlueSmurf | My options used are: -XX:MaxNewSize=48m -XX:NewSize=48m -XX:+UseParNewGC -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=60 -XX:TargetSurvivorRatio=128 -XX:MaxTenuringThreshold=0 |
11:32.16 | BlueSmurf | My options used are "-XX:MaxNewSize=48m -XX:NewSize=48m -XX:+UseParNewGC -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=60 -XX:TargetSurvivorRatio=128 -XX:MaxTenuringThreshold=0" sorry |
11:32.59 | BlueSmurf | and -Xmx1024m -Xms1024m in the memory settings |
11:33.56 | BlueSmurf | The server is a dual procesor (+ hyperthreading) and has 2 G of memory. |
11:35.18 | BlueSmurf | In -XX:ParallelGCThreads=n, should n = 2 cos I have 2 procesors, or n=4 for I have 2 cpu + 2 ht. ? |
13:32.40 | *** join/#tomcat randrew (~raj@dolmen.cc.columbia.edu) |
13:51.59 | *** part/#tomcat themoves (hidden-use@195-97-225-122.onyx.net) |
14:02.15 | *** join/#tomcat linuxfreck (~freck@fry.fmi.uni-passau.de) |
14:15.43 | *** join/#tomcat manic (~manicman@p54896EF8.dip.t-dialin.net) |
14:16.34 | *** join/#tomcat atchung (~bendoska@h-67-101-217-237.snfccasy.dynamic.covad.net) |
14:20.30 | *** join/#tomcat brc_ (~brian@brc.base.supporter.pdpc) |
14:45.00 | *** join/#tomcat FreemaniaX (~Freemania@ip67-153-106-58.z106-153-67.customer.algx.net) |
14:52.01 | *** part/#tomcat atchung (~bendoska@h-67-101-217-237.snfccasy.dynamic.covad.net) |
15:05.38 | *** join/#tomcat {aaron} (user@aeolus.cit.cornell.edu) |
15:06.07 | {aaron} | is there an "upgrade guide" or something for tc 5->5.5...? it appears that the context configuration mechanism has changed significantly |
15:06.31 | {aaron} | e.g. copy context and paste into WEB-INF/context.xml or put in webapps/<name>.xml .... ? |
15:29.47 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
15:39.59 | *** join/#tomcat geemark (~geemark@port12.ds1-vey.adsl.cybercity.dk) |
15:54.55 | {aaron} | is it possible to use implicit variables in default context definitions... something like ${name}? |
15:55.32 | {aaron} | i'd like to have each auto-deployed context get its own access and context log with the corresponding name |
15:58.41 | linuxfreck | I doubt that's possible, aaron |
15:59.15 | linuxfreck | it's prolly better to not use autodeployment, but ant to create the context.xml and deploy the webapp |
16:01.10 | {aaron} | is there a default catalina_log logger any more? I don't see it in the new 5.5.9 server.xml, however I have it in my 5.0.mumble server.xml |
16:06.05 | *** join/#tomcat _manic (~manicman@p548953E0.dip.t-dialin.net) |
16:07.27 | jasonb | Logging changed quite a bit in 5.5.x. |
16:07.46 | jasonb | It's now all done via either JULI or via log4j. |
16:07.56 | {aaron} | under the covers...but the config is the same, no? |
16:08.00 | jasonb | It is possible for each context to have its own log, but you'd have to configure that. |
16:08.12 | jasonb | The logging configuration is way different in 5.5.x. |
16:08.17 | jasonb | ibot: juli |
16:08.18 | ibot | juli is, like, http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html#java.util.logging |
16:08.23 | jasonb | That's all new. |
16:08.46 | {aaron} | ahh --> the <Logger> element found in previous versions to create a localhost_log is no longer a valid nested element of <Context> |
16:09.02 | jasonb | Right. |
16:09.11 | jasonb | <Logger> is just gone, period. |
16:11.35 | {aaron} | i see |
16:16.16 | {aaron} | ok, i think i can move all my existing conf/servername/host/<contextname>.xml into their respective appBase/<contextname>/WEB-INF/context.xml |
16:17.37 | {aaron} | can I deploy the same docbase into two hosts? |
16:17.57 | {aaron} | e.g. manager and host-manager, accessible in both my virtual hosts |
16:20.36 | jasonb | Sure. |
16:20.47 | jasonb | Are you deploying via the manager webapp? |
16:21.01 | {aaron} | no i'm just updating my config at this point |
16:21.05 | {aaron} | I don't use the manager to deploy |
16:21.21 | jasonb | And are you deploying your webapp as a war file or as an unpacked dir? |
16:21.30 | {aaron} | jasonb: they are all unpacked dirs |
16:21.54 | jasonb | Then you can't put your config in your <contextname>/WEB-INF/context.xml file, sadly. |
16:21.59 | {aaron} | (and i assume at some point 'admin' app turned into one of 'manager' or 'host-manager') |
16:22.06 | {aaron} | jasonb: crap :/ |
16:22.45 | jasonb | The docs don't say loudly enough that META-INF/context.xml (sorry, not WEB-INF/context.xml) only works if you're deploying your webapp via the manager webapp. |
16:23.07 | {aaron} | hmm (right, META-INF) |
16:23.24 | {aaron} | ok, no biggie... it's just nice to keep the config local to the app as much as possible |
16:23.40 | jasonb | Yes, I wish Tomcat allowed that. |
16:23.50 | {aaron} | I assume the tc 4 style of dumping <contextname>.xml directly into <appBase>/ is also out, right? |
16:24.00 | {aaron} | <appBase>/<contextname>.xml |
16:24.21 | jasonb | I think so.. but actually that's one way I haven't tried yet with TC 5.5. IIRC, they nuked that, but I'm really not sure. |
16:24.33 | {aaron} | i think they say that the auto-deployer uses the META-INF/context.xml though |
16:24.50 | {aaron} | jasonb: that's fine, i never liked the <appBase>/<contextname>.xml anyway |
16:25.40 | {aaron} | hmm, maybe not |
16:25.43 | {aaron} | well, i'll TIAS |
16:26.47 | {aaron} | in our hosted environment, manager-deploy with META-INF/context.xml will be really really sweet |
16:27.59 | {aaron} | "try it and see" :) |
16:28.17 | jasonb | Try using the autodeployer with META-INF/context.xml and see what happens. :) I already know it doesn't work in my 5.5.9. |
16:28.24 | jasonb | ahh.. |
16:28.48 | BlueSmurf | How does one specify the "-server" option in tomcat on a Windows 2000 Server (that uses the manager). |
16:28.58 | BlueSmurf | I have set -XX: options for tweaking garbage collection ... but if I use -server tomcat wont start. |
16:29.14 | BlueSmurf | My options used are "-XX:MaxNewSize=48m -XX:NewSize=48m -XX:+UseParNewGC -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=60 -XX:TargetSurvivorRatio=128 -XX:MaxTenuringThreshold=0" |
16:29.25 | BlueSmurf | jasonb, lucky you. I have to :( |
16:29.47 | {aaron} | gah: java.lang.ClassNotFoundException: org.apache.catalina.valves.ByteBufferAccessLogValve |
16:29.51 | jasonb | BlueSmurf: Who is forcing you to? |
16:30.02 | BlueSmurf | my client. |
16:30.22 | jasonb | {aaron}: Don't use that ByteBufferAccessLogValve. Just use the regular AccessLogValve. |
16:30.27 | jasonb | BlueSmurf: Get a new client. |
16:30.48 | BlueSmurf | jasonb, hehehe. good idea. |
16:32.08 | *** join/#tomcat a4akb (a4akb@62.215.28.192) |
16:32.13 | HughWork__ | BlueSmurf: i'm not familiar with how you would start it in win2k, but i have this in the bin/startup.sh: |
16:32.14 | HughWork__ | export JAVA_OPTS="-server -Xms768M -Xmx768M -XX:MaxPermSize=256M -XX:+UseParallelGC -verbose:gc -XX:+PrintGCDetails -Djmagick.systemclassloader=\"false\" -Djava.library.path=/usr/local/lib -Djava.awt.headless=true" |
16:32.14 | HughWork__ | exec "$PRGDIR"/"$EXECUTABLE" start -security "$@" |
16:32.38 | a4akb | ibot boo |
16:32.39 | ibot | a4akb, for heven's sake, don't do that! |
16:32.58 | HughWork__ | so you could do similar in thing in startup.bat |
16:33.05 | BlueSmurf | HughWork__, mmm, oh, I had read CATALINA_OPTS... Maybe it is the same. |
16:33.49 | BlueSmurf | HughWork__, Thing is they use the manager to run tomcat. It is a service though. So I reas you can place options on install. |
16:34.26 | BlueSmurf | HughWork__, the -server option doesnt work for me. the rest seem to work. |
16:35.41 | HughWork__ | oh |
16:35.51 | HughWork__ | (wrong chan) |
16:36.17 | a4akb | BlueSmurf hi to Papasmurf |
16:36.26 | BlueSmurf | HughWork__, Is there a rule as to how much memory to use in -Xms and -Xmx ? I have half the system memory. |
16:36.40 | BlueSmurf | a4akb, Ill send my regards. |
16:37.06 | a4akb | ty |
16:37.12 | a4akb | ibot BlueSmurf |
16:39.16 | HughWork__ | not really, it depends on the number of applications, what each one does, how often they are reloaded... |
16:46.18 | *** join/#tomcat valmont (~chrisholl@lsanca1-ar8-4-43-220-051.lsanca1.elnk.dsl.genuity.net) |
16:50.15 | a4akb | ibot BlueSmurf is blue |
16:50.17 | ibot | okay, a4akb |
16:50.23 | *** join/#tomcat Sadadar (~blah@lotus.isx.com) |
16:50.29 | a4akb | ibot BlueSmurf |
16:50.30 | ibot | from memory, bluesmurf is blue |
16:51.07 | {aaron} | hmm when using <contextname>.xml you can no longer [ab?]use path to set a multi-part path, e.g. path="/some/nested/path/contextname" docBase="contextname" |
16:51.23 | a4akb | hey argon ltnc |
16:51.54 | Sadadar | anyone know if there is a version of tomcat out that is slimmed down to run with just a JRE? |
16:52.21 | {aaron} | you can do that with stock tomcat can't you? just don't use jsp |
16:53.20 | Sadadar | well, I can't use the startup script, so could I go through there and stop execution of the jsp portion of tomcat and it'd do fine? |
16:54.05 | {aaron} | you'd have to turn off the JSP servlet in web.xml iirc |
16:54.17 | {aaron} | but you'd probably have to restart for that to take effect |
16:54.20 | Sadadar | ok, I'll look into that aaron, thanks |
16:54.46 | {aaron} | you may have to turn it off globally... i never figured out exactly what precedence the web.xml compositing uses |
16:55.52 | randrew | Sadadar: check out jakarta-tomcat-5.5.9/RUNNING.TXT |
16:56.37 | Sadadar | randrew: I'm actually using an official distrib (newb) :o |
16:57.05 | randrew | {aaron}: since 5.5.9 includes the org.eclipse.jdt compiler, jsp should still work. |
16:57.38 | {aaron} | ah, right, i forgot about that.. tc doesn't need jdk for any other reason? |
16:57.40 | randrew | Sadadar: By 'check out' I meant 'read'. It's in the regular distrib |
16:57.45 | *** join/#tomcat manic (~manicman@p548953E0.dip.t-dialin.net) |
16:59.11 | Sadadar | randrew: Yeah I figured that, reading it now |
17:00.29 | a4akb | ibot forget BlueSmurf |
17:00.29 | ibot | a4akb: i forgot bluesmurf |
17:00.33 | a4akb | ibot BlueSmurf is blue (da ba dee) |
17:00.35 | ibot | a4akb: okay |
17:16.06 | *** join/#tomcat valmont (~chrisholl@lsanca1-ar8-4-43-220-051.lsanca1.elnk.dsl.genuity.net) |
17:40.58 | {aaron} | is there a way to configure a context so that it only is accessible "securely", i.e., through https:// ? |
17:44.44 | {aaron} | oh, nm, transport-guarantee |
17:51.48 | *** join/#tomcat kiorky (~kiorky@cryptelium.net) |
17:52.07 | *** join/#tomcat manic (~manicman@p548953E0.dip.t-dialin.net) |
18:07.05 | *** join/#tomcat manic (~manicman@p548953E0.dip.t-dialin.net) |
18:12.34 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
18:17.17 | {aaron} | PUT and DELETE are by default turned off right? |
18:18.04 | jasonb | Yes. |
18:19.05 | {aaron} | good. i don't even think IE and FireFox do the Right Thing with regard to put/delete so i don't think it's of much use to turn them on even in secure contexts |
18:19.24 | {aaron} | (usually the browser just loads the file you drop into it 8s) |
18:22.26 | *** join/#tomcat manic (~manicman@p548953E0.dip.t-dialin.net) |
18:23.28 | *** join/#tomcat crackhead (mlm@blackbox.clarkk.net) |
18:39.33 | *** join/#tomcat iprone (~hula-kevi@216.89.233.129) |
18:42.31 | *** join/#tomcat perssy (~perssy@200.106.15.83) |
18:43.28 | a4akb | ibot yawn |
18:43.29 | ibot | *YAWN* I get *YAWN* tired just thinking of large boxes of unknown substances being poured into nooks and crannies and eaten by little monsters that like to kill fluffy bunnies and oh god I'm tired.. |
18:44.43 | perssy | hello, i have a question. how do i configure tomcat 5.5.9 to generate the uriworkermap.properties to a specific location? |
18:47.46 | perssy | i tried with the IISConfig listener but every time i use that tag tomcat wont start |
18:52.03 | perssy | does the listener tag works in tomcat 5.5.9? |
18:56.04 | perssy | yep it works, but the org.apache.ajp.tomcat4.config.IISConfig is not found |
18:59.19 | perssy | never mind, i solved it. |
19:37.49 | *** join/#tomcat Hellaenergy (~Hellaener@206.231.92.70) |
19:38.25 | {aaron} | hey, using <contextname>/META-INF/context.xml appears to work, even without going through the deployer |
19:38.41 | {aaron} | re: jasonb |
19:39.58 | *** join/#tomcat jimkarbonat (~mj@J28d9.j.pppool.de) |
19:39.59 | *** part/#tomcat Hellaenergy (~Hellaener@206.231.92.70) |
19:40.38 | *** join/#tomcat loquace (~seb@aqu33-4-82-233-55-6.fbx.proxad.net) |
19:41.49 | iprone | aaron: using tomcat 5.5.9? |
19:41.56 | {aaron} | yes |
19:42.34 | {aaron} | as in: when I put context.xml with remoteaddrvalve, I can prove that the restrictions are being read and enforced |
19:42.44 | {aaron} | so it obviously is reading it from there |
19:43.06 | {aaron} | http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html |
19:43.18 | iprone | yeah, i can see the context.xml is being read as well, just some things do not work, such as setting a diff context path |
19:43.21 | {aaron} | 4th bullet |
19:43.38 | iprone | unless youve got that to work as well, then im just an idiot |
19:44.32 | {aaron} | oh no, the path="/arbitrary/path" doesn't work with context config files |
19:44.43 | {aaron} | but that's not as important for me |
19:44.53 | {aaron} | it's probably a bad idea to define non-matching paths anyway |
19:45.03 | iprone | yeah, ive gotten it to set the path properly in the config, but i can only get it to work when i deploy it using the manager app |
19:45.06 | iprone | in a war file |
19:45.09 | jimkarbonat | hm, I wonder what the new "host-manager" webapp in Tomcat 5.5.9 does, i can't get it to run... |
19:45.19 | {aaron} | jimkarbonat: virtual host config |
19:45.27 | {aaron} | jimkarbonat: add the roles in tomcat-users.xml |
19:45.49 | {aaron} | like, <user name="admin" password="asdasdfasdf" roles="admin,manager"/> |
19:45.51 | {aaron} | something like that |
19:46.08 | {aaron} | does 5.5.9 have the traditional "admin" app that showed the server configuration graphically? |
19:46.19 | {aaron} | i think maybe one of my contexts is shadowing it |
19:58.39 | *** join/#tomcat ibot (ibot@apt.bot.TimRiker.active.supporter.pdpc) |
19:58.39 | *** topic/#tomcat is http://jakarta.apache.org/tomcat Latest stable versions of Tomcat are 5.5.9, 4.1.31, and 3.3.2 If you are a newbie, use the official distribution on Jakarta's site. |
20:17.33 | *** join/#tomcat ibot (ibot@apt.bot.TimRiker.active.supporter.pdpc) |
20:17.33 | *** topic/#tomcat is http://jakarta.apache.org/tomcat Latest stable versions of Tomcat are 5.5.9, 4.1.31, and 3.3.2 If you are a newbie, use the official distribution on Jakarta's site. |
20:24.22 | *** join/#tomcat groton (~username@host-84-222-102-22.cust-adsl.tiscali.it) |
20:30.25 | *** join/#tomcat kiorky_f (kiorky_f@cryptelium.net) |
20:43.31 | *** join/#tomcat kiorky_f (kiorky_f@cryptelium.net) |
20:44.53 | *** join/#tomcat nakeeee (~elylevy@os-16.cs.huji.ac.il) |
20:45.32 | nakeeee | how can I get the value of something I defined in server.xml from a servlet? |
20:46.07 | nakeeee | getInitParameters seems to work only on things defined in web.xml |
20:47.16 | *** join/#tomcat kiorky-obs (~kiorky@cryptelium.net) |
21:00.38 | {aaron} | nakeeee: you can define global or context-specific context params or environment entries |
21:01.27 | {aaron} | make sure you are using ServletContext.getInitParameter, not ServletConfig.getInitParameter |
21:03.07 | nakeeee | {aaron} if I use Environment inside context in the server.xml it is global? |
21:03.16 | nakeeee | or is there some other way to make it global? |
21:43.12 | *** join/#tomcat kiorky (kiorky_f@cryptelium.net) |
21:49.28 | *** join/#tomcat kiorky (kiorky_f@cryptelium.net) |
22:00.31 | *** join/#tomcat kiorky (kiorky_f@cryptelium.net) |
22:11.11 | *** join/#tomcat ibot (ibot@apt.bot.TimRiker.active.supporter.pdpc) |
22:11.11 | *** topic/#tomcat is http://jakarta.apache.org/tomcat Latest stable versions of Tomcat are 5.5.9, 4.1.31, and 3.3.2 If you are a newbie, use the official distribution on Jakarta's site. |
22:24.34 | loquace | ++ |
22:43.24 | *** join/#tomcat Big_Bozz (~Big_Bozz@user-6710.l1.c3.dsl.pol.co.uk) |
22:46.56 | Big_Bozz | Evening everyone - having a problem with a Postgresql JDBCRealm. I use to work fine, and I believe after doing some upgrades to both Tomcat and Postgresql it seems to stop working. In the log I get: "Exception opening database connection" when I start the application server, and then "Exception performing authentication" everytime I try to authenticate. Currently running Tomcat 5.0.28 and Postgresql 8.0.1 |
23:03.49 | *** join/#tomcat kiorky-xmms (~kiorky@cryptelium.net) |
23:05.17 | *** part/#tomcat Big_Bozz (~Big_Bozz@user-6710.l1.c3.dsl.pol.co.uk) |
23:05.34 | *** join/#tomcat kiorky-xmms (~kiorky@cryptelium.net) |
23:12.27 | *** join/#tomcat kiorky-x1ms (~kiorky@cryptelium.net) |
23:23.19 | *** join/#tomcat viking667 (~viking@203.184.23.165) |
23:26.14 | viking667 | I'm using the "official" distribution tarball (on Linux), installed it, added admin user, started it up, but whenever I try referencing /manager/* (html, status, whatever) I get a 403 (forbidden) - what am I likely to have forgotten? |
23:28.25 | jasonb | viking667: Which version of Tomcat? Also, what do your logs say? |
23:28.36 | jasonb | viking667: Also, which Java brand & version? |
23:30.18 | viking667 | right. 5.5.9, jdk1.5.0_03, ahmm, what am I supposed to look for in logs? |
23:30.56 | viking667 | I've got another question I'll ask after this, about sample applets all being filled with ^0 |
23:31.08 | jasonb | Do a "grep -i exception $CATALINA_HOME/logs/*" |
23:31.31 | viking667 | Oh. a few SAX items, hang on, I'll go peel the rest. |
23:31.41 | jasonb | But, also, I'd look through the logs to see any info about the manager webapp.. did it deploy? Any deployment problems? |
23:31.58 | jasonb | Yeah, sounds like configuration b0rkage. |
23:33.17 | viking667 | mainly referencing the jsp2 sample I tried to run and it wouldn't |
23:33.23 | viking667 | nothing aside from that |
23:33.42 | jasonb | So what about logs about the manager webapp? |
23:34.26 | viking667 | that file's empty |
23:35.19 | jasonb | In case you hadn't seen it, you should probably read our article that says how to set this up: http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html |
23:35.37 | viking667 | Thanks - I'll go read that now. |
23:35.39 | jasonb | That was written for TC 4.1, so I don't know if parts don't apply cleanly anymore. |
23:35.48 | jasonb | But, mainly, it's probably still correct. |
23:36.17 | viking667 | wow... dat's OLD! |
23:37.11 | viking667 | seems there's almost everything I need in the local docs BAR the one thing I want... |
23:38.56 | *** join/#tomcat kiorky (~kiorky@cryptelium.net) |
23:40.07 | *** join/#tomcat kiorky (~kiorky@cryptelium.net) |
23:40.09 | viking667 | oooookay. I have a <manager> role defined, I have two users with that role assigned to them. |
23:45.19 | viking667 | one "path" missing from manager.xml - though the docbase is defined, could that have caused my problem? |
23:45.44 | viking667 | I've stuck it back in, and I'm about to try it again. |
23:46.26 | jasonb | Well, 403 means you're forbidden from whatever is there.. 404 means it's missing.. If you deployed it on the wrong path, I'd expect a 404, not a 403. |
23:46.47 | viking667 | hrm. now I get 404 |
23:47.09 | viking667 | ... asking for /manager/status |
23:47.20 | viking667 | ... like it's not there and never been |
23:47.27 | viking667 | I'll try something else |
23:48.51 | viking667 | awww crap. It's not there, period. |
23:50.58 | viking667 | ahhh. missed quotes around "/manager" |
23:51.03 | viking667 | that one was easy. |
23:51.13 | jasonb | Yeah, you kinda need those. :) |
23:51.15 | viking667 | lessee if it's done the right thing this time. |
23:52.06 | viking667 | now I'm back to 403 |
23:52.15 | viking667 | for /manager/list |
23:52.41 | viking667 | oh, and it never asked me for a password |
23:53.00 | viking667 | nor a username, come to think of it. Guess I'd better reboot browser after all. |
23:56.48 | viking667 | I'll have to pick THIS up later on. Thanks for the help. |