IRC log for #tomcat on 20080827

00:10.51MHSLEricL, 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.32AndexI have a question about Weblogic. I'm running Weblogic9.1 Java5_64 and AIX 5.3
00:24.38AndexAnyone know anything about weblogic?
00:25.49AndexMy 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.35MHSLyou may want to go to weblogic channel instead of tomcat
00:28.47Andex#weblogic
00:29.19AndexThere isn't one, this is the closest I found..
00:29.34jasonbIt's not very close.
00:29.57AndexI didn't say very close..
00:32.11MHSLtomcat has nothing to do with weblogic
00:32.19AndexI know this.
00:32.39MHSLok
00:32.51AndexIt was once in the channel topic though: http://irc.netsplit.de/chat/tomcat.php
00:32.58AndexTopic 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.17Andexoops 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.34EricLMHSL: 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.41EricL(ie I just tried it).
00:36.58MHSLEricL, you dont need to unzip it, tomcat will do it for you, as i said above
00:37.54MHSLi guess you're still confused about .war file deployment, you should read tomcat doc
00:38.09MHSLgtg
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.30nmcbridehey guys I'm tryign to get tomcat behind apache and I'm not sure I setup the conf file correctly
04:26.36nmcbrideanyone mind taking a quick look?
04:27.12nmcbridei just keep getting a 503 service tempoairily unavailable
04:28.55nmcbrideactually
04:29.03nmcbridei turned off turbogears
04:29.08nmcbridenow when I goto a jsp filee
04:29.16nmcbridetomcat tells me the file is unavailable?
04:29.29nmcbridei suppose thats a good thing because it means it is forwarding to tomcat
04:29.39nmcbridetomcat just isn't serving it correctly
04:37.13nmcbrideim so close i can taste it :D
04:38.01nmcbrideyet so far ><
04:39.17nmcbridejasonb: 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.39cppexpertGuys, is it possible to define additional library folder for Tomcat (besides /lib) ?
04:58.44nmcbrideI don't think anyone is active right now.
04:59.07cppexpertall right
05:05.12lykencppexpert: you can have the tomcat wide lib dir in common/lib
05:05.23lykenand then the application specific ones in web-inf/lib
05:05.28lykennmcbride: how ar eyou doing it ?
05:05.49nmcbridei have both apache and tomcat
05:05.51nmcbridegot mod_jk
05:06.01nmcbrideand made the conf file
05:06.07lykenbummer, i dont know how to do mod_jk
05:06.09lykenonly mod_proxy
05:06.18nmcbrideah
05:06.26lykencause its not the suck
05:07.34nmcbrideyea, i use mod proxy for turbogears
05:07.50lykenis there something specific you need mod_jk to do ?
05:08.07nmcbridejust to have tomcat to serve the jsp pages
05:08.12lykenlike a feature of mod_jk that you need
05:08.16nmcbridebut tomcat is giving me a 404
05:08.27lykenif not id recommend switching to mod_proxy
05:08.30lykentake half as long to set up
05:08.36lykenand will 'just work
05:09.04nmcbridei wanna run java stuff in my turbogears apps
05:09.29nmcbridei don't think i can do that with mod proxy cause that will give me either one or the other
05:09.49nmcbrideand to drill it down even more i want to use zk in turbogears
05:10.04lykenok
05:10.24lykeni dont know what turbogears is
05:10.26lyken*googles*
05:14.04karstensrageis the mbean-descriptor.xml described anywhere in more detail than the tomcat docmentation has?
05:14.16karstensragegoogle 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.39karstensragedoes this http://oss.wxnet.org/mbeans.html
06:03.44karstensragestill 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.47karstensragesighs
06:38.52karstensragejavax.management.NotCompliantMBeanException
06:39.44*** join/#tomcat Kira (n=chatzill@210.176.243.218)
06:40.53KiraHere is something that I don't understand about using mod_jk and Tomcat's Apache auto-configure feature.
06:49.11KiraAccording 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.11karstensragewell youre right it doesnt explicitly state otherwise but it may only generate it if its not there already
07:24.04KiraHow about the uriworkermap.properties file? Does Tomcat ever need to read it? Or does it only need to be readable by Apache?
07:27.13Kira!uriworkermap
08:50.09*** join/#tomcat cppexpert (n=cppexper@c-24-130-62-198.hsd1.ca.comcast.net)
08:50.16cppexpertIs anybody still here ?
08:51.53mesutsup?
08:54.56cppexpertmesut: 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.03cppexperthello?
09:09.04lykencppexpert: ?
09:09.20cppexpertyes
09:09.55lykencommon/lib..
09:09.57*** join/#tomcat sveajobb (n=tommy@83.233.28.240)
09:10.53cppexpertWhere 'common' folder is ?
09:11.23cppexpertWhat especially puzzles me is that it works on Linux box, but fails on my Windows development machine.
09:11.34cppexpertIt's like class loader behaves differently. Weird!
09:11.53lykenyeah that is not uncommon
09:12.31cppexpertso what is "common/lib" ?
09:12.59lykenhold on
09:13.03lykeni haven't played with java in a whiles
09:13.08lykenlet me pull down a distribution of it
09:13.13cppexpertok
09:14.40lykenhmm
09:15.00lykenthings have changed a bit since i last played with this :)
09:15.13lykendid you restart tomcat after droping the jar in there ?
09:18.58cppexpertyea, people at #java say it's class-loader issue but don't know how to fix it.
09:19.33lykenhmm
09:19.41lykendon't know sorry
09:20.27cppexpertokay
09:33.11Internatthats cause lyken sucks
09:34.03lykenyou do !
09:34.09lykenruns off crying
09:39.01Internatlol
09:39.07Internathows u bro?
09:42.00cppexpert:)
09:42.06lykenalright
09:42.12cppexpertWhere are you guys physically right now ?
09:42.16cppexpertIt's late.
09:42.26lykenFINALLY got a reprint of a radio episode so i can release our podcast for last week and the week before
09:42.29lykenbrisbane, aus
09:43.38cppexpertNice. 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.24lykennot austria
09:46.49cppexpertI know :)
09:47.03cppexpertKazaa was from Austria.
09:52.19Internataus = 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.30sebdahHi! 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.45sebdahI'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.07KiraOn 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.30puckojsvc 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.55chillitomKira, use iptables
12:12.30chillitomKira, http://pastie.org/260876
12:12.55chillitomKira, where 192.168.0.215 is your machines ip address and eth0 is your gateway interface
12:13.17chillitomyou 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.09durreI'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.51niek944thanks 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.56durrewhat am I doing wrong with the server.xml and/or context.xml? http://pastebin.com/m61ff26fa
13:36.12MHSLdurre, 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.05MHSLdurre, 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.38MHSLdurre, anything wrong at all? do you get any error?
13:38.20MHSLdurre, this is obviously wrong appBase="C:/webroot/master"
13:38.43MHSLdurre, refer to http://tomcat.apache.org/tomcat-6.0-doc/config/host.html
13:38.49durreMHSL: thanks for the reply. did you check my last pastebin? I'm getting 400 Bad request
13:39.20MHSLsee what i said ^
13:39.56MHSLdurre, appBase="C:/webroot/master" and docBase="C:\webroot\master" cannot be the same
13:45.21durreMHSL, 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.46MHSLdurre, 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.44durreMHSL, 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.51durrestill no go tho
13:58.50durrehmm, nevermind. I think the problem is with all the other webapps in the dir somehow. get permgen after a while
14:01.49MHSLdurre, 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.43durreMHSL, 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.12MHSLdurre, how did you try to access it? do you see anything on the log?
14:25.43durreMHSL, 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.52MHSLdurre, another thing, why do you have <Host name="master.dev.local".. but you have another <Alias>master.dev.local</Alias>
14:43.20MHSLdurre, 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.43randrewjdurre: with Context path not explicitly set, your app may be at http://master.dev.local/master/
14:48.41tkocurekHello 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.53tkocurekIs this function part of the JSTL Core?
14:52.30durreMHSL, 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.09brif8TC: 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.08durreMHSL, 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.09MagecHello, 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.02MHSLdurre, 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.47MHSLMagec, restart the webapp
15:27.01MHSLMagec, or reload the class file
15:27.19MHSLwhich will trigger context reload anyway
15:27.56MHSLbrif8, read the manual, you have to have some kind of configuration
15:29.14MHSLdurre, 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.50MHSLdurre, i think you're still confused regarding appBase and docBase?
15:30.59MHSLdurre, if you're, please read the tomcat doc
15:31.34durreMHSL, I will read more. thanks for helping out :)
15:32.56MHSLnp
15:37.21Magec 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.25MagecMHSL 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.20meyi'm trying to enable debug logging for AuthenticatorBase and RealmBase in Tomcat 6.0.14
17:11.29meyive added
17:11.30meyorg.apache.catalina.realm.RealmBase.level = ALL
17:11.30meyorg.apache.catalina.authenticator.AuthenticatorBase.level = ALL
17:11.36meyto my logging.properties file
17:12.08meyand i've bumped java.util.logging.ConsoleHandler.level = FINEST
17:12.25meybut i'm still not getting the debug statements
17:12.44meyany suggestions?
17:12.53meyorg.apache.catalina.realm.RealmBase.level = ALL
17:13.02meyignore the double paste
17:18.53meyi found the issue
17:19.05meyi 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.38TOV_Hi 2 all
17:53.14jasonbmey: Glad you found that.  Sounds like you're deep into JULI logging.  :)
17:56.06meyjasonb: yup :)  written my own SPNEGO authenticator and Active Directory Realm
17:56.54meyplumbing in new security systems isn't terribly easy, yet still drastically easier then configuring kerberos in java
17:57.34meyand 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.00jasonbmey: What was wrong with the existing JNDIRealm?  Doesn't use GSSAPI, right?
18:00.05TOV_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.35meyjasonb: it doesn't do SPNEGO over HTTP, microsofts silent single sign on
18:00.36jasonbmey: Would it be possible for you to open your new implementation of that?  I'd love to have a copy.
18:01.25meyjasonb: 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.40meyit's only like 200-300 lines of code, but the real pain in the ass is configuration
18:01.41jasonbmey: And, beyond that, the Tomcat project is missing these features.  I'd be happy to help get it ready.
18:02.38meyjasonb: also, i'm not supporting NTLM, and I don't have a fallback setup to basic auth prompt etc
18:03.04meyso if you try to connect locally using IE/Firefox (which always uses NTLM in that case) it's going to deny
18:03.44jasonbmey: All code has limitations.  :)
18:04.30jasonbmey: 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.34SyLI'm having an issue with JDBC and mysql cluster, is there any reason why it wouldn't have access?
18:16.45jasonbSyL: Did you grant access (inside Mysql) to the user who you're making the connection as?
18:19.06SyLjasonb: yeah
18:19.27SyLand I can access mysql console using the user too
18:20.13jasonbFrom the Tomcat machine though?
18:20.25SyLthe only reason I'm thinking it's mysql-cluster is that it's working fine on a standard mysql server
18:21.16SyLjasonb: 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.30jasonbSyL: 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.51SyLno, i'm new to tomcat, not mysql-cluster... =)
18:23.01jasonbSyL: From what I've read, the authentication features of mysql cluster are the same as for regular mysql.
18:23.17jasonbSyL: Okay.
18:23.22SyLright, and this is the first thing that hasn't worked in the 6 months of running it. =)
18:23.34jasonbSyL: That's good.  I'm thinking of running it as well.
18:23.56SyLHelp me, and I'll help you... =)
18:23.59SyLI'm getting this
18:23.59SyL<PROTECTED>
18:23.59SyL<PROTECTED>
18:23.59SyL<PROTECTED>
18:24.45jasonbSyL: You're completely sure there isn't a firewall issue?
18:25.10jasonbSyL: And, you're sure that hostnames on the Tomcat server resolve to the right IP addresses?
18:25.29jasonbIt could either be an authentication issue, or a TCP connection issue.
18:26.30SyLI can connect to the cluster from the same box and from other boxes using mysql -u user -p -h IP
18:26.56jasonbAnd in your JDBC URL you're using the same exact IP address?  (not a host name)?
18:27.10kjkoster5489SyL: mind if I ask you about MySQL cluster (once this problem is worked out)?
18:27.34kjkoster5489Syl: What port number (if any) did you specify in the JDBS url?
18:27.40SyLurl="jdbc:mysql://localhost/confluence?autoReconnect=true"
18:28.04SyLI used (this is a *nix box) netstat -an to make sure that port 3306 is open
18:28.17SyLand I've tried with the IP too
18:28.40SyLkjkoster5489: sure
18:28.41jasonbSyL: Okay.
18:29.25jasonbSyL: 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.49jasonbSyL: Somehow you need to find a more verbose message about what is happening.  Either from Tomcat or from Mysql.
18:30.06SyLjasonb: 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.14srushi am having some trouble adding some hostnames that go to a different app folder. can someone give me a hand?
18:30.50kjkoster5489srush: maybe if you ask a apecifc question.
18:31.44srushok, 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.46kjkoster5489SyL: http://pastebin.com/
18:32.09srushi would like one of the domains to go to a seperate webapp that forwards to the other
18:32.39kjkoster5489srush: ? I'm confused.
18:32.40srushfor SEO reasons, i want to setup a 301 redirect instead of having both domains show the same content
18:32.49kjkoster5489SEO?
18:32.59srushsearch engine optimization
18:33.03kjkoster5489Ah.
18:33.20srushok, 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.00srushi've fiddled around with the server.xml file a bit but am just too clueless when it comes to tomcat
18:34.05kjkoster5489So 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.51TOV_Please can anyone help me to set up form authentication using j_security_check and ssl?
18:35.19kjkoster5489srush: did you try http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html ?
18:38.08srushno, i'll take a look at that
18:38.28SyLkjkoster5489: http://pastebin.com/d30b60b5
18:41.41kjkoster5489srush: cool, let us know if that solves your issue.
18:42.15srushok, that is actually similar to what i did. except my appBase folder was "webapps/redirect". is that where my problem was?
18:42.19kjkoster5489srush: a blanked redirect is quite easy to hack up using a servlet filter.
18:42.59kjkoster5489Syl: please pastbin the full exception stakc trace. I have a feeling that there is a root cause exceptin in there somewhere.
18:43.24srushi 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.50kjkoster5489srush: 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.30kjkoster5489srush: You can always stick IIS in front of Tomcat. :-)
18:45.24kjkoster5489Syl: you server.xml look fine. What is the full stack trace, please?
18:45.50SyLkjkoster5489: full stack trace is the catalina file in /var/log/tomcat5.5/*, right?
18:46.20kjkoster5489SyL: the file where you found "com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Could not..."
18:46.41kjkoster5489There should be something like "caused by..." a couple of lines below that exception.
18:47.01kjkoster5489Maybe more than one caused by. The bottom one is the most interesting in this case.
18:47.09SyLkjkoster5489: that was in the webapp. I'll start looking at some logs for you
18:53.14SyLkjkoster5489: this is the confluence logs, let me know if you need more
18:53.16SyLhttp://pastebin.com/d60eaadf5
18:56.09kjkoster5489The exception that starts on line 8 has its root cause at line 132: "Caused by: java.net.ConnectException: Connection refused"
18:56.44kjkoster5489Same with exception on 148, the same root cause at 275.
18:56.56kjkoster5489This indicates a network problem between you and the database.
18:57.39SyLkjkoster5489: but I can connect to it from the same box and remotely using mysql console... =\
18:57.58kjkoster5489The problem is at the network level.
18:58.33SyLhrm...
18:58.34kjkoster5489Hmm. Maybe not.
18:59.21kjkoster5489Please connect to MySQL to the mysql database and do "SELECT user, host FROM user". Check that the host setting is right.
18:59.24kjkoster5489Wait, you did that.
18:59.28kjkoster5489Using the command line.
19:00.12kjkoster5489Using 127.0.0.1 in server.xml does not work? Have you restarted Tomcat after changing server.xml?
19:01.10kjkoster5489Meanwhile: 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.45SyLkjkoster5489: and yeah, I tried 127.0.0.1 and restart tomcat everytime I make a change
19:01.46kjkoster5489I want to move to two locations for my site, but I can't get around using the same database.
19:01.55kjkoster5489Syl: that's so strange.
19:03.19kjkoster5489Could you try renaming the database by doing <Resource name="jdbc/AARRGGGHHH"?
19:03.38kjkoster5489I want to see if the exception changes to a "no data source found" exception.
19:03.41SyLkjkoster5489: 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.46SyLkjkoster5489: trying now
19:05.00kjkoster5489So 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.57SyLkjkoster5489: and the Resource is in server.xml?
19:06.29kjkoster5489Yes, it's at the bottom.
19:06.44kjkoster5489Line 374 in your first pastebin.
19:07.07kjkoster5489Uhm... If that is your actual database password, now would be a good time to change it.
19:07.19SyLkjkoster5489: it's not... =)
19:07.29kjkoster5489Just checking.
19:12.01SyLkjkoster5489: are you looking for speed or failover?
19:12.35kjkoster5489SyL: in the case I am describing, I will be looking for failover, hence two locations.
19:13.09kjkoster5489In the future I will have a second database where I will be looking for speed (statistics gathering and processing).
19:13.37kjkoster5489But for this database it is just failover.
19:14.20kjkoster5489Speed 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.23SyLkjkoster5489: for mysql cluster, you really should keep your servers separate from your datanodes... sounds like you need master/master configure right now
19:14.45kjkoster5489Ok.
19:16.05kjkoster5489Is 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.11SyLkjkoster5489: have you ever setup a mysql server at all?
19:19.26kjkoster5489Yes, many times.
19:19.28TOV_Anybody
19:19.39TOV_Can help me with j_security_check?
19:19.46kjkoster5489TOV_: I guess not.
19:19.48TOV_How to set it up?
19:19.54kjkoster5489Sorry.
19:20.18TOV_bad
19:21.34kjkoster5489SyL: 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.19kjkoster5489The question is more, is the documentation such that I can learn it in a week or so and do some basic troubleshooting.
19:22.25SyLkjkoster5489: new paste bin
19:22.27SyLhttp://pastebin.com/d644b598a
19:23.21*** join/#tomcat bender183 (n=bender@unaffiliated/bender183)
19:23.41SyLkjkoster5489: http://www.howtoforge.com/setting-up-a-loadbalanced-mysql-cluster-with-mysql5.1
19:24.07kjkoster5489SyL: 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.24kjkoster5489My guess is that there is a JDBC url configured somewhere else in the application.
19:24.40kjkoster5489Are there any context.xml files?
19:24.47SyLkjkoster5489: and this link is for master/master setup
19:24.48SyLhttp://www.howtoforge.com/mysql_database_replication
19:24.55SyLkjkoster5489: scanning
19:25.06kjkoster5489${tomcat}/conf/Catalina/localhost/*.xml
19:25.08kjkoster5489Uhm.
19:25.19kjkoster5489You are running a non-standard tomcat layout.
19:25.26kjkoster5489It's not a single directory, right?
19:26.26kjkoster5489If this were the <Resource> definition that was used by your tomcat it would have given a different error.
19:26.58kjkoster5489It does look eerily identical to the first stack traces you pastebinned...
19:27.20kjkoster5489No, but the dates are different.
19:28.56kjkoster5489Hmm. 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.15SyLkjkoster5489: 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.49SyLkjkoster5489: data nodes should have fast IO and CPU and the mysql servers should have fast network, CPU and ram...
19:30.07kjkoster5489SyL: the problem is that then I cannot tell you where to search for configuration items.
19:30.09SyLif you are just setting one up for the first time, I suggest using VMware server or something...
19:31.02kjkoster5489I was going to do that, I'm sure my laptop will be delighted to run 5 vmware instances at the same time. :-)
19:31.03SyLI have files in /usr/share/tomcat5.5/conf/Catalina/localhost/
19:31.11SyLkjkoster5489: heh
19:31.19kjkoster5489Any with Resource definitions?
19:31.31SyLkjkoster5489: I'm running 6 on my machine now. =0
19:31.35SyLchecking...
19:31.58kjkoster5489SyL: 64-bit machine with gobs of ram I expect?
19:32.42kjkoster5489So the actual query processing is done on the data nodes?
19:32.49kjkoster5489Or on the servers?
19:33.10SyLeh... it's a macbook running vmware fusion beta2
19:33.20SyLon the servers I think...
19:33.59kjkoster5489Hmm. 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.04kjkoster5489What's your opinion of this idea: http://www.howtoforge.com/mysql5_master_master_replication_debian_etch
19:42.17kjkoster5489SyL: I have only a few minutes before I go to bed. Found anything yet?
19:43.13SyLkjkoster5489: no, but I think I found out something else that might be it too... thanks much for you help...
19:43.23SyLsil@sevatech.com if you want more mysql help/questions
19:43.50kjkoster5489Thanks for your advise so far.
19:43.56SyLkjkoster5489: and practice on the master/master replication, and you'll be more ready for mysql-cluster
19:44.27kjkoster5489Without 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.45bender183ok this might sound like a troll, but im actually really curious
20:48.00bender183why does tomcat not come with a couple of different init scripts to turn it off and on?
20:48.01bender183like is there any particular reason for it?
20:48.01bender183maybe .....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.24carlos82_hi
20:55.45carlos82_someone can help me?
20:56.15carlos82_i have a issue with a tomcat 5.5  in ubuntu hardy heron
20:56.50carlos82_im tryin´ to develep a web application with netbeans, but this have a problem when running the app
20:57.03carlos82_show me the next error
20:57.20carlos82_java.io.FileNotFoundException: /usr/share/tomcat5.5/work/Catalina/localhost/STPS-WEB/org/apache/jsp/login_jsp.java (Permission denied)
20:59.50carlos82_the version of the tomcat is 5.5.27
21:00.06carlos82_java is a 6 update 6
21:00.43carlos82_Operative System : Ubuntu Hardy Heron 8.04 Desktop
21:10.59*** join/#tomcat tanto_ (i=tanto@bipolar.obliviated.org)
21:16.52carlos82_excuse me, someone can help me?
21:19.10*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
21:24.44meycarlos82_: what user is the tomcat instance running under?
21:25.48meycarlos82_: double check that the user tomcat is running under has read permission on login_jsp.java
21:25.57meynetbeans may not have fixed that up before deploying it
21:26.16meyyou 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.41x911gt2Hi 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.05x911gt2I have successfully setup Apache in front of Tomcat, but am having issues with mod_rewrite not working
21:33.37x911gt2I 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.46x911gt2anyone have any experience/ideas with this?
21:34.19x911gt2Note that I have successfully used mod_rewrite on non-mod-jk apps on the same server
21:37.31carlos82_admin
21:37.55carlos82_the account is defined in the file "tomcat-users.xml"
21:38.22carlos82_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)

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