Im having problems in migration from tomcat 3.2.1 to tomcat 4.1.18.
I was initially having problems setting the context in server.xml and parser problems in web.xml but these seem to have disappeared.
I can run
http://localhost:8080 and /examples
but not my context path /intranettv
My new problem is that when i try to view my servlet, it is returning a
404 error for the page
http:/localhost:8080/intranettv
It doesnt seem to be initialising the servlet.
Basically my server.xml points to new context here:
D:\intranettv\admin\public_site\ alias internettv
Here is my web.xml
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>IntranetTV</display-name>
<description>
This is the IntranetTV application with a source code organization
based on the recommendations of the Application Developer's Guide.
</description>
<servlet>
<servlet-name>IntranetTV</servlet-name>
<servlet-class>com.bt.intranettv.view.IntranetTV</servlet-class>
<init-param>
<param-name>root</param-name>
<param-value>D:\intranettv\admin\public_site\</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>IntranetTV</servlet-name>
<url-pattern>/IntranetTV</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ManageContent</servlet-name>
<servlet-class>com.bt.intranettv.admin.ManageContent</servlet-class>
<init-param>
<param-name>root</param-name>
<param-value>D:\intranettv\admin\public_site\</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>ManageContent</servlet-name>
<url-pattern>/ManageContent</url-pattern>
</servlet-mapping>
</web-app>
Does anybody now what is happening.
(This is not a getout clause-but i compiled the java source with java 1.2 but tomcat is running under 1.4) Will this cause any errors? Some of somebodys java code doesnt compile with java 1.4 so i thought this would be a quick way out?
FROM THE CATALINA LOG FILE IM GETTING AN ERROR.
DOES ANYBODY KNOW WHATS CAUSING THIS ERROR LOG.
2003-02-11 13:28:13 StandardContext[/intranettv]: Resources start failed:
2003-02-11 13:28:13 StandardContext[/intranettv]: Context startup failed due to previous errors
2003-02-11 13:28:13 StandardContext[/intranettv]: Exception during cleanup after start failed
LifecycleException: Container StandardContext[/intranettv] has not been started
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
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:2189)
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)
2003-02-11 13:28:13 WebappLoader[]: Deploying class repositories to work directory C:\jakarta-tomcat4.1\work\Standalone\localhost\_
2003-02-11 13:28:13 StandardManager[]: Seeding random number generator class java.security.SecureRandom
2003-02-11 13:28:13 StandardManager[]: Seeding of random number generator has been completed
2003-02-11 13:28:13 StandardWrapper[
efault]: Loading container servlet default
2003-02-11 13:28:13 StandardWrapper[:invoker]: Loading container servlet invoker
2003-02-11 13:28:13 HostConfig[localhost]: Deploying configuration descriptor admin.xml
2003-02-11 13:28:19 HostConfig[localhost]: Deploying configuration descriptor manager.xml
2003-02-11 13:28:19 WebappLoader[/manager]: Deploying class repositories to work directory C:\jakarta-tomcat4.1\work\Standalone\localhost\manager
2003-02-11 13:28:19 ContextConfig[/manager]: Configured an authenticator for method BASIC
2003-02-11 13:28:19 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom
2003-02-11 13:28:19 StandardManager[/manager]: Seeding of random number generator has been completed
2003-02-11 13:28:19 StandardWrapper[/manager
efault]: Loading container servlet default
2003-02-11 13:28:19 StandardWrapper[/manager:invoker]: Loading container servlet invoker
2003-02-11 13:28:19 HostConfig[localhost]: Deploying web application directory tomcat-docs
2003-02-11 13:28:19 StandardHost[localhost]: Installing web application at context path /tomcat-docs from URL file:C:\jakarta-tomcat4.1\webapps\tomcat-docs
2003-02-11 13:28:19 WebappLoader[/tomcat-docs]: Deploying class repositories to work directory C:\jakarta-tomcat4.1\work\Standalone\localhost\tomcat-docs
2003-02-11 13:28:20 StandardManager[/tomcat-docs]: Seeding random number generator class java.security.SecureRandom
2003-02-11 13:28:20 StandardManager[/tomcat-docs]: Seeding of random number generator has been completed
2003-02-11 13:28:20 StandardWrapper[/tomcat-docs
efault]: Loading container servlet default
2003-02-11 13:28:20 StandardWrapper[/tomcat-docs:invoker]: Loading container servlet invoker
2003-02-11 13:28:20 HostConfig[localhost]: Deploying web application directory webdav
2003-02-11 13:28:20 StandardHost[localhost]: Installing web application at context path /webdav from URL file:C:\jakarta-tomcat4.1\webapps\webdav
2003-02-11 13:28:20 WebappLoader[/webdav]: Deploying class repositories to work directory C:\jakarta-tomcat4.1\work\Standalone\localhost\webdav
2003-02-11 13:28:20 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom
2003-02-11 13:28:20 StandardManager[/webdav]: Seeding of random number generator has been completed
2003-02-11 13:28:20 StandardWrapper[/webdav
efault]: Loading container servlet default
2003-02-11 13:28:20 StandardWrapper[/webdav:invoker]: Loading container servlet invoker
[ February 11, 2003: Message edited by: tradester amagio ]