IRC log for #tomcat on 20070415

00:56.40jasonbfallacy: Tomcat itself does not implement any way to proxy connections to another web server, but there are third party jars that are easy to add to Tomcat to make it do that.
00:57.18jasonbfallacy: http://www.servletsuite.com/servlets/httpproxy.htm
01:16.23*** join/#tomcat alsa (n=shadow@212.98.136.28)
01:21.32Hattorijasonb: and mine?
01:22.03jasonbHattori: You should ask the company who sold you jbuilder.  We don't do tech support for them in here.
01:26.59Hattorijbuilder has not great support indeed =\
01:27.22Hattorii would better move to eclipse asap..
01:27.47jasonbI would suggest NetBeans.
01:27.57jasonbBut, either one would be better than eclipse.
01:28.03jasonberr, better than Jbuilder.
01:28.11Hattorianyway, the stack trace should suggest what problem could be.. which file doesn't care about etc..
02:12.23fallacyjasonb: great, thanks
02:15.58jasonbfallacy: You're welcome.
02:51.23*** join/#tomcat codeshepherd (n=codeshep@bb121-7-80-240.singnet.com.sg)
05:38.39*** part/#tomcat codeshepherd (n=codeshep@bb121-7-80-240.singnet.com.sg)
06:59.41*** join/#tomcat johni (n=johni@utdpat241097.utdallas.edu)
08:21.46*** join/#tomcat mmmmmmmmm (n=info@213.219.139.100.adsl.dyn.edpnet.net)
08:41.58mmmmmmmmmi've just installed tomcat5.5, this install is working properly as i can access it through localhost:8180. I've also installed mod_jk but there it fails with an internal server error
08:42.06mmmmmmmmmcan't find any error
08:42.17mmmmmmmmmnot in the apache2 log, not in the mod_jk log
08:42.55mmmmmmmmmprobably something wrong with my virtualhost?
08:43.42mmmmmmmmmany ideas on how to solve this
09:28.18*** join/#tomcat gregor_k (n=a@p54A19F23.dip0.t-ipconnect.de)
11:10.00*** join/#tomcat fzlogik (n=fuzelogi@dhcp-152-78-61-16.ecs.soton.ac.uk)
11:44.02*** join/#tomcat prgrmr (n=prgrmr@bzq-88-155-88-5.red.bezeqint.net)
13:01.01*** join/#tomcat Erev (n=disvroia@183.Red-83-36-221.dynamicIP.rima-tde.net)
13:24.26*** join/#tomcat Erev (n=disvroia@183.Red-83-36-221.dynamicIP.rima-tde.net)
14:23.57*** join/#tomcat a4akb (n=Akbara@62.215.156.215)
14:43.35*** join/#tomcat magz (n=ma9o0_st@222.127.48.206)
14:44.01*** part/#tomcat magz (n=ma9o0_st@222.127.48.206)
14:53.47*** join/#tomcat Erev (n=disvroia@183.Red-83-36-221.dynamicIP.rima-tde.net)
16:16.57*** join/#tomcat wsmoak (n=wsmoak@ip68-110-100-131.ph.ph.cox.net)
17:32.03*** join/#tomcat Rashmi (n=chatzill@ool-44c498ca.dyn.optonline.net)
19:42.03*** part/#tomcat a4akb (n=Akbara@62.215.156.215)
20:24.03*** join/#tomcat wsmoak (n=wsmoak@ip68-110-100-131.ph.ph.cox.net)
21:30.30*** join/#tomcat russt (n=tom@c-24-8-8-142.hsd1.co.comcast.net)
21:33.05russtHello - I have a development project that resides on a remote server. Since the project is in development mode there are frequent changes to the code. The current size of the war file is about 12.5 MB. However, having to transfer this to the remote host every time a single change is made seems a bit silly. On the other hand, if I copy just the modified classes and then restart the server, the new stuff is replaced by the contents of the existi
21:37.44jasonbtruncated.
21:44.02russthm
21:44.21russtjasonb: where did it stop?
21:44.47jasonbrusst: " the new stuff is replaced by the contents of the exist"
21:45.11russting war file. I'm trying to figure out an elegant way to handle this scenario. Any ideas?
21:46.09jasonb1. Stop using war files.  Yes, I know.  But, it will be a helpful thing to do.  Trust me.
21:46.19russtI'd actually like to
21:46.21jasonb2. Deploy using rsync if you can.
21:46.36russtlol that's what I was doing before, but something changed and that stopped working.
21:46.57russtthat would be perfect in fact.
21:47.10russtI guess I'll have to fix what's broken and make that work again.
21:47.24jasonbAlso, you should either restart the server when you redeploy, OR you should configure Tomcat to unpack any modified wars during runtime, not both.
21:47.39russthm ok
21:47.48jasonbdeploying via rsync is wonderful, especially in your case where you have a large webapp.
21:48.24russtok, I'll try to get that working again. I'll need to find an rsync client for windows now, but that should be too hard.
21:48.33jasonbIf you are having Tomcat unpack the war file in order to deploy this particular context, you *cannot* modify the unpacked dir without triggering a nother unpacking of the war file unless you tell Tomcat to only unpack at startup.
21:48.36russtshouldn't*
21:48.41jasonbcygwin.
21:49.00russtok - I wonder if gnuwin32 has rsync in it
21:49.16russtcygwin might work too
21:49.18russtwell*
21:49.21russtwill* damnit
21:50.03russtok jasonb thanks for your tips - I will probably eliminate the war file altogether.
21:50.35jasonbYou're welcome.  Yes, you'll be happier without the war file distraction.
22:15.10*** join/#tomcat codeshepherd (n=codeshep@bb121-7-80-240.singnet.com.sg)
22:21.04fallacyjasonb: I tried out that http proxy servlet you showed me yesterday, didn't work very well since it doesn't replicate the response headers from the server being proxied to
22:21.21fallacyjasonb: know of any good http proxy servlets I could try by any chance?
22:22.14jasonbfallacy: Well, that's interesting.
22:22.32jasonbfallacy: I have more of them, but you probably won't like any of the others.  I'll give you the links anyway..
22:22.58jasonbhttp://frank.spieleck.de/servlets.jsp
22:23.21jasonbhttp://frank.spieleck.de/download/ProxyServlet.java
22:23.37jasonbIt does not perform as well, and you'd need to modify the source a bit to get it to work, I'm sure.
22:24.06jasonbI was able to get it working, but eventually decided it wasn't worth putting my time into because it did not perform well enough.
22:24.14jasonb(for what I was wanting it for)
22:24.28jasonbBut, it's an example of servlet source code.
22:25.08jasonbI think that's basically all I have.  Everything else I found was so junky that it made these other two look great.  :)
22:25.50jasonbJust so you know, it is high on my todo list to implement something for Tomcat that does a good job of request proxying.
22:26.03jasonbIt would sure be nice if something like that was just part of Tomcat.
22:26.31fallacyyeah, its surprising that a mature one isn't available
22:26.55fallacyI also saw this: http://noodle.tigris.org/
22:30.42jasonbThat one is bad.
22:30.54jasonbIt is very old and slow, and is unbuildable from source.
22:31.12jasonb(I have experience with it)
22:33.18fallacyah
22:34.59fallacylooks like I'm SOL
22:35.22jasonbWell, you could modify the frank spieleck one.
22:37.05fallacyyeah, thats probably what I'll end up doing
22:37.16jasonbIt's at least some source code to start with. :)
22:37.30*** join/#tomcat evosh (n=jixjax@user-1121072.dsl.mindspring.com)
22:37.33jasonbAnother idea: use commons-httpclient and write your own servlet that uses it.
22:37.52jasonb(that's not a wonderful option either, though)
22:38.02fallacyyeah :)
22:38.58fallacyit seems like a simple problem though
22:42.08jasonbWell, it's a commonly needed feature, I believe.  It's also a commonly implemented thing.. an HTTP client, mainly.  But, there are so many ways one can implement it, and each one must handle a myriad of failure cases.  Plus, the features people need vary greatly.
22:42.32jasonbIt would need to be very configurable.  And, people would want it to perform really well.
22:46.58evoshPfft! People and their needs...
22:47.21evoshFor some reason my connection has been abysmal for the last 48 hours.
22:48.05fallacyjasonb: what configuration would be nice besides specifying the local mapping and the actual destination host to proxy the requests to?
22:49.03fallacytough part is just managing a connection pool to the destination host
22:52.16jasonbfallacy: Many people would want to filter the response to replace some strings.. like to remap URLs to their own host instead of the destination host.. the features of mod_proxy_html are quite handy.
22:52.51jasonbfallacy: Also, others might want to be able to configure whether the headers must be proxied, whether there should be a thread pool at all, and other http client connection settings.
22:53.25jasonbfallacy: Also, request header filtering/munging.
22:54.08jasonbfallacy: Have a look at the Apache 2.x mod_proxy documentation pages and you'll see lots of config options.  :)
22:56.28fallacyI see
22:59.12jasonbIt's easy to write one that has few features, but it will be deemed unusable by a large number of users.
23:03.05fallacyyeah, like my situation now :)
23:03.07fallacyyou're right
23:14.22jasonbs/number/percent/
23:18.03fallacyim going to whip one up for me to use using commons-httpclient
23:20.57jasonbIt should work well enough.  But, don't expect lots of performance out of it.
23:43.45*** join/#tomcat fzlogik (n=fuzelogi@extern-halls-hg-25.soton.ac.uk)

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