Tomcat 6: 20 minutes on 10 minutes off duty cycle

2008-09-05 Thread Bryan McGinty
After upgrading from Tomcat 5 to Tomcat 6 I encountered a situation where Tomcat cycles through working hard for 20 minutes, and slowing down for 10 minutes. We run a Java servlet application using JDK 1.5.0-15 and Tomcat 5.5.26. One part of the application processes an XML file, and this can

Deploying an app from remote url (tomcat manager)

2008-09-05 Thread Noble Paul നോബിള്‍ नोब्ळ्
hi , I tried the to deploy a war from an http url I tried the following syntax jar:http://hostname:port/path/to/a/warfile.war! as given in the javadocs for ManagerServlet It throws the following exception on console java.io.IOException: The filename, directory name, or volume label syntax is

file upload

2008-09-05 Thread Silvio Rainoldi
When I try to write a file in a folder in the server I get this error: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. /home/www/virtual/test/images/htdocs/ flyers/upload_1ed3f2d1_11c313f7288__8000_.tmp (Permission

question : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-09-05 Thread James Wang
Hi all, we are encountering java.net.SocketTimeoutException: Read timed out occasionally, wondering if it's something related to network problem, Would highly appreciate if someone can help, following are the program stack found in tomcat log for your reference : WARNING: Exception thrown

symlinks in webapps

2008-09-05 Thread Claudio Tassini
Hi guys, I'm trying to make a link to an app inside the webapps directory in tomcat 6.0.18 . The goal is to have the same webapp referenced by two contexts, and this worked fine in 5.x . In 6.x, if I make a symlink to a webapp in the webapps directory, the app fails to start: [EMAIL PROTECTED]

difference in how applications are displaying

2008-09-05 Thread Scott, Ewan
Hi I think this may relate to a tomcat setting - but I may be completely wrong. I have 2 servers which should be running identical looking webapps under Apache Tomcat. Accessing the test app on server 1 from a client using IE6, within the app, next to a range of data input

Re: Need help with Tomcat MBean support

2008-09-05 Thread H. Hall
Steve Cohen wrote: Let me ask my question a little more directly: Does the presence of a descriptor cause instantiation of an instance of an MBean or do I have to write code to create a server-side instance of my MBean and if so, where should this code reside or is there some configuration

Problems with mod_jk and authentication not working

2008-09-05 Thread Angel Vera
I did some research and people reported a problem with mod_jk 1.2.24, but they said it was going to be fixed in 1.2.25, I am using 1.2.26 and I am still experiencing the same problem. I can directly access tomcat 'manager' application and I get prompted, but when I try to access the

Re: Need help with Tomcat MBean support

2008-09-05 Thread Steve Cohen
Thanks again. These articles are very clear and simple. They do raise a couple questions, though. In the first article, no mention is made of an mbeans-descriptor.xml file. It's all done programatically in the first article - which might be fine for my needs. The Tomcat documentation does

Re: Tomcat 6 (Unable to find servlet or load servlet jar from a client jar)

2008-09-05 Thread Robert K. Vanderhoek
Thank you all for the help that was the file i needed to find the servlet. I'm just surprised it isn't stressed more to use a web.xml file for each webapp since it is so vital. Thanks again -Robert Martin Gainty wrote: sample web.xmlBR ?xml version=1.0 encoding=ISO-8859-1?BR !DOCTYPE

Exception when trying to configure a pool of connections for use of WS

2008-09-05 Thread Daniele Development-ML
Hello everybody, I am trying to set up the configuration for a pool of connections to a MySQL DB and I get the following exception when deploying on Tomcat. I followed the steps at http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html. The application actually consists of a

Re: Tomcat 5.5. META-INF/context.xml ignored when deploying as war.

2008-09-05 Thread Mark Thomas
Eric Berry wrote: Ok cool. Thank you very much for clearing that up for me. The first time I deployed the war, there wouldn't have been a context in any of the 3 locations mentioned above. As you said, it would have copied the context.xml file from the war into the 3rd location as

Re: Tomcat 6: 20 minutes on 10 minutes off duty cycle

2008-09-05 Thread Mark Thomas
Bryan McGinty wrote: using mod_proxy_ajp. This worked well. I'd use mod_proxy_http given a free choice. But anyway... Has anyone seen this sort of behaviour when upgrading to Tomcat 6? If not, does anyone have any idea of how I may be able to determine the cause of this behaviour? Use a

define jndi/datasource resource (something similar to websphere?)

2008-09-05 Thread Aljosa Mohorovic
i'm trying to deploy a spring/hibernate based application on tomcat and i have this defined in application: - bean id=dataSource class=org.springframework.jndi.JndiObjectFactoryBean property name=jndiName value=java:DB2DS / /bean

Re: question : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-09-05 Thread Mark Thomas
James Wang wrote: Hi all, we are encountering java.net.SocketTimeoutException: Read timed out occasionally, wondering if it's something related to network problem, Would highly appreciate if someone can help, following are the program stack If the client is IE, the server httpd and you are

Re: Deploying an app from remote url (tomcat manager)

2008-09-05 Thread Mark Thomas
Noble Paul നോബിള്‍ नोब्ळ् wrote: hi , I tried the to deploy a war from an http url I tried the following syntax jar:http://hostname:port/path/to/a/warfile.war! I haven't got a system handy to test with but do you need the final '/'? That would make the URL:

Re: define jndi/datasource resource (something similar to websphere?)

2008-09-05 Thread Mikolaj Rydzewski
Aljosa Mohorovic wrote: i'm trying to find a way where i don't need to change my app to work on tomcat, some way to define jndi resource that doesn't require changes to application. every document related to this requires some changes to app so i'm wondering how can i configure tomcat with

Tomcat loops indefinitely

2008-09-05 Thread Kjetil Kjernsmo
Hi all! I'm struggling with a really weird problem. I have a Cocoon 2.2 application that runs on Tomcat 5.5.25-5ubuntu1 and Java 1.5.0. My (semi-)production system, my test system and my development system are Ubuntu 8.04 boxes, and they differ very little, with the exception that the

any way to inhibit Tomcat from deleting context descriptors if the WAR file disappears?

2008-09-05 Thread Julian Dunn
Is there any way to stop Tomcat from deleting my Context descriptor files if the WAR file somehow disappears? (Other than chmod 400 that is :-) ) - Julian -- -- Julian C. Dunn, P.Eng. [EMAIL PROTECTED] -- Assistant Team Lead / Chef d'équipe adjoint -- Media Production Support / Soutien à la

