[Mostly OT] Sweeping the permgen space: is that a good thing?

2010-12-13 Thread Luca Gervasi
Hello, I know that my problem is with the application my tomcat 5.5 powered by java 1.5.0_b4 is running. I have this supposely leeking application that keeps saturating the permanent generation. The problem is an out of memory on the permgen. Studying the JVM, i understand that the permgen is

Re: [Mostly OT] Sweeping the permgen space: is that a good thing?

2010-12-13 Thread Pid
On 13/12/2010 10:13, Luca Gervasi wrote: Hello, I know that my problem is with the application my tomcat 5.5 powered by 5.5.x, where x is what? java 1.5.0_b4 is running. That's a really old JVM. Each minor release can contain improvements to garbage collection algorithms - even new

Re: 6.0.26 java.lang.Thread.State: WAITING (on object monitor)

2010-12-13 Thread Pid
On 12/12/2010 18:18, Srikanth Konjarla wrote: On 12/12/10 8:28 AM, Pid * wrote: On 11 Dec 2010, at 21:39, Srikanth Konjarla srikanth.konja...@gmail.com wrote: On Dec 11, 2010, at 1:04 PM, Pid * p...@pidster.com wrote: On 11 Dec 2010, at 20:02, Srikanth Konjarla

Re: 6.0.26 java.lang.Thread.State: WAITING (on object monitor)

2010-12-13 Thread Pid
On 13/12/2010 12:23, Pid wrote: On 12/12/2010 18:18, Srikanth Konjarla wrote: On 12/12/10 8:28 AM, Pid * wrote: On 11 Dec 2010, at 21:39, Srikanth Konjarla srikanth.konja...@gmail.com wrote: On Dec 11, 2010, at 1:04 PM, Pid * p...@pidster.com wrote: On 11 Dec 2010, at 20:02, Srikanth

RE: [Mostly OT] Sweeping the permgen space: is that a good thing?

2010-12-13 Thread Martin Gainty
read this article http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded afterwards post your code and we can make suggestions Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich.

tomcat 7 and context (migrating from 5.0)

2010-12-13 Thread Jeremy Monnet
Hi, I try since last friday to use a context file on tomcat 7, without any success. I have a webapp running on an old tomcat 5.0, and i want to migrate it to a brand new tomcat 7.0. The old tomcat was configured with a Catalina/localhost/myapp.xml which provides a URL like

mod_jk is not working correctly

2010-12-13 Thread Kaps, Michael
Hello together, I've a problem with mod_jk (Apache2 + Tomcat 5.5). Unfortunately if I try to request jsp-Files via Port 80 (Apache2) I only ge= t the source code back. But if I try to request the same files on port 8180 through Tomcat, the pag= e is correctly displayed. Here is the config I

Re: tomcat 7 and context (migrating from 5.0)

2010-12-13 Thread Mark Thomas
On 13/12/2010 13:02, Jeremy Monnet wrote: Hi, I try since last friday to use a context file on tomcat 7, without any success. I have a webapp running on an old tomcat 5.0, and i want to migrate it to a brand new tomcat 7.0. The old tomcat was configured with a

HTTP Status 404 - Servlet jsp is not available

2010-12-13 Thread Gaurav Pruthi
HTTP Status 404 - Servlet jsp is not available ... While I am putting the jsp and HTML files in my project directory .. still I'm not able to access thoseAlso plz. tell how to refer a servlet from a html page(I mean value of action attribute) =-=-= Notice: The

Re: HTTP Status 404 - Servlet jsp is not available

2010-12-13 Thread Mark Thomas
On 13/12/2010 13:07, Gaurav Pruthi wrote: HTTP Status 404 - Servlet jsp is not available ... While I am putting the jsp and HTML files in my project directory .. still I'm not able to access thoseAlso plz. tell how to refer a servlet from a html page(I mean value of action attribute)

RE: [Mostly OT] Sweeping the permgen space: is that a good thing?

2010-12-13 Thread Caldarale, Charles R
From: Luca Gervasi [mailto:tom...@ashetic.net] Subject: [Mostly OT] Sweeping the permgen space: is that a good thing? Studying the JVM, i understand that the permgen is never sweeped by GC. Not sure whether you mean that GC ignores PermGen, or just that in your particular situation, GC is

Re: mod_jk is not working correctly

