aspose file tools*
The moose likes Tomcat and the fly likes I'm not able to deploy to Tomcat 5.0.19 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "I Watch "I New topic
Author

I'm not able to deploy to Tomcat 5.0.19

Raul Vieira
Greenhorn

Joined: Feb 12, 2004
Posts: 6
Hello
It has been a frustrating past couple of days and I would really appreciate some help.
I've created a web app containing the following required directories and dropped it into the '<tomcat>webapps' directorty:
myWebApp/
WEB-INF/classes, lib, and web.xml
I've also modified the '<tomcat>conf/server.xml' to contain the following context element for my application:
<Context path="/myWebApp" docBase="../webapps/myWebApp" debug="0" reloadable="true" crossContext="false"/>
When I start tomcat from the command line I recieve messages indicating that the listeners cannot be started. Below is the output:
Feb 29, 2004 12:57:40 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Feb 29, 2004 12:57:40 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2824 ms
Feb 29, 2004 12:57:41 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 29, 2004 12:57:41 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
Feb 29, 2004 12:57:41 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 29, 2004 12:57:42 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Feb 29, 2004 12:57:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Feb 29, 2004 12:57:42 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Feb 29, 2004 12:57:43 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Feb 29, 2004 12:57:43 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.19\co
nf\Catalina\localhost\admin.xml
Feb 29, 2004 12:57:43 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
e
Feb 29, 2004 12:57:43 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
l=true
Feb 29, 2004 12:57:45 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Feb 29, 2004 12:57:47 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.19\co
nf\Catalina\localhost\manager.xml
Feb 29, 2004 12:57:47 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /balancer from URL file:C:\jaka
rta-tomcat-5.0.19\webapps\balancer
Feb 29, 2004 12:57:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Feb 29, 2004 12:57:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Feb 29, 2004 12:57:47 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file:C:\
jakarta-tomcat-5.0.19\webapps\jsp-examples
Feb 29, 2004 12:57:48 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path from URL file:C:\jakarta-tomca
t-5.0.19\webapps\ROOT
Feb 29, 2004 12:57:48 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL fil
e:C:\jakarta-tomcat-5.0.19\webapps\servlets-examples
Feb 29, 2004 12:57:48 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL file:C:\j
akarta-tomcat-5.0.19\webapps\tomcat-docs
Feb 29, 2004 12:57:48 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file:C:\jakart
a-tomcat-5.0.19\webapps\webdav
Feb 29, 2004 12:57:49 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Feb 29, 2004 12:57:49 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Feb 29, 2004 12:57:49 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/50 config=C:\jakarta-tomcat-5.0.19\conf\jk2.proper
ties
Feb 29, 2004 12:57:49 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8803 ms

Please note:
INFO: Installing web application at context path /balancer from URL file:C:\jaka
rta-tomcat-5.0.19\webapps\balancer
Feb 29, 2004 12:57:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Feb 29, 2004 12:57:47 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
was an error on my part as I accidently removed the balancer.xml from '<tomcat>conf\catalina\localhost' directory, but I'm confident that this error is not related to my problem.

I've also tried:
1. Creating a myWebApps.xml and placing it in the '<tomcat>\conf\Catalina\localhost' directory in addtion to the same context entry in the server.xml that I have already mentioned at the begining of this posting.
2. Placing my application (not in a WAR) and running 'http://localhost:8080/manager/deploy?path=/myWebApp'
Needless to say when I request my jsp page which is located in the /myWebApp root I receive a 404 error. The URL I enter is as follows:
'http://localhost:8080/myWebApp/test.jsp'

I would really appreciate any ideas on how to solve this problem.
Thanks very much for your help.

Raul
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179


change it to:

Ren´┐Ż


Regards, Rene Larsen
Dropbox Invite
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I'm not able to deploy to Tomcat 5.0.19