wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat 5.5.7 starting problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5.5.7 starting problem" Watch "Tomcat 5.5.7 starting problem" New topic
Author

Tomcat 5.5.7 starting problem

Ragav Seth
Greenhorn

Joined: Jan 17, 2005
Posts: 16
Hi all,

Iam using netbeans 4.1 IDE on Fedora 4 linux.I have problems starting the tomcat server(tomcat-5.5.7) which comes bundled with the IDE.

I developed a sample application in windows and successfully deployed it in tomcat 5.0. I used the same sample application in the Linux environment.

The tomcat 5.5.7 server throws the error trace given below.



Listening for transport dt_socket at address: 11555
Aug 31, 2005 5:42:09 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8084
Aug 31, 2005 5:42:09 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2099 ms
Aug 31, 2005 5:42:10 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 31, 2005 5:42:10 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
Aug 31, 2005 5:42:10 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 31, 2005 5:42:12 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Aug 31, 2005 5:42:12 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Servlet /Fundamentals threw load() exception
javax.servlet.ServletException: Error instantiating servlet class org.apache.struts.action.ActionServlet
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3823)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4087)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Aug 31, 2005 5:42:13 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8084
Aug 31, 2005 5:42:14 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Aug 31, 2005 5:42:14 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/73 config=null
Aug 31, 2005 5:42:14 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 31, 2005 5:42:15 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5451 ms

I copied the same web.xml file which i used in tomcat 5.0 and its structure is as follows

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

<web-app>


<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>


<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>



</web-app>

I guess the web.xml is the problem.

sorry for the long post.Can anyone help me on this please??

Thanks
Ragav
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat 5.5.7 starting problem
 
Similar Threads
Problem with struts in fedora 4
[Tiles] XML validation
Tomcat Error after moving from struts 1.1 to struts 1.3.10
web.xml doesn't parse correctly ?
Problem deploying my first Struts example