Catalina.out is getting to big
Hy, I have a problem concerning the size of the catalina.out file. It is getting to big and I´m not shure where to set the verbosity. Logger doesent seem to work ?!? Is there a difference to the 4.x. versions of Tomcat ?? I´m using the following constelation: -SunOS 5.9 -Tomcat 5.5 Where can I set verbosity. Thanx for your help in advance. Regards Oliver - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 class loader question.
Why would Catalina classloader need to see application specific jar files? On 8/23/06, Mark Thomas [EMAIL PROTECTED] wrote: Borut Hadžialić wrote: However, when we move those Jira dependencies from $CATALINA_HOME/common/lib/ to $CATALINA_BASE/shared/lib/ Jira starup fails - it throws several ClassDefNotFoundException (for org.postgresql.Driver and other classes) Does anyone know why is this happening? Probably because the Catalina classloader also needs to be able to see those classes. If they are in shared, they are not visible to the core Tomcat code. Mark -- Why? Because YES!
Next version of Tomcat (Tomcat 6.0 ?)
Hello, Do you know when the next version of Tomcat (6.0 ?) will be released ? Regards.
Re: How to get tomcat configuration inside a servlet
I'd try to use MBeans and JMX infrastructure to find out tomcat configuration. http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html The admin webapp depends on MBeans to 'talk' to tomcat. So try this way. You're GREAT ;-). Very thank you. -- Added t our code -- import javax.management.*; import org.apache.commons.modeler.Registry; private static void initialize() { try { MBeanServer mBeanServer = Registry.getRegistry(null, null).getMBeanServer(); extractParametersTomcat(mBeanServer,*:*); } catch (Exception e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } } private static void extractParametersTomcat(MBeanServer mBeanServer, String qry ) { Set names = null; try { names=mBeanServer.queryNames(new ObjectName(qry), null); } catch (Exception e) { return; } Iterator it=names.iterator(); while( it.hasNext()) { ObjectName oname=(ObjectName)it.next(); try { MBeanInfo minfo=mBeanServer.getMBeanInfo(oname); String code=minfo.getClassName(); if (org.apache.commons.modeler.BaseModelMBean.equals(code)) { code=(String)mBeanServer.getAttribute(oname, modelerType); } boolean protocolIsHTTP = false; boolean isSecure = false; boolean isSchemeHTTPS = false; String _protocol; Object _port; if( minfo.getClassName().equals(org.apache.catalina.mbeans.ConnectorMBean) ) {//if#1 _protocol = (String)mBeanServer.getAttribute(oname, protocol); _port = mBeanServer.getAttribute(oname, port); if( _protocol.toLowerCase().startsWith(http) ) { isSecure = ( ( mBeanServer.getAttribute(oname, secure) != null ) ( mBeanServer.getAttribute(oname, secure).toString().equalsIgnoreCase(yes) ) ); isSchemeHTTPS = ( ( mBeanServer.getAttribute(oname, scheme) != null ) ( mBeanServer.getAttribute(oname, scheme).toString().equalsIgnoreCase(https) )); if( isSecure || isSchemeHTTPS ) portSSL = _port.toString(); else portNoSSL = _port.toString(); } } //final if#1 } catch (Exception e) { e.printStackTrace(); } } } -- -- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5 class loader question.
If you setup your Postgres SQL database as a JNDI resource in the context xml file, Tomcat itself will need access to the driver class. Hence the need to place such drivers in common/lib. --David Borut Hadžialić wrote: Why would Catalina classloader need to see application specific jar files? On 8/23/06, Mark Thomas [EMAIL PROTECTED] wrote: Borut Hadžialić wrote: However, when we move those Jira dependencies from $CATALINA_HOME/common/lib/ to $CATALINA_BASE/shared/lib/ Jira starup fails - it throws several ClassDefNotFoundException (for org.postgresql.Driver and other classes) Does anyone know why is this happening? Probably because the Catalina classloader also needs to be able to see those classes. If they are in shared, they are not visible to the core Tomcat code. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Next version of Tomcat (Tomcat 6.0 ?)
As per a recent thread, there is no time frame for 6.0. I would suspect it's tied to the final release of Servlet Spec 2.5 given it's the reference implementation. --David COURTAULT Francois wrote: Hello, Do you know when the next version of Tomcat (6.0 ?) will be released ? Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different request.getLocalName() values
Mohsen Saboorian wrote: Hi, I tested request.getLocalName() on two different WinXP machines, one returning 127.0.0.1 and the other localhost. What is the problem? No problem, just different configurations. Check: - DNS config - contents of C:\WINDOWS\system32\drivers\etc\hosts HTH, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat compliant with Servlet Spec 2.5 ?
Hello, Do you know when Tomcat will be compliant to the Servlet Spec 2.5 ? Regards.
Re: Tomcat compliant with Servlet Spec 2.5 ?
the upcoming 6.x version will do. :-) regards Leon On 8/23/06, COURTAULT Francois [EMAIL PROTECTED] wrote: Hello, Do you know when Tomcat will be compliant to the Servlet Spec 2.5 ? Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Next version of Tomcat (Tomcat 6.0 ?)
On 8/23/06, David Smith [EMAIL PROTECTED] wrote: As per a recent thread, there is no time frame for 6.0. I would suspect it's tied to the final release of Servlet Spec 2.5 given it's the reference implementation. is it? I thought tomcat isn't the reference impl anymore since glassfish? regards leon --David COURTAULT Francois wrote: Hello, Do you know when the next version of Tomcat (6.0 ?) will be released ? Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat compliant with Servlet Spec 2.5 ?
Do you know when the upcoming 6.x version will be released ? Regards. -Message d'origine- De : Leon Rosenberg [mailto:[EMAIL PROTECTED] Envoyé : mercredi 23 août 2006 14:58 À : Tomcat Users List Objet : Re: Tomcat compliant with Servlet Spec 2.5 ? the upcoming 6.x version will do. :-) regards Leon On 8/23/06, COURTAULT Francois [EMAIL PROTECTED] wrote: Hello, Do you know when Tomcat will be compliant to the Servlet Spec 2.5 ? Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Next version of Tomcat (Tomcat 6.0 ?)
If my wording (an understanding) is correct ... Tomcat was never the reference implementation. The reference implementation provided by Sun was based on Tomcat. AFAICT - glassfish is now considered the reference implementation for any J2EE spec. -Tim Leon Rosenberg wrote: On 8/23/06, David Smith [EMAIL PROTECTED] wrote: As per a recent thread, there is no time frame for 6.0. I would suspect it's tied to the final release of Servlet Spec 2.5 given it's the reference implementation. is it? I thought tomcat isn't the reference impl anymore since glassfish? regards leon - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different request.getLocalName() values
Thank you Mark. On 8/23/06, Mark Thomas [EMAIL PROTECTED] wrote: Mohsen Saboorian wrote: Hi, I tested request.getLocalName() on two different WinXP machines, one returning 127.0.0.1 and the other localhost. What is the problem? No problem, just different configurations. Check: - DNS config - contents of C:\WINDOWS\system32\drivers\etc\hosts HTH, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat compliant with Servlet Spec 2.5 ?
1. When will tomcat 6 be out? No schedule, but probably tied to release of servlet spec 2.5 2. When will tomcat be servlet spec 2.5 compliant? With release of 6.0. No release version prior to 6.0 will suport servlet spec 2.5. --David COURTAULT Francois wrote: Hello, Do you know when Tomcat will be compliant to the Servlet Spec 2.5 ? Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Force authentication except for one IP address
Hi, we are using JSPWiki here. On our server, every user has to login using his LDAP account before they can access any page. We implemented this using security-constraint definitions for the url-pattern /*, and everything works fine. Now there is a little problem. The Wiki provides a PDF plug-in, which generates a PDF file out of a Wiki page by transforming the XHTML output from the Wiki to an XML file, which is converted to PDF by FOP (as far as I know). When inserting images into a page, those images are accessed by FOP using HTTP, because it can't access them on the local file system (they are stored in some Wiki specific location). Now, when FOP tries to access the images, it is not authenticated, which causes Tomcat to return the login form instead of the image. So images will not be loaded in the PDF file. Of course I could configure the webapp so that images are accessable for everyone, then the PDF plug-in could also access them and load them in the PDF files. But this would mean that everyone out there could also access those images, and we don't want anyone external to be able to access any data on our Wiki. The solution would be to force login for everyone on the whole server (as it is at the moment), excepting the client localhost (-- 127.0.0.1), that should be able to access those images (url-pattern /attach/*). Is there any way to do this? We have already tried to set up an additional virtual host that grants access only to 127.0.0.1 to use it for the PDF plug-in, but we couldn't find a way to use a different web.xml file for another virtual host. Thanks for your help, Candid Dauth -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat compliant with Servlet Spec 2.5 ?
I have looked at JSR 154: The servlet 2.5 spec is a maintenance release of the servlet 2.4. This maintenance release (2.5) was out since may 2006 as it is the case for the JSR 245 (JSP 2.1) ! So my interrogation points are: - Is there a Tomcat 6.x under development ? - When a Tomcat 6.x alpha, beta or RC will be out ? Regards. -Message d'origine- De : David Smith [mailto:[EMAIL PROTECTED] Envoyé : mercredi 23 août 2006 16:09 À : Tomcat Users List Objet : Re: Tomcat compliant with Servlet Spec 2.5 ? 1. When will tomcat 6 be out? No schedule, but probably tied to release of servlet spec 2.5 2. When will tomcat be servlet spec 2.5 compliant? With release of 6.0. No release version prior to 6.0 will suport servlet spec 2.5. --David COURTAULT Francois wrote: Hello, Do you know when Tomcat will be compliant to the Servlet Spec 2.5 ? Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat compliant with Servlet Spec 2.5 ?
Hi, You can get and build a version from the Sbversion code http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ but I would rather use Glassfish currently since it is the official RI for JEE5. Regards, Emmanuel PS: passe le bonjour à tout le monde COURTAULT Francois a écrit : I have looked at JSR 154: The servlet 2.5 spec is a maintenance release of the servlet 2.4. This maintenance release (2.5) was out since may 2006 as it is the case for the JSR 245 (JSP 2.1) ! So my interrogation points are: - Is there a Tomcat 6.x under development ? - When a Tomcat 6.x alpha, beta or RC will be out ? Regards. -Message d'origine- De : David Smith [mailto:[EMAIL PROTECTED] Envoyé : mercredi 23 août 2006 16:09 À : Tomcat Users List Objet : Re: Tomcat compliant with Servlet Spec 2.5 ? 1. When will tomcat 6 be out? No schedule, but probably tied to release of servlet spec 2.5 2. When will tomcat be servlet spec 2.5 compliant? With release of 6.0. No release version prior to 6.0 will suport servlet spec 2.5. --David COURTAULT Francois wrote: Hello, Do you know when Tomcat will be compliant to the Servlet Spec 2.5 ? Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat compliant with Servlet Spec 2.5 ?
Salut Emmanuel, Merci pour l'info . As-tu passé de bonnes vacances ? As-tu des infos sur une date de sortie de Tomcat 6.x ? Cordialement. -Message d'origine- De : Emmanuel Hugonnet [mailto:[EMAIL PROTECTED] Envoyé : mercredi 23 août 2006 16:38 À : Tomcat Users List Objet : Re: Tomcat compliant with Servlet Spec 2.5 ? Hi, You can get and build a version from the Sbversion code http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/ but I would rather use Glassfish currently since it is the official RI for JEE5. Regards, Emmanuel PS: passe le bonjour à tout le monde COURTAULT Francois a écrit : I have looked at JSR 154: The servlet 2.5 spec is a maintenance release of the servlet 2.4. This maintenance release (2.5) was out since may 2006 as it is the case for the JSR 245 (JSP 2.1) ! So my interrogation points are: - Is there a Tomcat 6.x under development ? - When a Tomcat 6.x alpha, beta or RC will be out ? Regards. -Message d'origine- De : David Smith [mailto:[EMAIL PROTECTED] Envoyé : mercredi 23 août 2006 16:09 À : Tomcat Users List Objet : Re: Tomcat compliant with Servlet Spec 2.5 ? 1. When will tomcat 6 be out? No schedule, but probably tied to release of servlet spec 2.5 2. When will tomcat be servlet spec 2.5 compliant? With release of 6.0. No release version prior to 6.0 will suport servlet spec 2.5. --David COURTAULT Francois wrote: Hello, Do you know when Tomcat will be compliant to the Servlet Spec 2.5 ? Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying web app over cluster.
Hello, I am having some trouble getting a web app to deploy over a cluster. Node 1 is a Linux box, with /tmp/war-listen, /tmp/war-deploy, /tmp/war-temp Node 2 is a Windows box, with c:/tomcat5.5/tmp/war-listen etc.. The log file shows ...org.apache.catalina.cluster.deploy.FarmWarDeployer - Installing webapp[/appName] From /tmp/war-deploy/appName.war The next line shows ...org.apache.catalina.cluster.deploy.FarmWarDeployer - Cluster wide remove of of web app /appName The web app has the distributable/ tag in web.xml, and bother cluster node server.xml files have: Linux Version: Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=true/ Windows Version: Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=c:/tomcat5.5/tmp/war-temp/ deployDir=c:/tomcat5.5/tmp/war-deploy/ watchDir=c:/tomcat5.5/tmp/war-listen/ watchEnabled=true/ Any suggestions or resources would be greatly appreciated. -- Steven Bell - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Do you run IIS 6.0 with JK 1.2.18?
Hi, Is there anyone that has got the latest JK version (1.2.18) to run under IIS 6.0? If so how did you install the dll? Please help if you can! Regards Jessica -- View this message in context: http://www.nabble.com/Do-you-run-IIS-6.0-with-JK-1.2.18--tf2153322.html#a5947643 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Lost native libary?
Helo, Yesterday I deployed a tomcat 5.5.17 in a debian sarge. Then I started the tomcat. Tomcat run ok, and the apps that I deployed works fine, but I finded this line in the catalina.out: INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/java/jdk1.5.0_08/jre/lib/i386/client:/opt/java/jdk1.5.0_08/jre/lib/i386:/opt/java/jdk1.5.0_08/jre/../lib/i386 someone knows what's this? The machine is paratodos root # uname -a Linux paratodos 2.6.8-2-386 #1 Tue Aug 16 12:46:35 UTC 2005 i686 GNU/Linux Thanks! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 tomcat on the same PC
It doesn't work in my case. even after changed the port numbers in one server.xml. I have both T4.1 and T5.5 installed on win XP. becoz CATALINA_HOME point to where T5 is, even explicitly call T4 'startup' script, T5 server is started. Any other tricks to make both work? On 8/18/06, Peter Crowther [EMAIL PROTECTED] wrote: From: tamri [mailto:[EMAIL PROTECTED] I have installed tomcat1.5 on the same PC on the 2 other directory(c:\\tomcat1.5 and d:\tomcat1.5) .I can't run two tomcat together. I want to run theese two tomcats together, can I do this? how it to do? Pick one Tomcat. Edit its conf/server.xml. Find *all* the port numbers that are in use (usually the shutdown port and the default connector port) and change each of them them to new values that are not already in use on your computer. Save server.xml. Start your two Tomcats. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 2 tomcat on the same PC
Set up a command file for each version that sets the CATALINA_HOME to the correct location. Also have the batch files set other needed environment values as well. If you want both of them to run as a service, create a service for both versions and set the command line. You could also set up a user for each of them where the user specifies a different environment. Robert S. Harper Information Access Technology, Inc. -Original Message- From: Yan Bai [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 10:31 AM To: Tomcat Users List Subject: Re: 2 tomcat on the same PC It doesn't work in my case. even after changed the port numbers in one server.xml. I have both T4.1 and T5.5 installed on win XP. becoz CATALINA_HOME point to where T5 is, even explicitly call T4 'startup' script, T5 server is started. Any other tricks to make both work? On 8/18/06, Peter Crowther [EMAIL PROTECTED] wrote: From: tamri [mailto:[EMAIL PROTECTED] I have installed tomcat1.5 on the same PC on the 2 other directory(c:\\tomcat1.5 and d:\tomcat1.5) .I can't run two tomcat together. I want to run theese two tomcats together, can I do this? how it to do? Pick one Tomcat. Edit its conf/server.xml. Find *all* the port numbers that are in use (usually the shutdown port and the default connector port) and change each of them them to new values that are not already in use on your computer. Save server.xml. Start your two Tomcats. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 2 tomcat on the same PC
From: Yan Bai [mailto:[EMAIL PROTECTED] It doesn't work in my case. even after changed the port numbers in one server.xml. I have both T4.1 and T5.5 installed on win XP. becoz CATALINA_HOME point to where T5 is, even explicitly call T4 'startup' script, T5 server is started. Any other tricks to make both work? Are they running as services, or started from the batch files? Are they installed in different directories? Have you edited CATALINA_HOME by hand in one of the startup files? For example, here are my own startup files for a 5.0 and a 4.1 instance on the computer on which I'm typing this. C:\cattery contains subdirectories for each Tomcat instance. Tomcat is installed in the obvious place in each case. -- cohse.bat -- set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1 set CATALINA_BASE=c:\cattery\cohse cd %CATALINA_HOME%\bin startup -- end of cohse.bat -- -- bodington.bat -- set CATALINA_HOME=C:\java\Tomcat50 set CATALINA_BASE=c:\cattery\bodington cd %CATALINA_HOME%\bin start catalina run -- end of bodington.bat -- Are these any help? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying web app over cluster.
a recent change in 5.5, deploy dir must be your webapps directory, we'll revise this again in 6.0 [EMAIL PROTECTED] wrote: Hello, I am having some trouble getting a web app to deploy over a cluster. Node 1 is a Linux box, with /tmp/war-listen, /tmp/war-deploy, /tmp/war-temp Node 2 is a Windows box, with c:/tomcat5.5/tmp/war-listen etc.. The log file shows ...org.apache.catalina.cluster.deploy.FarmWarDeployer - Installing webapp[/appName] From /tmp/war-deploy/appName.war The next line shows ...org.apache.catalina.cluster.deploy.FarmWarDeployer - Cluster wide remove of of web app /appName The web app has the distributable/ tag in web.xml, and bother cluster node server.xml files have: Linux Version: Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=true/ Windows Version: Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=c:/tomcat5.5/tmp/war-temp/ deployDir=c:/tomcat5.5/tmp/war-deploy/ watchDir=c:/tomcat5.5/tmp/war-listen/ watchEnabled=true/ Any suggestions or resources would be greatly appreciated. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to change jdk in Tomcat 5.0.x
Hi, We have a tomcat 5.0.28 running on jdk 1.4.2_08 in linux and we want to upgrade to jdk 1.5.0.x but do not know to do it. ¿Does any one knows how or knows a webpage that explains it? Thanks very appreciated. Regards, Lorenzo Jimenez Si usted no es el destinatario indicado en este mensaje o responsable como persona de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor notifique al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or send this message to anyone, please notify to [EMAIL PROTECTED] Click on the following link for important additional terms relating to this e-mail http://www.nacion.com/disclaimer/index_en2.htm
Re: How to change jdk in Tomcat 5.0.x
We have a tomcat 5.0.28 running on jdk 1.4.2_08 in linux and we want to upgrade to jdk 1.5.0.x but do not know to do it. ¿Does any one knows how or knows a webpage that explains it? Check your tomcat startup script and look for the JAVA_HOME variable. In my case: tomcat5.sh: #!/bin/sh ## # # Copyright 2004 The Apache Software Foundation. # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ## # # Small shell script to show how to start/stop Tomcat using jsvc # If you want to have Tomcat running on port 80 please modify the server.xml # file: # #!-- Define a non-SSL HTTP/1.1 Connector on port 80 -- #Connector className=org.apache.catalina.connector.http.HttpConnector # port=80 minProcessors=5 maxProcessors=75 # enableLookups=true redirectPort=8443 # acceptCount=10 debug=0 connectionTimeout=6/ # # That is for Tomcat-5.0.x (Apache Tomcat/5.0) # # Comments to support chkconfig on RedHat Linux # chkconfig: 345 90 20 # description: THE servlet container reference implementation: Tomcat 5. # # Adapt the following lines to your configuration JAVA_HOME=/usr/local/java5 CATALINA_HOME=/usr/local/tomcat5s DAEMON_HOME=/usr/local/tomcat5s/bin PID_FILE=/var/run/jsvc-tomcat5s.pid (...) Just update that variable to the location of your jdk 5.0 and your done. Cheers Thanks very appreciated. Regards, Lorenzo Jimenez Si usted no es el destinatario indicado en este mensaje o responsable como persona de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor notifique al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or send this message to anyone, please notify to [EMAIL PROTECTED] Click on the following link for important additional terms relating to this e-mail http://www.nacion.com/disclaimer/index_en2.htm -- Andrés González - Programación y sistemas Publicinet (Publicidad-Cine-Internet, S.L.) Urzaiz, 71, entlo, izda. -- 36204 Vigo Telf 902.014.606 -- http://www.mensario.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to change jdk in Tomcat 5.0.x
Dear Andres: Thanks! I worked! Regards, Lorenzo -Original Message- From: Andrés González [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 11:48 AM To: Tomcat Users List Subject: Re: How to change jdk in Tomcat 5.0.x We have a tomcat 5.0.28 running on jdk 1.4.2_08 in linux and we want to upgrade to jdk 1.5.0.x but do not know to do it. ¿Does any one knows how or knows a webpage that explains it? Check your tomcat startup script and look for the JAVA_HOME variable. In my case: tomcat5.sh: #!/bin/sh ## # # Copyright 2004 The Apache Software Foundation. # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ## # # Small shell script to show how to start/stop Tomcat using jsvc # If you want to have Tomcat running on port 80 please modify the server.xml # file: # #!-- Define a non-SSL HTTP/1.1 Connector on port 80 -- #Connector className=org.apache.catalina.connector.http.HttpConnector # port=80 minProcessors=5 maxProcessors=75 # enableLookups=true redirectPort=8443 # acceptCount=10 debug=0 connectionTimeout=6/ # # That is for Tomcat-5.0.x (Apache Tomcat/5.0) # # Comments to support chkconfig on RedHat Linux # chkconfig: 345 90 20 # description: THE servlet container reference implementation: Tomcat 5. # # Adapt the following lines to your configuration JAVA_HOME=/usr/local/java5 CATALINA_HOME=/usr/local/tomcat5s DAEMON_HOME=/usr/local/tomcat5s/bin PID_FILE=/var/run/jsvc-tomcat5s.pid (...) Just update that variable to the location of your jdk 5.0 and your done. Cheers Thanks very appreciated. Regards, Lorenzo Jimenez Si usted no es el destinatario indicado en este mensaje o responsable como persona de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor notifique al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or send this message to anyone, please notify to [EMAIL PROTECTED] Click on the following link for important additional terms relating to this e-mail http://www.nacion.com/disclaimer/index_en2.htm -- Andrés González - Programación y sistemas Publicinet (Publicidad-Cine-Internet, S.L.) Urzaiz, 71, entlo, izda. -- 36204 Vigo Telf 902.014.606 -- http://www.mensario.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOAP Header creation differences in Tomcat 5.0.x and 5.5.x
Hi, I need to digitally sign the SOAP messages and signature element need to be put into the header. If I try to create the SOAP Header programmatically it is not getting created in Tomcat 5.5.x saying header is already available but when I try to sign the message, header is not available. I am using Apache-xmlsec 1.3.0. Everything works fine with Tomcat 5.0.28. I am creating soap messages with using SAAJ and my soap message structure is like this soapenv:Envelope in Tomcat 5.5.x but it is like SOAP-ENV:Envelope in Tomcat 5.0..x Even though this seems like a Tomcat issue I believe it could be jar version conflict related to the message creation. Appreciate if anyone could point me a way to resolve this. Thank you -- View this message in context: http://www.nabble.com/SOAP-Header-creation-differences-in-Tomcat-5.0.x-and-5.5.x-tf2153975.html#a5949869 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 tomcat on the same PC
Thanks Peter. what does CATALINA_BASE mean here? I only setup CATALINA_HOME as a system environmental variable, don't know which directory shall $c_base point to. On 8/23/06, Peter Crowther [EMAIL PROTECTED] wrote: From: Yan Bai [mailto:[EMAIL PROTECTED] It doesn't work in my case. even after changed the port numbers in one server.xml. I have both T4.1 and T5.5 installed on win XP. becoz CATALINA_HOME point to where T5 is, even explicitly call T4 'startup' script, T5 server is started. Any other tricks to make both work? Are they running as services, or started from the batch files? Are they installed in different directories? Have you edited CATALINA_HOME by hand in one of the startup files? For example, here are my own startup files for a 5.0 and a 4.1 instance on the computer on which I'm typing this. C:\cattery contains subdirectories for each Tomcat instance. Tomcat is installed in the obvious place in each case. -- cohse.bat -- set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1 set CATALINA_BASE=c:\cattery\cohse cd %CATALINA_HOME%\bin startup -- end of cohse.bat -- -- bodington.bat -- set CATALINA_HOME=C:\java\Tomcat50 set CATALINA_BASE=c:\cattery\bodington cd %CATALINA_HOME%\bin start catalina run -- end of bodington.bat -- Are these any help? - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 tomcat on the same PC
Thanks Robert, how to create services? could you pls shed some lights? On 8/23/06, Robert Harper [EMAIL PROTECTED] wrote: Set up a command file for each version that sets the CATALINA_HOME to the correct location. Also have the batch files set other needed environment values as well. If you want both of them to run as a service, create a service for both versions and set the command line. You could also set up a user for each of them where the user specifies a different environment. Robert S. Harper Information Access Technology, Inc. -Original Message- From: Yan Bai [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 10:31 AM To: Tomcat Users List Subject: Re: 2 tomcat on the same PC It doesn't work in my case. even after changed the port numbers in one server.xml. I have both T4.1 and T5.5 installed on win XP. becoz CATALINA_HOME point to where T5 is, even explicitly call T4 'startup' script, T5 server is started. Any other tricks to make both work? On 8/18/06, Peter Crowther [EMAIL PROTECTED] wrote: From: tamri [mailto:[EMAIL PROTECTED] I have installed tomcat1.5 on the same PC on the 2 other directory(c:\\tomcat1.5 and d:\tomcat1.5) .I can't run two tomcat together. I want to run theese two tomcats together, can I do this? how it to do? Pick one Tomcat. Edit its conf/server.xml. Find *all* the port numbers that are in use (usually the shutdown port and the default connector port) and change each of them them to new values that are not already in use on your computer. Save server.xml. Start your two Tomcats. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Log4j and Tomcat problem
pompiuses wrote: I'm using Tomcat 5.0.30 running on Ubuntu Linux (6.06). I've made a small webapp which runs fine under Tomcat on Windows, but on Linux I've got a problem with log4j. I've put commons-logging-1.1.jar and log4j-1.2.13.jar in the webapp libs directory ($CATALINA_HOME/webapps/ROOT/WEB-INF/lib). In the webapp classes directory I've put log4j.properties. The problem is that the webapp won't even run as long as commons-logging-1.1.jar is in the class path. If I remove it, the webapp will run but there's no logging. Then I tried putting log4j.properties in $CATALINA_HOME/shared/classes and $CATALINA_HOME/common/classes, but it still wouldn't log anything. No error messages is written to system.out (/var/log/tomcat5/catalina.out) or any of the Tomcat log files. My log4j.properties look like this (just prints to the console): # The log4j configuration file. log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.ConsoleAppender log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%-5p %-30.30c{1} %x - %m%n How can I test if log4j.properties really is in the classpath? Perhaps it's missing from the classpath? Perhaps using the ROOT directory for my webapp is a bad idea? Any comments and suggestions are welcome :-) Couple of things, 1) Try putting the log4j*.jar in tomcat*\commons\lib and see if it works.. 2) You may be missing the jtds*.jar. - Lou Caudell - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j and Tomcat problem
Also in order to work with log4j, you have to include this in the WEB-INF/classes directory. Commons-loggin.properties Log4j.properties I include them as a sample. Regards, Lorenzo -Original Message- From: Lou Caudell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 1:08 PM To: Tomcat Users List Subject: Re: Log4j and Tomcat problem pompiuses wrote: I'm using Tomcat 5.0.30 running on Ubuntu Linux (6.06). I've made a small webapp which runs fine under Tomcat on Windows, but on Linux I've got a problem with log4j. I've put commons-logging-1.1.jar and log4j-1.2.13.jar in the webapp libs directory ($CATALINA_HOME/webapps/ROOT/WEB-INF/lib). In the webapp classes directory I've put log4j.properties. The problem is that the webapp won't even run as long as commons-logging-1.1.jar is in the class path. If I remove it, the webapp will run but there's no logging. Then I tried putting log4j.properties in $CATALINA_HOME/shared/classes and $CATALINA_HOME/common/classes, but it still wouldn't log anything. No error messages is written to system.out (/var/log/tomcat5/catalina.out) or any of the Tomcat log files. My log4j.properties look like this (just prints to the console): # The log4j configuration file. log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.ConsoleAppender log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%-5p %-30.30c{1} %x - %m%n How can I test if log4j.properties really is in the classpath? Perhaps it's missing from the classpath? Perhaps using the ROOT directory for my webapp is a bad idea? Any comments and suggestions are welcome :-) Couple of things, 1) Try putting the log4j*.jar in tomcat*\commons\lib and see if it works.. 2) You may be missing the jtds*.jar. - Lou Caudell - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Si usted no es el destinatario indicado en este mensaje o responsable como persona de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor notifique al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or send this message to anyone, please notify to [EMAIL PROTECTED] Click on the following link for important additional terms relating to this e-mail http://www.nacion.com/disclaimer/index_en2.htm - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting Apache JBoss/Tomcat working.
Hello All, I am currently trying to get apache to talk to JBoss/Tomcat. Basically My Apache server is on the internet and the JBoss/Tomcat (application) server is behind a firewall. I'm trying to use the Apache Tomcat connector (mod_jk). However I can't seem to get things working. If anyone could point me to some examples, I would appreciate it. Here are some errors from my log 's. [error] jk_ajp_common.c (1851): can't resolve tomcat address localhost [error] jk_ajp_common.c (1854): invalid host and port machinename 8009 [error] jk_worker.c (158): validate failed for Corporate [error] jk_worker.c (256): failed to create worker Corporate What's this really mean? Thanks for any thought's and or suggestions. V/R Brian __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4j and Tomcat problem
to my knowledge, I don't have this at all, the log4j*.jar file, but was hoping to enable log4j on my system. Granted, I am not running on the same OS or server as the previous poster, but would like to go about enabling it. How can I do that? How/where should I go to get the log4j jar file(s)? Thanks. -Original Message- From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 2:52 PM To: Tomcat Users List Subject: RE: Log4j and Tomcat problem Importance: High Also in order to work with log4j, you have to include this in the WEB-INF/classes directory. Commons-loggin.properties Log4j.properties I include them as a sample. Regards, Lorenzo -Original Message- From: Lou Caudell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 1:08 PM To: Tomcat Users List Subject: Re: Log4j and Tomcat problem pompiuses wrote: I'm using Tomcat 5.0.30 running on Ubuntu Linux (6.06). I've made a small webapp which runs fine under Tomcat on Windows, but on Linux I've got a problem with log4j. I've put commons-logging-1.1.jar and log4j-1.2.13.jar in the webapp libs directory ($CATALINA_HOME/webapps/ROOT/WEB-INF/lib). In the webapp classes directory I've put log4j.properties. The problem is that the webapp won't even run as long as commons-logging-1.1.jar is in the class path. If I remove it, the webapp will run but there's no logging. Then I tried putting log4j.properties in $CATALINA_HOME/shared/classes and $CATALINA_HOME/common/classes, but it still wouldn't log anything. No error messages is written to system.out (/var/log/tomcat5/catalina.out) or any of the Tomcat log files. My log4j.properties look like this (just prints to the console): # The log4j configuration file. log4j.rootLogger=debug, R log4j.appender.R=org.apache.log4j.ConsoleAppender log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%-5p %-30.30c{1} %x - %m%n How can I test if log4j.properties really is in the classpath? Perhaps it's missing from the classpath? Perhaps using the ROOT directory for my webapp is a bad idea? Any comments and suggestions are welcome :-) Couple of things, 1) Try putting the log4j*.jar in tomcat*\commons\lib and see if it works.. 2) You may be missing the jtds*.jar. - Lou Caudell - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Si usted no es el destinatario indicado en este mensaje o responsable como persona de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor notifique al correo [EMAIL PROTECTED] Para más referencia sobre términos importantes relacionados a este correo visite http://www.nacion.com/disclaimer/index_es2.htm If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or send this message to anyone, please notify to [EMAIL PROTECTED] Click on the following link for important additional terms relating to this e-mail http://www.nacion.com/disclaimer/index_en2.htm - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Intercepting with a Filter is too late.
Hi all, I have a simple Filter. The role of the filter is essentially to lazy load a static resource in to the space of my webapp from an external repository so that Tomcat can serve it directly. The goal was to store this content out side of the web app so that I could easily upgrade and deploy bug fixes and changes without losing the actual data, but still allow Tomcat to do the actual serving of the content. I want Tomcat to serve up the content simply because the stock container does it very well, is well tested, knows all the mime types, etc. vs writing a servlet that reads from the external repository and then streams it out itself. That, to me, is pretty redundant for a simple task of serving static resources. The problem that I'm having, however, is when I ask for a non-existent resource. Specifically, consider if I ask for http://example.com/myapp/static/xyz.jpg. In a normal webapp, you would have a static folder containing xyz.jpg, and tomcat would simply serve it up straight. I have my filter intercepting on /static, it checks the local web app dir and notices that the file, xyz.jpg, does not exist and proceed to copy it in to the web app directory. Then it simply does a Filter chain to let the request proceed. The problem is that when a resource is freshly copied, Tomcat replies with a 404, even though it fired my filter, and my filter has copied the resource. It's pre-determined, even before firing my filter, that the resource does not exist, and fails anyway, even though I put the resource where it belongs before I continue on the request chain. When I make a new request, Tomcat sees the new file and serves it up normally. Anyone have any thoughts on how to get around this? If not, can someone point me to the handle static resource code in the tomcat source base so I can yank it out and put it in my own application? It's seems like a silly thing to do, cutting and pasting that handler logic, but doing it AGAIN, is an even sillier thing to do. Regards, Will Hartung ([EMAIL PROTECTED]) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat from Bootstrap.main
I am running an Eclipse java application that makes a call to the Bootstrap.main function. I am using Log4J as my logger. I set the catalina.home, catalina.base, java.endorsed.dirs, and java.io.tempdir before I call Bootstrap.main with Bootstrap.main(new String[] {start}); I get the error java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory when I make this call. What is really weird, is that I can do Log log = LogFactory.getFactory().getLog(Logger.class); log.debug(got log); right before the Bootstrap.main and see 0 [main] DEBUG org.apache.log4j.Logger - got log on my command line. Does anyone have any idea as to what causes this failure? Do I have to set some environment variable that I am not aware of? Thanks, Zach Calvert
RE: 2 tomcat on the same PC
Under Tomcat\bin, you will find service.bat, which installs Tomcat as a Windows service. If you just type service at the command line, it should reply with some usage information identifying what you need to do. You'll have to give at least one of them a non-default service name. You might also be interested in reading through the batch file itself, for more details. Roger Alix-Gaudreau Manhattan Associates, Inc. -Original Message- From: Yan Bai [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 2:56 PM To: Tomcat Users List Subject: Re: 2 tomcat on the same PC Thanks Robert, how to create services? could you pls shed some lights? On 8/23/06, Robert Harper [EMAIL PROTECTED] wrote: Set up a command file for each version that sets the CATALINA_HOME to the correct location. Also have the batch files set other needed environment values as well. If you want both of them to run as a service, create a service for both versions and set the command line. You could also set up a user for each of them where the user specifies a different environment. Robert S. Harper Information Access Technology, Inc. -Original Message- From: Yan Bai [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 10:31 AM To: Tomcat Users List Subject: Re: 2 tomcat on the same PC It doesn't work in my case. even after changed the port numbers in one server.xml. I have both T4.1 and T5.5 installed on win XP. becoz CATALINA_HOME point to where T5 is, even explicitly call T4 'startup' script, T5 server is started. Any other tricks to make both work? On 8/18/06, Peter Crowther [EMAIL PROTECTED] wrote: From: tamri [mailto:[EMAIL PROTECTED] I have installed tomcat1.5 on the same PC on the 2 other directory(c:\\tomcat1.5 and d:\tomcat1.5) .I can't run two tomcat together. I want to run theese two tomcats together, can I do this? how it to do? Pick one Tomcat. Edit its conf/server.xml. Find *all* the port numbers that are in use (usually the shutdown port and the default connector port) and change each of them them to new values that are not already in use on your computer. Save server.xml. Start your two Tomcats. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: run tomcat behind proxy server the problem is solved thanks all
How did you solve this problem? I'm having the same issue. Shuaibin Wang wrote: hi , the problem is solved. thanks for the attentation. a nice weekend . swang - Original Message - From: Shuaibin Wang [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, June 23, 2006 12:11 PM Subject: run tomcat behind proxy server Hi, the comcat on my pc is behind a proxy(LAN), so when tha appllcation on my tomcat need to communicate to the servers somewhere else outside of the LAN, how do I configure my tomcat to use the proxy? Many thanks. Swang - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/run-tomcat-behind-proxy-server-tf1835446.html#a5953574 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
debugging tomcat with eclipse
I have found various different examples, just curious what folks are find to be the best practice? D-
Re: Intercepting with a Filter is too late.
On 8/23/06, Will Hartung [EMAIL PROTECTED] wrote: ... I have my filter intercepting on /static, it checks the local web app dir and notices that the file, xyz.jpg, does not exist and proceed to copy it in to the web app directory. Then it simply does a Filter chain to let the request proceed. The problem is that when a resource is freshly copied, Tomcat replies with a 404, even though it fired my filter, and my filter has copied the resource. It's pre-determined, even before firing my filter, that the resource does not exist, and fails anyway, even though I put the resource where it belongs before I continue on the request chain. When I make a new request, Tomcat sees the new file and serves it up normally. Anyone have any thoughts on how to get around this? If not, can someone point me to the handle static resource code in the tomcat source base so I can yank it out and put it in my own application? It's seems like a silly thing to do, cutting and pasting that handler logic, but doing it AGAIN, is an even sillier thing to do. I think that it's pretty logical behaviour since tomcat will probably look for path resolution before any filter is called. Therefor it already decided that the resource doesn't exist before your filter copies it. I think the quick and dirty solution would be to send a redirect to the same url with a dummy param after you copied the file from the filter and abort execution. The second request should get the file then. For the future development I would consider streaming the content of the file through a servlet instead of copying it. Depending on the number and size of the resources you could cache everything and be faster. regards leon Regards, Will Hartung ([EMAIL PROTECTED]) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 5.5 HelloWorldExample 404 error
I have installed Apache.5.5.17 on my Windows XP development box (steve.elsewise.net) to work on a web-app, but I cannot get the webapp to find the servlet files. When I try, with a jsp link: form action=servlet/ui/user/LoginServlet method=POST I get the following error: HTTP Status 404 - /elsewise/servlet/ui/user/LoginServlet type Status report message /elsewise/servlet/ui/user/LoginServlet description The requested resource (/elsewise/servlet/ui/user/LoginServlet) is not available. Apache Tomcat/5.5.17 With the following URL displayed in the address window: http://steve.elsewise.net/elsewise/servlet/ui/user/LoginServlet When I go to the Apache default page on this machine (http://steve.elsewise.net/), it comes up fine. When I go to the Servlet Examples, the page comes up and the Hello World example works, but the Hello World (down one) example gives me a similar error: HTTP Status 404 - /servlets-examples/world/servlet/HelloWorldExample type Status report message /servlets-examples/world/servlet/HelloWorldExample description The requested resource (/servlets-examples/world/servlet/HelloWorldExample) is not available. Apache Tomcat/5.5.17 I am assuming I have some problem with my configuration files. I have uncommented the invoker servlet and servlet-mapping tags in my default web.xml file. Any suggestions? Steve Willett Initiative Computing 510 654-7818 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat from Bootstrap.main
your missing commons-logging from your classpath Zach Calvert wrote: I am running an Eclipse java application that makes a call to the Bootstrap.main function. I am using Log4J as my logger. I set the catalina.home, catalina.base, java.endorsed.dirs, and java.io.tempdir before I call Bootstrap.main with Bootstrap.main(new String[] {start}); I get the error java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory when I make this call. What is really weird, is that I can do Log log = LogFactory.getFactory().getLog(Logger.class); log.debug(got log); right before the Bootstrap.main and see 0 [main] DEBUG org.apache.log4j.Logger - got log on my command line. Does anyone have any idea as to what causes this failure? Do I have to set some environment variable that I am not aware of? Thanks, Zach Calvert No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.5/425 - Release Date: 8/22/2006 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat starts but no welcome page
Hi, I am trying to install tomcat 5.5.17 on suse 9.2 I have jdk 1.5 which is required by tomcat 5.5.17 After following the steps mentioned in docs I do following. ./startup.sh Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17 Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp Using JRE_HOME: /usr/local/jdk1.5.0_08 It seems to be working as I don't get any error msg. Also ps -def|grep tomcat gives tomcat 19597 1 0 20:20 pts/300:00:03 /usr/local/jdk1.5.0_08/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/local/apache-tomcat-5.5.17/conf/logging.properties -Djava.endorsed.dirs=/usr/local/apache-tomcat-5.5.17/common/endorsed -classpath :/usr/local/apache-tomcat-5.5.17/bin/bootstrap.jar:/usr/local/apache-tomcat-5.5.17/bin/commons-logging-api.jar -Dcatalina.base=/usr/local/apache-tomcat-5.5.17 -Dcatalina.home=/usr/local/apache-tomcat-5.5.17 -Djava.io.tmpdir=/usr/local/apache-tomcat-5.5.17/temp org.apache.catalina.startup.Bootstrap start But when I try to point to http://my-machine-ip:8080 I get nothing. Trying to shutdown also seems to be working without any probs. ./shutdown.sh Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17 Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp Using JRE_HOME: /usr/local/jdk1.5.0_08 I have apache2 running on the machine but I haven't integrated tomcat yet with it. As far as I understand, it shouldn't be a prob. I tried shutting down apache2 but tomcat still doesn't work. I am not sure what the problem is and would really appreciate any ideas. Thank you, Kaustubh
Re: debugging tomcat with eclipse
Douglas Ferguson wrote: I have found various different examples, just curious what folks are find to be the best practice? http://tomcat.apache.org/faq/development.html Works for me. Use it all the time. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat starts but no welcome page
Is tomcat install on the port 8080?? How about Apache, is it on port 8080 too?? maybe a conflit. On 8/23/06, kaustubh shinde [EMAIL PROTECTED] wrote: Hi, I am trying to install tomcat 5.5.17 on suse 9.2 I have jdk 1.5 which is required by tomcat 5.5.17 After following the steps mentioned in docs I do following. ./startup.sh Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17 Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp Using JRE_HOME: /usr/local/jdk1.5.0_08 It seems to be working as I don't get any error msg. Also ps -def|grep tomcat gives tomcat 19597 1 0 20:20 pts/300:00:03 /usr/local/jdk1.5.0_08/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - Djava.util.logging.config.file=/usr/local/apache-tomcat-5.5.17/conf/logging.properties -Djava.endorsed.dirs=/usr/local/apache-tomcat-5.5.17/common/endorsed -classpath :/usr/local/apache-tomcat-5.5.17 /bin/bootstrap.jar:/usr/local/apache-tomcat-5.5.17/bin/commons- logging-api.jar -Dcatalina.base=/usr/local/apache-tomcat-5.5.17 -Dcatalina.home=/usr/local/apache-tomcat-5.5.17 -Djava.io.tmpdir=/usr/local/apache-tomcat-5.5.17/temp org.apache.catalina.startup.Bootstrap start But when I try to point to http://my-machine-ip:8080 I get nothing. Trying to shutdown also seems to be working without any probs. ./shutdown.sh Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17 Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp Using JRE_HOME: /usr/local/jdk1.5.0_08 I have apache2 running on the machine but I haven't integrated tomcat yet with it. As far as I understand, it shouldn't be a prob. I tried shutting down apache2 but tomcat still doesn't work. I am not sure what the problem is and would really appreciate any ideas. Thank you, Kaustubh
Re: tomcat starts but no welcome page
tomcat is installed on 8080. apache is on 80. so there is no conflict. On 8/23/06, Lung Chan [EMAIL PROTECTED] wrote: Is tomcat install on the port 8080?? How about Apache, is it on port 8080 too?? maybe a conflit. On 8/23/06, kaustubh shinde [EMAIL PROTECTED] wrote: Hi, I am trying to install tomcat 5.5.17 on suse 9.2 I have jdk 1.5 which is required by tomcat 5.5.17 After following the steps mentioned in docs I do following. ./startup.sh Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17 Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp Using JRE_HOME: /usr/local/jdk1.5.0_08 It seems to be working as I don't get any error msg. Also ps -def|grep tomcat gives tomcat 19597 1 0 20:20 pts/300:00:03 /usr/local/jdk1.5.0_08/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - Djava.util.logging.config.file=/usr/local/apache-tomcat-5.5.17/conf/logging.properties -Djava.endorsed.dirs=/usr/local/apache-tomcat-5.5.17/common/endorsed -classpath :/usr/local/apache-tomcat-5.5.17 /bin/bootstrap.jar:/usr/local/apache-tomcat-5.5.17/bin/commons- logging-api.jar -Dcatalina.base=/usr/local/apache-tomcat-5.5.17 -Dcatalina.home=/usr/local/apache-tomcat-5.5.17 -Djava.io.tmpdir=/usr/local/apache-tomcat-5.5.17/temp org.apache.catalina.startup.Bootstrap start But when I try to point to http://my-machine-ip:8080 I get nothing. Trying to shutdown also seems to be working without any probs. ./shutdown.sh Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17 Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp Using JRE_HOME: /usr/local/jdk1.5.0_08 I have apache2 running on the machine but I haven't integrated tomcat yet with it. As far as I understand, it shouldn't be a prob. I tried shutting down apache2 but tomcat still doesn't work. I am not sure what the problem is and would really appreciate any ideas. Thank you, Kaustubh
Re: tomcat starts but no welcome page
Is webapps installed??? in my windows configuration, I have tomcat-XXX ---server --webapps --lib --classes On 8/23/06, kaustubh shinde [EMAIL PROTECTED] wrote: tomcat is installed on 8080. apache is on 80. so there is no conflict. On 8/23/06, Lung Chan [EMAIL PROTECTED] wrote: Is tomcat install on the port 8080?? How about Apache, is it on port 8080 too?? maybe a conflit. On 8/23/06, kaustubh shinde [EMAIL PROTECTED] wrote: Hi, I am trying to install tomcat 5.5.17 on suse 9.2 I have jdk 1.5 which is required by tomcat 5.5.17 After following the steps mentioned in docs I do following. ./startup.sh Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17 Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp Using JRE_HOME: /usr/local/jdk1.5.0_08 It seems to be working as I don't get any error msg. Also ps -def|grep tomcat gives tomcat 19597 1 0 20:20 pts/300:00:03 /usr/local/jdk1.5.0_08/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - Djava.util.logging.config.file=/usr/local/apache-tomcat-5.5.17/conf/logging.properties -Djava.endorsed.dirs=/usr/local/apache-tomcat-5.5.17/common/endorsed -classpath :/usr/local/apache-tomcat-5.5.17 /bin/bootstrap.jar:/usr/local/apache-tomcat-5.5.17/bin/commons- logging-api.jar -Dcatalina.base=/usr/local/apache-tomcat-5.5.17 -Dcatalina.home=/usr/local/apache-tomcat-5.5.17 -Djava.io.tmpdir=/usr/local/apache-tomcat-5.5.17/temp org.apache.catalina.startup.Bootstrap start But when I try to point to http://my-machine-ip:8080 I get nothing. Trying to shutdown also seems to be working without any probs. ./shutdown.sh Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17 Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp Using JRE_HOME: /usr/local/jdk1.5.0_08 I have apache2 running on the machine but I haven't integrated tomcat yet with it. As far as I understand, it shouldn't be a prob. I tried shutting down apache2 but tomcat still doesn't work. I am not sure what the problem is and would really appreciate any ideas. Thank you, Kaustubh
Re: tomcat starts but no welcome page
webapps is installed. i have following directories in $CATALINA_HOME bin,conf,logs,common,server,shared,.ssh,temp,webapps,work. I just checked catalina.2006-08-22.log and it has following Aug 22, 2006 8:26:06 PM org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed java.lang.NullPointerException at org.apache.jk.server.JkMain.pause(JkMain.java:677) at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java :162) at org.apache.catalina.connector.Connector.pause(Connector.java :1031) at org.apache.catalina.core.StandardService.stop( StandardService.java:491) at org.apache.catalina.core.StandardServer.stop(StandardServer.java :743) at org.apache.catalina.startup.Catalina.stop(Catalina.java:601) at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run( Catalina.java:644) any idea what it means? I have added the relevant directories to CLASSPATH. Thanks for your help Kaustubh On 8/23/06, Lung Chan [EMAIL PROTECTED] wrote: Is webapps installed??? in my windows configuration, I have tomcat-XXX ---server --webapps --lib --classes On 8/23/06, kaustubh shinde [EMAIL PROTECTED] wrote: tomcat is installed on 8080. apache is on 80. so there is no conflict. On 8/23/06, Lung Chan [EMAIL PROTECTED] wrote: Is tomcat install on the port 8080?? How about Apache, is it on port 8080 too?? maybe a conflit. On 8/23/06, kaustubh shinde [EMAIL PROTECTED] wrote: Hi, I am trying to install tomcat 5.5.17 on suse 9.2 I have jdk 1.5 which is required by tomcat 5.5.17 After following the steps mentioned in docs I do following. ./startup.sh Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17 Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp Using JRE_HOME: /usr/local/jdk1.5.0_08 It seems to be working as I don't get any error msg. Also ps -def|grep tomcat gives tomcat 19597 1 0 20:20 pts/300:00:03 /usr/local/jdk1.5.0_08/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager - Djava.util.logging.config.file=/usr/local/apache-tomcat-5.5.17/conf/logging.properties -Djava.endorsed.dirs=/usr/local/apache-tomcat-5.5.17/common/endorsed -classpath :/usr/local/apache-tomcat-5.5.17 /bin/bootstrap.jar:/usr/local/apache-tomcat-5.5.17/bin/commons- logging-api.jar -Dcatalina.base=/usr/local/apache-tomcat-5.5.17 -Dcatalina.home=/usr/local/apache-tomcat-5.5.17 -Djava.io.tmpdir=/usr/local/apache-tomcat-5.5.17/temp org.apache.catalina.startup.Bootstrap start But when I try to point to http://my-machine-ip:8080 I get nothing. Trying to shutdown also seems to be working without any probs. ./shutdown.sh Using CATALINA_BASE: /usr/local/apache-tomcat-5.5.17 Using CATALINA_HOME: /usr/local/apache-tomcat-5.5.17 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-5.5.17/temp Using JRE_HOME: /usr/local/jdk1.5.0_08 I have apache2 running on the machine but I haven't integrated tomcat yet with it. As far as I understand, it shouldn't be a prob. I tried shutting down apache2 but tomcat still doesn't work. I am not sure what the problem is and would really appreciate any ideas. Thank you, Kaustubh