2010-12-13 Thread Rainer Jung
On 13.12.2010 14:04, Kaps, Michael wrote: Hello together, I've a problem with mod_jk (Apache2 + Tomcat 5.5). Unfortunately if I try to request jsp-Files via Port 80 (Apache2) I only ge= t the source code back. But if I try to request the same files on port 8180 through Tomcat, the pag= e is

RE: tomcat 7 and context (migrating from 5.0)

2010-12-13 Thread Caldarale, Charles R
From: Jeremy Monnet [mailto:jmon...@gmail.com] Subject: Re: tomcat 7 and context (migrating from 5.0) I tried that. The URL is still upper case ? As it should be. I just have a process that generate a MYAPP.war (upper case) So fix your broken process so it generates the correct name. If

Where does my stderr go?

2010-12-13 Thread Thomas Kloeber
Folks'es, I have a strange problem with my Tomcat-Servlets: everything my servlets print out via System.err is lost and does not show up in any of the log files. How can that be and what can I do about it? When I start Tomcat all the usual log files arecreated like

Re: [Mostly OT] Sweeping the permgen space: is that a good thing?

2010-12-13 Thread Rainer Jung
On 13.12.2010 14:40, Caldarale, Charles R wrote: From: Luca Gervasi [mailto:tom...@ashetic.net] Subject: [Mostly OT] Sweeping the permgen space: is that a good thing? Studying the JVM, i understand that the permgen is never sweeped by GC. Not sure whether you mean that GC ignores PermGen,

Re: tomcat 7 and context (migrating from 5.0)

2010-12-13 Thread Jeremy Monnet
On Mon, Dec 13, 2010 at 2:47 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: I just have a process that generate a MYAPP.war (upper case) So fix your broken process so it generates the correct name. :-) If you insist on using a webapp name that doesn't match the expected URL,

Secure specific web application with SSL in HTTP Tomcat

2010-12-13 Thread Gennady Shumakher
Hello, I have the following question: If Tomcat and all of the deployed web applications are available through HTTP. Is there a way to configure Tomcat to restrict the access to specific web app to HTTPS only? Thanks in advance, Gennady

AW: mod_jk is not working correctly

2010-12-13 Thread Kaps, Michael
Thank you very much, that was it! Best regards Michael -Ursprüngliche Nachricht- Von: Rainer Jung [mailto:rainer.j...@kippdata.de] Gesendet: Montag, 13. Dezember 2010 14:45 An: Tomcat Users List Betreff: Re: mod_jk is not working correctly On 13.12.2010 14:04, Kaps, Michael wrote:

Re: tomcat 7 and context (migrating from 5.0)

2010-12-13 Thread Mark Thomas
On 13/12/2010 14:03, Jeremy Monnet wrote: On Mon, Dec 13, 2010 at 2:47 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: I just have a process that generate a MYAPP.war (upper case) So fix your broken process so it generates the correct name. :-) If you insist on using a webapp

RE: Secure specific web application with SSL in HTTP Tomcat

2010-12-13 Thread Caldarale, Charles R
From: Gennady Shumakher [mailto:gshumak...@gmail.com] Subject: Secure specific web application with SSL in HTTP Tomcat If Tomcat and all of the deployed web applications are available through HTTP. Is there a way to configure Tomcat to restrict the access to specific web app to HTTPS

Re: mod_jk is not working correctly

2010-12-13 Thread Rainer Jung
Don't ignore the rest of the recommendation! At least not for a long time. Rainer On 13.12.2010 15:06, Kaps, Michael wrote: Thank you very much, that was it! Best regards Michael -Ursprüngliche Nachricht- Von: Rainer Jung [mailto:rainer.j...@kippdata.de] Gesendet: Montag, 13.

[OT] Linux Journal Article Web Applications with Java/JSP

2010-12-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, This is a shameless plug for an article I wrote for LJ published back in September. Covers the basics of Java and JSP: no frameworks, etc. and only mentions that Tomcat is available, free, and invites everyone into the community.

Re: Secure specific web application with SSL in HTTP Tomcat

2010-12-13 Thread Gennady Shumakher
Chuck, thank you. It's good approach, but wouldn't that mean that all applications will be accessible through SSL as well? That's not desired in my case. I have a monitoring application that I would like to access remotely through SSL, but it is going to work with self-signed certificate,

RE: Secure specific web application with SSL in HTTP Tomcat

