Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with deployment

Status
Not open for further replies.

LanyA

Programmer
Jan 29, 2003
23
0
0
US
Hi, I'm a newbie and I've been trying for a while now to deploy my servlets and Struts/Tapestry applications using Tomcat 5.5 and JDK1.4.2_06. The only pages that ever display are the Tomcat welcome page and servlets that I place in the [TOMCAT_INSTALL]\shared\classes folder. These same servlets never run when I place them in the [TOMCAT_INSTALL]\webapps\ROOT\WEB-INF\classes folder. Even when they do successfully display after copying them to the [TOMCAT_INSTALL]\shared\classes folder, errors are generated in the log files:

SEVERE: invoker: Cannot allocate servlet instance for path /servlet/hello.helloservlet
javax.servlet.ServletException: Error allocating a servlet instance
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:729)
at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:369)
at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802

~~~~~~~~etc etc.....................~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The invoker servlet and servlet-mapping tags are uncommented in the conf directory; copied from the web.xml file in this directory:


<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
.................
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>

...........................................
The Struts and Tapestry applications on the other hand (developed with Eclipse 3.0) just never run.
I don't know what else to do, can anyone help? Thanks
 
Actually I did not include this part of the stdout log file which might be at the root of the problem:

Created MBeanServer with ID:...
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 9, 2005 10:01:30 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3115 ms
Feb 9, 2005 10:01:30 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 9, 2005 10:01:30 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
Feb 9, 2005 10:01:30 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase).
log4j:WARN Please initialize the log4j system properly.


What does this mean? Thanks
 
Just answered my own question in Post 2 (I needed to put the log4j.jar file in common\lib for logging purposes) :); still asking for help with the original post though?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top