You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Edison Ch <ed...@yahoo.com> on 2002/12/20 10:40:39 UTC
Deployment in Tomcat 4.1.17 failed ?
I just d/l Tomcat 4.1.17 and am having a heck of time
trying to deploy web application into Tomcat. I am
using the latest ant 1.5.1 with combination of 4.1.17
tomcat. I use "ant install" and it always failed to
install. Spent a day to figure it out and it finally
worked after tweaking this and that. Ant install
succesfully. Now when I try to access the apps -
localhost:8080/app - it always said the page is not
accessible. Then I look at the log to find out why.
Can't quite figure out what's the error so I go to
localhost:8080/manager/html/list to see what's the
current status of my apps. It showed that it was not
running. I click on run - yet it failed to load. So i
decide to deploy manually by copying the whole working
directory under ${CATALINA_HOME}/webapps -- and
structure it accordingly [with WEB-INF and web.xml].
Then i register the apps into the server.xml [just
like the manual asked] then i turn on the logger for
that apps -- and got this as the result:
2002-12-20 15:52:08 StandardContext[/ATTS]: Starting
2002-12-20 15:52:08 StandardContext[/ATTS]: Processing
start(), current available=false
2002-12-20 15:52:08 StandardContext[/ATTS]:
Configuring default Resources
2002-12-20 15:52:08 StandardContext[/ATTS]: Resources
start failed:
2002-12-20 15:52:08 StandardContext[/ATTS]:
Configuring privileged default Loader
2002-12-20 15:52:08 StandardContext[/ATTS]:
Configuring default Manager
2002-12-20 15:52:08 StandardContext[/ATTS]: Processing
standard container startup
2002-12-20 15:52:08 StandardContext[/ATTS]: Context
startup failed due to previous errors
2002-12-20 15:52:08 StandardContext[/ATTS]: Exception
during cleanup after start failed
LifecycleException: Container StandardContext[/ATTS]
has not been started
at
org.apache.catalina.core.StandardContext.stop(Unknown
Source)
at
org.apache.catalina.core.StandardContext.start(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.start(Unknown
Source)
at
org.apache.catalina.core.StandardHost.start(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.start(Unknown
Source)
at
org.apache.catalina.core.StandardEngine.start(Unknown
Source)
at
org.apache.catalina.core.StandardService.start(Unknown
Source)
at
org.apache.catalina.core.StandardServer.start(Unknown
Source)
at
org.apache.catalina.startup.Catalina.start(Unknown
Source)
at
org.apache.catalina.startup.Catalina.execute(Unknown
Source)
at
org.apache.catalina.startup.Catalina.process(Unknown
Source)
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(Unknown
Source)
Is it my web.xml fault? or?
my config of application web.xml is like:
<?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/dtd/web-app_2_3.dtd">
-->
<web-app>
<display-name>ATTS beta</display-name>
<description>This is beta of ATTS</description>
<context-param>
<param-name>webmaster</param-name>
<param-value>root@localhost</param-value>
<description>Email of the maintainer of the
site</description>
</context-param>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<servlet>
<description>ATTS to add route</description>
<servlet-name>ATTSaddRoute</servlet-name>
<servlet-class>ATTSaddRoute</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<description>Connection Pool of
JDBC</description>
<servlet-name>ConnectionPool</servlet-name>
<servlet-class>ConnectionPool</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>ATTSaddRoute</servlet-name>
<url-pattern>/ATTSaddRoute</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ConnectionPool</servlet-name>
<url-pattern>/ConnectionPool</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>10</session-timeout>
</session-config>
</web-app>
What did i do wrong ?
please help......
=====
Sincerely,
Edison Ch
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>