00:10.51 | MHSL | EricL, if you deploy the war file, you don't need to, since tomcat will do that for you |
00:23.56 | *** join/#tomcat Andex (n=sirioth@c-68-37-25-25.hsd1.pa.comcast.net) |
00:24.32 | Andex | I have a question about Weblogic. I'm running Weblogic9.1 Java5_64 and AIX 5.3 |
00:24.38 | Andex | Anyone know anything about weblogic? |
00:25.49 | Andex | My question is this: Is there a way to set the garbage collection at a higher rate than 10%. In Weblogic.log it seems to dip real low before it garbage collects and frees up memory. Once or twice it crashed under high load. |
00:28.35 | MHSL | you may want to go to weblogic channel instead of tomcat |
00:28.47 | Andex | #weblogic |
00:29.19 | Andex | There isn't one, this is the closest I found.. |
00:29.34 | jasonb | It's not very close. |
00:29.57 | Andex | I didn't say very close.. |
00:32.11 | MHSL | tomcat has nothing to do with weblogic |
00:32.19 | Andex | I know this. |
00:32.39 | MHSL | ok |
00:32.51 | Andex | It was once in the channel topic though: http://irc.netsplit.de/chat/tomcat.php |
00:32.58 | Andex | Topic for #tomcat is: Stable versions: 6.0.18, 5.5.26 and 4.1.37. 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... |
00:33.17 | Andex | oops wrong paste |
00:33.18 | *** part/#tomcat Andex (n=sirioth@c-68-37-25-25.hsd1.pa.comcast.net) |
00:33.35 | *** join/#tomcat roadt (n=roadt@61.191.27.34) |
00:35.34 | EricL | MHSL: If I create a file called ROOT.war and put it in the webapps dir, it unzips into ROOT and I have to it via domain.com/ROOT/index.html |
00:35.41 | EricL | (ie I just tried it). |
00:36.58 | MHSL | EricL, you dont need to unzip it, tomcat will do it for you, as i said above |
00:37.54 | MHSL | i guess you're still confused about .war file deployment, you should read tomcat doc |
00:38.09 | MHSL | gtg |
01:13.35 | *** join/#tomcat kanai (n=kanai@124.32.114.226) |
01:29.49 | *** join/#tomcat keenerdog (n=foo@cpe-66-69-81-195.satx.res.rr.com) |
02:14.51 | *** join/#tomcat Internat (n=nf@123-243-184-161.static.tpgi.com.au) |
03:04.49 | *** join/#tomcat vinse (n=vinse_@208.253.223.146) |
03:16.17 | *** join/#tomcat ulfdoz (i=mary@2001:1a50:5057:0:0:0:0:1) |
03:37.02 | *** join/#tomcat acidjnk (i=acid@pD9509D25.dip0.t-ipconnect.de) |
03:55.58 | *** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
03:56.35 | *** join/#tomcat jasonb_ (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
04:26.15 | *** join/#tomcat nmcbride (n=nmcbride@c-24-125-17-152.hsd1.va.comcast.net) |
04:26.30 | nmcbride | hey guys I'm tryign to get tomcat behind apache and I'm not sure I setup the conf file correctly |
04:26.36 | nmcbride | anyone mind taking a quick look? |
04:27.12 | nmcbride | i just keep getting a 503 service tempoairily unavailable |
04:28.55 | nmcbride | actually |
04:29.03 | nmcbride | i turned off turbogears |
04:29.08 | nmcbride | now when I goto a jsp filee |
04:29.16 | nmcbride | tomcat tells me the file is unavailable? |
04:29.29 | nmcbride | i suppose thats a good thing because it means it is forwarding to tomcat |
04:29.39 | nmcbride | tomcat just isn't serving it correctly |
04:37.13 | nmcbride | im so close i can taste it :D |
04:38.01 | nmcbride | yet so far >< |
04:39.17 | nmcbride | jasonb: mind taking a look at my conf? |
04:54.19 | *** join/#tomcat cppexpert (n=cppexper@c-24-130-62-198.hsd1.ca.comcast.net) |
04:54.39 | cppexpert | Guys, is it possible to define additional library folder for Tomcat (besides /lib) ? |
04:58.44 | nmcbride | I don't think anyone is active right now. |
04:59.07 | cppexpert | all right |
05:05.12 | lyken | cppexpert: you can have the tomcat wide lib dir in common/lib |
05:05.23 | lyken | and then the application specific ones in web-inf/lib |
05:05.28 | lyken | nmcbride: how ar eyou doing it ? |
05:05.49 | nmcbride | i have both apache and tomcat |
05:05.51 | nmcbride | got mod_jk |
05:06.01 | nmcbride | and made the conf file |
05:06.07 | lyken | bummer, i dont know how to do mod_jk |
05:06.09 | lyken | only mod_proxy |
05:06.18 | nmcbride | ah |
05:06.26 | lyken | cause its not the suck |
05:07.34 | nmcbride | yea, i use mod proxy for turbogears |
05:07.50 | lyken | is there something specific you need mod_jk to do ? |
05:08.07 | nmcbride | just to have tomcat to serve the jsp pages |
05:08.12 | lyken | like a feature of mod_jk that you need |
05:08.16 | nmcbride | but tomcat is giving me a 404 |
05:08.27 | lyken | if not id recommend switching to mod_proxy |
05:08.30 | lyken | take half as long to set up |
05:08.36 | lyken | and will 'just work |
05:09.04 | nmcbride | i wanna run java stuff in my turbogears apps |
05:09.29 | nmcbride | i don't think i can do that with mod proxy cause that will give me either one or the other |
05:09.49 | nmcbride | and to drill it down even more i want to use zk in turbogears |
05:10.04 | lyken | ok |
05:10.24 | lyken | i dont know what turbogears is |
05:10.26 | lyken | *googles* |
05:14.04 | karstensrage | is the mbean-descriptor.xml described anywhere in more detail than the tomcat docmentation has? |
05:14.16 | karstensrage | google doesnt turn up anything relevant which scares me |
05:25.35 | *** part/#tomcat cppexpert (n=cppexper@c-24-130-62-198.hsd1.ca.comcast.net) |
06:02.39 | karstensrage | does this http://oss.wxnet.org/mbeans.html |
06:03.44 | karstensrage | still all pertain to tomcat 6.0.13 |
06:08.41 | *** join/#tomcat kanai_ (n=kanai@124.32.114.226) |
06:23.57 | *** join/#tomcat jfclere (n=jfclere@57.79.66.141) |
06:36.05 | *** join/#tomcat mesut (n=power@212.175.227.90) |
06:38.47 | karstensrage | sighs |
06:38.52 | karstensrage | javax.management.NotCompliantMBeanException |
06:39.44 | *** join/#tomcat Kira (n=chatzill@210.176.243.218) |
06:40.53 | Kira | Here is something that I don't understand about using mod_jk and Tomcat's Apache auto-configure feature. |
06:49.11 | Kira | According to http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html, if I create workers.properties under $TOMCAT_HOME/conf/jk/, Tomcat would create $TOMCAT_HOME/conf/auto/mod_jk.conf upon starting, but then am I supposed to copy away this mod_jk.conf so that I can customise it? Otherwise Tomcat may overwrite it the next time it's restarted, right? |
06:56.11 | karstensrage | well youre right it doesnt explicitly state otherwise but it may only generate it if its not there already |
07:24.04 | Kira | How about the uriworkermap.properties file? Does Tomcat ever need to read it? Or does it only need to be readable by Apache? |
07:27.13 | Kira | !uriworkermap |
08:50.09 | *** join/#tomcat cppexpert (n=cppexper@c-24-130-62-198.hsd1.ca.comcast.net) |
08:50.16 | cppexpert | Is anybody still here ? |
08:51.53 | mesut | sup? |
08:54.56 | cppexpert | mesut: I have weird issue. Check this code http://tinyurl.com/5jk8m4 and particularily method deserialize(). For some reason it throws exception ClassNotFoundException when trying to deserialize my object. BUT it works fine when I bundle memcached JAR with my application (WEB-INF\lib\) but throws exception when I put memcached-2.1.jar into {tomcat.home}/lib. Why is that ? |
08:56.40 | *** join/#tomcat magentar (n=magentar@ip-81-210-196-176.hsi.iesy.net) |
09:00.03 | cppexpert | hello? |
09:09.04 | lyken | cppexpert: ? |
09:09.20 | cppexpert | yes |
09:09.55 | lyken | common/lib.. |
09:09.57 | *** join/#tomcat sveajobb (n=tommy@83.233.28.240) |
09:10.53 | cppexpert | Where 'common' folder is ? |
09:11.23 | cppexpert | What especially puzzles me is that it works on Linux box, but fails on my Windows development machine. |
09:11.34 | cppexpert | It's like class loader behaves differently. Weird! |
09:11.53 | lyken | yeah that is not uncommon |
09:12.31 | cppexpert | so what is "common/lib" ? |
09:12.59 | lyken | hold on |
09:13.03 | lyken | i haven't played with java in a whiles |
09:13.08 | lyken | let me pull down a distribution of it |
09:13.13 | cppexpert | ok |
09:14.40 | lyken | hmm |
09:15.00 | lyken | things have changed a bit since i last played with this :) |
09:15.13 | lyken | did you restart tomcat after droping the jar in there ? |
09:18.58 | cppexpert | yea, people at #java say it's class-loader issue but don't know how to fix it. |
09:19.33 | lyken | hmm |
09:19.41 | lyken | don't know sorry |
09:20.27 | cppexpert | okay |
09:33.11 | Internat | thats cause lyken sucks |
09:34.03 | lyken | you do ! |
09:34.09 | lyken | runs off crying |
09:39.01 | Internat | lol |
09:39.07 | Internat | hows u bro? |
09:42.00 | cppexpert | :) |
09:42.06 | lyken | alright |
09:42.12 | cppexpert | Where are you guys physically right now ? |
09:42.16 | cppexpert | It's late. |
09:42.26 | lyken | FINALLY got a reprint of a radio episode so i can release our podcast for last week and the week before |
09:42.29 | lyken | brisbane, aus |
09:43.38 | cppexpert | Nice. I've never been to aus. I had one dude in the team at previous job who was from your place. He was creator of Shareaza (popular p2p client of old days). |
09:44.24 | lyken | not austria |
09:46.49 | cppexpert | I know :) |
09:47.03 | cppexpert | Kazaa was from Austria. |
09:52.19 | Internat | aus = win :) |
10:10.25 | *** join/#tomcat albert_kam (n=albert@125.160.174.102) |
10:11.00 | *** join/#tomcat yassine (n=yassine@unaffiliated/yassine) |
10:27.19 | *** join/#tomcat sebdah (n=sebdah@unaffiliated/sebdah) |
10:31.30 | sebdah | Hi! I'm running Tomcat 5.0.28, Java jdk1.6.0_06, OpenSUSE Linux 10.2 (i586), with my server.xml pasted here: http://dpaste.com/74163/ . And I wonder what happends when too man many concurrent sessions are opened to Tomcat. Will it send a time out, a 500, or some kind of busy-try-again-message? |
10:32.45 | sebdah | I'm running some load tests towards an application which is state less. And some sessions are broken with higher loads. So I'm trying to find out if it's the application or Tomcat that is trowing away requests. |
10:47.06 | *** join/#tomcat ramteid (n=ramteid@91.112.34.214) |
10:56.07 | Kira | On a Linux system, what's the most recommended way to make Tomcat run as a daemon with the rights of an unprivileged user? Is it jsvc? |
11:02.30 | pucko | jsvc works yes. or you can run tomcat as an unprivileged user and use a firewall portforwarding from port 80 to 8080 or so |
12:10.55 | chillitom | Kira, use iptables |
12:12.30 | chillitom | Kira, http://pastie.org/260876 |
12:12.55 | chillitom | Kira, where 192.168.0.215 is your machines ip address and eth0 is your gateway interface |
12:13.17 | chillitom | you can load that into iptables using the iptables-restore command. |
12:27.19 | *** join/#tomcat randrewj (n=raj-user@user-160ur0g.cable.mindspring.com) |
12:30.48 | *** join/#tomcat internat1 (n=nf@123-243-184-161.static.tpgi.com.au) |
12:47.50 | *** join/#tomcat durre (n=sdf@18.175.241.83.in-addr.dgcsystems.net) |
12:51.09 | durre | I'm trying to understand how to deploy webapps in tomcat 6.0.18. We usually do it like this in the server.xml http://pastebin.com/m5c053a50 ... but it seems this is not recommended? instead we should use a META-INF/context.xml. I'm looking at the docs but there are no good examples |
12:55.24 | *** join/#tomcat niek944 (n=chatzill@s5591888a.adsl.wanadoo.nl) |
12:56.51 | niek944 | thanks for the subtle and friendly welcome. |
13:33.29 | *** join/#tomcat codejunky (i=jan@nerdig.org) |
13:33.36 | *** part/#tomcat codejunky (i=jan@nerdig.org) |
13:35.56 | durre | what am I doing wrong with the server.xml and/or context.xml? http://pastebin.com/m61ff26fa |
13:36.12 | MHSL | durre, you still can use that, but the down side of that is if you need to reload your context, you need to restart your tomcat unless you're using the manager webapp to reload your webapp |
13:37.05 | MHSL | durre, what kind of example that you need? you just need to move the whole block of <Context> to a separate context.xml, this is the only difference |
13:37.38 | MHSL | durre, anything wrong at all? do you get any error? |
13:38.20 | MHSL | durre, this is obviously wrong appBase="C:/webroot/master" |
13:38.43 | MHSL | durre, refer to http://tomcat.apache.org/tomcat-6.0-doc/config/host.html |
13:38.49 | durre | MHSL: thanks for the reply. did you check my last pastebin? I'm getting 400 Bad request |
13:39.20 | MHSL | see what i said ^ |
13:39.56 | MHSL | durre, appBase="C:/webroot/master" and docBase="C:\webroot\master" cannot be the same |
13:45.21 | durre | MHSL, so it should be like appBase="C:/webroot" and docBase="\master"... (haven't gotten it working yet but it takes time to restart) |
13:46.46 | MHSL | durre, for your case yes, appBase should be C:/webroot. docBase must be an absolute path to your webapp directory, however, if your webapp is deployed under appBase, you dont need to specify the docBase |
13:57.44 | durre | MHSL, ok, I think I understand a little better now. I set appBase="C:/webroot" (which is a directory containing lots of different webapps). now tomcat should go through this directory looking for a META-INF/context.xml ... I removed the docBase completely from the tag as stated in the documentation |
13:57.51 | durre | still no go tho |
13:58.50 | durre | hmm, nevermind. I think the problem is with all the other webapps in the dir somehow. get permgen after a while |
14:01.49 | MHSL | durre, context.xml under your webapp META-INF is not compulsory if the webapp is located under appBase |
14:02.55 | *** join/#tomcat jayaund (n=felizfx@main.actualweb.es) |
14:12.35 | *** join/#tomcat deebo (i=globe@stonebay32.com) |
14:19.43 | durre | MHSL, one final try. appBase="C:/webroot ... under webroot I have a directory called master that contains the webapp with WEB-INF and other dirs. I removed the META-INF/context.xml. When I restart tomcat I can see that the app is being initialized in the log, but when I try to access the url I get a bad request and it doesnt seem to reach the app |
14:24.12 | MHSL | durre, how did you try to access it? do you see anything on the log? |
14:25.43 | durre | MHSL, well, I type in http://master.dev.local/ .. in the browser. nothing happens in our own log file and nothing in the catalina ones |
14:30.49 | *** join/#tomcat Internat (n=nf@123-243-184-161.static.tpgi.com.au) |
14:41.52 | MHSL | durre, another thing, why do you have <Host name="master.dev.local".. but you have another <Alias>master.dev.local</Alias> |
14:43.20 | MHSL | durre, I get a bad request -> where does master.dev.local point to? have you tried to use the IP instead? |
14:45.47 | *** join/#tomcat tkocurek (n=chatzill@12.68.232.114) |
14:46.43 | randrewj | durre: with Context path not explicitly set, your app may be at http://master.dev.local/master/ |
14:48.41 | tkocurek | Hello I am running Tomcat 6.0.18, with Java 1.5.0_13, on Mac OS X Leopard. I seem to be having trouble with a JSTL function. My team mates have seen no issues, but my app breaks when it cannot find the 'empty' function. |
14:48.53 | tkocurek | Is this function part of the JSTL Core? |
14:52.30 | durre | MHSL, http://pastebin.com/m5c053a50 .. if I have this in server.xml. the reason we want to do it in another way is to try if we can get reloading of individual contexts working. now we have to restart the whole tomcat |
14:56.08 | *** join/#tomcat brif8 (n=brif8@rrcs-24-227-64-35.se.biz.rr.com) |
14:57.09 | brif8 | TC: 6.0.18 Java: 1.6.0.07 OS: Debian I'm using the org.apache.client.kerberos package(s) It uses the org.slf4j.Logger & LoggerFactory. But Where do I find these Log Files ? |
15:14.21 | *** join/#tomcat Magec (n=jfernand@73-41-48.uoc.es) |
15:16.08 | durre | MHSL, if its helpful. when I changed the structure to: c:/webroot/master/ROOT/ and have all the files in that dir it works with appBase="C:/webroot/master" and no context file |
15:16.09 | Magec | Hello, Is there a way for killing a tomcat thread that is being running for so long? I think an app gets into an infinite loop. I want it killed after 60 secs without response. I have been looking for such a property without success. Any idea? thanks in advanza |
15:17.19 | *** join/#tomcat Internat (n=nf@123-243-184-161.static.tpgi.com.au) |
15:24.15 | *** join/#tomcat Savar (n=savar@dslb-088-078-010-216.pools.arcor-ip.net) |
15:26.02 | MHSL | durre, yes of course, just like what randrewj said, if your webapp name is not ROOT, then you need to append the webapp context path to the URL |
15:26.47 | MHSL | Magec, restart the webapp |
15:27.01 | MHSL | Magec, or reload the class file |
15:27.19 | MHSL | which will trigger context reload anyway |
15:27.56 | MHSL | brif8, read the manual, you have to have some kind of configuration |
15:29.14 | MHSL | durre, yes, if you put your <Context> in your server.xml, you have to restart your tomcat to reload a specific webapp, unless you're using the manager |
15:30.50 | MHSL | durre, i think you're still confused regarding appBase and docBase? |
15:30.59 | MHSL | durre, if you're, please read the tomcat doc |
15:31.34 | durre | MHSL, I will read more. thanks for helping out :) |
15:32.56 | MHSL | np |
15:37.21 | Magec |  MHSL is there a way to check what webapp is making that happend programmatically? |
15:38.44 | *** join/#tomcat Kira_ (n=chatzill@210.176.243.218) |
15:41.06 | *** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org) |
16:04.25 | Magec | MHSL I stop the app, but the thread keeps running |
16:19.55 | *** part/#tomcat sipsniffa (n=paul@cpc3-clif1-0-0-cust594.nott.cable.ntl.com) |
16:20.09 | *** join/#tomcat sipsniffa (n=paul@cpc3-clif1-0-0-cust594.nott.cable.ntl.com) |
16:20.52 | *** part/#tomcat sipsniffa (n=paul@cpc3-clif1-0-0-cust594.nott.cable.ntl.com) |
16:21.09 | *** join/#tomcat sipsniffa (n=paul@cpc3-clif1-0-0-cust594.nott.cable.ntl.com) |
16:31.51 | *** join/#tomcat pfn (n=pfnguyen@hanhuy.com) |
16:51.08 | *** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-a8ed5abe6677d595) |
16:52.09 | *** join/#tomcat jasonb (n=jasonb@75.144.23.117) |
17:03.04 | *** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org) |
17:11.20 | mey | i'm trying to enable debug logging for AuthenticatorBase and RealmBase in Tomcat 6.0.14 |
17:11.29 | mey | ive added |
17:11.30 | mey | org.apache.catalina.realm.RealmBase.level = ALL |
17:11.30 | mey | org.apache.catalina.authenticator.AuthenticatorBase.level = ALL |
17:11.36 | mey | to my logging.properties file |
17:12.08 | mey | and i've bumped java.util.logging.ConsoleHandler.level = FINEST |
17:12.25 | mey | but i'm still not getting the debug statements |
17:12.44 | mey | any suggestions? |
17:12.53 | mey | org.apache.catalina.realm.RealmBase.level = ALL |
17:13.02 | mey | ignore the double paste |
17:18.53 | mey | i found the issue |
17:19.05 | mey | i wasn't setting java.util.logging.config.file property on vm launch |
17:20.04 | *** join/#tomcat karstensrage (n=chatzill@75-55-199-5.mobitv.com) |
17:50.34 | *** join/#tomcat TOV_ (i=user@181-196.pppoe.vitebsk.by) |
17:50.38 | TOV_ | Hi 2 all |
17:53.14 | jasonb | mey: Glad you found that. Sounds like you're deep into JULI logging. :) |
17:56.06 | mey | jasonb: yup :) written my own SPNEGO authenticator and Active Directory Realm |
17:56.54 | mey | plumbing in new security systems isn't terribly easy, yet still drastically easier then configuring kerberos in java |
17:57.34 | mey | and accessing AD over LDAP using SASL/GSSAPI took some looking |
17:58.12 | *** join/#tomcat da_krowa (n=Miranda@chello089077099221.chello.pl) |
17:59.09 | *** part/#tomcat EricL (n=eric@jarbeeg.chal.net) |
18:00.00 | jasonb | mey: What was wrong with the existing JNDIRealm? Doesn't use GSSAPI, right? |
18:00.05 | TOV_ | Please tell me what I do wrong when I deploy my app from IntelliJIdea and my app name present in list of deployed applications in tomcat manager but when I try to launch my app I get message Resourse blabla unavailable |
18:00.35 | mey | jasonb: it doesn't do SPNEGO over HTTP, microsofts silent single sign on |
18:00.36 | jasonb | mey: Would it be possible for you to open your new implementation of that? I'd love to have a copy. |
18:01.25 | mey | jasonb: my bosses are generally ok with that, i'll probably get the code out there in less then a month. gotta get proper documentation |
18:01.40 | mey | it's only like 200-300 lines of code, but the real pain in the ass is configuration |
18:01.41 | jasonb | mey: And, beyond that, the Tomcat project is missing these features. I'd be happy to help get it ready. |
18:02.38 | mey | jasonb: also, i'm not supporting NTLM, and I don't have a fallback setup to basic auth prompt etc |
18:03.04 | mey | so if you try to connect locally using IE/Firefox (which always uses NTLM in that case) it's going to deny |
18:03.44 | jasonb | mey: All code has limitations. :) |
18:04.30 | jasonb | mey: If it has an inline comment somewhere that just says what won't work, then that would be fine.. Docs could be written from there. |
18:14.34 | SyL | I'm having an issue with JDBC and mysql cluster, is there any reason why it wouldn't have access? |
18:16.45 | jasonb | SyL: Did you grant access (inside Mysql) to the user who you're making the connection as? |
18:19.06 | SyL | jasonb: yeah |
18:19.27 | SyL | and I can access mysql console using the user too |
18:20.13 | jasonb | From the Tomcat machine though? |
18:20.25 | SyL | the only reason I'm thinking it's mysql-cluster is that it's working fine on a standard mysql server |
18:21.16 | SyL | jasonb: I'm new at tomcat(I'm using 5.5) and I'm not sure how I would do that. I'm trying to get confluence (a java based wiki) installed and have it use the mysql-cluster we set up |
18:22.30 | jasonb | SyL: Sounds like you're biting off more than you can chew. :) If you're new to mysql-cluster, then you should get used to that first before trying fancy installations. |
18:22.51 | SyL | no, i'm new to tomcat, not mysql-cluster... =) |
18:23.01 | jasonb | SyL: From what I've read, the authentication features of mysql cluster are the same as for regular mysql. |
18:23.17 | jasonb | SyL: Okay. |
18:23.22 | SyL | right, and this is the first thing that hasn't worked in the 6 months of running it. =) |
18:23.34 | jasonb | SyL: That's good. I'm thinking of running it as well. |
18:23.56 | SyL | Help me, and I'll help you... =) |
18:23.59 | SyL | I'm getting this |
18:23.59 | SyL | <PROTECTED> |
18:23.59 | SyL | <PROTECTED> |
18:23.59 | SyL | <PROTECTED> |
18:24.45 | jasonb | SyL: You're completely sure there isn't a firewall issue? |
18:25.10 | jasonb | SyL: And, you're sure that hostnames on the Tomcat server resolve to the right IP addresses? |
18:25.29 | jasonb | It could either be an authentication issue, or a TCP connection issue. |
18:26.30 | SyL | I can connect to the cluster from the same box and from other boxes using mysql -u user -p -h IP |
18:26.56 | jasonb | And in your JDBC URL you're using the same exact IP address? (not a host name)? |
18:27.10 | kjkoster5489 | SyL: mind if I ask you about MySQL cluster (once this problem is worked out)? |
18:27.34 | kjkoster5489 | Syl: What port number (if any) did you specify in the JDBS url? |
18:27.40 | SyL | url="jdbc:mysql://localhost/confluence?autoReconnect=true" |
18:28.04 | SyL | I used (this is a *nix box) netstat -an to make sure that port 3306 is open |
18:28.17 | SyL | and I've tried with the IP too |
18:28.40 | SyL | kjkoster5489: sure |
18:28.41 | jasonb | SyL: Okay. |
18:29.25 | jasonb | SyL: So then it's likely to be an authentication issue. |
18:29.45 | *** join/#tomcat srush (n=stephenr@adsl-75-48-95-17.dsl.hstntx.sbcglobal.net) |
18:29.49 | jasonb | SyL: Somehow you need to find a more verbose message about what is happening. Either from Tomcat or from Mysql. |
18:30.06 | SyL | jasonb: I didn't paste the full thing, I can use pastebucket if you would like to see my whole tomcat server.xml file |
18:30.14 | srush | i am having some trouble adding some hostnames that go to a different app folder. can someone give me a hand? |
18:30.50 | kjkoster5489 | srush: maybe if you ask a apecifc question. |
18:31.44 | srush | ok, i have 2 domains pointing to the same IP. they both show the default webapp right now (and i'm not even sure where that's configured) |
18:31.46 | kjkoster5489 | SyL: http://pastebin.com/ |
18:32.09 | srush | i would like one of the domains to go to a seperate webapp that forwards to the other |
18:32.39 | kjkoster5489 | srush: ? I'm confused. |
18:32.40 | srush | for SEO reasons, i want to setup a 301 redirect instead of having both domains show the same content |
18:32.49 | kjkoster5489 | SEO? |
18:32.59 | srush | search engine optimization |
18:33.03 | kjkoster5489 | Ah. |
18:33.20 | srush | ok, the skinny of it is this - i have 2 domains pointing to the same IP. i would like them to go to different webapps |
18:34.00 | srush | i've fiddled around with the server.xml file a bit but am just too clueless when it comes to tomcat |
18:34.05 | kjkoster5489 | So one is foo.example.com and the other is bar.example.com, and you want them to point to foo.war and bar.war respectively? |
18:34.51 | TOV_ | Please can anyone help me to set up form authentication using j_security_check and ssl? |
18:35.19 | kjkoster5489 | srush: did you try http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html ? |
18:38.08 | srush | no, i'll take a look at that |
18:38.28 | SyL | kjkoster5489: http://pastebin.com/d30b60b5 |
18:41.41 | kjkoster5489 | srush: cool, let us know if that solves your issue. |
18:42.15 | srush | ok, that is actually similar to what i did. except my appBase folder was "webapps/redirect". is that where my problem was? |
18:42.19 | kjkoster5489 | srush: a blanked redirect is quite easy to hack up using a servlet filter. |
18:42.59 | kjkoster5489 | Syl: please pastbin the full exception stakc trace. I have a feeling that there is a root cause exceptin in there somewhere. |
18:43.24 | srush | i am really just familiar with IIS/.Net, but this is a site we brought in a java developer for a while back because the CMS uses java |
18:43.50 | kjkoster5489 | srush: I have no experience with vhosting and Tomcat, so best try to follow the tomcat howto and then rework it to the setup you want. |
18:44.30 | kjkoster5489 | srush: You can always stick IIS in front of Tomcat. :-) |
18:45.24 | kjkoster5489 | Syl: you server.xml look fine. What is the full stack trace, please? |
18:45.50 | SyL | kjkoster5489: full stack trace is the catalina file in /var/log/tomcat5.5/*, right? |
18:46.20 | kjkoster5489 | SyL: the file where you found "com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Could not..." |
18:46.41 | kjkoster5489 | There should be something like "caused by..." a couple of lines below that exception. |
18:47.01 | kjkoster5489 | Maybe more than one caused by. The bottom one is the most interesting in this case. |
18:47.09 | SyL | kjkoster5489: that was in the webapp. I'll start looking at some logs for you |
18:53.14 | SyL | kjkoster5489: this is the confluence logs, let me know if you need more |
18:53.16 | SyL | http://pastebin.com/d60eaadf5 |
18:56.09 | kjkoster5489 | The exception that starts on line 8 has its root cause at line 132: "Caused by: java.net.ConnectException: Connection refused" |
18:56.44 | kjkoster5489 | Same with exception on 148, the same root cause at 275. |
18:56.56 | kjkoster5489 | This indicates a network problem between you and the database. |
18:57.39 | SyL | kjkoster5489: but I can connect to it from the same box and remotely using mysql console... =\ |
18:57.58 | kjkoster5489 | The problem is at the network level. |
18:58.33 | SyL | hrm... |
18:58.34 | kjkoster5489 | Hmm. Maybe not. |
18:59.21 | kjkoster5489 | Please connect to MySQL to the mysql database and do "SELECT user, host FROM user". Check that the host setting is right. |
18:59.24 | kjkoster5489 | Wait, you did that. |
18:59.28 | kjkoster5489 | Using the command line. |
19:00.12 | kjkoster5489 | Using 127.0.0.1 in server.xml does not work? Have you restarted Tomcat after changing server.xml? |
19:01.10 | kjkoster5489 | Meanwhile: about MySQL clustering. How hard is it to set up two machines, each with a PHP web site and a MySQL database, where the two databases are kept in sync with eachother? |
19:01.45 | SyL | kjkoster5489: and yeah, I tried 127.0.0.1 and restart tomcat everytime I make a change |
19:01.46 | kjkoster5489 | I want to move to two locations for my site, but I can't get around using the same database. |
19:01.55 | kjkoster5489 | Syl: that's so strange. |
19:03.19 | kjkoster5489 | Could you try renaming the database by doing <Resource name="jdbc/AARRGGGHHH"? |
19:03.38 | kjkoster5489 | I want to see if the exception changes to a "no data source found" exception. |
19:03.41 | SyL | kjkoster5489: so mysql-clustering is basically storage nodes (a box each, where all the databases data is stored), a manager node (where all your mysql boxes need to talk to) and the mysql servers (basically clients that are the interfaces to the data storage nodes) |
19:03.46 | SyL | kjkoster5489: trying now |
19:05.00 | kjkoster5489 | So the basic setup for me would be three boxes, two servers/storage nodes and a manager box. The manager syncing and the PHP sites connecting to their own, local server/storage node. |
19:05.57 | SyL | kjkoster5489: and the Resource is in server.xml? |
19:06.29 | kjkoster5489 | Yes, it's at the bottom. |
19:06.44 | kjkoster5489 | Line 374 in your first pastebin. |
19:07.07 | kjkoster5489 | Uhm... If that is your actual database password, now would be a good time to change it. |
19:07.19 | SyL | kjkoster5489: it's not... =) |
19:07.29 | kjkoster5489 | Just checking. |
19:12.01 | SyL | kjkoster5489: are you looking for speed or failover? |
19:12.35 | kjkoster5489 | SyL: in the case I am describing, I will be looking for failover, hence two locations. |
19:13.09 | kjkoster5489 | In the future I will have a second database where I will be looking for speed (statistics gathering and processing). |
19:13.37 | kjkoster5489 | But for this database it is just failover. |
19:14.20 | kjkoster5489 | Speed is an issue in the sense that it's all right to run at half the speed, but it's still people waiting for each commit to complete. ;-) |
19:14.23 | SyL | kjkoster5489: for mysql cluster, you really should keep your servers separate from your datanodes... sounds like you need master/master configure right now |
19:14.45 | kjkoster5489 | Ok. |
19:16.05 | kjkoster5489 | Is that something that I can learn to do on my own, or do I need MySQL consultants for that? The MySQL web site is kind'a pushing for them helping me out and I wonder if that is marketing or actual technical need? |
19:19.11 | SyL | kjkoster5489: have you ever setup a mysql server at all? |
19:19.26 | kjkoster5489 | Yes, many times. |
19:19.28 | TOV_ | Anybody |
19:19.39 | TOV_ | Can help me with j_security_check? |
19:19.46 | kjkoster5489 | TOV_: I guess not. |
19:19.48 | TOV_ | How to set it up? |
19:19.54 | kjkoster5489 | Sorry. |
19:20.18 | TOV_ | bad |
19:21.34 | kjkoster5489 | SyL: I'm not afraid to futz with the MySQL database server. I do my own systems management for java-monitor (FreeBSD, Apache, MySQL, PHP and Tomcat servers). |
19:22.19 | kjkoster5489 | The question is more, is the documentation such that I can learn it in a week or so and do some basic troubleshooting. |
19:22.25 | SyL | kjkoster5489: new paste bin |
19:22.27 | SyL | http://pastebin.com/d644b598a |
19:23.21 | *** join/#tomcat bender183 (n=bender@unaffiliated/bender183) |
19:23.41 | SyL | kjkoster5489: http://www.howtoforge.com/setting-up-a-loadbalanced-mysql-cluster-with-mysql5.1 |
19:24.07 | kjkoster5489 | SyL: Hmm. As you can see, the exception has not changed. |
19:24.20 | *** part/#tomcat randrewj (n=raj-user@user-160ur0g.cable.mindspring.com) |
19:24.24 | kjkoster5489 | My guess is that there is a JDBC url configured somewhere else in the application. |
19:24.40 | kjkoster5489 | Are there any context.xml files? |
19:24.47 | SyL | kjkoster5489: and this link is for master/master setup |
19:24.48 | SyL | http://www.howtoforge.com/mysql_database_replication |
19:24.55 | SyL | kjkoster5489: scanning |
19:25.06 | kjkoster5489 | ${tomcat}/conf/Catalina/localhost/*.xml |
19:25.08 | kjkoster5489 | Uhm. |
19:25.19 | kjkoster5489 | You are running a non-standard tomcat layout. |
19:25.26 | kjkoster5489 | It's not a single directory, right? |
19:26.26 | kjkoster5489 | If this were the <Resource> definition that was used by your tomcat it would have given a different error. |
19:26.58 | kjkoster5489 | It does look eerily identical to the first stack traces you pastebinned... |
19:27.20 | kjkoster5489 | No, but the dates are different. |
19:28.56 | kjkoster5489 | Hmm. Using the MySQL tutorial I would go from 1 box to 5. Do they all need to be high-performance machines, or is one type hammered more than another? |
19:29.15 | SyL | kjkoster5489: I'm running the debian install of tomcat5.5 (I know, I've been told it sucks already, but it's all I can use) |
19:29.49 | SyL | kjkoster5489: data nodes should have fast IO and CPU and the mysql servers should have fast network, CPU and ram... |
19:30.07 | kjkoster5489 | SyL: the problem is that then I cannot tell you where to search for configuration items. |
19:30.09 | SyL | if you are just setting one up for the first time, I suggest using VMware server or something... |
19:31.02 | kjkoster5489 | I was going to do that, I'm sure my laptop will be delighted to run 5 vmware instances at the same time. :-) |
19:31.03 | SyL | I have files in /usr/share/tomcat5.5/conf/Catalina/localhost/ |
19:31.11 | SyL | kjkoster5489: heh |
19:31.19 | kjkoster5489 | Any with Resource definitions? |
19:31.31 | SyL | kjkoster5489: I'm running 6 on my machine now. =0 |
19:31.35 | SyL | checking... |
19:31.58 | kjkoster5489 | SyL: 64-bit machine with gobs of ram I expect? |
19:32.42 | kjkoster5489 | So the actual query processing is done on the data nodes? |
19:32.49 | kjkoster5489 | Or on the servers? |
19:33.10 | SyL | eh... it's a macbook running vmware fusion beta2 |
19:33.20 | SyL | on the servers I think... |
19:33.59 | kjkoster5489 | Hmm. I have a macbook also. Maybe it's just Windows in vmware that's a dog. :) |
19:34.58 | *** join/#tomcat yassine (n=yassine@unaffiliated/yassine) |
19:35.04 | kjkoster5489 | What's your opinion of this idea: http://www.howtoforge.com/mysql5_master_master_replication_debian_etch |
19:42.17 | kjkoster5489 | SyL: I have only a few minutes before I go to bed. Found anything yet? |
19:43.13 | SyL | kjkoster5489: no, but I think I found out something else that might be it too... thanks much for you help... |
19:43.23 | SyL | sil@sevatech.com if you want more mysql help/questions |
19:43.50 | kjkoster5489 | Thanks for your advise so far. |
19:43.56 | SyL | kjkoster5489: and practice on the master/master replication, and you'll be more ready for mysql-cluster |
19:44.27 | kjkoster5489 | Without forking out for 5 machines. :) |
20:16.31 | *** join/#tomcat jasonb (n=jasonb@75.144.23.117) |
20:32.05 | *** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-30ada2fda86d6e90) |
20:46.45 | bender183 | ok this might sound like a troll, but im actually really curious |
20:48.00 | bender183 | why does tomcat not come with a couple of different init scripts to turn it off and on? |
20:48.01 | bender183 | like is there any particular reason for it? |
20:48.01 | bender183 | maybe .....idealism involved |
20:50.58 | *** join/#tomcat mesut (n=power@tuxhacker/mesut) |
20:54.12 | *** join/#tomcat rhonabwy (n=rhonabwy@dslb-084-057-048-058.pools.arcor-ip.net) |
20:54.38 | *** join/#tomcat carlos82_ (n=carlos@189.146.26.10) |
20:55.24 | carlos82_ | hi |
20:55.45 | carlos82_ | someone can help me? |
20:56.15 | carlos82_ | i have a issue with a tomcat 5.5 in ubuntu hardy heron |
20:56.50 | carlos82_ | im tryin´ to develep a web application with netbeans, but this have a problem when running the app |
20:57.03 | carlos82_ | show me the next error |
20:57.20 | carlos82_ | java.io.FileNotFoundException: /usr/share/tomcat5.5/work/Catalina/localhost/STPS-WEB/org/apache/jsp/login_jsp.java (Permission denied) |
20:59.50 | carlos82_ | the version of the tomcat is 5.5.27 |
21:00.06 | carlos82_ | java is a 6 update 6 |
21:00.43 | carlos82_ | Operative System : Ubuntu Hardy Heron 8.04 Desktop |
21:10.59 | *** join/#tomcat tanto_ (i=tanto@bipolar.obliviated.org) |
21:16.52 | carlos82_ | excuse me, someone can help me? |
21:19.10 | *** join/#tomcat yassine (n=yassine@unaffiliated/yassine) |
21:24.44 | mey | carlos82_: what user is the tomcat instance running under? |
21:25.48 | mey | carlos82_: double check that the user tomcat is running under has read permission on login_jsp.java |
21:25.57 | mey | netbeans may not have fixed that up before deploying it |
21:26.16 | mey | you could probably fix that but chmod'ing your local files before it's deployed |
21:28.35 | *** join/#tomcat x911gt2 (n=jim@72.94.253.221) |
21:32.41 | x911gt2 | Hi all, I am running OS X 10.5.4, Apache 2.2.8 w/ mod_jk 1.2.26 in front of Tomcat 6.0.16 |
21:33.05 | x911gt2 | I have successfully setup Apache in front of Tomcat, but am having issues with mod_rewrite not working |
21:33.37 | x911gt2 | I have checked the mod_jk logs and the non-rewritten URL is coming through. the mod_rewrite log appears to have never even been called |
21:33.46 | x911gt2 | anyone have any experience/ideas with this? |
21:34.19 | x911gt2 | Note that I have successfully used mod_rewrite on non-mod-jk apps on the same server |
21:37.31 | carlos82_ | admin |
21:37.55 | carlos82_ | the account is defined in the file "tomcat-users.xml" |
21:38.22 | carlos82_ | i was tryin to change the policies, but this doesnt work |
21:50.10 | *** join/#tomcat yassine (n=yassine@unaffiliated/yassine) |
21:56.20 | *** part/#tomcat carlos82_ (n=carlos@189.146.26.10) |
22:13.48 | *** join/#tomcat tanto (i=tanto@bipolar.obliviated.org) |
22:46.45 | *** part/#tomcat TOV_ (i=user@181-196.pppoe.vitebsk.by) |
23:35.39 | *** join/#tomcat Magec (n=jfernand@73-41-48.uoc.es) [NETSPLIT VICTIM] |
23:35.39 | *** join/#tomcat deebo (i=globe@stonebay32.com) [NETSPLIT VICTIM] |
23:57.55 | *** join/#tomcat vval (n=jerky@ool-457a0464.dyn.optonline.net) |