Tomcat antwortet auf localhost:8080 auf einmal nicht mehr

Alles, was den Apache betrifft, kann hier besprochen werden.

Tomcat antwortet auf localhost:8080 auf einmal nicht mehr

Postby bastula » 15. March 2007 23:28

Hallo Apache Freunde,

ich als blutiger Anfänger weiss nicht einmal, ob ich meine Frage ins richtige Forum eingestellt habe. Falls doch, hier ist sie:

Ich habe für eine Webanwendung einen bestehenden Tomcat benutzt und dort ein Servlet und diverse Java Klassen unter ../webinf/classes erstellt. Bis gestern lief alles wunderbar, doch heute startet der Tomcat nicht richtig. Wenn ich ihn anschmeisse, dann scheint er hochzufahren, ich kann einen ping auf 127.0.0.1 erfolgreich absetzen, aber unter http://localhost:8080/ bekomme ich die Fehlermeldung:

HTTP Status 404 - /

type Status report

message /

description The requested resource (/) is not available.

Ich habe in der Zwischenzeit definitiv nichts an der Konfiguration o.ä. geändert, das würde ich mich garnicht trauen.

Das logfile localhost-date.log hat beim letzten Startversuch folgenden Eintrag produziert:


2007-03-15 23:23:26 StandardContext[]Error configuring application listener of class listeners.SessionListener
java.lang.ClassNotFoundException: listeners.SessionListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
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.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:687)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:968)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.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:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)

2007-03-15 23:23:26 StandardContext[/servlets-examples]ContextListener: contextInitialized()
2007-03-15 23:23:26 StandardContext[/servlets-examples]SessionListener: contextInitialized()
2007-03-15 23:23:31 StandardContext[/jsp-examples]SessionListener: contextDestroyed()
2007-03-15 23:23:31 StandardContext[/jsp-examples]ContextListener: contextDestroyed()
2007-03-15 23:23:34 StandardContext[/ExpertFinder]SessionListener: contextDestroyed()
2007-03-15 23:23:34 StandardContext[/ExpertFinder]ContextListener: contextDestroyed()
2007-03-15 23:23:34 StandardContext[/servlets-examples]SessionListener: contextDestroyed()
2007-03-15 23:23:34 StandardContext[/servlets-examples]ContextListener: contextDestroyed()
2007-03-15 23:24:17 StandardContext[/jsp-examples]SessionListener: contextDestroyed()
2007-03-15 23:24:17 StandardContext[/jsp-examples]ContextListener: contextDestroyed()
2007-03-15 23:24:17 StandardContext[/ExpertFinder]SessionListener: contextDestroyed()
2007-03-15 23:24:17 StandardContext[/ExpertFinder]ContextListener: contextDestroyed()
2007-03-15 23:24:17 StandardContext[/servlets-examples]SessionListener: contextDestroyed()
2007-03-15 23:24:17 StandardContext[/servlets-examples]ContextListener: contextDestroyed()

Das sagt mir alles garnicht ... hat jemand einen Tipp für mich ?

VIELEN DANK im voraus,

Bastian
bastula
 
Posts: 4
Joined: 15. March 2007 23:14

Postby KingCrunch » 16. March 2007 02:43

Also erstmal hat ein ping so ziemlich rein garnix mit einem Webserver zu tun. Es sagt dir nur, ob der Rechner im Netzwerk erreichbar ist. Und da ein Loopback (localhost/127.0.0.1) immer "im Netzwerk" erreichbar ist, ist allein ein ping da drauf etwas witzlos :D

Der Server scheint auch zu laufen, sonst würde er nicht mal nen 404 zurück geben. Was sagt denn das error.log vom Apachen?
Nicht jeder Fehler ist ein Bug ...
KingCrunch
 
Posts: 1724
Joined: 26. November 2005 19:25

Postby bastula » 16. March 2007 13:24

Hi KingCrunch,

ich habe in der Zwischenzeit den Tomcat 5.0.28 neu installiert. Da lief mein Programm erst wieder, jetzt hängt er wieder. Auf die unter HTMLs, die im entsprechenden Verzeichnis /servlets-examples/ abgelegt habe, kann ich noch zugreifen, aber der Aufruf des servlets scheitert. Zugriff auf localhost:8080 auch, mit der gleichen Fehlermeldung wie gestern.

Die Datei localost.log hat als letzten Eintrag:

2007-03-16 13:15:30 StandardContext[]Error configuring application listener of class listeners.SessionListener
java.lang.ClassNotFoundException: listeners.SessionListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
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.java: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(LifecycleSupport.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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

2007-03-16 13:15:30 StandardContext[/servlets-examples]ContextListener: contextInitialized()
2007-03-16 13:15:30 StandardContext[/servlets-examples]SessionListener: contextInitialized()

Die stdout.log sagt folgendes:

16.03.2007 13:15:26 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
16.03.2007 13:15:26 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 851 ms
16.03.2007 13:15:26 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
16.03.2007 13:15:26 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
16.03.2007 13:15:26 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
16.03.2007 13:15:26 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
16.03.2007 13:15:26 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Programme\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\admin.xml
16.03.2007 13:15:26 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
16.03.2007 13:15:26 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
16.03.2007 13:15:27 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
16.03.2007 13:15:29 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Programme\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\balancer.xml
16.03.2007 13:15:29 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Programme\Apache Software Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xml
16.03.2007 13:15:29 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file:C:\Programme\Apache Software Foundation\Tomcat 5.0\webapps\jsp-examples
16.03.2007 13:15:30 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path from URL file:C:\Programme\Apache Software Foundation\Tomcat 5.0\webapps\ROOT
16.03.2007 13:15:30 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Skipped installing application listeners due to previous error(s)
16.03.2007 13:15:30 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
16.03.2007 13:15:30 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context startup failed due to previous errors
16.03.2007 13:15:30 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL file:C:\Programme\Apache Software Foundation\Tomcat 5.0\webapps\servlets-examples
16.03.2007 13:15:30 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL file:C:\Programme\Apache Software Foundation\Tomcat 5.0\webapps\tomcat-docs
16.03.2007 13:15:30 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file:C:\Programme\Apache Software Foundation\Tomcat 5.0\webapps\webdav
16.03.2007 13:15:31 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
16.03.2007 13:15:31 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
16.03.2007 13:15:31 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/40 config=C:\Programme\Apache Software Foundation\Tomcat 5.0\conf\jk2.properties
16.03.2007 13:15:31 org.apache.catalina.startup.Catalina start
INFO: Server startup in 5218 ms
caught a

java.io.IOException: Das Handle ist ungültig
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at SearchTheIndex.SearchIndex(SearchTheIndex.java:160)
at ProcessRequest.returnSearchString(ProcessRequest.java:23)
at CallLucene.doPost(CallLucene.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)
caught a

java.io.IOException: Das Handle ist ungültig
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at SearchTheIndex.SearchIndex(SearchTheIndex.java:160)
at ProcessRequest.returnSearchString(ProcessRequest.java:23)
at CallLucene.doPost(CallLucene.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)

Die stderr.log ist leer. Kann das irgendwie ein Problem mit dem JRE sein ? Ich hab 1.4.2_09.

Ahnunglos: Bastian
bastula
 
Posts: 4
Joined: 15. March 2007 23:14

Postby KingCrunch » 16. March 2007 14:11

Bevor ich mich da jetzt durchwurschtele:
KingCrunch wrote:Was sagt denn das error.log vom Apachen?
Nicht jeder Fehler ist ein Bug ...
KingCrunch
 
Posts: 1724
Joined: 26. November 2005 19:25

Postby bastula » 16. March 2007 15:17

HI,

wo liegt die Datei ? Ich hab nur das Verzeichnis ...\Apache Software Foundation\Tomcat 5.0\logs gefunden, da ist nur die stderr.log, und die wie schon gesagt ist leer.

Gruss & Dank,

Bastian
bastula
 
Posts: 4
Joined: 15. March 2007 23:14

Postby bastula » 16. March 2007 16:43

Hi KingCrunch,

ich habe noch etwas gefunden, beim TomCat Start macht er diese Meldung:

SCHWERWIEGEND: Skipped installing application listeners due to previous error(s)
16.03.2007 16:41:23 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
16.03.2007 16:41:23 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context startup failed due to previous errors

Irgendwas stimmt mit den listenern nicht, die sind wohl kaputt gegangen ... hast Du eine Ahnung, was da lost ist ?

DANK & Gruss,

Bastian
bastula
 
Posts: 4
Joined: 15. March 2007 23:14

Postby KingCrunch » 16. March 2007 20:58

Die vom Oberhäuptling sollten sich einfach im apache/logs-Verzeichnis befinden.

Hab vom Tomcat nu nicht so viel Ahnung, aber "due to previous errors" deutet ja eher darauf hin, dass der Fehler vorher auftrat ^^

Bin bei deinen Postings auch auf
Code: Select all
2007-03-16 13:15:30 StandardContext[]Error configuring application listener of class listeners.SessionListener
java.lang.ClassNotFoundException: listeners.SessionListener
gestoßen, vielleicht hilft es dir nach Fehlern mit dem SessionListener zu googeln.
Nicht jeder Fehler ist ein Bug ...
KingCrunch
 
Posts: 1724
Joined: 26. November 2005 19:25


Return to Apache

Who is online

Users browsing this forum: No registered users and 2 guests