Tomcat Admin and File Locks
I'm using Tomcat 5.5.23 and the Tomcat Admin 5.5.23 for managing my war files. For some reason, I can install a new war file with no problem. If I undeploy, and redeploy the same war file, the web becomes unavailable. I have discovered it is due to the fact that Tomcat Admin is not completely uninstalling the deployed war file due to existing file locks on some of the WEB-INF\lib jars within the web application. My web app does not make direct reference for any reason to these jar files, and I cannot figure out why the jar files are kept lock. The only solution I have found to fixing this problem is stopping Tomcat, which kills the file locks, and then removing the files by hand. Does anyone have any ideas on where I should be looking for a solution to this problem? - 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: Proxy/Forwarding
I'm looking at the valve list at http://tomcat.apache.org/tomcat-4.1-doc/config/valve.htmland not seeing any kind of proxy/forward valve. The engine configuration docs at http://tomcat.apache.org/tomcat-4.1-doc/config/engine.html, aren't any help for setting up a proxy server either. Thanks again, Zach -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, November 20, 2006 2:46 PM To: Tomcat Users List Subject: RE: Proxy/Forwarding From: Zach Calvert [mailto:[EMAIL PROTECTED] Subject: Proxy/Forwarding Is there a way to configure tomcat to forward all requests to another server? Use a valve at the Engine level. I'm looking at http://tomcat.apache.org/tomcat-4.1-doc/proxy-howto.html, but I'm using Tomcat 1.4. Tomcat 1.4? You must be kidding. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Proxy/Forwarding
I just discovered http://www.ericsson.com/mobilityworld/sub/open/technologies/open_develop ment_tips/docs/odt_proxy_for_tomcat, but it seems that this documentation is outdated. I tried putting the same properties it identifies for catalina.properties in the catalina.policy, jk2.properties, and I created a catalina.properties to see if it would work there. It does not. Anyone got any other suggestions for setting up Tomcat 4.1 as a proxy? Thanks, Zach -Original Message- From: Zach Calvert [mailto:[EMAIL PROTECTED] Sent: Monday, November 20, 2006 3:03 PM To: Tomcat Users List Subject: RE: Proxy/Forwarding I'm looking at the valve list at http://tomcat.apache.org/tomcat-4.1-doc/config/valve.htmland not seeing any kind of proxy/forward valve. The engine configuration docs at http://tomcat.apache.org/tomcat-4.1-doc/config/engine.html, aren't any help for setting up a proxy server either. Thanks again, Zach -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, November 20, 2006 2:46 PM To: Tomcat Users List Subject: RE: Proxy/Forwarding From: Zach Calvert [mailto:[EMAIL PROTECTED] Subject: Proxy/Forwarding Is there a way to configure tomcat to forward all requests to another server? Use a valve at the Engine level. I'm looking at http://tomcat.apache.org/tomcat-4.1-doc/proxy-howto.html, but I'm using Tomcat 1.4. Tomcat 1.4? You must be kidding. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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]
Tomcat Startup Error
I have a problem with Tomcat and I cannot figure out what is going on. I am using Tomcat 4.1.31. When running bootstrap.jar's main, I get Starting service Tomcat-Standalone Apache Tomcat/4.1.31 Catalina.start: LifecycleException: Context startup failed due to previous errors LifecycleException: Context startup failed due to previous errors at org.apache.catalina.core.StandardContext.start(StandardContext.java:3578 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) ... In reviewing the logs, I have 2006-09-01 09:33:58 WebappLoader[]: Deploying class repositories to work directory U:\...\work\Standalone\localhost\_ 2006-09-01 09:33:58 ContextConfig[] Parse error in default web.xml java.lang.ClassNotFoundException: org.apache.catalina.Container at org.apache.commons.digester.Digester.createSAXException(Digester.java:25 40) ... at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) 2006-09-01 09:33:58 ContextConfig[]: Occurred at line 58 column 15 2006-09-01 09:33:58 ContextConfig[]: Missing application web.xml, using defaults only 2006-09-01 09:33:58 ContextConfig[]: Marking this application unavailable due to previous error(s) 2006-09-01 09:33:58 StandardManager[]: Seeding random number generator class java.security.SecureRandom 2006-09-01 09:33:58 StandardManager[]: Seeding of random number generator has been completed 2006-09-01 09:33:58 StandardContext[]: Context startup failed due to previous errors I reviewed the web.xml and it passed a validator. Does anyone have any suggestions? This web used to run just fine, so I'm wondering if maybe a dtd is out of place or if I'm missing something simple. The error in the web.xml is: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Introduction == -- !-- This document defines default values for *all* web applications -- !-- loaded into this instance of Tomcat. As each application is -- !-- deployed, this file is processed, followed by the -- !-- /WEB-INF/web.xml deployment descriptor from your own -- !-- applications. -- !-- -- !-- WARNING: Do not configure application-specific resources here! -- !-- They should go in the /WEB-INF/web.xml file in your application. -- !-- == Built In Servlet Definitions -- !-- The default servlet for all web applications, that serves static -- !-- resources. It processes all requests that are not mapped to other -- !-- servlets with servlet mappings (defined either here or in your own -- !-- web.xml file. This servlet supports the following initialization -- !-- parameters (default values are in square brackets): -- !-- -- !-- debug Debugging detail level for messages logged -- !-- by this servlet. [0] -- !-- -- !-- input Input buffer size (in bytes) when reading -- !-- resources to be served. [2048] -- !-- -- !-- listingsShould directory listings be produced if there -- !-- is no welcome file in this directory? [true] -- !-- -- !-- output Output buffer size (in bytes) when writing -- !-- resources to be served. [2048] -- !-- -- !-- readonlyIs this context read only, so HTTP -- !-- commands like PUT and DELETE are -- !-- rejected? [true] -- !-- -- !-- encodeRedirects Call encodeRedirectURL() on welcomefile or -- !-- directory redirects. [false] -- servlet servlet-namedefault/servlet-name servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuetrue/param-value /init-param load-on-startup1/load-on-startup /servlet ERROR POINTS TO THE END OF THIS TAG
Building Tomcat
What are the exact steps of building the tomcat server from source? By that I mean, where do you go to get the source, including the dependent jars (commons, jasper, etc), and then use ant to build Tomcat itself? Please note that http://tomcat.apache.org/tomcat-5.5-doc/building.html is outdated and failing on the ant command for the root build.xml. I have posted a comment already, and I'm trying not to post twice, but I'm hoping this one explains in a little clearer text what I am doing. Thanks again, Zach Calvert
TOMCAT_LIBS_BASE
When opening the tomcat source files as projects, the classpaths refers to TOMCAT_LIBS_BASE. What directory should this point to and how do you grab all of the jars that belong in it? I did a search on the Tomcat source and there is no path that exists that looks like it contains all of the TOMCAT_LIBS_BASE jar files. Thank you, Zach Calvert
RE: Building Tomcat
I discovered the problem. For some odd reason, which I haven't yet figured out, the svn call in the build.xml root exec dir=${basedir} executable=svn arg line=checkout ${svnroot}/${current.loc} ${basedir}/ /exec is not just putting the checkout in the basedir, it is checking them out into a newly created directory current.loc. I do not understand why in the world it is doing this... So, when it goes to run ant deploy on the build.xml in the build folder, the build directory needs to be Tomcat\Tomcat-build\tc5.5.x\build Like I said, it shouldn't be doing this, and this is not the behavior I get when I run the command line svn checkout http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x . Making that call does NOT create the Tomcat\Tomcat-build\tc5.5.x\ directory Anyone got any suggestions? Zach -Original Message- From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 12:19 PM To: Tomcat Users List Subject: Re: Building Tomcat Zach Calvert wrote: What are the exact steps of building the tomcat server from source? By that I mean, where do you go to get the source, including the dependent jars (commons, jasper, etc), and then use ant to build Tomcat itself? Here's what I do on Windows: - Create a build directory, say E:\tmp\Tomcat-build. - Download http://tomcat.apache.org/tomcat-5.5-doc/build.xml and put it in the build directory created above. - Optional: If you want to have the binary dependencies downloaded to, say E:\tmp\Tomcat-build\binary-libs, instead of C:\usr\share\java create a file named build.properties in the build directory containing the line base.path=E:/tmp/Tomcat-build/binary-libs - In the console, change into the build directory and do ant - If you see a message asking you to accept the certificate for the asf repository (which you can't since svn is started by ant) do for example svn ls https://svn.apache.org/repos/asf/tomcat/build/tc5.5.x and accept the certifacte permanently. Run ant again. The Tomcat source and the binary libs should now be checked out and the main part of the build process should also have run. - Change into the build directory: cd build - If you changed the location where the binary libs are stored by creating a build.properties file (see above), you'll also have to create a build.properties file here, containing at least the same base.path line. - Build Tomcat: ant dist Now, a directory called dist (E:\tmp\Tomcat-build\build\dist) should have been created that contains a binary Tomcat release. Doing ant release will create a directory containing all the source and binary archives like the ones you can download from the Tomcat website. Regards mks - 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: Building Tomcat
What is really weird, is the build.xml defines the basedir as . in project name=Tomcat 5.0 Netbuild default=build basedir=. But changing exec dir=${basedir} executable=svn arg line=checkout ${svnroot}/${current.loc} ${basedir}/ /exec to exec dir=${basedir} executable=svn arg line=checkout ${svnroot}/${current.loc} ./ /exec fixed the problem on the svn grab. Now I've got more errors to deal with, but at least I've solved one problem. Of course, this is not a good solution since it destroys the ability to actually set the basedir in the project tag. The only thing I can think of is if another ant process is overriding the basedir value. Weird. Zach -Original Message- From: Zach Calvert [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 1:43 PM To: Tomcat Users List; users@tomcat.apache.org Subject: RE: Building Tomcat I discovered the problem. For some odd reason, which I haven't yet figured out, the svn call in the build.xml root exec dir=${basedir} executable=svn arg line=checkout ${svnroot}/${current.loc} ${basedir}/ /exec is not just putting the checkout in the basedir, it is checking them out into a newly created directory current.loc. I do not understand why in the world it is doing this... So, when it goes to run ant deploy on the build.xml in the build folder, the build directory needs to be Tomcat\Tomcat-build\tc5.5.x\build Like I said, it shouldn't be doing this, and this is not the behavior I get when I run the command line svn checkout http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x . Making that call does NOT create the Tomcat\Tomcat-build\tc5.5.x\ directory Anyone got any suggestions? Zach -Original Message- From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 12:19 PM To: Tomcat Users List Subject: Re: Building Tomcat Zach Calvert wrote: What are the exact steps of building the tomcat server from source? By that I mean, where do you go to get the source, including the dependent jars (commons, jasper, etc), and then use ant to build Tomcat itself? Here's what I do on Windows: - Create a build directory, say E:\tmp\Tomcat-build. - Download http://tomcat.apache.org/tomcat-5.5-doc/build.xml and put it in the build directory created above. - Optional: If you want to have the binary dependencies downloaded to, say E:\tmp\Tomcat-build\binary-libs, instead of C:\usr\share\java create a file named build.properties in the build directory containing the line base.path=E:/tmp/Tomcat-build/binary-libs - In the console, change into the build directory and do ant - If you see a message asking you to accept the certificate for the asf repository (which you can't since svn is started by ant) do for example svn ls https://svn.apache.org/repos/asf/tomcat/build/tc5.5.x and accept the certifacte permanently. Run ant again. The Tomcat source and the binary libs should now be checked out and the main part of the build process should also have run. - Change into the build directory: cd build - If you changed the location where the binary libs are stored by creating a build.properties file (see above), you'll also have to create a build.properties file here, containing at least the same base.path line. - Build Tomcat: ant dist Now, a directory called dist (E:\tmp\Tomcat-build\build\dist) should have been created that contains a binary Tomcat release. Doing ant release will create a directory containing all the source and binary archives like the ones you can download from the Tomcat website. Regards mks - 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: Running Tomcat from Bootstrap.main
Actually, I do have the commons-logging on my classpath. I wouldn't be able to call Log log = LogFactory.getFactory().getLog(Logger.class); log.debug(got log); if I didn't. I can resolve LogFactory, which is org.apache.commons.logging.LogFactory, the line above Bootstrap.main just fine. There is something a little more to this problem. Zach -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 5:42 PM To: Tomcat Users List Cc: tomcat-user@jakarta.apache.org Subject: 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building Tomcat
The instructions at http://tomcat.apache.org/tomcat-5.5-doc/building.html are not working. I get the error BUILD FAILED C:\Program Files\Apache Tomcat\TomcatBuild\build.xml:48: Basedir C:\Program Files\Apache Tomcat\TomcatBuild\build does not exist Total time: 3 seconds Well no it doesn't exist, because it didn't retrieve the build directory using svn first. Anyone have a link to an updated build instruction set? I'm interested in retrieving everything in the way of a build, including the dependent jars. Thanks, Zach
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
Run Tomcat in Eclipse
I am trying to configure Eclipse 3.2 with Tomcat 5.5.17 and Java jdk1.5.0_08. In Tomcat 4.x days, I could set up a run configuration and have it run using Eclipse's run interface. I am trying to duplicate the process for 5.5.17, but am having difficulty. First off, I have tried searching Google and everything points to the com.sysdeo.eclipse.tomcat_3.0.0 plugin. I really would rather avoid that plug-in and use my own configuration. Here are the steps I have taken: First, JAVA_HOME is set. Next, I have a project that has the Bootstrap.jar on the classpath. I open up a debug configuration and set the main class to org.apache.catalina.startup.Bootstrap In the program arguments, I have start In the VM Arguments I have -Djava.endorsed.dirs=Tomcat Root\common\endorsed -Dcatalina.home=Tomcat Root -Dcatalina.base=App Dir -Djava.io.tmpdir=Temp Dir On the classpath tab of the debug configuration, I have Bootstrap Entries: JRE bootstrap.jar tools.jar commons-logging-api.jar User Entries: Project (default classpath) When I run it, I get an exception: java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp l.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp l.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp l.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:53) Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact oryImpl.java:397) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp l.java:529) ... 4 more Caused by: java.lang.NullPointerException at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact oryImpl.java:374) ... 5 more I assume I am missing something from my classpath. Does anyone know what it is?
RE: Run Tomcat in Eclipse
I'm trying to avoid additional plugins for setting up this server run. There really shouldn't be a good reason why I can't run this using an eclipse run configuration. -Original Message- From: dizzi [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 12:22 PM To: Tomcat Users List Subject: Re: Run Tomcat in Eclipse Iam using Eclipse 3.2 with tcat 5.5.17 and jdk 1.5.0_07 In old version i used that sysdeo plugin, but now im using eclipse with WTP, it has nice support for deploying applications and manage servers. d. On Fri, 11 Aug 2006 19:08:58 +0200, Zach Calvert [EMAIL PROTECTED] wrote: I am trying to configure Eclipse 3.2 with Tomcat 5.5.17 and Java jdk1.5.0_08. In Tomcat 4.x days, I could set up a run configuration and have it run using Eclipse's run interface. I am trying to duplicate the process for 5.5.17, but am having difficulty. First off, I have tried searching Google and everything points to the com.sysdeo.eclipse.tomcat_3.0.0 plugin. I really would rather avoid that plug-in and use my own configuration. Here are the steps I have taken: First, JAVA_HOME is set. Next, I have a project that has the Bootstrap.jar on the classpath. I open up a debug configuration and set the main class to org.apache.catalina.startup.Bootstrap In the program arguments, I have start In the VM Arguments I have -Djava.endorsed.dirs=Tomcat Root\common\endorsed -Dcatalina.home=Tomcat Root -Dcatalina.base=App Dir -Djava.io.tmpdir=Temp Dir On the classpath tab of the debug configuration, I have Bootstrap Entries: JRE bootstrap.jar tools.jar commons-logging-api.jar User Entries: Project (default classpath) When I run it, I get an exception: java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryI mp l.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryI mp l.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryI mp l.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:53) Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFa ct oryImpl.java:397) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryI mp l.java:529) ... 4 more Caused by: java.lang.NullPointerException at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFa ct oryImpl.java:374) ... 5 more I assume I am missing something from my classpath. Does anyone know what it is? - 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]