2010-12-13 Thread Caldarale, Charles R
From: Gennady Shumakher [mailto:gshumak...@gmail.com] Subject: Re: Secure specific web application with SSL in HTTP Tomcat wouldn't that mean that all applications will be accessible through SSL as well? If the client chooses to use SSL, what's wrong with that? Having the

IIS redirect http to https for Tomcat 6.0.29

2010-12-13 Thread Alexander Diedler
Hello, Iam not sure i fit ist he right place for this topic, but I want to do a permanently redirect of every incoming http requeswt forwarded to https in IIS. SSL is required is enabled for the website and the isapi_redirect woking fine without this option enabled. Is there are any setting we

Re: Where does my stderr go?

2010-12-13 Thread André Warnier
Thomas Kloeber wrote: Folks'es, I have a strange problem with my Tomcat-Servlets: everything my servlets print out via System.err is lost and does not show up in any of the log files. How can that be and what can I do about it? When I start Tomcat all the usual log files arecreated

Is there an upload limit of around 8000 bytes in tomcat 6?

2010-12-13 Thread Klemens Muthmann
Hi, I wrote a REST webservice that accepts file uploads to the server. I used the Restlet framework and as long as I am running the application on the internal Restlet Web Server everything works fine. However as soon as I deploy my application as WAR to tomcat (tomcat 6.0.24) it seems that

Re: Is there an upload limit of around 8000 bytes in tomcat 6?

2010-12-13 Thread Mark Thomas
On 13/12/2010 16:03, Klemens Muthmann wrote: Hi, I wrote a REST webservice that accepts file uploads to the server. I used the Restlet framework and as long as I am running the application on the internal Restlet Web Server everything works fine. However as soon as I deploy my application

How to configure JNDI resource

2010-12-13 Thread Abid Hussain
Hi all, I've a question about how to configure a datasource to be accessed via JNDI. I have a datasource configured in server.xml (In Server/GlobalNamingResources/Resource). In the documentation http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Resource_Definitions it says that that a

Re: Is there an upload limit of around 8000 bytes in tomcat 6?

2010-12-13 Thread Klemens Muthmann
Hm. It works. Great. However I wonder why the parameter that allows me to upload a larger block of ~CONTENT~ is called maxHttp~HEADER~Size. Nevertheless. Thank you very much for your fast answer. Am 13.12.2010 17:06, schrieb Mark Thomas: On 13/12/2010 16:03, Klemens Muthmann wrote: Hi, I

Re: Is there an upload limit of around 8000 bytes in tomcat 6?

2010-12-13 Thread Mark Thomas
On 13/12/2010 16:31, Klemens Muthmann wrote: Hm. It works. Great. However I wonder why the parameter that allows me to upload a larger block of ~CONTENT~ is called maxHttp~HEADER~Size. Because you are uploading data in the request headers, not in the request body. Mark Nevertheless.

Re: IIS redirect http to https for Tomcat 6.0.29

2010-12-13 Thread Pid
On 13/12/2010 15:43, Alexander Diedler wrote: Hello, Iam not sure i fit ist he right place for this topic, but I want to do a permanently redirect of every incoming http requeswt forwarded to https in IIS. „SSL is required“ is enabled for the website and the isapi_redirect woking fine

jndi-lookup fails, cured by tomcat restart

2010-12-13 Thread Dale Ogilvie
Hi there, Apologies if my previous email ended up linked to another thread. A JNDI lookup started failing mysteriously, and rather than shrug shoulders I'd prefer to nail down what went wrong, if possible. We are using a spring jndi-lookup to pull the name of a context file from the global

RE: How to configure JNDI resource

2010-12-13 Thread Dale Ogilvie
This is how we do it in a spring app, with a resourcelink in context.xml conf/server.xml GlobalNamingResources Resource auth=Container driverClassName=oracle.jdbc.OracleDriver maxActive=10 maxIdle=5 maxWait=1

Re: How to configure JNDI resource

2010-12-13 Thread Mark Eggers
Abid, The resource-ref element in web.xml describes an external resource to your web application. The Resource element in either context.xml or server.xml describes to Tomcat how to create the resource being accessed by your web application. The first (resource-ref) is part of the standard.

Re: How to configure JNDI resource

2010-12-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/13/2010 3:21 PM, Mark Eggers wrote: In order to use the resource, you'll need to tell your application about it (resource-ref in web.xml), and create it (Resource in context.xml or server.xml). Where you put the creation depends on

