Re: IIS 6.0 / JK1.2.25 / Tomcat 5.5.20 - Service temporary unavailable

2008-12-11 Thread Jesse Klaasse
Hi Rainer, Thanks for jumping in again.. Rainer Jung-3 wrote: When using big heaps, you need to take extra effort to get your GC settings right. Do you have GC-Logs? What are the JVM options you use to start Tomcat? The JVM options: -Dcatalina.base=D:\tomcat -Dcatalina.home=D:\tomcat

AW: AW: AW: java.io.IOException: Stream closed

2008-12-11 Thread Schuster Stefan
Hi, sorry for the long delay - I needed some time away from tomcat and XML ;) The client is XCelsius (an MS Excel extension that can be used to access webservices and read XML files from web resources). As far as I can tell, the XML-Beans generated code works well - even if The stream is closed

Re: service.bat install failure (Windows, v 6.0.18)

2008-12-11 Thread Rainer Jung
Am 11.12.2008 05:19, schrieb Caldarale, Charles R: From: andrew [mailto:[EMAIL PROTECTED] Subject: Re: service.bat install failure (Windows, v 6.0.18) I did a completely clean extract of the 6.0.18 tar.gz archive I usually use the .zip for Windows, but it should be the same thing. I think

Re: IIS 6.0 / JK1.2.25 / Tomcat 5.5.20 - Service temporary unavailable

2008-12-11 Thread Rainer Jung
Am 11.12.2008 09:43, schrieb Jesse Klaasse: Rainer Jung-3 wrote: When using big heaps, you need to take extra effort to get your GC settings right. Do you have GC-Logs? What are the JVM options you use to start Tomcat? The JVM options: -Dcatalina.base=D:\tomcat -Dcatalina.home=D:\tomcat

Re: Tomcat caching of static resources?

2008-12-11 Thread André Warnier
As a heretic post in this forum, which usually tends to recommend the opposite : what about putting an Apache with mod_cache in front of your Tomcat server ? Carefully set up, that would do what you want. - To unsubscribe,

HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread BoyePeter
Hi Folks, After installing Tomcat and trying to check that it is working OK, I get the HTTP 400 error message. I am running Windows XP Professional version 2002 SP 3 with all updates applied. I am running Internet Explorer v 7.0.5730.11. I have installed Java JDK 1.6.0_11 with the JRE from the

Re: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread Kees de Kooter
Did you try to access the manager application at http://localhost:8080/manager/html? If that works your tomcat is running fine. I suggest you read up on building and packaging java web applications. You can deploy your .war files using this manager application. On Thu, Dec 11, 2008 at 11:51,

RE: Tomcat caching of static resources?

2008-12-11 Thread Javabeat
Thanks Chuck for that. Perhaps my use of words was a little misleading. I guess what i was trying to say was that the response returned by Tomcat i.e expiry date etc was not conductive to caching for clients. In terms of headers, i dont want to cache 'pages as the data is very transient. What i

Re: Tomcat caching of static resources?

2008-12-11 Thread Gregor Schneider
Bill, On Thu, Dec 11, 2008 at 4:15 AM, Bill Barker [EMAIL PROTECTED] wrote: The article is referring to the fact that Tomcat adds cache headers by default to any page protected by a security-constraint to prevent someone else from stealing it from an intermediate proxy. The default settings

Re: Tomcat caching of static resources?

2008-12-11 Thread Javabeat
I agree that i dont think the 'in memory' Tomcat solutions is what i'm currently after, its very much a Tomcat 'heading stamp' issue i think. Interesting point you raise though regarding pushing the statics to an external server. Not ideal from a deployment perspective but that would certainly

Re: Tomcat caching of static resources?

2008-12-11 Thread Javabeat
The problem however is that i'm using a remote shared host. Whilst this gives me quite a lot of configuration potential i doubt it would allow me to setup Apache and adaptors etc. In a 'real production environment' this would very much be a preferred choice. awarnier wrote: As a heretic post

Re: Tomcat caching of static resources?

2008-12-11 Thread Javabeat
same applies on Firefox though, there may well be issues in IE as always but i'm not convinced this is the core problem here. Gregor Schneider wrote: Bill, On Thu, Dec 11, 2008 at 4:15 AM, Bill Barker [EMAIL PROTECTED] wrote: The article is referring to the fact that Tomcat adds cache

Re: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread BoyePeter
Hi, Thanks for the reply and have just tried your suggestion. A dialogue box has appeared asking for a user name and password and saying that the server localhost at Tomcat Manager Application requires a username and password. I did set up a user name and password for Tomcat and so assume that

Re: Tomcat caching of static resources?

2008-12-11 Thread André Warnier
Sorry, I don't remember of your pages are protected or not (even the static ones I mean). But anyway, you might want to have a look at this : http://www.tuckey.org/urlrewrite/ Manual for 3.2, and scroll down to the set response-header bit. It's a servlet filter with a lot of capabilities. The

RE: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread BEN HMIDA aymen
Hi Peter, Where did you placed your application? -Message d'origine- De : BoyePeter [mailto:[EMAIL PROTECTED] Envoyé : jeudi 11 décembre 2008 13:50 À : users@tomcat.apache.org Objet : Re: HTTP 400 Error when trying to check Tomcat installation Hi, Thanks for the reply and have just

Re: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread André Warnier
BoyePeter wrote: Hi, Thanks for the reply and have just tried your suggestion. A dialogue box has appeared asking for a user name and password and saying that the server localhost at Tomcat Manager Application requires a username and password. I did set up a user name and password for Tomcat

Re: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread BoyePeter
Ta very much for your response. I very stupidly did not think to stop and restart Tomcat. I have now got into the Manager application. I now have to read up and understand how to use it. My very best regards, Pete awarnier wrote: BoyePeter wrote: Hi, Thanks for the reply and have

Re: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread Markus Schönhaber
BoyePeter: I am running Windows XP Professional version 2002 SP 3 with all updates applied. I am running Internet Explorer v 7.0.5730.11. I have installed Java JDK 1.6.0_11 with the JRE from the same download. Care to mention the Tomcat version you're using? I copied the servlet-api.jar to

RE: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread BoyePeter
Hi Ben, Thanks for the response. I put the compiled class into c:\tomcat\webapps\ROOT\WEB-INF\classes It was a very simple Hello World servelt from the Java for Dummies book (page 647) and on page 649 it says to move the compiled class file to that directory. Although I now

Re: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread BoyePeter
Hi mks, I have installed Tomcat version 6. I copied the servlet-api.jar to the JDK directory because, according to Java for Dummies, it is needed to compile my servlets. If it is not there, Eclipse reports errors when trying to import javax.servlet.* and when I try to use extends HttpServlet.

Re: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread André Warnier
BoyePeter wrote: [...] Not sure how to turn off IE's friendly messages nor what would be the result if I did so. At least I can tell you something about that. Just search in Google for ie friendly error messages, and about the first 30 results will tell you all you need to know about it.

Re: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread BoyePeter
Did as you suggested but then all I get is a black web page. I right clicked to look at the source and this was what was shown: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META http-equiv=Content-Type content=text/html; charset=windows-1252/HEAD BODY/BODY META

Re: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread Markus Schönhaber
BoyePeter: I have installed Tomcat version 6. Although I doubt it's of any importance wrt your problem, for the future: Tomcat's version numbers consist of three numbers separated by dots - like 6.0.18. I copied the servlet-api.jar to the JDK directory because, according to Java for Dummies,

RE: HTTP 400 Error when trying to check Tomcat installation

2008-12-11 Thread Caldarale, Charles R
From: BoyePeter [mailto:[EMAIL PROTECTED] Subject: Re: HTTP 400 Error when trying to check Tomcat installation SEVERE: Error deploying web application directory ROOT java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.InvokerServlet is privileged and cannot be loaded

Re: bad content type mod_jk 1.2.27

2008-12-11 Thread marcobalc
Hi, in effect in the case of Excel download I set Header after I send the output stream because I do not know that tomcat start to flush before controller return. Now I have fixed this. But I don't understand why I have mime type problem with other normal page. An other repetitive case with

RE: Can not fail over a web service call using mod_jk

2008-12-11 Thread Nuno Manuel Martins
Sorry to come up in the middle of a discussion, but how does the worker recover after the 500 error? Does it have to be reset manually or does it recheck from time to time (how long?) if the server is available again? Thanks, Nuno -Original Message- From: Rainer Jung [mailto:[EMAIL

Re: bad content type mod_jk 1.2.27

2008-12-11 Thread marcobalc
Hi, an other strange behavior is that some times when I reboot tomcat and I refresh browser while I wait that tomcat is up and runnig I see the normal error page displayed when the tomcat is not yet started but also in this case I see the source html code on the browser instead of HTML

Restricting IP address and redirecting

2008-12-11 Thread Flemion Shafeeq
Hi, We restrict IP addresses to our application using RemoteAddressValve. But we have a requirement of redirecting the request to a customized html static page when we get request from such denied IP's. How do i do this. Is it possible to customize this class to do this redirection and deploy it

Re: Tomcat caching of static resources?

2008-12-11 Thread Gregor Schneider
On Thu, Dec 11, 2008 at 1:05 PM, Javabeat [EMAIL PROTECTED] wrote: same applies on Firefox though, there may well be issues in IE as always but i'm not convinced this is the core problem here. I strongly disagree. We do have a setup here having Apache HTTPD 2.2 fronting Tomcat 5.5, and the

Re: Can not fail over a web service call using mod_jk

2008-12-11 Thread Rainer Jung
Am 11.12.2008 16:46, schrieb Nuno Manuel Martins: Sorry to come up in the middle of a discussion, but how does the worker recover after the 500 error? Does it have to be reset manually or does it recheck from time to time (how long?) if the server is available again? During so called global

Re: service.bat install failure (Windows, v 6.0.18)

2008-12-11 Thread andrew
Chuck, Thanks for your patience, and all the helpful information. I did a completely clean extract of the 6.0.18 tar.gz archive I usually use the .zip for Windows, but it should be the same thing. Well, I've been counting on them being the same, but another post suggests that maybe there

RE: service.bat install failure (Windows, v 6.0.18)

2008-12-11 Thread Caldarale, Charles R
From: andrew [mailto:ad...@ecpcorp.net] Subject: Re: service.bat install failure (Windows, v 6.0.18) I've seen the Tomcat doc page explaining tomcat6w.exe (it's just a rename of tomcat6.exe, correct?), No, it's a completely different program; it's a GUI tool to manage the Tomcat service.

reading request parameter invalidates post body

2008-12-11 Thread John Cartwright
Hello All, I'm using tomcat 6.0.18 and it appears that reading a request parameter like: String param = request.getParameter(param); causes any subsequent attempt to ready the post body to fail: while ((inputLine = reader.readLine()) != null) { sb.append(inputLine); } It doesn't

RE: reading request parameter invalidates post body

2008-12-11 Thread Chris Hut
A quick read through the source code (org/apache/catalina/connector/Request.java) reveals - The first read of getParameter() will consume the request body form params and store them in a cache so that subsequent calls don't need to iterate over the request a second time. (This definitely seems

RE: How to set Log4J debug flag in Tomcat

2008-12-11 Thread Prastein, Rebeccah H
I'll take a look, thanks. Rebeccah -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Wednesday, December 10, 2008 4:51 PM To: Tomcat Users List Subject: Re: How to set Log4J debug flag in Tomcat Prastein, Rebeccah H wrote: How do I start tomcat as an application