IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1992.93 MB
Powered by
Channel Info
Network: freenodeChannel: #tomcat |
Search in www.irclog.org
Log from #tomcat at freenode 2006-07-09
[00:47]<-- dvxn|syzzzyus xzs>http://www.bagdadsoftware.de")
[02:35]<rjjmrj2fyg>hi folks
[02:35]<rjjmrj2fyg>does anyone know any good links which show an example of a servlet reading xml over http?
[02:35]<rjjmrj2fyg>i want to write a simple webservice to act as procedural ruby/java bridge, but my java is a bit rusty
[02:38]<rjjmrj2fyg>quiet crowd...
[02:57]<wwzfcnz>can anyone help me with mod_jk setup?
[02:57]<wwzfcnz>I have a running tomcat, and want to point some URLs in a single virtual host to be serviced by the tomcat engine.
[03:02]<r2rfygv>i dont really know about the vhost part
[03:11]<wwzfcnz>jbalint: do you know any part? I don't understand it at all and I've read till my eyes bleed
[03:12]<wwzfcnz>I know that my running tomcat listens on 8009 and 8080 and if I point to the app at host:8080/URL it works (straight to tomcat)
[03:12]<wwzfcnz>I've no idea how to tel tomcat that /Foo should go to mod_jk and via port 8080
[03:13]<wwzfcnz>I know I have to do something in the workers.properties and the mod_jk.conf, but nothing I've tried works
[03:17]<r2rfygv>Ok.
[03:18]<r2rfygv>Go to rafb.net/paste and paste your modjk.conf , workers.properties and the relevant section of apache's httpd.conf in three separate pastes
[03:18]<r2rfygv>I'll look at it and we'll get it figured out.
[03:20]<wwzfcnz>thx, I'm getting further now. will paste in a minute
[03:21]<r2rfygv>Ok, cool.
[03:23]<wwzfcnz>http://rafb.net/paste/results/TZVL4712.html
[03:23]<wwzfcnz>more to come
[03:23]<r2rfygv>k
[03:24]<wwzfcnz>http://rafb.net/paste/results/0FI0Z045.html
[03:26]<wwzfcnz>http://rafb.net/paste/results/nIoIo334.html
[03:27]<r2rfygv>Are you using multiple backend tomcat servers?
[03:28]<wwzfcnz>1
[03:29]<wwzfcnz>I'm transferring a tomcat server from some hosted service onto a client's own new shiny dedicated servers
[03:30]<r2rfygv>So you one need one Apache <-> Tomcat path, right?
[03:30]<wwzfcnz>no telling what they were set up like on the hosted service. they sat in a chroot env so I couldn't see things like the mod_jk setup
[03:30]<r2rfygv>s/one/only/
[03:30]<y2jv>jbalint meant: So you only need one Apache <-> Tomcat path, right?
[03:30]<wwzfcnz>yes
[03:30]<r2rfygv>Ok.
[03:30]<wwzfcnz>I just don't get why it says there is not worker named Moxieweb
[03:31]<r2rfygv>Are you trying to use inprocess for some reason?
[03:32]<wwzfcnz>Nope, if we can delete most of that, go for it.
[03:32]<wwzfcnz>That's probably patchwork quilt starting from the default or sample file.
[03:32]<r2rfygv>http://rafb.net/paste/results/UtNugL42.html
[03:33]<r2rfygv>This should be about it.
[03:33]<r2rfygv>For workers.properties
[03:33]<r2rfygv>All your JkMount lines need to be changed to: JkMount <whatever> tc
[03:33]<r2rfygv>All JkMount does is tell Apache to pass off that path to the jk handler.
[03:35]<wwzfcnz>I was missing the worker list entry! Now it hangs forever...waiting for it to timeout to see what lovely error messages I get
[03:38]<r2rfygv>worker.list? hehe
[03:47]<wwzfcnz>OK, now when I go to the URL, mod_jk log says it's sending it over. I can run netstat -anp | grepp 8080 and see that httpd connected to tomcat.
[03:48]<r2rfygv>8080?
[03:48]<wwzfcnz>after a long while I get Service Temporarily Unavailable
[03:48]<r2rfygv>It shouldn't connect on 8080
[03:48]<r2rfygv>8009 is the standard ajp port
[03:55]<wwzfcnz>typo on my part, but now I'm back to 400 errors.
[03:57]<r2rfygv>404?
[03:57]<r2rfygv>Are there any debug messages?
[03:57]<r2rfygv>And what URL?
[03:58]<wwzfcnz>400. I see that status come back from tomcat in the mod_jk log
[03:58]<wwzfcnz>(I set jkloglevel to debug
[03:58]<r2rfygv>What is 400
[03:58]<r2rfygv>?
[03:58]<r2rfygv>Hrm Bad Request, that's wierd.
[03:58]<r2rfygv>What v. of tomcat? and mod jk?
[03:59]<wwzfcnz>HTTP/1.1 400 No Host matches server name.
[03:59]<wwzfcnz>tomcat 5.5
[03:59]<wwzfcnz>mod_jk is mod_jk-ap20-1.2.15-1jpp
[04:00]<r2rfygv>Wait, so it's not even sending the request to tomcat?
[04:00]<r2rfygv>They are on the same box, right?
[04:00]<r2rfygv>Can you check /etc/hosts to make sure it's right?
[04:04]<wwzfcnz>it IS send the request. Tomcat is returning that error to mod_jk
[04:05]<r2rfygv>I wonder if it's because of the vhosts.
[04:10]<wwzfcnz>Found that, on to the next one (the Host line in server.xml was copied from the old config file and had a different path
[04:11]<r2rfygv>Path?
[04:21]<r2rfygv>Any luck?
[04:23]<wwzfcnz>No
[05:01]<wwzfcnz>tomcat is picker and more schitzop than my mother in law
[05:02]<wwzfcnz>according to whether the request comes from a browser, telnet, or apache proxy, it refuses requests unless they come targeted to different hosts (one want IP, the other localhost, and the third the actual host name)
[05:03]<r2rfygv>Yeah, that's the wierd vhosts part.
[05:41]<wwzfcnz>no, that was talking directly to tomcat, not talking thru apache.
[05:49]<-- gjmrm9ww xrs fuyv>http:www.devmatrix.org")
[08:01]<r9rc2>Hellaenergy: Good to see you.
[11:35]<wzzm>Is there a way to alias *.domain.com in tomcat5.0 ?
[13:50]<bffyax>can anyone tell where can I download the right "ApacheModuleJServ.dll" for Apache 2.0.58 + Tomcat 3.3.1a, so that I could make them work fine together
[13:51]<r9rc2>www.google.com
[15:11]<trv>Hey guys :)
[15:12]<trv>I'm stuck on a RequestDispatcher.forward() issue...
[15:12]<trv>I have a pretty complex Servlet, which builds beans, that are later read and displayed by JSP's...
[15:13]<trv>I've narrowed down my issue to, I think, Jasper using the wrong OutputFileStream to write back to the web client...
[15:13]<trv>the forward() works fine for html pages, and I've tried throwing an Exception in my JSP, and it shows up in my logs, so I know all the paths are correct...
[15:14]<trv>but in the end, when I forward() to a JSP, no matter what I seem to do, I get a blank page (zero bytes) in my browser...
[15:15]<trv>I've also simplified my doGet() method at the top level of my servlet to just forward to the JSP, which right now is just plain HTML...
[15:16]<trv>I'm out of ideas on how to dumb things down more to narrow down my problem...
[15:16]<trv>I'm also using the default config of Tomcat 5.5.17...
[15:17]<trv>anyway, afk a while, hope someone has an idea for me :)
[15:58]<-- gjmrm9ww xrs fuyv>http:www.devmatrix.org")
[18:24]<drssygn>heya *
[18:29]<xzzljjg>greetings yassine
[18:30]<drssygn>heya harpoon ;)
[18:30]<r9rc2>yo
[18:34]<drssygn>heya a4akb
[18:35]<r9rc2>hi yassine
[18:35]<drssygn>everything is fine here ?







