Re: Question about tomcat startup ConcurrentModificationException
Hello Jilles So I have downloaded the mx4j-2.1.1.tar and untarred it, but since there is no exact match for jmx.jar in the mx4j distribution I zipinfo'd and sorted: the original tomcat/bin/jmx.tar (235 classes) mx4j.jar (285 classes) When diff'd, mostly a good match, but a couple of classes that are in jmx.jar are missing from mx4j.jar. I presume these are classes req'd by others in the package but are not called directly by tomcat. So you are suggesting that I replace the tomcat/bin/jmx.jar with the mx4j.jar ? If so, then I have a stupid question: when I do this replacement, should I rename the mx4j.jar to jmx.jar ? Maurice Jilles van Gurp wrote: The fix is to replace the mx4j jar file in the release (bin/jmx.jar) with the fixed version (latest 2.1.x) which has been available for a long time now from the mx4j project site. You might also search this mailinglist. This must be one of the more frequently raised topics. I know I found the right answer here half a year ago or so. I'd really appreciate a stable 5.0.x release with the fix. I've known about this bug for more than half a year now and I still encounter it at least once a week at customers. I then need to explain that it is not our product that is broken but tomcat and that it's a well known issue and it is easy to fix. Basically all our customers run into this issue. Lets face it, 5.0.28 is basically broken because of this easy to fix bug. People claim it rarely occurs (and consequently that it is perfectly acceptable to occasionally fail to launch with an obscure exception). Yet, I can't launch my webapp on an unpatched tomcat 5.0.28 unless I fix this first. Sometimes I forget on a clean install and then seconds later slap my forward. Just do a 5.0.28_01 with the fixed jar or finally move 5.0.30 to a stable release (I can't convince customers to install beta software) but please fix it one way or the other. Jilles Tim Funk wrote: Search bugzilla. There is a bug report about ConcurrentModificationException - it has to do with mx4j having a race condition. The bug describes a fix. -Tim Maurice Yarrow wrote: Hello Tomcat people When tomcat is restarted, it occasionally (1 in 25 times) gets the below exception. (tomcat 5.0.28, on Fedora Core 1) What is the significance of this? Thanks Maurice INFO: Starting Coyote HTTP/1.1 on http-8080 Sep 26, 2005 9:29:19 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Sep 26, 2005 9:29:19 AM org.apache.coyote.tomcat5.MapperListener init WARNING: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782) at java.util.HashMap$EntryIterator.next(HashMap.java:824) at java.util.HashMap.putAllForCreate(HashMap.java:424) at java.util.HashMap.clone(HashMap.java:656) at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56) at mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about tomcat startup ConcurrentModificationException
The fix is to replace the mx4j jar file in the release (bin/jmx.jar) with the fixed version (latest 2.1.x) which has been available for a long time now from the mx4j project site. You might also search this mailinglist. This must be one of the more frequently raised topics. I know I found the right answer here half a year ago or so. I'd really appreciate a stable 5.0.x release with the fix. I've known about this bug for more than half a year now and I still encounter it at least once a week at customers. I then need to explain that it is not our product that is broken but tomcat and that it's a well known issue and it is easy to fix. Basically all our customers run into this issue. Lets face it, 5.0.28 is basically broken because of this easy to fix bug. People claim it rarely occurs (and consequently that it is perfectly acceptable to occasionally fail to launch with an obscure exception). Yet, I can't launch my webapp on an unpatched tomcat 5.0.28 unless I fix this first. Sometimes I forget on a clean install and then seconds later slap my forward. Just do a 5.0.28_01 with the fixed jar or finally move 5.0.30 to a stable release (I can't convince customers to install beta software) but please fix it one way or the other. Jilles Tim Funk wrote: Search bugzilla. There is a bug report about ConcurrentModificationException - it has to do with mx4j having a race condition. The bug describes a fix. -Tim Maurice Yarrow wrote: Hello Tomcat people When tomcat is restarted, it occasionally (1 in 25 times) gets the below exception. (tomcat 5.0.28, on Fedora Core 1) What is the significance of this? Thanks Maurice INFO: Starting Coyote HTTP/1.1 on http-8080 Sep 26, 2005 9:29:19 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Sep 26, 2005 9:29:19 AM org.apache.coyote.tomcat5.MapperListener init WARNING: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782) at java.util.HashMap$EntryIterator.next(HashMap.java:824) at java.util.HashMap.putAllForCreate(HashMap.java:424) at java.util.HashMap.clone(HashMap.java:656) at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56) at mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question about tomcat startup ConcurrentModificationException
Hello Tomcat people When tomcat is restarted, it occasionally (1 in 25 times) gets the below exception. (tomcat 5.0.28, on Fedora Core 1) What is the significance of this? Thanks Maurice INFO: Starting Coyote HTTP/1.1 on http-8080 Sep 26, 2005 9:29:19 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Sep 26, 2005 9:29:19 AM org.apache.coyote.tomcat5.MapperListener init WARNING: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782) at java.util.HashMap$EntryIterator.next(HashMap.java:824) at java.util.HashMap.putAllForCreate(HashMap.java:424) at java.util.HashMap.clone(HashMap.java:656) at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56) at mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603) at mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568) at mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512) at org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115) at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1537) at org.apache.catalina.core.StandardService.start(StandardService.java:489) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about tomcat startup ConcurrentModificationException
Search bugzilla. There is a bug report about ConcurrentModificationException - it has to do with mx4j having a race condition. The bug describes a fix. -Tim Maurice Yarrow wrote: Hello Tomcat people When tomcat is restarted, it occasionally (1 in 25 times) gets the below exception. (tomcat 5.0.28, on Fedora Core 1) What is the significance of this? Thanks Maurice INFO: Starting Coyote HTTP/1.1 on http-8080 Sep 26, 2005 9:29:19 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Sep 26, 2005 9:29:19 AM org.apache.coyote.tomcat5.MapperListener init WARNING: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782) at java.util.HashMap$EntryIterator.next(HashMap.java:824) at java.util.HashMap.putAllForCreate(HashMap.java:424) at java.util.HashMap.clone(HashMap.java:656) at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56) at mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
validation stricter at tomcat startup than XML Schema
Hi, I just noticed that the schema: http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd allows //filter-mapping/filter-name's that have not been defined in a //filter/filter-name At tomcat startup however, there is a validation error (of course). I would say the SUN schema is wrong. best, -Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, if i start tomcat 5.5.9 i get the following AssertionError: Exception in thread main java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.AssertionError (Caused by java.lang.AssertionError) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:538) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:53) Caused by: java.lang.AssertionError at org.apache.juli.ClassLoaderLogManager$LogNode.findParentLogger(ClassLoaderLogManager.java:434) at org.apache.juli.ClassLoaderLogManager.addLogger(ClassLoaderLogManager.java:118) at java.util.logging.Logger.getLogger(Logger.java:232) at org.apache.commons.logging.impl.Jdk14Logger.getLogger(Jdk14Logger.java:152) at org.apache.commons.logging.impl.Jdk14Logger.init(Jdk14Logger.java:53) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) ... 4 more my JAVA_OPTS are JAVA_OPTS=-Xms256m -Xmx384m -ea assertions are enabled for my webapp-tests. what's wrong? marco machmer -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFCsZ8POREMKO0oAdcRAozZAKCuHp/YihVRjAW/LNOx8mNfDZ1jTACgrmBk PHUhV0HoKPvekbXXLyFrfb8= =G+N9 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem in Tomcat startup
Hi, I have been using Tomcat for some time. Recently my machine crashed and I had to reinstall the entire environment. When I do startup of Tomcat, I get an error. I am attaching the screen when I do startup. Can anyone help me with this? Thanks...Ram usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -debug ] [ -nonaming ] { start | stop } May 31, 2005 5:15:36 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 May 31, 2005 5:15:36 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1182 ms May 31, 2005 5:15:36 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina May 31, 2005 5:15:36 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 May 31, 2005 5:15:36 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled May 31, 2005 5:15:36 AM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) May 31, 2005 5:15:36 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Program Files\jakarta-to mcat-5.0.19\conf\Catalina\localhost\admin.xml May 31, 2005 5:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e May 31, 2005 5:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true May 31, 2005 5:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur nNull=true May 31, 2005 5:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Program Files\jakarta-to mcat-5.0.19\conf\Catalina\localhost\balancer.xml May 31, 2005 5:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Program Files\jakarta-to mcat-5.0.19\conf\Catalina\localhost\manager.xml May 31, 2005 5:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:C:\ Program Files\jakarta-tomcat-5.0.19\webapps\jsp-examples May 31, 2005 5:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:C:\Program Files \jakarta-tomcat-5.0.19\webapps\ROOT May 31, 2005 5:15:39 AM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav a:252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S ource) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo nfig.java:300) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64 1) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:253) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 222) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:866) at
Re: Problem in Tomcat startup
On 5/31/05, Ram Sriram [EMAIL PROTECTED] wrote: Caused by: java.lang.IllegalArgumentException: addChild: Child name 'bizDispatc her' is not unique at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:860) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:85 0) at org.apache.catalina.core.StandardContext.addChild(StandardContext.jav a:1770) ... 47 more May 31, 2005 5:15:39 AM org.apache.catalina.startup.ContextConfig applicationCon fig SEVERE: Parse error in application web.xml java.lang.IllegalArgumentException: addChild: Child name 'bizDispatcher' is not unique at May be you declared bizDispatcher twice in the applications web.xml. Also check for this in Tomcats conf\web.xml. -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in Tomcat startup
Anto, Thanks. That worked. BizDispatcher was declared both in application web.xml and Tomcats conf\web.xml. I commented the one in Tomcats conf\web.xml. I am not having the problem anymore...Ram --- Anto Paul wrote: On 5/31/05, Ram Sriram [EMAIL PROTECTED] wrote: Caused by: java.lang.IllegalArgumentException: addChild: Child name 'bizDispatc her' is not unique at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:860) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:85 0) at org.apache.catalina.core.StandardContext.addChild(StandardContext.jav a:1770) ... 47 more May 31, 2005 5:15:39 AM org.apache.catalina.startup.ContextConfig applicationCon fig SEVERE: Parse error in application web.xml java.lang.IllegalArgumentException: addChild: Child name 'bizDispatcher' is not unique at May be you declared bizDispatcher twice in the applications web.xml. Also check for this in Tomcats conf\web.xml.
Re: Debugging tomcat startup
Realm implementations should go into server/lib. On Apr 2, 2005 12:16 AM, Anto Paul [EMAIL PROTECTED] wrote: On Apr 2, 2005 1:27 AM, Sasha Borodin [EMAIL PROTECTED] wrote: What is the motive to place jars in server/lib. These jars are not visible to applications.
Re: Debugging tomcat startup
Hey Sasha, I have been wanting to do an iBATIS realm for a while. Glad to see I am not alone. ;-) You have a couple of options. I use IDEA, and run tomcat externally. When I want to debug startup code, I set JPDA_OPTS (in setenv.sh/bat) to this: JPDA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y Most of that is already there (in tomcat 5.0.27 line 141 of catalina.sh), and tells the JVM to start the debugger in server mode using sockets, to listen on address 8000, and to suspend immediately, until a debugger attaches. Then, set your breakpoints, and start tomcat using this: $CATALINA_HOME/bin/catalina.sh jpda start Once it starts, you can attach, and debug everything starting at the beginning. Java rocks! :-D Larry On Apr 1, 2005 12:57 PM, Sasha Borodin [EMAIL PROTECTED] wrote: I'd like to solicit suggestions for debugging Tomcat startup - specifically various class initializations. I've written a custom Realm implementation; in it, I use some data access classes which use iBatis; these classes work great when used in a web application (all jars residing in the apps WEB-INF/lib); but I'm getting errors when these classes are initialized from jars in the server/lib directory at startup. If you have suggestions for how to debug the startup, especially from an IDE like Idea, please post. Also, if there are guidelines for where to place certain types of jars (common vs. server), please post a link. Right now I've got my jdbc jars in common/lib, and my custom Realm and data access classes (including ibatis related jars) in server/lib. Thanks for your help, -Sasha Borodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Debugging tomcat startup
I'd like to solicit suggestions for debugging Tomcat startup - specifically various class initializations. I've written a custom Realm implementation; in it, I use some data access classes which use iBatis; these classes work great when used in a web application (all jars residing in the apps WEB-INF/lib); but I'm getting errors when these classes are initialized from jars in the server/lib directory at startup. If you have suggestions for how to debug the startup, especially from an IDE like Idea, please post. Also, if there are guidelines for where to place certain types of jars (common vs. server), please post a link. Right now I've got my jdbc jars in common/lib, and my custom Realm and data access classes (including ibatis related jars) in server/lib. Thanks for your help, -Sasha Borodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Debugging tomcat startup
On Apr 2, 2005 1:27 AM, Sasha Borodin [EMAIL PROTECTED] wrote: I'd like to solicit suggestions for debugging Tomcat startup - specifically various class initializations. I've written a custom Realm implementation; in it, I use some data access classes which use iBatis; these classes work great when used in a web application (all jars residing in the apps WEB-INF/lib); but I'm getting errors when these classes are initialized from jars in the server/lib directory at startup. If you have suggestions for how to debug the startup, especially from an IDE like Idea, please post. Also, if there are guidelines for where to place certain types of jars (common vs. server), please post a link. Right now I've got my jdbc jars in common/lib, and my custom Realm and data access classes (including ibatis related jars) in server/lib. Thanks for your help, -Sasha Borodin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Read the classloader docs. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html What is the motive to place jars in server/lib. These jars are not visible to applications. -- Anto Paul Benchmark Softech www.benchmarksoft.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup with jsvc on Linux
Hi, How can I start Tomcat with jsvc so that the jsvc command returns control to the command prompt or script exactly after the Daemon started successfully ? I would like it to behave in the same way as other services such as Apache httpd so I can cod success and failure messages in the script. The supplied script redirects output to a log file and in that way jsvc returns immediately, long before writing Daemon started successfully to the log file. If I do NOT code the -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ parameters, then the command does not return at all and I have to press [Enter] or [Ctrl+C] at the console. It looks as if I am lacking some knowledge here. Many thanks for your help, Bernard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat startup error
I'm using eclipse and sysdeo. I attempted to make a small prototype application, but I can't get tomcat to start. This is what tomcat says when I try: SEVERE: Error deploying configuration descriptor klapa9.xml java.lang.NoClassDefFoundError: org/apache/log4j/Layout klapa9.xml looks like this: Context path=/klapa9 docBase=D:/posao/klapa9/context debug=6/ My project is obviously in D:/posao/klapa9/. I started with tomcat 5.5.7 as well as 5.0.28 and got nowhere. Any ideas what I'm doing wrong? Tomislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.awt.headless=true in tomcat startup
Hi! I try to use some awt\swing classes to convert rtf strings to html in an jsp page. But I receive the following Exception: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. But, to resolve this problem, I find the following tip: assuming you're using a 1.4 JVM, add the following line to your startup command: $JAVA_COMMAND -Djava.awt.headless=true ... But, how I put this option in the Tomcat startup? -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.awt.headless=true in tomcat startup
put it in the /bin/catalina.sh script Filip - Original Message - From: Rodrigo Avila [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, February 04, 2005 10:57 AM Subject: java.awt.headless=true in tomcat startup Hi! I try to use some awt\swing classes to convert rtf strings to html in an jsp page. But I receive the following Exception: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. But, to resolve this problem, I find the following tip: assuming you're using a 1.4 JVM, add the following line to your startup command: $JAVA_COMMAND -Djava.awt.headless=true ... But, how I put this option in the Tomcat startup? -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.awt.headless=true in tomcat startup
You set this somewhere in either the tomcat-home/bin/catalina.sh or tomcat-home/bin/startup.sh. If you don't want to do any of that, have an InitServlet that does System.setProperty( java.awt.headless, true ); That will do the same thing. Charlie Rodrigo Avila said the following on 2/4/2005 11:57 AM: Hi! I try to use some awt\swing classes to convert rtf strings to html in an jsp page. But I receive the following Exception: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. But, to resolve this problem, I find the following tip: assuming you're using a 1.4 JVM, add the following line to your startup command: $JAVA_COMMAND -Djava.awt.headless=true ... But, how I put this option in the Tomcat startup? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.awt.headless=true in tomcat startup
no no no - it should go in setenv.sh - that is what it is for - that way you do not have to tweak the existing files. On Fri, 04 Feb 2005 12:04:36 -0500, Charles N. Harvey III [EMAIL PROTECTED] wrote: You set this somewhere in either the tomcat-home/bin/catalina.sh or tomcat-home/bin/startup.sh. If you don't want to do any of that, have an InitServlet that does System.setProperty( java.awt.headless, true ); That will do the same thing. Charlie Rodrigo Avila said the following on 2/4/2005 11:57 AM: Hi! I try to use some awt\swing classes to convert rtf strings to html in an jsp page. But I receive the following Exception: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. But, to resolve this problem, I find the following tip: assuming you're using a 1.4 JVM, add the following line to your startup command: $JAVA_COMMAND -Djava.awt.headless=true ... But, how I put this option in the Tomcat startup? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.awt.headless=true in tomcat startup
Hi Rodrigo! By defining the environment variable CATALINA_OPTS=-server -Djava.awt.headless=true you can tell any command line parameter you want to the JVM used by tomcat. I suggest it is a good idea to use the -server parameter, too. This selects the server VM. Jens Joachim Syscon GmbH E-Mail: [EMAIL PROTECTED] - Original Message - From: Rodrigo Avila [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, February 04, 2005 5:57 PM Subject: java.awt.headless=true in tomcat startup Hi! I try to use some awt\swing classes to convert rtf strings to html in an jsp page. But I receive the following Exception: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. But, to resolve this problem, I find the following tip: assuming you're using a 1.4 JVM, add the following line to your startup command: $JAVA_COMMAND -Djava.awt.headless=true ... But, how I put this option in the Tomcat startup? -- Rodrigo de Avila [EMAIL PROTECTED] http://www.avila.eti.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Startup/Shutdown and mod_jk Issues
System: SunOS 5.9 Generic_117171-13 sun4u sparc SUNW,Sun-Fire-V440 Apache: 2.0.52 Tomcat: 5.5.4 Connector: jk-1.2.6 Java: JDK 1.5.0.01 We're attempting an upgrade from Tomcat 4.1.31 to 5.5.4; we are using JK 1 as a connector to Apache (due to prior experience and relative simplicity); We are encountering three issues: 1) During start-up, Tomcat throws the following error messages: java.lang.NoSuchMethodError: org.apache.naming.NamingContextEnumeration.init(Ljava/util/Iterator;)V [ for each application it attempts to deploy] SEVERE: Catalina.start: LifecycleException: Protocol handler start failed: java.net.BindException: Address already in use:8080 [presumably from Tomcat not releasing 8080 properly during previous start-up/shut-down cycles] 2) During shut-down, Tomcat throws the following error: SEVERE: Protocol handler pause failed java.lang.NullPointerException at org.apache.jk.server.JkMain.pause(JkMain.java:655) 3) The mod_jk.conf file does not build; its entire contents are: ## Auto generated on Tue Jan 18 16:24:18 PST 2005## IfModule !mod_jk.c LoadModule jk_module /usr/apache/modules/jakarta-tomcat-connectors-jk-1.2.6-solaris8-sparc-apache-2.0.43_ native.so /IfModule JkWorkersFile /var/apache/tomcat/conf/jk/workers.properties JkLogFile /var/apache/tomcat/logs/mod_jk.log JkLogLevel emerg VirtualHost spinach.techbooks.com ServerName spinach.techbooks.com /VirtualHost [presumably this is from applications not loading during start-up; but could it be from some other cause?] -- David Rickard Software Engineer TechBooks/GTS Your Single Source Solution! Los Angeles CA * York, PA * Boston,MA * New Delhi, India Visit us on the World Wide Web http://www.techbooks.comhttp://www.techbooks.com [EMAIL PROTECTED] 5650 Jillson St., Los Angeles, CA 90040 (323) 888-8889 x331 (323) 888-1849 (Fax)
Re: Tomcat Startup/Shutdown and mod_jk Issues
It seems like something is hogging the port 8080. Did you check wether there is something listening on port 8080 before you start your new tomcat? On Tue, 18 Jan 2005 16:22:12 -0800, David Rickard [EMAIL PROTECTED] wrote: System: SunOS 5.9 Generic_117171-13 sun4u sparc SUNW,Sun-Fire-V440 Apache: 2.0.52 Tomcat: 5.5.4 Connector: jk-1.2.6 Java: JDK 1.5.0.01 We're attempting an upgrade from Tomcat 4.1.31 to 5.5.4; we are using JK 1 as a connector to Apache (due to prior experience and relative simplicity); We are encountering three issues: 1) During start-up, Tomcat throws the following error messages: java.lang.NoSuchMethodError: org.apache.naming.NamingContextEnumeration.init(Ljava/util/Iterator;)V [ for each application it attempts to deploy] SEVERE: Catalina.start: LifecycleException: Protocol handler start failed: java.net.BindException: Address already in use:8080 [presumably from Tomcat not releasing 8080 properly during previous start-up/shut-down cycles] 2) During shut-down, Tomcat throws the following error: SEVERE: Protocol handler pause failed java.lang.NullPointerException at org.apache.jk.server.JkMain.pause(JkMain.java:655) 3) The mod_jk.conf file does not build; its entire contents are: ## Auto generated on Tue Jan 18 16:24:18 PST 2005## IfModule !mod_jk.c LoadModule jk_module /usr/apache/modules/jakarta-tomcat-connectors-jk-1.2.6-solaris8-sparc-apache-2.0.43_ native.so /IfModule JkWorkersFile /var/apache/tomcat/conf/jk/workers.properties JkLogFile /var/apache/tomcat/logs/mod_jk.log JkLogLevel emerg VirtualHost spinach.techbooks.com ServerName spinach.techbooks.com /VirtualHost [presumably this is from applications not loading during start-up; but could it be from some other cause?] -- David Rickard Software Engineer TechBooks/GTS Your Single Source Solution! Los Angeles CA * York, PA * Boston,MA * New Delhi, India Visit us on the World Wide Web http://www.techbooks.comhttp://www.techbooks.com [EMAIL PROTECTED] 5650 Jillson St., Los Angeles, CA 90040 (323) 888-8889 x331 (323) 888-1849 (Fax) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup failing with Exception processing JAR
Guys, I have been really struggling with this new install. Tomcat startup failing with error in localhost_log.txt and locahost_log_admin.txt: Localhost_log.txt: 2004-12-23 09:51:03 ContextConfig[/alligator] Exception processing JAR at resource path /WEB-INF/lib/commons-pool-1.0.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/commons-pool-1.0.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Localhost_admin_log.txt: 2004-12-23 09:51:04 ContextConfig[/admin] Exception processing JAR at resource path /WEB-INF/lib/struts.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/struts.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:162) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase. java:182) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:805) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer. java:700) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1064) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1562) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:385) at org.apache.catalina.core.StandardHost.install(StandardHost.java:803
Tomcat startup error.
Hi I am new to Tomcat. I have version 5.0.25 installed on my pc. When i startup tomcat using the startup.bat i get the following error (apologies for the long details). 22-Nov-2004 16:13:53 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8081 22-Nov-2004 16:13:54 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1762 ms 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.25 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.25\co nf\Catalina\localhost\admin.xml 22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e 22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true 22-Nov-2004 16:13:56 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur nNull=true 22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.25\co nf\Catalina\localhost\balancer.xml 22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.25\co nf\Catalina\localhost\manager.xml 22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:C:\ jakarta-tomcat-5.0.25\webapps\jsp-examples 22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /legacypas from URL file:C:\jak arta-tomcat-5.0.25\webapps\legacypas 16:14:02,806 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:88] - DEBUG - MessageHandler Using the following Properties : 16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:89] - DEBUG - Queue Name : et_LegacyAsyncWebRequest 16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:90] - DEBUG - Port Number : 24056 16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:91] - DEBUG - Host Name : localhost 16:14:08,284 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:118] - ERROR - JMS Exception Encountered: javax.jms.JMSException: Could not connect to host: localhost, port: 24056 Log4j : /tmp/log4j/log4j.properties 22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:C:\jakarta-tomca t-5.0.25\webapps\ROOT 22-Nov-2004 16:14:09 org.apache.commons.modeler.Registry registerComponent SEVERE: Null component Catalina:type=JspMonitor,WebModule=//localhost/,J2EEAppli cation=none,J2EEServer=none 22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer install INFO: Error installing org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundExc eption: org.apache.commons.logging.impl.Log4jFactory at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609) at java.security.AccessController.doPrivileged(Native Method) at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:298) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395) at org.apache.catalina.session.ManagerBase.init(ManagerBase.java:63) at org.apache.catalina.session.StandardManager.init(StandardManager.ja va:64) at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig .java:315) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 5) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 268) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep loyer.java:277) at
RE: Tomcat startup error.
... and to add to my previous message, also check out the Tomcat FAQ's section on logging with log4j and commons-logging. Yoav Shapira http://www.yoavshapira.com -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 11:16 AM To: [EMAIL PROTECTED] Subject: Tomcat startup error. Hi I am new to Tomcat. I have version 5.0.25 installed on my pc. When i startup tomcat using the startup.bat i get the following error (apologies for the long details). 22-Nov-2004 16:13:53 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8081 22-Nov-2004 16:13:54 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1762 ms 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.25 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.25\co nf\Catalina\localhost\admin.xml 22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e 22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true 22-Nov-2004 16:13:56 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur nNull=true 22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.25\co nf\Catalina\localhost\balancer.xml 22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.25\co nf\Catalina\localhost\manager.xml 22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:C:\ jakarta-tomcat-5.0.25\webapps\jsp-examples 22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /legacypas from URL file:C:\jak arta-tomcat-5.0.25\webapps\legacypas 16:14:02,806 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:88] - DEBUG - MessageHandler Using the following Properties : 16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:89] - DEBUG - Queue Name : et_LegacyAsyncWebRequest 16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:90] - DEBUG - Port Number : 24056 16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:91] - DEBUG - Host Name : localhost 16:14:08,284 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:118] - ERROR - JMS Exception Encountered: javax.jms.JMSException: Could not connect to host: localhost, port: 24056 Log4j : /tmp/log4j/log4j.properties 22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:C:\jakarta-tomca t-5.0.25\webapps\ROOT 22-Nov-2004 16:14:09 org.apache.commons.modeler.Registry registerComponent SEVERE: Null component Catalina:type=JspMonitor,WebModule=//localhost/,J2EEAppli cation=none,J2EEServer=none 22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer install INFO: Error installing org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundExc eption: org.apache.commons.logging.impl.Log4jFactory at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609) at java.security.AccessController.doPrivileged(Native Method) at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:298) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395) at org.apache.catalina.session.ManagerBase.init(ManagerBase.java:63) at org.apache.catalina.session.StandardManager.init(StandardManager.ja va:64) at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig .java:315) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 5) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 268) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:823
RE: Tomcat startup error.
Hi, This is not an out-of-the-box Tomcat. Modify your log4j properties so that they don't look for a non-existent (or not running) JMS server ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: g k [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 11:16 AM To: [EMAIL PROTECTED] Subject: Tomcat startup error. Hi I am new to Tomcat. I have version 5.0.25 installed on my pc. When i startup tomcat using the startup.bat i get the following error (apologies for the long details). 22-Nov-2004 16:13:53 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8081 22-Nov-2004 16:13:54 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1762 ms 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.25 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) 22-Nov-2004 16:13:54 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.25\co nf\Catalina\localhost\admin.xml 22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e 22-Nov-2004 16:13:55 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true 22-Nov-2004 16:13:56 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur nNull=true 22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.25\co nf\Catalina\localhost\balancer.xml 22-Nov-2004 16:14:00 org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.25\co nf\Catalina\localhost\manager.xml 22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:C:\ jakarta-tomcat-5.0.25\webapps\jsp-examples 22-Nov-2004 16:14:01 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /legacypas from URL file:C:\jak arta-tomcat-5.0.25\webapps\legacypas 16:14:02,806 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:88] - DEBUG - MessageHandler Using the following Properties : 16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:89] - DEBUG - Queue Name : et_LegacyAsyncWebRequest 16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:90] - DEBUG - Port Number : 24056 16:14:02,836 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:91] - DEBUG - Host Name : localhost 16:14:08,284 [MessageAsyncHandler.java] [MessageAsyncHandler] [init:118] - ERROR - JMS Exception Encountered: javax.jms.JMSException: Could not connect to host: localhost, port: 24056 Log4j : /tmp/log4j/log4j.properties 22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:C:\jakarta-tomca t-5.0.25\webapps\ROOT 22-Nov-2004 16:14:09 org.apache.commons.modeler.Registry registerComponent SEVERE: Null component Catalina:type=JspMonitor,WebModule=//localhost/,J2EEAppli cation=none,J2EEServer=none 22-Nov-2004 16:14:09 org.apache.catalina.core.StandardHostDeployer install INFO: Error installing org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundExc eption: org.apache.commons.logging.impl.Log4jFactory at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609) at java.security.AccessController.doPrivileged(Native Method) at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:298) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395) at org.apache.catalina.session.ManagerBase.init(ManagerBase.java:63) at org.apache.catalina.session.StandardManager.init(StandardManager.ja va:64) at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig .java:315) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 5) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:216) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 268) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:823
RE: Tomcat startup time delay in Windows 95/98
Thanks Tim, But I guess this all has been taken care of. Dunno where the problem lies. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 5:31 PM To: Tomcat Users List Subject: Re: Tomcat startup time delay in Windows 95/98 Just created, details are sparse .. http://wiki.apache.org/jakarta-tomcat/HowTo/FasterStartUp -Tim Pragyan Padmini Misra wrote: HI, I had posted this earlier and again am resending as am still not getting any solution. Can any one help me out on this. The application which we have developed has a performance related issue in Windows 95/98. We install the application and when we click on the aplication icon it internally invokes a Flash screen displaying the application is loading and internally calls the startup.bat file in tomcat\bin for the server startup process, which internally calls the catalina.bat file and so on and so forth. We cannot startup Tomcat as a service in Win 95/98. The problem basically which we are facing is the time taken for the load of the application. The load time takes up about 1 1/2 to 2 minutes. This doesnt seem to be a feasible solution for the product acceptance. Is there any way we can decrease the tomcat startup load time? Can we manipulate on the processes so as to reduce the load time? Or is there any solution for the same? Regards Pragyan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup time delay in Windows 95/98
HI, I had posted this earlier and again am resending as am still not getting any solution. Can any one help me out on this. The application which we have developed has a performance related issue in Windows 95/98. We install the application and when we click on the aplication icon it internally invokes a Flash screen displaying the application is loading and internally calls the startup.bat file in tomcat\bin for the server startup process, which internally calls the catalina.bat file and so on and so forth. We cannot startup Tomcat as a service in Win 95/98. The problem basically which we are facing is the time taken for the load of the application. The load time takes up about 1 1/2 to 2 minutes. This doesnt seem to be a feasible solution for the product acceptance. Is there any way we can decrease the tomcat startup load time? Can we manipulate on the processes so as to reduce the load time? Or is there any solution for the same? Regards Pragyan
Re: Tomcat startup time delay in Windows 95/98
Just created, details are sparse .. http://wiki.apache.org/jakarta-tomcat/HowTo/FasterStartUp -Tim Pragyan Padmini Misra wrote: HI, I had posted this earlier and again am resending as am still not getting any solution. Can any one help me out on this. The application which we have developed has a performance related issue in Windows 95/98. We install the application and when we click on the aplication icon it internally invokes a Flash screen displaying the application is loading and internally calls the startup.bat file in tomcat\bin for the server startup process, which internally calls the catalina.bat file and so on and so forth. We cannot startup Tomcat as a service in Win 95/98. The problem basically which we are facing is the time taken for the load of the application. The load time takes up about 1 1/2 to 2 minutes. This doesnt seem to be a feasible solution for the product acceptance. Is there any way we can decrease the tomcat startup load time? Can we manipulate on the processes so as to reduce the load time? Or is there any solution for the same? Regards Pragyan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat startup time delay in Windows 95/98
Use an actual operating system :) -Original Message- From: Pragyan Padmini Misra [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 6:48 AM To: 'Tomcat Users List' Subject: Tomcat startup time delay in Windows 95/98 HI, I had posted this earlier and again am resending as am still not getting any solution. Can any one help me out on this. The application which we have developed has a performance related issue in Windows 95/98. We install the application and when we click on the aplication icon it internally invokes a Flash screen displaying the application is loading and internally calls the startup.bat file in tomcat\bin for the server startup process, which internally calls the catalina.bat file and so on and so forth. We cannot startup Tomcat as a service in Win 95/98. The problem basically which we are facing is the time taken for the load of the application. The load time takes up about 1 1/2 to 2 minutes. This doesnt seem to be a feasible solution for the product acceptance. Is there any way we can decrease the tomcat startup load time? Can we manipulate on the processes so as to reduce the load time? Or is there any solution for the same? Regards Pragyan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat startup time delay in Windows 95/98
Hi, I was just about to say that ;) Pretty much everything works slower on these operating systems ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Benson Margulies [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 7:32 AM To: Tomcat Users List Subject: RE: Tomcat startup time delay in Windows 95/98 Use an actual operating system :) -Original Message- From: Pragyan Padmini Misra [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 6:48 AM To: 'Tomcat Users List' Subject: Tomcat startup time delay in Windows 95/98 HI, I had posted this earlier and again am resending as am still not getting any solution. Can any one help me out on this. The application which we have developed has a performance related issue in Windows 95/98. We install the application and when we click on the aplication icon it internally invokes a Flash screen displaying the application is loading and internally calls the startup.bat file in tomcat\bin for the server startup process, which internally calls the catalina.bat file and so on and so forth. We cannot startup Tomcat as a service in Win 95/98. The problem basically which we are facing is the time taken for the load of the application. The load time takes up about 1 1/2 to 2 minutes. This doesnt seem to be a feasible solution for the product acceptance. Is there any way we can decrease the tomcat startup load time? Can we manipulate on the processes so as to reduce the load time? Or is there any solution for the same? Regards Pragyan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup time delay in Windows 95/98
HI, The application which we have developed has a performance related issue in Windows 95/98. We install the application and when we click on the aplication icon it internally invokes a Flash screen displaying the application is loading and internally calls the startup.bat file in tomcat\bin for the server startup process, which internally calls the catalina.bat file and so on and so forth. We cannot startup Tomcat as a service in Win 95/98. The problem basically which we are facing is the time taken for the load of the application. The load time takes up about 1 1/2 to 2 minutes. This doesnt seem to be a feasible solution for the product acceptance. Is there any way we can decrease the tomcat startup load time? Can we manipulate on the processes so as to reduce the load time? Or is there any solution for the same? Regards Pragyan
How to tell if JNI Library Loaded at Tomcat Startup?
Hello, How can you determine in Tomcat if a JNI library has been loaded as a shared resource for web applications? I have a Wrapper class and the library both living tomcat-root/shared/lib. Thanks. Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat startup processing
Didier McGillis wrote: is there away to have a jsp or something run some code on startup or to have it cache some data results so that I dont have to keep on going to the database each time the page is loaded. I use some cached informations on my application, the information are stored as static in a class, I put this configuration on web.xml servlet servlet-nameServerInit/servlet-name servlet-classyoutPackage.ServerInit/servlet-class load-on-startup1/load-on-startup /servlet an the class is loaded ad startup. After startup I can find cached information using ServerInit.yourMethod() edoardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat startup processing
is there away to have a jsp or something run some code on startup or to have it cache some data results so that I dont have to keep on going to the database each time the page is loaded. _ Powerful Parental Controls Let your child discover the best the Internet has to offer. http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat startup processing
Certainly you can do it. As if you are using Struts you can do it with use of plug-ins in struts-config.xml as Plug-ins get invoked when server starts. I wrote a plug-in which goes to database at starup of system and stores state information in application context. Hope it will help. Thanks Vivek --- Didier McGillis [EMAIL PROTECTED] wrote: is there away to have a jsp or something run some code on startup or to have it cache some data results so that I dont have to keep on going to the database each time the page is loaded. _ Powerful Parental Controls Let your child discover the best the Internet has to offer. http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat startup processing
Hi, is there away to have a jsp or something run some code on startup or to have it cache some data results so that I dont have to keep on going to the database each time the page is loaded. The best place for this is usually a ServletContextListener. Alternatives including a static initializer block and a Servlet's init method. Try not to use approaches that are implementation specific like the Struts one, because generic alternatives do exist and don't tie you to a specific product. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error on Tomcat startup
Thanks,servlet tag in wrong order... Shapira, Yoav [EMAIL PROTECTED] 13/10/2004 10:55:19 pm Hi, There should be a message in the (normal, not error) log like deploying web application at /path -- that's how you can tell what web.xml caused the error. An alternative approach (which should be done anyways as a matter of habit) is to independently (that is, outside of Tomcat) validate your web.xml file using a tool like XMLSpy or one of the free online alternatives. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Aziz Yacoub [ mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 8:17 AM To: [EMAIL PROTECTED] Subject: Error on Tomcat startup I notice the following error on starting TC 4.1.30 on WinXP in stderr.log. What file is it parsing? I assume it's one of the web.xml files, but is there a quick way of finding out which one without having to go through each of them? Thanks for any help. 13/10/2004 21:30:42 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 59 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess ion- config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e nv- ref*,resource-ref*,security-constraint*,login-config?,security-role*,en v- entry*,ejb-ref*,ejb-local-ref*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess ion- config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e nv- ref*,resource-ref*,security-constraint*,login-config?,security-role*,en v- entry*,ejb-ref*,ejb-local-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn own Source) etc This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
Error on Tomcat startup
I notice the following error on starting TC 4.1.30 on WinXP in stderr.log. What file is it parsing? I assume it's one of the web.xml files, but is there a quick way of finding out which one without having to go through each of them? Thanks for any help. 13/10/2004 21:30:42 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 59 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) etc
RE: Error on Tomcat startup
Hi, There should be a message in the (normal, not error) log like deploying web application at /path -- that's how you can tell what web.xml caused the error. An alternative approach (which should be done anyways as a matter of habit) is to independently (that is, outside of Tomcat) validate your web.xml file using a tool like XMLSpy or one of the free online alternatives. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Aziz Yacoub [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 8:17 AM To: [EMAIL PROTECTED] Subject: Error on Tomcat startup I notice the following error on starting TC 4.1.30 on WinXP in stderr.log. What file is it parsing? I assume it's one of the web.xml files, but is there a quick way of finding out which one without having to go through each of them? Thanks for any help. 13/10/2004 21:30:42 org.apache.commons.digester.Digester error SEVERE: Parse Error at line 59 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess ion- config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e nv- ref*,resource-ref*,security-constraint*,login-config?,security-role*,en v- entry*,ejb-ref*,ejb-local-ref*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess ion- config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e nv- ref*,resource-ref*,security-constraint*,login-config?,security-role*,en v- entry*,ejb-ref*,ejb-local-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn own Source) etc This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Need help on automating Tomcat startup and shutdown on HP-UX
Good Afternoon, I am having problem in automating Tomcat (4.1.30) startup and shutdown on HP-UX B.11.11 platform. I have created a script named tomcat in /sbin/init.d directory. I can start up and shut down Tomcat by running this script manually with the super user (root) account. But, it always fails where the machine reboots. Here is the error message in /etc/rc.log file: Starting up Tomcat Output from /sbin/rc3.d/S999tomcat start: /opt/jakarta-tomcat-4.1.30/bin/startup.sh[21]: dirname: not found. Cannot find /catalina.sh This file is needed to run this program /sbin/rc3.d/S999tomcat start FAILED Here is the /sbin/init.d/tomcat script: CATALINA_BASE=/opt/jakarta-tomcat-4.1.30 export CATALINA_BASE CATALINA_HOME=$CATALINA_BASE export CATALINA_HOME CATALINA_TMPDIR=$CATALINA_HOME/temp export CATALINA_TMPDIR JAVA_HOME=/opt/java1.4 export JAVA_HOME case $1 in 'start_msg') echo Starting up Tomcat ;; 'stop_msg') echo Shutting down Tomcat ;; 'start') $CATALINA_HOME/bin/startup.sh ;; 'stop') $CATALINA_HOME/bin/shutdown.sh ;; *) echo Usage: $0 [start | stop] esac I would appreciate very much if anyone can give me some clue on how to make it work. Thanks in advance. Eric
org.apache.commons.digester.Digester error--- at tomcat startup...
I added some elements in web.xml on linux machine and i get this error, but i cannot see any problem with web.xml, the same web.xml works fine on windows...below is my web.xml...can someone please suggest Sep 30, 2004 9:03:31 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 26 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca l-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand lerWrapper.java:236) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17 2) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:38 0) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:31 4) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator. java:2049) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:9 33) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu mentFragmentScannerImpl.java:1083) web.xml... !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 display-nameMyPub XmlRpc/display-name description This is the container to hold the MLRPC calls /description resource-ref descriptionDB Connection/description res-ref-namejdbc/mydb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref servlet servlet-nameXmlRpcServlet/servlet-name servlet-classXmlRpcServlet/servlet-class /servlet servlet-mapping servlet-nameXmlRpcServlet/servlet-name url-pattern/rpc/url-pattern /servlet-mapping /web-app ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.commons.digester.Digester error--- at tomcat startup...
Hi, As the error says pretty clearly, you can't put resource-ref before servlet using your DTD. So the same web.xml doesn't work on Windows or any other platform. Go validate your web.xml (using a tool like XMLSpy or one of the free online validators) to see for yourself. You can simply fix the element order and stick with the 2.3 DTD, or move to the 2.4 schema (if using Tomcat 5.x) and then the element order doesn't matter. Yoav Shapira Millennium Research Informatics -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 9:39 AM To: Tomcat Users List Subject: org.apache.commons.digester.Digester error--- at tomcat startup... I added some elements in web.xml on linux machine and i get this error, but i cannot see any problem with web.xml, the same web.xml works fine on windows...below is my web.xml...can someone please suggest Sep 30, 2004 9:03:31 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 26 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime- mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource- ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb - loca l-ref*). org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context- param*,filter*,fil ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime- mappin g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource- ref*,se curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb - loca l-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Erro rHan d lerWrapper.java:236) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.ja va:1 7 2) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja va:3 8 0) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja va:3 1 4) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValid ator . java:2049) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.j ava: 9 33) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XM LDoc u mentFragmentScannerImpl.java:1083) web.xml... !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 display-nameMyPub XmlRpc/display-name description This is the container to hold the MLRPC calls /description resource-ref descriptionDB Connection/description res-ref-namejdbc/mydb/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref servlet servlet-nameXmlRpcServlet/servlet-name servlet-classXmlRpcServlet/servlet-class /servlet servlet-mapping servlet-nameXmlRpcServlet/servlet-name url-pattern/rpc/url-pattern /servlet-mapping /web-app ~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat startup/shutdown script problem
hi i have 2 tomcat instances ( tomcat 4.x modjk apache2.x structure) like cluster1 and cluster2.and rhel3.0 linuxux system has jdk1.3.x when i started tomcat via command /usr/local/tomcat/cluster1/bin/catalina sh start and give ps -efw | grep cluster1 command it returns below output ps -efw | grep cluster1 root 1033 1 74 10:03 pts/100:00:02 /usr/java/jdk1.3 1_08/bin/i386/native_threads/java -Xmx512m -Dfile.encoding=Cp1254 -Xbootclasspath/p:/usr/local/tomcat/cluster1/shared/lib/vbjorb jar:/usr/local/tomcat/cluster1/shared/lib/lm jar:/usr/local/tomcat/cluster1/shared/lib/classes12 zip:/usr/local/tomcat/cluster root 1062 1033 0 10:03 pts/100:00:00 /usr/java/jdk1.3 1_08/bin/i386/native_threads/java -Xmx512m -Dfile.encoding=Cp1254 -Xbootclasspath/p:/usr/local/tomcat/cluster1/shared/lib/vbjorb jar:/usr/local/tomcat/cluster1/shared/lib/lm jar:/usr/local/tomcat/cluster1/shared/lib/classes12 zip:/usr/local/tomcat/cluster root 1063 1062 11 10:03 pts/100:00:00 /usr/java/jdk1.3 1_08/bin/i386/native_threads/java -Xmx512m -Dfile.encoding=Cp1254 -Xbootclasspath/p:/usr/local/tomcat/cluster1/shared/lib/vbjorb jar:/usr/local/tomcat/cluster1/shared/lib/lm jar:/usr/local/tomcat/cluster1/shared/lib/classes12 zip:/usr/local/tomcat/cluster root 1064 1062 0 10:03 pts/100:00:00 /usr/java/jdk1.3 1_08/bin/i386/native_threads/java -Xmx512m -Dfile.encoding=Cp1254 -Xbootclasspath/p:/usr/local/tomcat/cluster1/shared/lib/vbjorb jar:/usr/local/tomcat/cluster1/shared/lib/lm jar:/usr/local/tomcat/cluster1/shared/lib/classes12 zip:/usr/local/tomcat/cluster output getting higher as time goes. i wrote a bash script like cluster1START.sh and it consists of below /usr/local/tomcat/cluster1/bin/catalina.sh stop /usr/local/tomcat/cluster1/bin/catalina.sh start i run sh cluster1START.sh command and there is no problem but when i put it crontab it just only open one process. how can i start tomcat from crontab automatically ? yours sincerely - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat startup error
Hola, Also make sure you installed Tomcat properly, specifically using gtar (the GNU tar) instead of the normal tar if unpacking a .tar.gz distribution. Yoav Shapira Millennium Research Informatics -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, August 12, 2004 6:28 PM To: Tomcat Users List Subject: Re: Tomcat startup error On Thu, Aug 12, 2004 at 02:30:37PM -0700, Techs wrote: : We're running tomcat 4.1 on redhat linux 9, when I try to start the service : it it fails. The following is located in the catalina.out file: : : java.util.zip.ZipException: No such file or directory : at java.util.zip.ZipFile.open(Native Method) : at java.util.zip.ZipFile.init(ZipFile.java:112) : at java.util.jar.JarFile.init(JarFile.java:127) : at java.util.jar.JarFile.init(JarFile.java:65) : at : org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Un know n : Source) Likely a permissions problem in one of the directories mentioned below. This has bitten me before... : Anybody have a clue? I haven't really working with tomcat before, don't know : where to start to look? If it gave the name of a conf file error or the : actual file that was missing that would be a help... Given the class, likely it's one of the Tomcat standard repositories (common/lib or shared/lib) or your webapp's WEB-INF/lib. (This is based on a hunch; I have *not* read the code ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup error
We're running tomcat 4.1 on redhat linux 9, when I try to start the service it it fails. The following is located in the catalina.out file: java.util.zip.ZipException: No such file or directory at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.init(ZipFile.java:112) at java.util.jar.JarFile.init(JarFile.java:127) at java.util.jar.JarFile.init(JarFile.java:65) at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Unknown Source) at org.apache.catalina.loader.StandardClassLoader.init(Unknown Source) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Unknown Source) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) Bootstrap: Class loader creation threw exception java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: No such file or directory at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Unknown Source) at org.apache.catalina.loader.StandardClassLoader.init(Unknown Source) at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Unknown Source) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) Anybody have a clue? I haven't really working with tomcat before, don't know where to start to look? If it gave the name of a conf file error or the actual file that was missing that would be a help... --- Ryan Bohn Sys Admin Tech Support
Re: Tomcat startup error
On Thu, Aug 12, 2004 at 02:30:37PM -0700, Techs wrote: : We're running tomcat 4.1 on redhat linux 9, when I try to start the service : it it fails. The following is located in the catalina.out file: : : java.util.zip.ZipException: No such file or directory : at java.util.zip.ZipFile.open(Native Method) : at java.util.zip.ZipFile.init(ZipFile.java:112) : at java.util.jar.JarFile.init(JarFile.java:127) : at java.util.jar.JarFile.init(JarFile.java:65) : at : org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Unknown : Source) Likely a permissions problem in one of the directories mentioned below. This has bitten me before... : Anybody have a clue? I haven't really working with tomcat before, don't know : where to start to look? If it gave the name of a conf file error or the : actual file that was missing that would be a help... Given the class, likely it's one of the Tomcat standard repositories (common/lib or shared/lib) or your webapp's WEB-INF/lib. (This is based on a hunch; I have *not* read the code ;) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat startup with beans error :-s
what is the problem here ? Jul 29, 2004 3:13:53 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Jul 29, 2004 3:13:53 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3345 ms Jul 29, 2004 3:13:53 PM org.apache.catalina.mbeans.ServerLifecycleListener createMBeans SEVERE: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with DefaultContext at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:326) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:534) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:654) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:596) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:779) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:747) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:365) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:190) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2291) at org.apache.catalina.startup.Catalina.start(Catalina.java:547) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:286) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:387) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
RE: tomcat startup with beans error :-s
Hi, How have you modified server.xml? ;) If you took out the LifecycleListener or MBean declarations, that could cause this error. Yoav Shapira Millennium Research Informatics -Original Message- From: Betto McRose G, [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 3:17 PM To: Tomcat Users List Subject: tomcat startup with beans error :-s what is the problem here ? Jul 29, 2004 3:13:53 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Jul 29, 2004 3:13:53 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3345 ms Jul 29, 2004 3:13:53 PM org.apache.catalina.mbeans.ServerLifecycleListener createMBeans SEVERE: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with DefaultContext at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:326) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:534) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:654) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:596) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:779) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:747) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:365) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Serve rLif ecycleListener.java:190) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:119) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2291) at org.apache.catalina.startup.Catalina.start(Catalina.java:547) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:286) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:387) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269) This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat startup with beans error :-s
yep, I inserted DefaultContext /DefaultContext to define a postgres pool. but I restarted the server having postmaster running before tomcat problem resolve. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Betto McRose G, [EMAIL PROTECTED] Sent: Thursday, July 29, 2004 3:37 PM Subject: RE: tomcat startup with beans error :-s Hi, How have you modified server.xml? ;) If you took out the LifecycleListener or MBean declarations, that could cause this error. Yoav Shapira Millennium Research Informatics -Original Message- From: Betto McRose G, [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 3:17 PM To: Tomcat Users List Subject: tomcat startup with beans error :-s what is the problem here ? Jul 29, 2004 3:13:53 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Jul 29, 2004 3:13:53 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3345 ms Jul 29, 2004 3:13:53 PM org.apache.catalina.mbeans.ServerLifecycleListener createMBeans SEVERE: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with DefaultContext at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:326) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:534) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:654) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:596) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:779) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:747) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerL ifec ycleListener.java:365) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Serve rLif ecycleListener.java:190) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:119) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2291) at org.apache.catalina.startup.Catalina.start(Catalina.java:547) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:286) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:387) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269) This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with tomcat startup script in linux
Content-type: multipart/alternative; boundary=Next_1090005099---0-203.199.83.148-27860 This is a multipart mime message --Next_1090005099---0-203.199.83.148-27860 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline P=0A Hi all,BR=0ABR=0Anbsp; nbsp; nbsp; nbsp; nbsp; I have a pro= blemnbsp; using startup script for tomcat in linux.nbsp; It actually star= ts BR=0Aup when booting up. but then, it says quot; [Failed]nbsp; quot= ; and the reason is BR=0Aquot;JAVA_HOME variable not defined correctly. = This environment variable isnbsp; BR=0Aneccesary for running this progra= m. quot;BR=0ABR=0ABut I have defined the environment variable in my st= artup script. BR=0ABR=0AI am using Tomcat 4.1.18 with j2sdk1.4.1_02 in = redhat linux.BR=0Atomcat directory is /usr/local/jakarta-tomcat-4.1.18 an= d the java directory is /usr/BR=0Ajava/j2sdk1.4.1_02BR=0ABR=0AI place= d the startup scriptnbsp; named tomcatd.shnbsp; innbsp; quot;/etc/rc.d/= init.dquot;BR=0ABR=0AThe following is my startup script.BR=0ABR=0A= #!/bin/bashBR=0A#BR=0A# Startup script for Jakarta TomcatBR=0A#BR= =0A# chkconfig: 345 84 16BR=0A# description: Jakarta Tomcat Java Servlet/= JSP ContainerBR=0ABR=0ABR=0ABR=0ATOMCAT_HOME=3D/usr/local/jakarta-t= omcat-4.1.18BR=0ATOMCAT_START=3D/usr/local/jakarta-tomcat-4.1.18/bin/star= tup.shBR=0ATOMCAT_STOP=3D/usr/local/jakarta-tomcat-4.1.18/bin/shutdown.sh= BR=0ABR=0A#Necessary environment variablesBR=0Aexport CATALINA_HOME= =3D/usr/local/jakarta-tomcat-4.1.18BR=0Aexport JAVA_HOME=3D/usr/java/jdk1= .4.1_02BR=0ABR=0A# Source function library.BR=0A. /etc/rc.d/init.d/fu= nctionsBR=0ABR=0A# Source networking configuration.BR=0A. /etc/syscon= fig/networkBR=0ABR=0A# Check that networking is up.BR=0A[ ${NETWORKIN= G} =3D quot;noquot; ] amp;amp; exit 0BR=0ABR=0A#Check for tomcat sc= riptBR=0Aif [ ! -f $TOMCAT_HOME/bin/catalina.sh ]BR=0AthenBR=0Anbsp;= nbsp; echo quot;Tomcat not available...quot;BR=0Anbsp; nbsp; exitB= R=0AfiBR=0ABR=0Astart() {BR=0Anbsp; nbsp; echo -n quot;Starting T= omcat: quot;BR=0Anbsp; nbsp; daemon $TOMCAT_STARTBR=0Anbsp; nbsp; = echoBR=0Anbsp; nbsp; touch /var/lock/subsys/tomcatdBR=0A# We may need= to sleep here so it will be up for apacheBR=0A#nbsp; nbsp; sleep 5BR= =0A#Instead should check to see if apache is up by looking for http.pidBR= =0A}BR=0ABR=0Astop() {BR=0Anbsp; nbsp; echo -n $quot;Shutting down= Tomcat: quot;BR=0Anbsp; nbsp; daemon $TOMCAT_STOPBR=0Anbsp; nbsp;= rm -f /var/lock/subsys/tomcatd.pidBR=0Anbsp; nbsp; echoBR=0A}BR=0A= BR=0Acase quot;$1quot; inBR=0Anbsp; nbsp; start)BR=0Anbsp; nbsp= ; nbsp; nbsp; startBR=0Anbsp; nbsp; nbsp; nbsp; ;;BR=0Anbsp; nb= sp; stop)BR=0Anbsp; nbsp; nbsp; nbsp; stopBR=0Anbsp; nbsp; nbsp= ; nbsp; ;;BR=0Anbsp; nbsp; restart)BR=0Anbsp; nbsp; nbsp; nbsp;= stopBR=0Anbsp; nbsp; nbsp; nbsp; sleep 3BR=0Anbsp; nbsp; nbsp; = nbsp; startBR=0Anbsp; nbsp; nbsp; nbsp; ;;BR=0Anbsp; nbsp; *)B= R=0Anbsp; nbsp; nbsp; nbsp; echo quot;Usage: tomcatd {start|stop|rest= art}quot;BR=0Anbsp; nbsp; exit 1BR=0AesacBR=0ABR=0ACan anyone h= elp me out?. BR=0ABR=0AThanks in advance,BR=0Akamaleshwaran sivalinga= mBR=0A=0A/P=0Abrbr=0AA target=3D_blank HREF=3Dhttp://clients.re= diff.com/signature/track_sig.aspIMG SRC=3Dhttp://ads.rediff.com/RealMed= ia/ads/adstream_nx.cgi/www.rediffmail.com/[EMAIL PROTECTED] BORDER=3D0 VSPA= CE=3D0 HSPACE=3D0/a=0A --Next_1090005099---0-203.199.83.148-27860 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all,=0A=0A I have a problem using startup script for tomcat i= n linux. It actually starts =0Aup when booting up. but then, it says [Fa= iled] and the reason is =0AJAVA_HOME variable not defined correctly. Th= is environment variable is =0Aneccesary for running this program. =0A=0AB= ut I have defined the environment variable in my startup script. =0A=0AI am= using Tomcat 4.1.18 with j2sdk1.4.1_02 in redhat linux.=0Atomcat directory= is /usr/local/jakarta-tomcat-4.1.18 and the java directory is /usr/=0Ajava= /j2sdk1.4.1_02=0A=0AI placed the startup script named tomcatd.sh in /et= c/rc.d/init.d=0A=0AThe following is my startup script.=0A=0A#!/bin/bash=0A= #=0A# Startup script for Jakarta Tomcat=0A#=0A# chkconfig: 345 84 16=0A# de= scription: Jakarta Tomcat Java Servlet/JSP Container=0A=0A=0A=0ATOMCAT_HOME= =3D/usr/local/jakarta-tomcat-4.1.18=0ATOMCAT_START=3D/usr/local/jakarta-tom= cat-4.1.18/bin/startup.sh=0ATOMCAT_STOP=3D/usr/local/jakarta-tomcat-4.1.18/= bin/shutdown.sh=0A=0A#Necessary environment variables=0Aexport CATALINA_HOM= E=3D/usr/local/jakarta-tomcat-4.1.18=0Aexport JAVA_HOME=3D/usr/java/jdk1.4.= 1_02=0A=0A# Source function library.=0A. /etc/rc.d/init.d/functions=0A=0A# = Source networking configuration.=0A. /etc/sysconfig/network=0A=0A# Check th= at networking is up.=0A[ ${NETWORKING} =3D no ] exit 0=0A=0A#Check for= tomcat script=0Aif [ ! -f
Re: Detecting Sessions already existent at Tomcat Startup?
Hello Mark, you are right, sorry for misinterpreting the spec. What I am now doing is, for each session I set an instance of a custom HttpSessionActivationListener implementation as an attribute. This works, at least if the Listener is implemented as a normal (outer) class. If I implement it as an inner class, Tomcat behaves strangely. It tries to serialize/deserialize the class containing the Listener instead of the Listener itself, which raises an exception because the containing class is not Serializable. Is this normal? Aside from that, wouldn't it be nice of the servlet spec would allow binding HttpSessionActivationListeners to the whole application instead just to an attribute? In my application, it would be much elegant/easier. Maybe I should suggest that to the servlet spec commitee... When I was browsing the Servlet Spec 2.4, I stumbled over another (unrelated) issue. SRV.10.6 states: Some exceptions do not occur under the call stack of another component in the application. An example of this is a SessionListener Doesn't this mean that SessionListener callbacks are never called from another component in the app? This it not true for Tomcat 5.0.19, because I've seen it calling sessionDestroyed when I was calling session.getAttribute() or session.setAttribute(). Could this be a violation of the spec? What do you think? Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Detecting Sessions already existent at Tomcat Startup?
Hello again, I solved the inner class issue. Had to declare the inner class as static. Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Detecting Sessions already existent at Tomcat Startup?
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach Aside from that, wouldn't it be nice of the servlet spec would allow binding HttpSessionActivationListeners to the whole application instead just to an attribute? In my application, it would be much elegant/easier. Maybe I should suggest that to the servlet spec commitee... Go for it. When I was browsing the Servlet Spec 2.4, I stumbled over another (unrelated) issue. SRV.10.6 states: Some exceptions do not occur under the call stack of another component in the application. An example of this is a SessionListener Doesn't this mean that SessionListener callbacks are never called from another component in the app? This it not true for Tomcat 5.0.19, because I've seen it calling sessionDestroyed when I was calling session.getAttribute() or session.setAttribute(). Could this be a violation of the spec? What do you think? No it isn't. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Detecting Sessions already existent at Tomcat Startup?
Hello everyone, when I start up Tomcat and Tomcat activates any sessions from SESSION.ser, shouldn't sessionDidActivate() in a registered HttpSessionActivationListener be called? Or is this listener reserved only for Session migrations between JVMs? In any case, how can I detect a session if it is already existent at the startup of Tomcat? Regards, Andreas p.s. to be more precise, I am using Tomcat 5.0.19 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Detecting Sessions already existent at Tomcat Startup?
spec-quote SRV.15.1.8 HttpSessionActivationListener public interface HttpSessionActivationListener extends java.util.EventListener All Superinterfaces: java.util.EventListener Objects that are bound to a session may listen to container events notifying them that sessions will be passivated and that session will be activated. A container that migrates session between VMs or persists sessions is required to notify all attributes bound to sessions implementing HttpSessionActivationListener. /spec-quote HttpSessionActivationListener is the way to achieve what you are trying to do. Mark -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach Sent: Sunday, April 18, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: Detecting Sessions already existent at Tomcat Startup? Hello everyone, when I start up Tomcat and Tomcat activates any sessions from SESSION.ser, shouldn't sessionDidActivate() in a registered HttpSessionActivationListener be called? Or is this listener reserved only for Session migrations between JVMs? In any case, how can I detect a session if it is already existent at the startup of Tomcat? Regards, Andreas p.s. to be more precise, I am using Tomcat 5.0.19 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Detecting Sessions already existent at Tomcat Startup?
Hello Mark, spec-quote SRV.15.1.8 HttpSessionActivationListener /spec-quote HttpSessionActivationListener is the way to achieve what you are trying to do. Then why doesn't Tomcat 5.0.19 call my registered HttpSessionActivationListener when I shut Tomcat down or start it up again? I know that my sessions are being persisted, because a) I see the my sessions attributes appearing in SESSION.ser and b) I can still access the session after restarting Tomcat if I keep my browser open. Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Detecting Sessions already existent at Tomcat Startup?
Without looking at your source code, no idea. I have just checked the Tomcat source and every attribute that implements HttpSessionActivationListener will have sessionWillPassivate() and sessionDidActivate() called. At the moment it looks like something in your app. Mark -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach Sent: Sunday, April 18, 2004 7:28 PM To: [EMAIL PROTECTED] Subject: Re: Detecting Sessions already existent at Tomcat Startup? Hello Mark, spec-quote SRV.15.1.8 HttpSessionActivationListener /spec-quote HttpSessionActivationListener is the way to achieve what you are trying to do. Then why doesn't Tomcat 5.0.19 call my registered HttpSessionActivationListener when I shut Tomcat down or start it up again? I know that my sessions are being persisted, because a) I see the my sessions attributes appearing in SESSION.ser and b) I can still access the session after restarting Tomcat if I keep my browser open. Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Detecting Sessions already existent at Tomcat Startup?
Mark Thomas wrote: Without looking at your source code, no idea. I have just checked the Tomcat source and every attribute that implements HttpSessionActivationListener will have sessionWillPassivate() and sessionDidActivate() called. I've got a simple class that keeps track of the sessions that are active. See sourcecode below. As you can see, sessions are being added or removed from a set if sessionCreated/sessionDestroyed is called (this part is working). I also want to add all sessions activated at Tomcat startup. This is what sessionDidActive() is implemented for. But neither sessionDidActive() nor sessionWillPassivate() is called. Is there any important information missing? My web.xml includes: listener listener-classmypackage.UserSessions/listener-class /listener Regards, Andreas public class UserSessions implements HttpSessionListener, HttpSessionActivationListener { private static final Set sessions = new HashSet(); public void sessionCreated(HttpSessionEvent sessionEvent) { HttpSession session = sessionEvent.getSession(); synchronized(sessions) { sessions.add(session); } } public void sessionDestroyed(HttpSessionEvent sessionEvent) { HttpSession session = sessionEvent.getSession(); synchronized(sessions) { sessions.remove(session); } } public void sessionDidActivate(HttpSessionEvent sessionEvent) { System.out.println(sessionDidActivate() called); HttpSession session = sessionEvent.getSession(); synchronized(sessions) { sessions.add(session); } } public void sessionWillPassivate(HttpSessionEvent arg0) { System.out.println(sessionWillPassivate() called); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Detecting Sessions already existent at Tomcat Startup?
Andreas, I believe you have misinterpreted the spec. Having re-read the relevant parts of the spec (SRV.10.2, SRV.15.1.7 SRV.15.1.8) HttpSessionActivationListener applies to session attributes. Although HttpSessionActivationListener's inclusion in table SRV.10-1 could suggest otherwise, section SRV.10.2 also states that SRV.14 and SRV.15 should be referred to for the details of the API. SRV.15 clearly states that HttpSessionActivationListener is for session attributes. The Tomcat team has interpreted the spec as described above and after re-reading it several times my own view is that this is the correct interpretation. Mark From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach I've got a simple class that keeps track of the sessions that are active. See sourcecode below. As you can see, sessions are being added or removed from a set if sessionCreated/sessionDestroyed is called (this part is working). I also want to add all sessions activated at Tomcat startup. This is what sessionDidActive() is implemented for. But neither sessionDidActive() nor sessionWillPassivate() is called. Is there any important information missing? My web.xml includes: listener listener-classmypackage.UserSessions/listener-class /listener - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Modifying tomcat startup options on Tomcat 5 with Windows .exe
b) Yes, but the service startup tomcat //UK//Tomcat5 cannot be changed in the service properties. Furthermore, if the service does not use catalina.bat, how am I suppoed to change the JAVA_OPTS parameter for things like profiling the JVM? Cheers!! -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: 10 January 2004 04:48 To: [EMAIL PROTECTED] Subject: Re: Modifying tomcat startup options on Tomcat 5 with Windows .exe a) No. b) Well, if it is working perfectly, then 'tomcat //US//Tomcat5 -security' should work. A very quick look at the code suggests that it should, but I haven't actually tried it. Allistair Crossley [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have the windows version of Tomcat 5 installed and am using the windows service. I need to add the -security option to the startup. I notice that catalina.bat is still there but a) does the tomcat.exe use catalina.bat's config? b) how do I make the tomcat.exe service use -security? Cheers, ADC FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Modifying tomcat startup options on Tomcat 5 with Windows .exe
Hi, I have the windows version of Tomcat 5 installed and am using the windows service. I need to add the -security option to the startup. I notice that catalina.bat is still there but a) does the tomcat.exe use catalina.bat's config? b) how do I make the tomcat.exe service use -security? Cheers, ADC FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT
Re: Modifying tomcat startup options on Tomcat 5 with Windows .exe
Just open the windows services application and select the tomcat service from the list. Click poperties and set the parameters you want in the box provided. (I think) Andrew Waters. Allistair Crossley wrote: Hi, I have the windows version of Tomcat 5 installed and am using the windows service. I need to add the -security option to the startup. I notice that catalina.bat is still there but a) does the tomcat.exe use catalina.bat's config? b) how do I make the tomcat.exe service use -security? Cheers, ADC FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Modifying tomcat startup options on Tomcat 5 with Windows .exe
Nope, all that is there is name, description and an uneditable path to exe set as d:\Tomcat 5.0\bin\tomcat.exe //RS//Tomcat5 That's it. There is a Tomcat COnfiguration utility that comes with it but you can only set the JVM params, not Tomcat's. -Original Message- From: Andrew Waters [mailto:[EMAIL PROTECTED] Sent: 09 January 2004 12:28 To: [EMAIL PROTECTED] Subject: Re: Modifying tomcat startup options on Tomcat 5 with Windows .exe Just open the windows services application and select the tomcat service from the list. Click poperties and set the parameters you want in the box provided. (I think) Andrew Waters. Allistair Crossley wrote: Hi, I have the windows version of Tomcat 5 installed and am using the windows service. I need to add the -security option to the startup. I notice that catalina.bat is still there but a) does the tomcat.exe use catalina.bat's config? b) how do I make the tomcat.exe service use -security? Cheers, ADC FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Modifying tomcat startup options on Tomcat 5 with Windows .exe
a) No. b) Well, if it is working perfectly, then 'tomcat //US//Tomcat5 -security' should work. A very quick look at the code suggests that it should, but I haven't actually tried it. Allistair Crossley [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have the windows version of Tomcat 5 installed and am using the windows service. I need to add the -security option to the startup. I notice that catalina.bat is still there but a) does the tomcat.exe use catalina.bat's config? b) how do I make the tomcat.exe service use -security? Cheers, ADC FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat startup script
I'm ashamed to admit that I know this, but, for Win9x you need to increase the settings for enviroment space. tim [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am also looking for the script. I have put it in once via system properties on a w2000 machine that had a box to enter it into. But on W98 I am not apt at editing the tomcat.bat file here it is. I do not know what to type. @echo off rem - rem tomcat.bat - Start/Stop Script for the TOMCAT Server rem rem Environment Variable Prerequisites: rem rem TOMCAT_HOME (Optional) May point at your Tomcat distribution remdirectory. If not present, the current working remdirectory is assumed. remNote: This batch file does not function properly remif TOMCAT_HOME contains spaces. rem rem TOMCAT_OPTS (Optional) Java runtime options used when the start, remstop, or run command is executed rem rem CLASSPATH(Optional) This batch file will automatically add remwhat Tomcat needs to the CLASSPATH. This consists remof TOMCAT_HOME\classes and all the jar files in remTOMCAT_HOME\lib. This will include the jaxp.jar remand parser.jar files from the JAXP Reference remimplementation, and the tools.jar from the JDK. rem rem JAVA_HOMEMust point at your Java Development Kit installation. rem rem $Id: tomcat.bat,v 1.24.2.7 2001/06/24 19:27:10 marcsaeg Exp $ rem - rem - Save Environment Variables That May Change set _CP=%CP% set _TOMCAT_HOME=%TOMCAT_HOME% set _CLASSPATH=%CLASSPATH% rem - Verify and Set Required Environment Variables - if not %JAVA_HOME% == goto gotJavaHome echo You must set JAVA_HOME to point at your Java Development Kit installation goto cleanup :gotJavaHome if not %TOMCAT_HOME% == goto gotTomcatHome set TOMCAT_HOME=. :gotTomcatHome if exist %TOMCAT_HOME%\lib\servlet.jar goto okTomcatHome echo Unable to locate servlet.jar, check the value of TOMCAT_HOME. goto cleanup :okTomcatHome rem - Prepare Appropriate Java Execution Commands --- if not %OS% == Windows_NT goto noTitle set _SECSTARTJAVA=start Secure Tomcat 3.2 %JAVA_HOME%\bin\java set _STARTJAVA=start Tomcat 3.2 %JAVA_HOME%\bin\java set _RUNJAVA=%JAVA_HOME%\bin\java goto setClasspath :noTitle set _SECSTARTJAVA=start %JAVA_HOME%\bin\java set _STARTJAVA=start %JAVA_HOME%\bin\java set _RUNJAVA=%JAVA_HOME%\bin\java rem - Set Up The Runtime Classpath -- :setClasspath set CP=%TOMCAT_HOME%\classes rem Try to determine if TOMCAT_HOME contains spaces if exist %TOMCAT_HOME%\lib\servlet.jar goto dynClasspath echo Your TOMCAT_HOME appears to contain spaces. echo Unable to set CLASSPATH dynamically. goto staticClasspath :dynClasspath set _LIBJARS= for %%i in (%TOMCAT_HOME%\lib\*.*) do call %TOMCAT_HOME%\bin\cpappend.bat %%i if not %_LIBJARS% == goto gotLibJars echo Unable to set CLASSPATH dynamically. if %OS% == Windows_NT goto staticClasspath echo Note: To set the CLASSPATH dynamically on Win9x systems echo only DOS 8.3 names may be used in TOMCAT_HOME! goto staticClasspath :gotLibJars echo Including all jars in %TOMCAT_HOME%\lib in your CLASSPATH. rem Note: _LIBJARS already contains a leading semicolon set CP=%CP%%_LIBJARS% goto chkClasspath :staticClasspath echo Setting your CLASSPATH statically. if exist %TOMCAT_HOME%\lib\ant.jar set CP=%CP%;%TOMCAT_HOME%\lib\ant.jar if exist %TOMCAT_HOME%\lib\jasper.jar set CP=%CP%;%TOMCAT_HOME%\lib\jasper.jar if exist %TOMCAT_HOME%\lib\jaxp.jar set CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar if exist %TOMCAT_HOME%\lib\parser.jar set CP=%CP%;%TOMCAT_HOME%\lib\parser.jar if exist %TOMCAT_HOME%\lib\servlet.jar set CP=%CP%;%TOMCAT_HOME%\lib\servlet.jar if exist %TOMCAT_HOME%\lib\webserver.jar set CP=%CP%;%TOMCAT_HOME%\lib\webserver.jar :chkClasspath if %CLASSPATH% == goto noClasspath set CP=%CP%;%CLASSPATH% :noClasspath if not exist %JAVA_HOME%\lib\tools.jar goto installClasspath set CP=%CP%;%JAVA_HOME%\lib\tools.jar :installClasspath echo. echo Using CLASSPATH: %CP% echo. set CLASSPATH=%CP% rem - Execute The Requested Command - if %1 == start goto startServer if %1 == stop goto stopServer if %1 == run goto runServer if %1 == ant goto runAnt if %1 == env goto doEnv if %1 == jspc goto runJspc :doUsage echo Usage: tomcat ( ant ^| env ^| jspc ^| run ^| start ^| stop ) echo Commands: echo ant - Run Ant in Tomcat's environment echo env - Set up environment variables that Tomcat would use echo jspc - Run JSPC in Tomcat's environment echo run - Start Tomcat in the current window
Re: RUNNING Tomcat startup script, AND/OR TOMCAT.BAT
Hello I am not getting it when it comes to the tomcat.bat file.Windows 98 In the file I have this. set _CP=%CP% set _TOMCAT_HOME=C:\Tomcat I do not know what to type in to replace the following line. set _CLASSPATH=%CLASSPATH% I cannot help you with that - hopefully someone else will. in the autoexec.bat file I have this for java PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3.1_06\BIN; SET PATH=C:\jdk1.3.1_06;C:\jdk1.3.1_06\BIN;%PATH% SET CLASSPATH=.;C:\jdk1.3.1_06\lib\tools.jar;C:\jdk1.3.1_06\jre\lib\ext\servlet.ja r;%CLASSPATH% path=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\;c:\dos;c:\ltc;c:\kronos;c:\kronos\kcc set JAVA_HOME=C:\jdk1.3.1_06 Your PATH need only point to $JAVA_HOME\bin - in addition to all the other windows-specific items (!) I would keep just the LAST 'path=C:\WINDOWS;...' item above (the penultimate line) as it is (deleting the 'path=' and 'set path=' items before it). Then AFTER that 'path=C:\WINDOWS;...' line I would add: SET PATH=%PATH%;C:\jdk1.3.1_06\bin; Assuming the 'C:\jdk1.3.1_06\bin' reference to be a valid one, of course :-) As for the classpath, you should return the 'servlet.jar' to the '$CATALINA_HOME\common\lib' directory, or at least remove it from the Java extensions folder if you had previously made a copy of it. Keeping it in the Java extensions folder is a recipe for trouble in my experience (!) Then your classpath variable should include the current directory reference (the dot) and a reference to '$CATALINA_HOME\common\lib\servlet.jar' so that you can compile your servlets. Try this: SET CLASSPATH=.;%CATALINA_HOME%\common\lib\servlet.jar The $JAVA_HOME variables looks okay, BTW. The error that I receive i Out of environment space... Just google: windows 98 environment space tomcat (all in one query) and you will see a JGuru posting that should help you. It is an MS-DOS Prompt issue - you need to allocate a little bit more memory to DOS. Good luck! Harry Mantheakis London, UK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat startup script
On Friday 14 November 2003 07:21 am, you wrote: I'm looking for a startup script for Tomcat for starting it at system boot. Thanks! Roberto. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] #!/bin/sh # . /etc/rc.d/init.d/functions TOMCAT_USER=nobody # See how we were called. case $1 in start) echo -n Starting tomcat: su -l $TOMCAT_USER -c '/usr/local/tomcat/bin/startup.sh' echo ;; stop) echo -n Stopping tomcat: su -l $TOMCAT_USER -c '/usr/local/tomcat/bin/shutdown.sh' echo ;; restart) $0 stop $0 start ;; *) echo Usage: $0 {start|stop|restart} exit 1 esac exit 0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat startup script
Robert, try this page http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html Roberto Bottoni - AfterBit (TMP) [EMAIL PROTECTED] wrote: I'm looking for a startup script for Tomcat for starting it at system boot. Thanks! Roberto. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
Tomcat startup script
I'm looking for a startup script for Tomcat for starting it at system boot. Thanks! Roberto. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat startup script
From http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links look at the last link. I think it talks about a startup script. -Tim Roberto Bottoni - AfterBit (TMP) wrote: I'm looking for a startup script for Tomcat for starting it at system boot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat startup script
I am also looking for the script. I have put it in once via system properties on a w2000 machine that had a box to enter it into. But on W98 I am not apt at editing the tomcat.bat file here it is. I do not know what to type. @echo off rem - rem tomcat.bat - Start/Stop Script for the TOMCAT Server rem rem Environment Variable Prerequisites: rem rem TOMCAT_HOME (Optional) May point at your Tomcat distribution remdirectory. If not present, the current working remdirectory is assumed. remNote: This batch file does not function properly remif TOMCAT_HOME contains spaces. rem rem TOMCAT_OPTS (Optional) Java runtime options used when the start, remstop, or run command is executed rem rem CLASSPATH(Optional) This batch file will automatically add remwhat Tomcat needs to the CLASSPATH. This consists remof TOMCAT_HOME\classes and all the jar files in remTOMCAT_HOME\lib. This will include the jaxp.jar remand parser.jar files from the JAXP Reference remimplementation, and the tools.jar from the JDK. rem rem JAVA_HOMEMust point at your Java Development Kit installation. rem rem $Id: tomcat.bat,v 1.24.2.7 2001/06/24 19:27:10 marcsaeg Exp $ rem - rem - Save Environment Variables That May Change set _CP=%CP% set _TOMCAT_HOME=%TOMCAT_HOME% set _CLASSPATH=%CLASSPATH% rem - Verify and Set Required Environment Variables - if not %JAVA_HOME% == goto gotJavaHome echo You must set JAVA_HOME to point at your Java Development Kit installation goto cleanup :gotJavaHome if not %TOMCAT_HOME% == goto gotTomcatHome set TOMCAT_HOME=. :gotTomcatHome if exist %TOMCAT_HOME%\lib\servlet.jar goto okTomcatHome echo Unable to locate servlet.jar, check the value of TOMCAT_HOME. goto cleanup :okTomcatHome rem - Prepare Appropriate Java Execution Commands --- if not %OS% == Windows_NT goto noTitle set _SECSTARTJAVA=start Secure Tomcat 3.2 %JAVA_HOME%\bin\java set _STARTJAVA=start Tomcat 3.2 %JAVA_HOME%\bin\java set _RUNJAVA=%JAVA_HOME%\bin\java goto setClasspath :noTitle set _SECSTARTJAVA=start %JAVA_HOME%\bin\java set _STARTJAVA=start %JAVA_HOME%\bin\java set _RUNJAVA=%JAVA_HOME%\bin\java rem - Set Up The Runtime Classpath -- :setClasspath set CP=%TOMCAT_HOME%\classes rem Try to determine if TOMCAT_HOME contains spaces if exist %TOMCAT_HOME%\lib\servlet.jar goto dynClasspath echo Your TOMCAT_HOME appears to contain spaces. echo Unable to set CLASSPATH dynamically. goto staticClasspath :dynClasspath set _LIBJARS= for %%i in (%TOMCAT_HOME%\lib\*.*) do call %TOMCAT_HOME%\bin\cpappend.bat %%i if not %_LIBJARS% == goto gotLibJars echo Unable to set CLASSPATH dynamically. if %OS% == Windows_NT goto staticClasspath echo Note: To set the CLASSPATH dynamically on Win9x systems echo only DOS 8.3 names may be used in TOMCAT_HOME! goto staticClasspath :gotLibJars echo Including all jars in %TOMCAT_HOME%\lib in your CLASSPATH. rem Note: _LIBJARS already contains a leading semicolon set CP=%CP%%_LIBJARS% goto chkClasspath :staticClasspath echo Setting your CLASSPATH statically. if exist %TOMCAT_HOME%\lib\ant.jar set CP=%CP%;%TOMCAT_HOME%\lib\ant.jar if exist %TOMCAT_HOME%\lib\jasper.jar set CP=%CP%;%TOMCAT_HOME%\lib\jasper.jar if exist %TOMCAT_HOME%\lib\jaxp.jar set CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar if exist %TOMCAT_HOME%\lib\parser.jar set CP=%CP%;%TOMCAT_HOME%\lib\parser.jar if exist %TOMCAT_HOME%\lib\servlet.jar set CP=%CP%;%TOMCAT_HOME%\lib\servlet.jar if exist %TOMCAT_HOME%\lib\webserver.jar set CP=%CP%;%TOMCAT_HOME%\lib\webserver.jar :chkClasspath if %CLASSPATH% == goto noClasspath set CP=%CP%;%CLASSPATH% :noClasspath if not exist %JAVA_HOME%\lib\tools.jar goto installClasspath set CP=%CP%;%JAVA_HOME%\lib\tools.jar :installClasspath echo. echo Using CLASSPATH: %CP% echo. set CLASSPATH=%CP% rem - Execute The Requested Command - if %1 == start goto startServer if %1 == stop goto stopServer if %1 == run goto runServer if %1 == ant goto runAnt if %1 == env goto doEnv if %1 == jspc goto runJspc :doUsage echo Usage: tomcat ( ant ^| env ^| jspc ^| run ^| start ^| stop ) echo Commands: echo ant - Run Ant in Tomcat's environment echo env - Set up environment variables that Tomcat would use echo jspc - Run JSPC in Tomcat's environment echo run - Start Tomcat in the current window echo start - Start Tomcat in a separate window echo stop - Stop Tomcat goto cleanup :doEnv goto finish :startServer echo Starting Tomcat in new window if %2 == -security goto startSecure %_STARTJAVA% %TOMCAT_OPTS% -Dtomcat.home=%TOMCAT_HOME% org.apache.tomcat.startup.Tomcat
RUNNING Tomcat startup script, AND/OR TOMCAT.BAT
I am not getting it when it comes to the tomcat.bat file.Windows 98 In the file I have this. set _CP=%CP% set _TOMCAT_HOME=C:\Tomcat I do not know what to type in to replace the following line. set _CLASSPATH=%CLASSPATH% in the autoexec.bat file I have this for java PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3.1_06\BIN; SET PATH=C:\jdk1.3.1_06;C:\jdk1.3.1_06\BIN;%PATH% SET CLASSPATH=.;C:\jdk1.3.1_06\lib\tools.jar;C:\jdk1.3.1_06\jre\lib\ext\servlet.jar;%CLASSPATH% path=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\;c:\dos;c:\ltc;c:\kronos;c:\kronos\kcc set JAVA_HOME=C:\jdk1.3.1_06 The error that I receive i Out of environment space... Unable to set ClassPath dynamically Using CLASSPATH: c:\Tomcat\classes (however I never set up a classes folder, do I need to) What do I need. I have already moved servlet.jar to the jre folder under java folder tim [EMAIL PROTECTED] wrote: I am also looking for the script. I have put it in once via system properties on a w2000 machine that had a box to enter it into. But on W98 I am not apt at editing the tomcat.bat file here it is. I do not know what to type. @echo off rem - rem tomcat.bat - Start/Stop Script for the TOMCAT Server rem rem Environment Variable Prerequisites: rem rem TOMCAT_HOME (Optional) May point at your Tomcat distribution rem directory. If not present, the current working rem directory is assumed. rem Note: This batch file does not function properly rem if TOMCAT_HOME contains spaces. rem rem TOMCAT_OPTS (Optional) Java runtime options used when the start, rem stop, or run command is executed rem rem CLASSPATH (Optional) This batch file will automatically add rem what Tomcat needs to the CLASSPATH. This consists rem of TOMCAT_HOME\classes and all the jar files in rem TOMCAT_HOME\lib. This will include the jaxp.jar rem and parser.jar files from the JAXP Reference rem implementation, and the tools.jar from the JDK. rem rem JAVA_HOME Must point at your Java Development Kit installation. rem rem $Id: tomcat.bat,v 1.24.2.7 2001/06/24 19:27:10 marcsaeg Exp $ rem - rem - Save Environment Variables That May Change set _CP=%CP% set _TOMCAT_HOME=%TOMCAT_HOME% set _CLASSPATH=%CLASSPATH% rem - Verify and Set Required Environment Variables - if not %JAVA_HOME% == goto gotJavaHome echo You must set JAVA_HOME to point at your Java Development Kit installation goto cleanup :gotJavaHome if not %TOMCAT_HOME% == goto gotTomcatHome set TOMCAT_HOME=. :gotTomcatHome if exist %TOMCAT_HOME%\lib\servlet.jar goto okTomcatHome echo Unable to locate servlet.jar, check the value of TOMCAT_HOME. goto cleanup :okTomcatHome rem - Prepare Appropriate Java Execution Commands --- if not %OS% == Windows_NT goto noTitle set _SECSTARTJAVA=start Secure Tomcat 3.2 %JAVA_HOME%\bin\java set _STARTJAVA=start Tomcat 3.2 %JAVA_HOME%\bin\java set _RUNJAVA=%JAVA_HOME%\bin\java goto setClasspath :noTitle set _SECSTARTJAVA=start %JAVA_HOME%\bin\java set _STARTJAVA=start %JAVA_HOME%\bin\java set _RUNJAVA=%JAVA_HOME%\bin\java rem - Set Up The Runtime Classpath -- :setClasspath set CP=%TOMCAT_HOME%\classes rem Try to determine if TOMCAT_HOME contains spaces if exist %TOMCAT_HOME%\lib\servlet.jar goto dynClasspath echo Your TOMCAT_HOME appears to contain spaces. echo Unable to set CLASSPATH dynamically. goto staticClasspath :dynClasspath set _LIBJARS= for %%i in (%TOMCAT_HOME%\lib\*.*) do call %TOMCAT_HOME%\bin\cpappend.bat %%i if not %_LIBJARS% == goto gotLibJars echo Unable to set CLASSPATH dynamically. if %OS% == Windows_NT goto staticClasspath echo Note: To set the CLASSPATH dynamically on Win9x systems echo only DOS 8.3 names may be used in TOMCAT_HOME! goto staticClasspath :gotLibJars echo Including all jars in %TOMCAT_HOME%\lib in your CLASSPATH. rem Note: _LIBJARS already contains a leading semicolon set CP=%CP%%_LIBJARS% goto chkClasspath :staticClasspath echo Setting your CLASSPATH statically. if exist %TOMCAT_HOME%\lib\ant.jar set CP=%CP%;%TOMCAT_HOME%\lib\ant.jar if exist %TOMCAT_HOME%\lib\jasper.jar set CP=%CP%;%TOMCAT_HOME%\lib\jasper.jar if exist %TOMCAT_HOME%\lib\jaxp.jar set CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar if exist %TOMCAT_HOME%\lib\parser.jar set CP=%CP%;%TOMCAT_HOME%\lib\parser.jar if exist %TOMCAT_HOME%\lib\servlet.jar set CP=%CP%;%TOMCAT_HOME%\lib\servlet.jar if exist %TOMCAT_HOME%\lib\webserver.jar set CP=%CP%;%TOMCAT_HOME%\lib\webserver.jar :chkClasspath if %CLASSPATH% == goto noClasspath set CP=%CP%;%CLASSPATH% :noClasspath if not exist %JAVA_HOME%\lib\tools.jar goto installClasspath set CP=%CP%;%JAVA_HOME%\lib\tools.jar :installClasspath echo. echo Using CLASSPATH: %CP% echo. set CLASSPATH=%CP% rem - Execute The Requested Command - if %1 == start goto startServer if %1 ==
RE: better error messages (was re: Exception at Tomcat startup)
What kind of code? =) Like when they happen? I could try to gather some of it. One is: when you e.g. have web xml entries in the wrong order. Then it will say the correct syntax is ... (it's not even very clear it's the order it is compliaining on) and error has been caught on line .. Which is actually just the last line of the web.xml. Now if you have several web.xmls that will be the clue to which one of them it is. other than that you will have to check every aspect of the file to correct the error. 2: another is mentioned by others, the blank space error 3: it should also check what jvm it runs on and warn if its wrong version before crashing. 4: this is a nice one I get recently: (complaining about docBase? solution unpack the war manually) C:\Servers\jakarta-tomcat-5.0.14\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: c:\Java\j2sdk1.4.0_01 2003-nov-11 11:38:03 org.apache.commons.digester.Digester startElement ALLVARLIG: Begin event threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1476) at java.lang.String.substring(String.java:1443) at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:196) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown So urce) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:514) at org.apache.catalina.startup.Catalina.load(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) Catalina.start: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown So urce) etc etc etc... regards, anton -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: den 10 november 2003 15:33 To: Tomcat Users List Subject: RE: better error messages (was re: Exception at Tomcat startup) Howdy, But tomcat should really try to do something about its exceptions. Care to contribute some code? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: better error messages (was re: Exception at Tomcat startup)
Howdy, What kind of code? =) Like when they happen? I could try to gather some of it. No, actual patches to tomcat: look at the tomcat source, figure out where the error messages you dislike are coming from, and modify the code to make the error messages better. Yoav Shapira One is: when you e.g. have web xml entries in the wrong order. Then it will say the correct syntax is ... (it's not even very clear it's the order it is compliaining on) and error has been caught on line .. Which is actually just the last line of the web.xml. Now if you have several web.xmls that will be the clue to which one of them it is. other than that you will have to check every aspect of the file to correct the error. 2: another is mentioned by others, the blank space error 3: it should also check what jvm it runs on and warn if its wrong version before crashing. 4: this is a nice one I get recently: (complaining about docBase? solution unpack the war manually) C:\Servers\jakarta-tomcat-5.0.14\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME: c:\Java\j2sdk1.4.0_01 2003-nov-11 11:38:03 org.apache.commons.digester.Digester startElement ALLVARLIG: Begin event threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1476) at java.lang.String.substring(String.java:1443) at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:19 6) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( Unkn o wn Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spat c her.dispatch(Unknown So urce) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:514) at org.apache.catalina.startup.Catalina.load(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396) Catalina.start: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at org.apache.commons.digester.Digester.createSAXException(Digester.java:2 540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2 566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement( Unkn o wn Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spat c her.dispatch(Unknown So urce) etc etc etc... regards, anton -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: den 10 november 2003 15:33 To: Tomcat Users List Subject: RE: better error messages (was re: Exception at Tomcat startup) Howdy, But tomcat should really try to do something about its exceptions. Care to contribute some code? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom
better error messages (was re: Exception at Tomcat startup)
But tomcat should really try to do something about its exceptions. the error messages if existent at all besides merely an exception, leave lots to wish for. Especially the xml parsers that not even say what xml file is being parsed (like ok its probably a web.xml but which one?), let alone where in there the problem is. I would say it's a blocker for next stable release! :p *my opinion* -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: den 8 november 2003 02:26 To: 'Tomcat Users List' Subject: RE: Exception at Tomcat startup Het there You may want to have a look at this line in your web.xml: Child name 'ControlSer vlet' is not unique It seems that is should say ControlServlet and not ControlSer vlet Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Rishikesh Tembe [mailto:[EMAIL PROTECTED] :: Sent: Saturday, November 08, 2003 3:09 AM :: To: [EMAIL PROTECTED] :: Subject: Exception at Tomcat startup :: :: Hi experts, :: :: This is the display I get when I start up Tomcat v4.1.27. As you can see :: an InvocationTargetException gets thrown. I did not make any changes :: anywhere. What could be the cause? :: Is this a known bug? I couldn't find a similar bug in BugZilla... :: :: --- :: Nov 7, 2003 4:51:28 PM org.apache.commons.modeler.Registry loadRegistry :: INFO: Loading registry information :: Nov 7, 2003 4:51:29 PM org.apache.commons.modeler.Registry getRegistry :: INFO: Creating new Registry instance :: Nov 7, 2003 4:51:30 PM org.apache.commons.modeler.Registry getServer :: INFO: Creating MBeanServer :: Nov 7, 2003 4:51:32 PM org.apache.coyote.http11.Http11Protocol init :: INFO: Initializing Coyote HTTP/1.1 on port 8080 :: Starting service Tomcat-Standalone :: Apache Tomcat/4.1.27 :: Nov 7, 2003 4:51:35 PM org.apache.commons.digester.Digester endElement :: SEVERE: End event threw exception :: java.lang.reflect.InvocationTargetException :: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) :: at :: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. :: java:39) :: at :: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces :: sorImpl.java:25) :: at java.lang.reflect.Method.invoke(Method.java:324) :: at :: org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav :: a:252) :: at :: org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) :: at org.apache.commons.digester.Rule.end(Rule.java:276) :: at :: org.apache.commons.digester.Digester.endElement(Digester.java:1058) :: at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown :: Source :: ) :: at :: org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown :: Source) :: at :: org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown :: S :: ource) :: at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown :: Source) :: :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( :: Unknown Source) :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent :: Dispatcher.dispatch(Unknown Source) :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un :: known Source) :: at org.apache.xerces.parsers.XML11Configuration.parse(Unknown :: Source) :: at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown :: Source) :: at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) :: at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown :: Source) :: at org.apache.commons.digester.Digester.parse(Digester.java:1548) :: at :: org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo :: nfig.java:282) :: at :: org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 :: 9) :: at :: org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi :: g.java:243) :: at :: org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl :: eSupport.java:166) :: at :: org.apache.catalina.core.StandardContext.start(StandardContext.java:3 :: 568) :: at :: org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) :: :: at :: org.apache.catalina.core.StandardHost.start(StandardHost.java:738
RE: better error messages (was re: Exception at Tomcat startup)
Howdy, But tomcat should really try to do something about its exceptions. Care to contribute some code? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: better error messages (was re: Exception at Tomcat startup)
Anton, I totally agree. Somehow a blank line found it's way into the top of one of my config files and I had to waste a lot of time trying to figure out the problem. Meanwhile Tomcat would not start and the system was down. The problem gets worse if you have multiple web applications. Chuck -Original Message- From: Anton Modaresi [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 12:58 AM To: 'Tomcat Users List' Subject: better error messages (was re: Exception at Tomcat startup) But tomcat should really try to do something about its exceptions. the error messages if existent at all besides merely an exception, leave lots to wish for. Especially the xml parsers that not even say what xml file is being parsed (like ok its probably a web.xml but which one?), let alone where in there the problem is. I would say it's a blocker for next stable release! :p *my opinion* -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: den 8 november 2003 02:26 To: 'Tomcat Users List' Subject: RE: Exception at Tomcat startup Het there You may want to have a look at this line in your web.xml: Child name 'ControlSer vlet' is not unique It seems that is should say ControlServlet and not ControlSer vlet Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Rishikesh Tembe [mailto:[EMAIL PROTECTED] :: Sent: Saturday, November 08, 2003 3:09 AM :: To: [EMAIL PROTECTED] :: Subject: Exception at Tomcat startup :: :: Hi experts, :: :: This is the display I get when I start up Tomcat v4.1.27. As you can see :: an InvocationTargetException gets thrown. I did not make any changes :: anywhere. What could be the cause? :: Is this a known bug? I couldn't find a similar bug in BugZilla... :: :: --- :: Nov 7, 2003 4:51:28 PM org.apache.commons.modeler.Registry loadRegistry :: INFO: Loading registry information :: Nov 7, 2003 4:51:29 PM org.apache.commons.modeler.Registry getRegistry :: INFO: Creating new Registry instance :: Nov 7, 2003 4:51:30 PM org.apache.commons.modeler.Registry getServer :: INFO: Creating MBeanServer :: Nov 7, 2003 4:51:32 PM org.apache.coyote.http11.Http11Protocol init :: INFO: Initializing Coyote HTTP/1.1 on port 8080 :: Starting service Tomcat-Standalone :: Apache Tomcat/4.1.27 :: Nov 7, 2003 4:51:35 PM org.apache.commons.digester.Digester endElement :: SEVERE: End event threw exception :: java.lang.reflect.InvocationTargetException :: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) :: at :: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. :: java:39) :: at :: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces :: sorImpl.java:25) :: at java.lang.reflect.Method.invoke(Method.java:324) :: at :: org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav :: a:252) :: at :: org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) :: at org.apache.commons.digester.Rule.end(Rule.java:276) :: at :: org.apache.commons.digester.Digester.endElement(Digester.java:1058) :: at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown :: Source :: ) :: at :: org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown :: Source) :: at :: org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown :: S :: ource) :: at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown :: Source) :: :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( :: Unknown Source) :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent :: Dispatcher.dispatch(Unknown Source) :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un :: known Source) :: at org.apache.xerces.parsers.XML11Configuration.parse(Unknown :: Source) :: at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown :: Source) :: at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) :: at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown :: Source) :: at org.apache.commons.digester.Digester.parse(Digester.java:1548) :: at :: org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo :: nfig.java:282) :: at :: org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 :: 9
Tomcat -- startup question
Hi: Anyone know why do I get this error during startup? D:\Tomcat 4.1\bincatalina run Press any key to continue . . . ... from setclasspath.bat ... Using CATALINA_BASE: D:\Tomcat 4.1\ Using CATALINA_HOME: D:\Tomcat 4.1\ Using CATALINA_TMPDIR: D:\Tomcat 4.1\\temp Using JAVA_HOME: d:\jdk1.4 Exception in thread main java.lang.NoClassDefFoundError: 4/1 Press any key to continue . . . ... from catalina.bat ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat -- startup question
Avoid putting space in the installation folder or define catalina home using quote. Use D:\Tomcat4.1 instead (less pain) -- Jeanfrancois Gopalakrishnan. Govindakrishnan wrote: Hi: Anyone know why do I get this error during startup? D:\Tomcat 4.1\bincatalina run Press any key to continue . . . ... from setclasspath.bat ... Using CATALINA_BASE: D:\Tomcat 4.1\ Using CATALINA_HOME: D:\Tomcat 4.1\ Using CATALINA_TMPDIR: D:\Tomcat 4.1\\temp Using JAVA_HOME: d:\jdk1.4 Exception in thread main java.lang.NoClassDefFoundError: 4/1 Press any key to continue . . . ... from catalina.bat ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception at Tomcat startup
Hi experts, This is the display I get when I start up Tomcat v4.1.27. As you can see an InvocationTargetException gets thrown. I did not make any changes anywhere. What could be the cause? Is this a known bug? I couldn't find a similar bug in BugZilla... --- Nov 7, 2003 4:51:28 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Nov 7, 2003 4:51:29 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Nov 7, 2003 4:51:30 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Nov 7, 2003 4:51:32 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Nov 7, 2003 4:51:35 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav a:252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S ource) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo nfig.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 9) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 568) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 97) at org.apache.catalina.core.StandardServer.start(StandardServer.java:219 0) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.IllegalArgumentException: addChild: Child name 'ControlSer vlet' is not unique at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:815) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardContext.addChild(StandardContext.jav a:1340) ... 39 more Nov 7, 2003 4:51:37 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e Nov 7, 2003 4:51:37 PM
RE: Exception at Tomcat startup
Het there You may want to have a look at this line in your web.xml: Child name 'ControlSer vlet' is not unique It seems that is should say ControlServlet and not ControlSer vlet Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. :: -Original Message- :: From: Rishikesh Tembe [mailto:[EMAIL PROTECTED] :: Sent: Saturday, November 08, 2003 3:09 AM :: To: [EMAIL PROTECTED] :: Subject: Exception at Tomcat startup :: :: Hi experts, :: :: This is the display I get when I start up Tomcat v4.1.27. As you can see :: an InvocationTargetException gets thrown. I did not make any changes :: anywhere. What could be the cause? :: Is this a known bug? I couldn't find a similar bug in BugZilla... :: :: --- :: Nov 7, 2003 4:51:28 PM org.apache.commons.modeler.Registry loadRegistry :: INFO: Loading registry information :: Nov 7, 2003 4:51:29 PM org.apache.commons.modeler.Registry getRegistry :: INFO: Creating new Registry instance :: Nov 7, 2003 4:51:30 PM org.apache.commons.modeler.Registry getServer :: INFO: Creating MBeanServer :: Nov 7, 2003 4:51:32 PM org.apache.coyote.http11.Http11Protocol init :: INFO: Initializing Coyote HTTP/1.1 on port 8080 :: Starting service Tomcat-Standalone :: Apache Tomcat/4.1.27 :: Nov 7, 2003 4:51:35 PM org.apache.commons.digester.Digester endElement :: SEVERE: End event threw exception :: java.lang.reflect.InvocationTargetException :: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) :: at :: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. :: java:39) :: at :: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces :: sorImpl.java:25) :: at java.lang.reflect.Method.invoke(Method.java:324) :: at :: org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav :: a:252) :: at :: org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) :: at org.apache.commons.digester.Rule.end(Rule.java:276) :: at :: org.apache.commons.digester.Digester.endElement(Digester.java:1058) :: at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown :: Source :: ) :: at :: org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown :: Source) :: at :: org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown :: S :: ource) :: at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown :: Source) :: :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( :: Unknown Source) :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent :: Dispatcher.dispatch(Unknown Source) :: at :: org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un :: known Source) :: at org.apache.xerces.parsers.XML11Configuration.parse(Unknown :: Source) :: at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown :: Source) :: at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) :: at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown :: Source) :: at org.apache.commons.digester.Digester.parse(Digester.java:1548) :: at :: org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo :: nfig.java:282) :: at :: org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 :: 9) :: at :: org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi :: g.java:243) :: at :: org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl :: eSupport.java:166) :: at :: org.apache.catalina.core.StandardContext.start(StandardContext.java:3 :: 568) :: at :: org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) :: :: at :: org.apache.catalina.core.StandardHost.start(StandardHost.java:738) :: at :: org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) :: :: at :: org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347 :: ) :: at :: org.apache.catalina.core.StandardService.start(StandardService.java:4 :: 97) :: at :: org.apache.catalina.core.StandardServer.start(StandardServer.java:219 :: 0) :: at org.apache.catalina.startup.Catalina.start(Catalina.java:512) :: at :: org.apache.catalina.startup.Catalina.execute(Catalina.java:400
RE: Exception at Tomcat startup
Actually, I had the servlet entry for ControlServlet twice in web.xml, which was the source of the exception. It works fine now.. Thanks!! On Sat, 8 Nov 2003 03:26:02 +0200, Schalk [EMAIL PROTECTED] said: Het there You may want to have a look at this line in your web.xml: Child name 'ControlSer vlet' is not unique It seems that is should say ControlServlet and not ControlSer vlet Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za This message contains information that is considered to be sensitive or confidential and may not be forwarded or diclosed to any other party without the permission of the sender. If you received this message in error, please notify me immediately so that I can correct and delete the original email. Thank you. ciao, Rishi - Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself... And see if we may not eff it after all. -- http://www.fastmail.fm - Accessible with your email software or over the web - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to disable info and warning messages at tomcat startup?
I have searched through the mailing list archive and the FAQ and I can't seem to fins a way to disable the INFO and WARNING messages that tomcat outputs at startup. Here are some of the messages Oct 31, 2003 1:43:53 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Oct 31, 2003 1:43:53 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Oct 31, 2003 1:43:53 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Oct 31, 2003 1:43:54 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Oct 31, 2003 1:43:55 PM java.util.jar.Attributes read WARNING: Duplicate name in Manifest: Depends-On Oct 31, 2003 1:43:55 PM java.util.jar.Attributes read WARNING: Duplicate name in Manifest: Depends-On Also, if anyone how to fix the WARNING: Duplicate name in Manifest: Depends-On message that would be much appreciated. -- Rick
RE: how to disable info and warning messages at tomcat startup?
This might work... http://marc.theaimsgroup.com/?l=tomcat-userm=106623436423859w=2 You can either replace the package names in the file, with org.apache.commons.modeler Or, just use the root category and set it to 'warn' -Original Message- From: Rick Sansburn [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 1:37 PM To: [EMAIL PROTECTED] Subject: how to disable info and warning messages at tomcat startup? I have searched through the mailing list archive and the FAQ and I can't seem to fins a way to disable the INFO and WARNING messages that tomcat outputs at startup. Here are some of the messages Oct 31, 2003 1:43:53 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Oct 31, 2003 1:43:53 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Oct 31, 2003 1:43:53 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Oct 31, 2003 1:43:54 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Oct 31, 2003 1:43:55 PM java.util.jar.Attributes read WARNING: Duplicate name in Manifest: Depends-On Oct 31, 2003 1:43:55 PM java.util.jar.Attributes read WARNING: Duplicate name in Manifest: Depends-On Also, if anyone how to fix the WARNING: Duplicate name in Manifest: Depends-On message that would be much appreciated. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Embedded Tomcat startup java class
Knowing that Tomcat is moving towards JMX, I was wondering if anyone has ported Embedded.java into the a format that will support the JMX integration. Knowing that there is a build.xml file that will launch tomcat in an embedded state, is there an equivalent .java file for doing this? thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup and running as a disconnected process
How does tomcat implement the ability, on Win and Unix, disconnect from its parent process (ie: the process that ran the startup.bat/sh script) -- = = Management is doing things right; leadership is doing the = = right things.- Peter Drucker= =___= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://www.sun.com/sunone = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat startup problem
i, i was wondering if you can help me.I am running tomcat on a Tru64 (v5.1a) box.When i atempt to start tomcat i get this message # ./tomcat start Starting Tomcat FastVM cannot allocate its internal data. Please check process stack size and virtual address space limit. Stack size may be too large, or virtual address space too small., file /runtime/ thread.c, line 298 Starting Tomcat as user 'httpd' Waiting for Tomcat... Can you tell me where i can find these parameters as well as recommended values. Do i have to add entries to thh /etc/sysconfigtab file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat startup problem
Howdy, Get a JVM that works ;) I don't know what available for Tru64, but your FastVM isn't liking the startup arguments. Are you passing it any command-line options, especially a too big -Xmx setting? Yoav Shapira Millennium ChemInformatics -Original Message- From: Tich Mandivenga [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 6:56 AM To: [EMAIL PROTECTED] Subject: tomcat startup problem i, i was wondering if you can help me.I am running tomcat on a Tru64 (v5.1a) box.When i atempt to start tomcat i get this message # ./tomcat start Starting Tomcat FastVM cannot allocate its internal data. Please check process stack size and virtual address space limit. Stack size may be too large, or virtual address space too small., file /runtime/ thread.c, line 298 Starting Tomcat as user 'httpd' Waiting for Tomcat... Can you tell me where i can find these parameters as well as recommended values. Do i have to add entries to thh /etc/sysconfigtab file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup failure
I have a set up where tomcat is supposed to start on boot via an rc shell script on a Linux system (tomcat 4.1.18). I have this intermittent failure mode where tomcat fails to start up on reboot. I can _always_ trigger this failure by deleting all tomcat log files, and then rebooting. After the reboot, the only thing in the log directory is a zero-length catalina.out file, and the java process is not running. Invoking the tomcat startup again at this point causes it to work normally. I can find no evidence that the tomcat java process exits, and no matter how much I turn up debugging, I get no logged output. Is there any possible mechanism that could be causing this failure, or at least some place or some way I could get better debugging information? Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat startup failure
Sounds to me like a permissions/environment problem. For example, starting Tomcat as root manually, but then the script tries to start tomcat as some non-root user. If Tomcat starts as root, log files are owned by root and non-root users cannot write to them. It should throw an error somewhere, though maybe its getting swallowed by a redirect to /dev/null or something. I would verify the script and doublecheck that the script environment (variables, user account, etc) matches exactly with the way you start Tomcat manually. John Noel Rappin wrote: I have a set up where tomcat is supposed to start on boot via an rc shell script on a Linux system (tomcat 4.1.18). I have this intermittent failure mode where tomcat fails to start up on reboot. I can _always_ trigger this failure by deleting all tomcat log files, and then rebooting. After the reboot, the only thing in the log directory is a zero-length catalina.out file, and the java process is not running. Invoking the tomcat startup again at this point causes it to work normally. I can find no evidence that the tomcat java process exits, and no matter how much I turn up debugging, I get no logged output. Is there any possible mechanism that could be causing this failure, or at least some place or some way I could get better debugging information? Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Tomcat startup with JDBC Realm [RE-POST]
-Original Message- From: Koes, Derrick Sent: Friday, August 29, 2003 11:05 AM To: '[EMAIL PROTECTED]' Subject: Tomcat startup with JDBC Realm I have a timing issue where both my database and tomcat are being run as Windows services. If my server reboots for some reason, even though I have startup dependencies (tomcat depends on db), tomcat often doesn't start my web app because it failed the initial JDBC check it does for a database when there is a JDBC realm configured. I presume this is because Windows reports the db service as started so the tomcat service attempts to start. However, the db isn't fully up when the service is started. Have others witnessed this issue? Workarounds? Thanks, Derrick This electronic transmission is strictly confidential to Smith Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message.
Re: FW: Tomcat startup with JDBC Realm [RE-POST]
http://marc.theaimsgroup.com/?l=tomcat-userm=106216990220530w=2 -Tim Koes, Derrick wrote: -Original Message- From: Koes, Derrick Sent: Friday, August 29, 2003 11:05 AM To: '[EMAIL PROTECTED]' Subject: Tomcat startup with JDBC Realm I have a timing issue where both my database and tomcat are being run as Windows services. If my server reboots for some reason, even though I have startup dependencies (tomcat depends on db), tomcat often doesn't start my web app because it failed the initial JDBC check it does for a database when there is a JDBC realm configured. I presume this is because Windows reports the db service as started so the tomcat service attempts to start. However, the db isn't fully up when the service is started. Have others witnessed this issue? Workarounds? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: Tomcat startup with JDBC Realm [RE-POST]
Thanks Tim. It's tough to get approval for inclusion in my configuration without an official release and we're stuck on 4.1.X (actually 4.1.18) right now. I'll try it anyway. Derrick -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 9:59 AM To: Tomcat Users List Subject: Re: FW: Tomcat startup with JDBC Realm [RE-POST] http://marc.theaimsgroup.com/?l=tomcat-userm=106216990220530w=2 -Tim Koes, Derrick wrote: -Original Message- From: Koes, Derrick Sent: Friday, August 29, 2003 11:05 AM To: '[EMAIL PROTECTED]' Subject: Tomcat startup with JDBC Realm I have a timing issue where both my database and tomcat are being run as Windows services. If my server reboots for some reason, even though I have startup dependencies (tomcat depends on db), tomcat often doesn't start my web app because it failed the initial JDBC check it does for a database when there is a JDBC realm configured. I presume this is because Windows reports the db service as started so the tomcat service attempts to start. However, the db isn't fully up when the service is started. Have others witnessed this issue? Workarounds? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This electronic transmission is strictly confidential to Smith Nephew and intended solely for the addressee. It may contain information which is covered by legal, professional or other privilege. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat startup with JDBC Realm
I have committed a patch for tomcat 5 that fixes this. It is available with HEAD or tomcat 5.0.10 (which doesn't exist yet). If people test can test 5 and it is OK - I can back port it to tomcat 4.1.X. If your impatient, the code for JDBCRealm from 5 would be the same as 4.1 so you can: - Get the version from 5 (http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/JDBCRealm.java?rev=1.2content-type=text/vnd.viewcvs-markup) - Compile it with $CATALINA_HOME/server/lib/*.jar and $CATALINA_HOME/common/lib/*.jar in your classpath - Place the resulting class file as $CATALINA_HOME/server/classes/org/apache/catalina/realm/JDBCRealm.class - Last but not least ... Hope that the above works (It should) -Tim Koes, Derrick wrote: I have a timing issue where both my database and tomcat are being run as Windows services. If my server reboots for some reason, even though I have startup dependencies (tomcat depends on db), tomcat often doesn't start my web app because it failed the initial JDBC check it does for a database when there is a JDBC realm configured. I presume this is because Windows reports the db service as started so the tomcat service attempts to start. However, the db isn't fully up when the service is started. Have others witnessed this issue? Workarounds? Thanks, Derrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat startup error
try this: http://www.moreservlets.com/Using-Tomcat-4.html#Set-CLASSPATH From: krishnakumar kumaraswamypillai [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat startup error Date: Fri, 8 Aug 2003 03:20:04 -0700 (PDT) hi all i have installed JAVA 2 SDK 1.3.1_08 Apache HTTP server 2.0.47 Apache Tomcat 4.1 on starting tomcat i get the error: Created catalinaLoader in: C:\Program Files\Apache Group\Tomcat 4.1\server\lib java.lang.NoClassDefFoundError: org/xml/sax/InputSource at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:201) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) I browsed google and found that my CLASSPATH has to be set. But to what path should it point? which jar files? Where will i get information. Thank u for considering Krishna Kumar K __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you Unmarried? http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?4d Register in India's No 1 Matrimony. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat startup error
I have seen this before when running Tomcat on Windows when I have not had the XML parsing jars anywhere on my path. Either install and use a 1.4.1 JVM, setting JAVA_HOME appropriately, or (I think) it should be sufficient to get the right XML parsing jars in your tomcat common\endorsed directory, or on the default classpath. I know that two of the jars are xercesImpl.jar, and xmlParserAPIs.jar. With those two Tomcat 5 still doesn't start for me, it looks like it needs some javax.xml.transform classes. It looks like that is taken care of in jaxp-api.jar, from the Java XML pack. Tomcat 4 doesn't need all three though, I think, only the first two. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 8/8/03 12:08:29 PM try this: http://www.moreservlets.com/Using-Tomcat-4.html#Set-CLASSPATH From: krishnakumar kumaraswamypillai [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat startup error Date: Fri, 8 Aug 2003 03:20:04 -0700 (PDT) hi all i have installed JAVA 2 SDK 1.3.1_08 Apache HTTP server 2.0.47 Apache Tomcat 4.1 on starting tomcat i get the error: Created catalinaLoader in: C:\Program Files\Apache Group\Tomcat 4.1\server\lib java.lang.NoClassDefFoundError: org/xml/sax/InputSource at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:201) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) I browsed google and found that my CLASSPATH has to be set. But to what path should it point? which jar files? Where will i get information. Thank u for considering Krishna Kumar K __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Are you Unmarried? http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?4d Register in India's No 1 Matrimony. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat startup error
Howdy, CLASSPATH does not have to be set, if you mean the environment variable CLASSPATH. See the RELEASE-NOTES for tomcat's section on XML Parsers. Yoav Shapira Millennium ChemInformatics -Original Message- From: krishnakumar kumaraswamypillai [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 6:20 AM To: [EMAIL PROTECTED] Subject: Tomcat startup error hi all i have installed JAVA 2 SDK 1.3.1_08 Apache HTTP server 2.0.47 Apache Tomcat 4.1 on starting tomcat i get the error: Created catalinaLoader in: C:\Program Files\Apache Group\Tomcat 4.1\server\lib java.lang.NoClassDefFoundError: org/xml/sax/InputSource at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java :201 ) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java :297 ) I browsed google and found that my CLASSPATH has to be set. But to what path should it point? which jar files? Where will i get information. Thank u for considering Krishna Kumar K __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat startup error
hi all i have installed JAVA 2 SDK 1.3.1_08 Apache HTTP server 2.0.47 Apache Tomcat 4.1 on starting tomcat i get the error: Created catalinaLoader in: C:\Program Files\Apache Group\Tomcat 4.1\server\lib java.lang.NoClassDefFoundError: org/xml/sax/InputSource at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:201) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297) I browsed google and found that my CLASSPATH has to be set. But to what path should it point? which jar files? Where will i get information. Thank u for considering Krishna Kumar K __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat startup problems
It seems caused by a wrong user realm configuration. Check server.xml under %TOMCAT_HOME%/conf, remove or correct user realm part. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 03, 2003 8:26 AM Subject: Tomcat startup problems Hello, I am running WIN98 trying to get Tomcat to run. It installs with no problems, but then when I proceed to execute the startup batch file I get a bunch of JAVA errors, Following is the contents of my catalina_log files. Any help would be greatly appreciated. -Brad --LOG FILE--- 2003-08-02 15:51:43 UserDatabaseRealm[Standalone]: Exception looking up UserDatabase under key UserDatabase javax.naming.NamingException: The reference to entity worD must end with the ';' delimiter. at org.apache.naming.NamingContext.lookup(NamingContext.java:844) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:302 ) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]