Re: jndi-lookup fails, cured by tomcat restart

2010-12-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dale, On 12/13/2010 3:08 PM, Dale Ogilvie wrote: We are using a spring jndi-lookup to pull the name of a context file from the global environment in our apps. We have set this up in tomcat 6.0.29 like so: $CATALINA_HOME/conf/context.xml

Re: Secure specific web application with SSL in HTTP Tomcat

2010-12-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gennady, On 12/13/2010 10:05 AM, Gennady Shumakher wrote: Chuck, thank you. It's good approach, but wouldn't that mean that all applications will be accessible through SSL as well? That's not desired in my case. I have a monitoring application

Re: mod_jk is not working correctly

2010-12-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 12/13/2010 8:04 AM, Kaps, Michael wrote: Unfortunately if I try to request jsp-Files via Port 80 (Apache2) I only get the source code back. You have probably set Apache DocumentRoot = webapp docBase (or a similar Alias), which is a

Re: [Mostly OT] Sweeping the permgen space: is that a good thing?

2010-12-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luca, On 12/13/2010 5:13 AM, Luca Gervasi wrote: I have this supposely leeking application that keeps saturating the permanent generation. The problem is an out of memory on the permgen. Studying the JVM, i understand that the permgen is

Re: How to configure JNDI resource

2010-12-13 Thread Mark Eggers
Chris, Weird. I guess I've just blindly followed the standards. I'll have to give it a try later on today. Thanks for the info. /mde/ Well, how about that. I just commented out the resource-ref element in web.xml for a Hibernate-based application and it ran fine. I have the following line in

RE: jndi-lookup fails, cured by tomcat restart

2010-12-13 Thread Dale Ogilvie
propsFileName is the name of the bean, which should be initialized with the string value from the JNDI entry propertiesFileName defined in $CATALINA_HOME/conf/context.xml This was working, stopped working until a tomcat restart, and is working again now. My concern is that this may be a bug in

RE: [Mostly OT] Sweeping the permgen space: is that a good thing?

2010-12-13 Thread Caldarale, Charles R
From: Rainer Jung [mailto:rainer.j...@kippdata.de] Subject: Re: [Mostly OT] Sweeping the permgen space: is that a good thing? GC in Perm Gen whenever tenured gets GC'd: it might depend on the GC algo and JVM version, but that's off by default at least for CMS and many JVM

Re: jndi-lookup fails, cured by tomcat restart

2010-12-13 Thread Mark Eggers
Dale, What happens if you try changing the jndi-name to its fully qualified version? java:comp/env/propertiesFileName Then change the context.xml file name to propertiesFileName (no leading slash)? I'm basing these comments on some similar issues I've seen in the Spring forums, and similar

tomcat production settings and best practices

2010-12-13 Thread srinivas jaini
What are the max xms, xmx that Apache Tomcat can handle? How common is it to use memory heaps great than 8gb for memory intensive applications running frameworks such as spring, quartz?Is setting xms and xmx equal a good practice for production deployments? -- Srinivas Jaini

SSL Cert

2010-12-13 Thread George Christiansen - PA
Hello, I'm trying to remove an SSL cert from a Tomcat instance. Can I just comment/remove the certs from server.xml and maintain SSL without the cert? Thanks, George - To unsubscribe, e-mail:

RE: jndi-lookup fails, cured by tomcat restart

2010-12-13 Thread Dale Ogilvie
The thing is that the code is working fine now, without the fully qualified jndi-name. Then an app redeployment and it stopped working. Then an apache restart and it started working again... I found something on Google about having apache jars in WEB-INF/lib, but I don't think this was/is the

Re: Is there an upload limit of around 8000 bytes in tomcat 6?

2010-12-13 Thread Klemens Muthmann
Didn't know this. I thought files would be part of the message content. OK. Thanks for the explanation. Am 13.12.2010 17:42, schrieb Mark Thomas: On 13/12/2010 16:31, Klemens Muthmann wrote: Hm. It works. Great. However I wonder why the parameter that allows me to upload a larger block of

Re: About mod_jk's retry setting

2010-12-13 Thread Yu Kikuchi
Thank you for your advice. I understood that I've got a wrong idea about mod_jk's timeouts. I intend to pore over the configuration files and the manuals to understand them. Regard, (2010/12/10 17:46), Rainer Jung wrote: On 10.12.2010 04:43, Yu Kikuchi wrote: Hello All. My Environment: