tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kennice Low" <kennice...@hotmail.com>
Subject Servlet is not working
Date Tue, 04 Sep 2001 09:24:52 GMT
Hi,

I am using apache as a web server and servlet is work fine all the time.  I 
am able to view page located in the apache directory /var/www, but not 
servlet. Msg : The page cannot be displayed.
1) I try to shutdown tomcat, message display :

Using classpath: 
/var/jakarta-tomcat-3.2.2/lib/META-INF:/var/jakarta-tomcat-3.2.2/lib/ant.jar:/var/jakarta-tomcat-3.2.2/lib/jasper.jar:/var/jakarta-tomcat-3.2.2/lib/jaxp.jar:/var/jakarta-tomcat-3.2.2/lib/jaxp_org.jar:/var/jakarta-tomcat-3.2.2/lib/mm.mysql-2.0.6.jar:/var/jakarta-tomcat-3.2.2/lib/parser.jar:/var/jakarta-tomcat-3.2.2/lib/servlet.jar:/var/jakarta-tomcat-3.2.2/lib/struts.jar:/var/jakarta-tomcat-3.2.2/lib/test:/var/jakarta-tomcat-3.2.2/lib/webserver.jar:/local/pkg/jdk/1.3/lib/tools.jar:/var/jakarta-tomcat-3.2.2/lib/mm.mysql-2.0.6.jar:/var/jakarta-tomcat-3.2.2/conn:/var/jakarta-tomcat-3.2.2/lib
Stop tomcat
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
        at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
        at java.net.Socket.<init>(Socket.java:273)
        at java.net.Socket.<init>(Socket.java:100)
        at org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104)
        at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

2) log error :

/var/jakarta-tomcat-3.2.2/logs>more servlet.log
2001-09-04 10:33:38 - path="/examples" :jsp: init
2001-09-04 10:33:38 - path="/admin" :jsp: init
2001-09-04 10:33:38 - path="" :jsp: init
2001-09-04 10:33:38 - path="" :traffic: init
2001-09-04 10:33:38 - path="" :setup: init
2001-09-04 10:33:38 - path="/test" :jsp: init
2001-09-04 10:33:38 - path="/ch15" :jsp: init
2001-09-04 10:33:38 - path="/test_org" :jsp: init
2001-09-04 10:33:38 - path="/hungryminds" :jsp: init
2001-09-04 10:33:38 - path="/about.html" :jsp: init
2001-09-04 10:33:38 - path="/article.jsp" :jsp: init
2001-09-04 10:33:38 - path="/authentication.html" :jsp: init
2001-09-04 10:33:38 - path="/badlogin.html" :jsp: init
2001-09-04 10:33:38 - path="/META-INF" :jsp: init
2001-09-04 10:33:38 - path="/WEB-INF" :jsp: init
2001-09-04 10:33:38 - path="/data.jsp" :jsp: init
2001-09-04 10:33:38 - path="/download.html" :jsp: init
2001-09-04 10:33:39 - path="/deweb.zip" :jsp: init
2001-09-04 10:33:39 - path="/footer.htm" :jsp: init
2001-09-04 10:33:39 - path="/images" :jsp: init
2001-09-04 10:33:39 - path="/hungryminds.war..zip" :jsp: init
2001-09-04 10:33:39 - path="/index.html" :jsp: init
2001-09-04 10:33:39 - path="/index.jsp" :jsp: init
2001-09-04 10:33:39 - path="/index2.jsp" :jsp: init
2001-09-04 10:33:39 - path="/notauthorized.html" :jsp: init
2001-09-04 10:33:39 - path="/notfound.html" :jsp: init
2001-09-04 10:33:39 - path="/protected.html" :jsp: init
2001-09-04 10:33:39 - path="/sidebar.jsp" :jsp: init
2001-09-04 10:33:39 - path="/simplejsp.jsp" :jsp: init
2001-09-04 10:33:39 - path="/simpletag.jsp" :jsp: init
2001-09-04 10:33:39 - path="/survey.jsp" :jsp: init
2001-09-04 10:33:39 - path="/struts-example" :jsp: init
2001-09-04 10:33:39 - path="/struts-example" :database: init
2001-09-04 10:33:39 - path="/struts-example" :database: Initializing 
database servlet
2001-09-04 10:33:39 - path="/struts-example" :database: Loading database 
from '/WEB-INF/database.xml'
2001-09-04 10:33:39 - path="/struts-example" :database: Database load 
exception - java.lang.ClassNotFoundException: 
org.apache.struts.webapp.example.User
        at 
org.apache.commons.digester.Digester.startElement(Digester.java:627)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
        at 
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:158)
        at org.apache.commons.digester.Digester.parse(Digester.java:859)
        at 
org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:252)
        at 
org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:175)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at 
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
        at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at 
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit


3) Is these a normal shutdown list shown, or it means something wrong on the 
servlet  ?

4) The servlet work fine yesterday. What I hv did for today is download the 
Struts Application Framework from 
http://jakarta.apache.org/struts/index.html, and able to extend the war 
file. And I did copy the jaxp.jar, crimson.jar and xalan.jar to 
$JAVA_HOME/jre/lib/ext directory.  I don't think it course the problem.  
Just to recall what I hv done for today.

Anyhelp is appreciate. Thanks in advance

best regards,
Kennice


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


Mime
View raw message