tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daxin Zuo" <d...@techexcel.com>
Subject RE: TOMCAT, run Servlet on UNIX
Date Thu, 30 Sep 2004 21:20:19 GMT
Yoav,
 Thank you. Please forward more instruction.
On the browser, I see no other errors, but when I start the Tomcat, I find
error messages in
1) the logs/catalina.out:

Sep 30, 2004 11:46:58 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 30, 2004 11:46:59 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 9872 ms
Sep 30, 2004 11:47:00 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 30, 2004 11:47:00 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Sep 30, 2004 11:47:00 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 30, 2004 11:47:00 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Sep 30, 2004 11:47:00 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/local/apache2/jakarta-tomcat-5.0.28/conf/Catalina/myComputerIP/www
.xml
Sep 30, 2004 11:47:02 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /balancer from URL
file:/usr/local/apache2/jakarta-tomcat-5.0.28/webapps/balancer
Sep 30, 2004 11:47:03 AM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Sep 30, 2004 11:47:03 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
....

2) In the localhost_log.2004-09-30.txt:
2004-09-30 12:03:06 StandardContext[/balancer]Exception starting filter
BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
	at
org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:65)
	at org.apache.webapp.balancer.RulesParser.<init>(RulesParser.java:43)
	at org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:79)
	at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:225)
	at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:308)
	at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterCon
fig.java:79)
	at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36
98)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4349)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
23)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
	at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:277)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
	at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701
)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
	at org.apache.catalina.core.StandardService.start(StandardService.java:480)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
	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.start(Bootstrap.java:287)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

After I run http://myComputer:8080/ServletTest, There are no any new error
mesage added into these two files.

Thank you.

-----Original Message-----
From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]
Sent: Thursday, September 30, 2004 11:35 AM
To: Tomcat Users List
Subject: RE: TOMCAT, run Servlet on UNIX



Hi,

>I can run the same JSP files from both TOMCAT and Apache
>with DB connection pool for Oracle.
>But I have difficult in Servlet. I cannot run servlet from Tomcat.

You realize the JSPs are servlets, right? ;)

>In webapps/www/WEB-INF/web.xml, I registered the Servlet:
>  <servlet>
>         <servlet-name>ServletTest</servlet-name>
>        <servlet-class>ServletTest</servlet-class>
>    </servlet>
>    <servlet-mapping>
>        <servlet-name>ServletTest</servlet-name>
>        <url-pattern>/ServletTest</url-pattern>
>    </servlet-mapping>

This is fine.  With a servlet mapping, you don't need the invoker
servlet, so don't touch it or rely on it.

>with http://myComputer:8080/ServletTest, I get error:
>        The request resource (/ServletTest) is not available.

It's an actual 404 error?

Any other errors during startup?

Yoav



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message