RE: Tomcat 5.5. META-INF/context.xml ignored when deploying as war.

2008-09-05 Thread Caldarale, Charles R
From: Eric Berry [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5. META-INF/context.xml ignored when deploying as war. (Just expanding a little on what Mark gave you.) Why recommend the use of the context.xml if it really isn't used? It is used - Tomcat copied the context.xml file from

RE: User Directories and context.xml?

2008-09-05 Thread Caldarale, Charles R
From: Tim J Schumacher [mailto:[EMAIL PROTECTED] Subject: Re: User Directories and context.xml? Just out of curiosity, does anyone know the motivation for not reading context.xml out of a user's directory? (I apologize for coming in late on this one.) Tomcat does use context.xml out of a

Re: mod_jk is not getting compile on centos 5.2 64-bit

2008-09-05 Thread Rainer Jung
Hi Ankush, mod_jk configure uses ${APXS} -q PREFIX to see if it works, where ${APXS} is what you gave to --with-apxs. You can try that directly, and see if it works, or if your apxs is broken: /usr/sbin/apxs -q PREFIX Regards, Rainer ankush grover schrieb: Hi Friends, I am trying to

Upgrading to 6.0.18

2008-09-05 Thread Yoryos
Hello Does anyone knows if with a simple replacement of the jars of CATALINA_HOME/lib can I upgrade from 6.0.14 to 6.0.18?

Re: User Directories and context.xml?

2008-09-05 Thread Tim J Schumacher
Hi Chuck, My appbase is $CATALINA_HOME/webapps and CATALINA_HOME=/usr/local/apache-tomcat-6.0.16 Apps running from that directory are working as expected-context.xml is getting processed and all is good. The question I had was, after setting up the Listener in server.xml Listener

Re: Exception when trying to configure a pool of connections for use of WS

2008-09-05 Thread David Smith
And the code you use to get a connection? Looks like the database pool should be fine, you are getting a javax.sql.DataSource object but treating it as a java.naming.Context object. As an aside and definitely not things affecting the issue you describe below: 1. Do not use the root user in

RE: Tomcat loops indefinitely

2008-09-05 Thread Caldarale, Charles R
From: Kjetil Kjernsmo [mailto:[EMAIL PROTECTED] Subject: Tomcat loops indefinitely The problem is that the application has apparently gone into a loop, as this appears to be different threads. Eventually, it runs out of threads, and comes to a halt: What does a thread dump show? (Before

RE: Tomcat 6 (Unable to find servlet or load servlet jar from a clientjar)

2008-09-05 Thread Caldarale, Charles R
From: Robert K. Vanderhoek [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 (Unable to find servlet or load servlet jar from a clientjar) I'm just surprised it isn't stressed more to use a web.xml file for each webapp since it is so vital. Read the servlet spec - a prerequisite for using any

RE: symlinks in webapps

2008-09-05 Thread Caldarale, Charles R
From: Claudio Tassini [mailto:[EMAIL PROTECTED] Subject: symlinks in webapps The goal is to have the same webapp referenced by two contexts Rather than use symlinks, try using an additional Context element in conf/Catalina/[host]/WebMail2.xml: Context docBase=WebMail / (Include whatever

Yet another context logging question

2008-09-05 Thread Jonathan Mast
Hello all, I have Context named foo whose path is /foo and whose docbase is DOCS/foo. foo has it's own AccessLogValve Foo has a subdirectory bar which I would now like to be it's own Context and AccessLogValue. My question is: Will defining a context /foo/bar at DOCS/foo/bar, with it's own

Tomcat 5.5

2008-09-05 Thread Ed Abukhdeir
I moved my keystore to a new server and modified the server.xml to point to the keystore, but I'm unable to connect via https. However, I'm able to connect with http. Thanks Ed The information transmitted is intended

Tomcat connector attributes

2008-09-05 Thread sharanabasavaraj . x . mudgal
Hi! I have tomcat 6.0.18 with tomcat-native enabled with APR 1.3.2 and with connector configuration as below.. Connector port=7372 SSLCertificateFile=/tmp/abc.crt SSLCertificateKeyFile=/tmp/abc.key SSLPassword=password SSLProtocol=TLS protocol=HTTP/1.1 SSLEnabled=true maxThreads=150

Re: Tomcat 6 (Unable to find servlet or load servlet jar from a clientjar)

2008-09-05 Thread Robert K. Vanderhoek
thanks again Caldarale, Charles R wrote: From: Robert K. Vanderhoek [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6 (Unable to find servlet or load servlet jar from a clientjar) I'm just surprised it isn't stressed more to use a web.xml file for each webapp since it is so vital. Read

Re: Tomcat 5.5. META-INF/context.xml ignored when deploying as war.

2008-09-05 Thread Eric Berry
Mark, Chuck, Thank you both very much for the detailed explanations. I can certainly see how this would definitely speed development along, and how - in most cases - the context.xml is unnecessary. I myself, have rarely used them unless as Mark mentioned, I needed specific context parameters.

Tomcat 6 and corruption of text in French error pages

2008-09-05 Thread André-John Mas
Hi, I have Tomcat 6 installed on a French version of Windows XP. When error pages, such as the 404 error page, appear the French text is corrupted. For example, instead of the expected: La ressource demandée (/manager/html) n'est pas disponible. I get: La ressource demand�e

Re: jsvc creates pid file owned by root

2008-09-05 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=31984 Posted on behalf of a User You shouldn't be messing about with the ownership of the PID file. It is created by jsvc at startup. If you use jsvc properly it will start as root, create the pid file, startup tomcat ... Ah, but what if you

Re: Tomcat connector attributes

2008-09-05 Thread Filip Hanik - Dev Lists
your observation is correct, the clientAuth attribute only exists on protocol=org.apache.coyote.http11.Http11NioProtocol and protocol=org.apache.coyote.http11.Http11Protocol Filip [EMAIL PROTECTED] wrote: Hi! I have tomcat 6.0.18 with tomcat-native enabled with APR 1.3.2 and with connector

Re: jsvc creates pid file owned by root

2008-09-05 Thread Steve Cohen
[EMAIL PROTECTED] wrote: See Thread at: http://www.techienuggets.com/Detail?tx=31984 Posted on behalf of a User You shouldn't be messing about with the ownership of the PID file. It is created by jsvc at startup. If you use jsvc properly it will start as root, create the pid file, startup

Re: Tomcat connector attributes

2008-09-05 Thread sharanabasavaraj . x . mudgal
Thanks! Sharan. Filip Hanik - Dev Lists [EMAIL PROTECTED] 09/05/2008 05:33 PM Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: Tomcat connector attributes your observation is correct, the clientAuth attribute

RE: Yet another context logging question

2008-09-05 Thread Caldarale, Charles R
From: Jonathan Mast [mailto:[EMAIL PROTECTED] Subject: Yet another context logging question Foo has a subdirectory bar which I would now like to be it's own Context and AccessLogValue. Such a configuration is not supported - webapps may not be nested. Whatever results you get will be