Hi. I hope somebody out there can help me with this very frustrating problem!
I am trying to get Tomcat 3.3.1 to run with Windows 2000 and Java 1.4.
The strange thing is that I had it running a week ago and then my hard disk died. So I'm
installing it again in exactly the same way and it worked for a few hours but now won't start.
I can, however, get it to start if I do
, but then I can't get servlets to work. Is there something wrong with the server.xml file? I haven't touched it.
My environment variables have been set correctly (I think):
JAVA_HOME=C:\j2sdk1.4.0_01
TOMCAT_HOME=C:\Tomcat
Likewise, for completeness I have edited tomcat.bat with:
set JAVA_HOME=C:\j2sdk1.4.0_01
set TOMCAT_HOME=C:\Tomcat
The variables were set as above when Tomcat did start for a while.
Am I missing something simple and obvious?!
I get the following message when I try 'startup' from within the bin directory:
2002-07-21 22:05:49 - ServerXmlReader: Config=$TOMCAT_HOME\conf\server.xml
2002-07-21 22:05:49 - PathSetter: home=C:\Tomcat
2002-07-21 22:05:50 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-127.0.0.1.xml
2002-07-21 22:05:50 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-admin.xml
2002-07-21 22:05:50 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-examples.xml
2002-07-21 22:05:50 - AutoWebApp: Loaded from config: DEFAULT:/admin
2002-07-21 22:05:50 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-07-21 22:05:50 - AutoWebApp: Auto-Adding DEFAULT:/
2002-07-21 22:05:50 - ContextManager: Tomcat configured and in stable state
EmbededTomcat: exception initializing ContextManagerjava.lang.NoSuchMethodError:
org.apache.jasper.runtime.JspFactoryImpl.<init>(I)V
at org.apache.tomcat.facade.JspInterceptor.addContext(JspInterceptor.java:269)
at org.apache.tomcat.core.ContextManager.fireAddContext(ContextManager.java:613)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:588)
at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTomcat.java:564)
at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:703)
at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687)
at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100)
at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685)
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.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)
Guessed home=C:\Tomcat
Exception: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
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.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)
Caused by: org.apache.tomcat.core.TomcatException: EmbededTomcat.initContextManager
at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTomcat.java:570)
at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:703)
at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687)
at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100)
at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685)
... 7 more
Root Exception: org.apache.tomcat.core.TomcatException: EmbededTomcat.initContextManager
org.apache.tomcat.core.TomcatException: EmbededTomcat.initContextManager
at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTomcat.java:570)
at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:703)
at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687)
at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100)
at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685)
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.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)
Please help me before I go mad!!
Many thanks.
I am trying to get Tomcat 3.3.1 to run with Windows 2000 and Java 1.4.
The strange thing is that I had it running a week ago and then my hard disk died. So I'm
installing it again in exactly the same way and it worked for a few hours but now won't start.
I can, however, get it to start if I do
Code:
'Tomcat estart'
My environment variables have been set correctly (I think):
JAVA_HOME=C:\j2sdk1.4.0_01
TOMCAT_HOME=C:\Tomcat
Likewise, for completeness I have edited tomcat.bat with:
set JAVA_HOME=C:\j2sdk1.4.0_01
set TOMCAT_HOME=C:\Tomcat
The variables were set as above when Tomcat did start for a while.
Am I missing something simple and obvious?!
I get the following message when I try 'startup' from within the bin directory:
2002-07-21 22:05:49 - ServerXmlReader: Config=$TOMCAT_HOME\conf\server.xml
2002-07-21 22:05:49 - PathSetter: home=C:\Tomcat
2002-07-21 22:05:50 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-127.0.0.1.xml
2002-07-21 22:05:50 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-admin.xml
2002-07-21 22:05:50 - ContextXmlReader: Context config=$TOMCAT_HOME\conf\apps-examples.xml
2002-07-21 22:05:50 - AutoWebApp: Loaded from config: DEFAULT:/admin
2002-07-21 22:05:50 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-07-21 22:05:50 - AutoWebApp: Auto-Adding DEFAULT:/
2002-07-21 22:05:50 - ContextManager: Tomcat configured and in stable state
EmbededTomcat: exception initializing ContextManagerjava.lang.NoSuchMethodError:
org.apache.jasper.runtime.JspFactoryImpl.<init>(I)V
at org.apache.tomcat.facade.JspInterceptor.addContext(JspInterceptor.java:269)
at org.apache.tomcat.core.ContextManager.fireAddContext(ContextManager.java:613)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:588)
at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTomcat.java:564)
at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:703)
at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687)
at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100)
at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685)
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.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)
Guessed home=C:\Tomcat
Exception: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
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.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)
Caused by: org.apache.tomcat.core.TomcatException: EmbededTomcat.initContextManager
at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTomcat.java:570)
at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:703)
at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687)
at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100)
at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685)
... 7 more
Root Exception: org.apache.tomcat.core.TomcatException: EmbededTomcat.initContextManager
org.apache.tomcat.core.TomcatException: EmbededTomcat.initContextManager
at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTomcat.java:570)
at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:703)
at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687)
at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100)
at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685)
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.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)
Please help me before I go mad!!
Many thanks.