Sapphireblue
asked on
Newbie Tomcat 4.0 install gives 500 "No Context configured" error @ HTTP localhost
Installed Tomcat 4.0 (my professor recommended this older version) on my Win 2000 box. j2sdk1.4.0_01, j2sdkee1.2.1. Before installing Tomcat, I changed my Oracle XDB port to use 8083 instead of 8080. IIS is also installed, uses port 80. I have Norton Internet Security (yes, it makes my life difficult) but it's disabled right now.
It feels like maybe an Apache thing, but then again Tomcat is working enough to tell me that the examples directory isn't available, so I am truly lost. Don't know which errors are most important so I'll throw them all out there. I Googled on all of them, but could find no solution, even though I know this question and variants has been asked many times. Please go easy on this Java newbie...
My Catalina DOS window that comes up when I invoke startup shows:
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
... I have a feeling it should say more than that, but as a newbie I have no idea.
When I go to http://localhost:8080/ I get an error "HTTP Status 500 - No Context configured to process this request"
When I go to http://localhost:8080/examples/ I get an error "The requested resource (/examples) is not available."
My apache log in the tomcats logs folder says:
2005-04-28 23:09:29 [org.apache.catalina.conne ctor.warp. WarpConnec tor] Error accepting requests
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.s ocketAccep t(Native Method)
at java.net.PlainSocketImpl.a ccept(Plai nSocketImp l.java:343 )
at java.net.ServerSocket.impl Accept(Ser verSocket. java:438)
at java.net.ServerSocket.acce pt(ServerS ocket.java :409)
at org.apache.catalina.connec tor.warp.W arpConnect or.run(War pConnector .java:580)
at java.lang.Thread.run(Threa d.java:536 )
Catalina log says:
2005-04-28 23:29:53 HttpProcessor[8080][4] process.invoke
java.lang.NullPointerExcep tion
at org.apache.catalina.valves .ErrorDisp atcherValv e.status(E rrorDispat cherValve. java:280)
at org.apache.catalina.valves .ErrorDisp atcherValv e.invoke(E rrorDispat cherValve. java:180)
at org.apache.catalina.core.S tandardPip eline.invo keNext(Sta ndardPipel ine.java:5 64)
at org.apache.catalina.valves .ErrorRepo rtValve.in voke(Error ReportValv e.java:170 )
at org.apache.catalina.core.S tandardPip eline.invo keNext(Sta ndardPipel ine.java:5 64)
at org.apache.catalina.valves .AccessLog Valve.invo ke(AccessL ogValve.ja va:462)
at org.apache.catalina.core.S tandardPip eline.invo keNext(Sta ndardPipel ine.java:5 64)
at org.apache.catalina.core.S tandardPip eline.invo ke(Standar dPipeline. java:472)
at org.apache.catalina.core.C ontainerBa se.invoke( ContainerB ase.java:9 43)
at org.apache.catalina.core.S tandardEng ineValve.i nvoke(Stan dardEngine Valve.java :163)
at org.apache.catalina.core.S tandardPip eline.invo keNext(Sta ndardPipel ine.java:5 66)
at org.apache.catalina.core.S tandardPip eline.invo ke(Standar dPipeline. java:472)
at org.apache.catalina.core.C ontainerBa se.invoke( ContainerB ase.java:9 43)
at org.apache.catalina.connec tor.http.H ttpProcess or.process (HttpProce ssor.java: 1011)
at org.apache.catalina.connec tor.http.H ttpProcess or.run(Htt pProcessor .java:1106 )
at java.lang.Thread.run(Threa d.java:536 )
Localhost log is saying something different now than half an hour ago---I think all I did in between was stop IIS even though it's on another port:
2005-04-28 23:09:39 StandardContext[/manager]: Error initializing resources: Document base C:\tomcat4\webapps\manager does not exist or is not a readable directory
2005-04-28 23:09:39 StandardContext[/manager]: Context startup failed due to previous errors
2005-04-28 23:09:39 StandardContext[/manager]: Exception during cleanup after start failed
LifecycleException: Container StandardContext[/manager] has not been started
at org.apache.catalina.core.C ontainerBa se.stop(Co ntainerBas e.java:114 7)
at org.apache.catalina.core.S tandardCon text.stop( StandardCo ntext.java :3440)
at org.apache.catalina.core.S tandardCon text.start (StandardC ontext.jav a:3397)
at org.apache.catalina.core.C ontainerBa se.start(C ontainerBa se.java:11 23)
at org.apache.catalina.core.S tandardHos t.start(St andardHost .java:612)
at org.apache.catalina.core.C ontainerBa se.start(C ontainerBa se.java:11 23)
at org.apache.catalina.core.S tandardEng ine.start( StandardEn gine.java: 307)
at org.apache.catalina.core.S tandardSer vice.start (StandardS ervice.jav a:388)
at org.apache.catalina.core.S tandardSer ver.start( StandardSe rver.java: 505)
at org.apache.catalina.startu p.Catalina .start(Cat alina.java :776)
at org.apache.catalina.startu p.Catalina .execute(C atalina.ja va:681)
at org.apache.catalina.startu p.Catalina .process(C atalina.ja va:179)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:32 4)
at org.apache.catalina.startu p.Bootstra p.main(Boo tstrap.jav a:243)
2005-04-28 23:33:01 StandardHost[localhost]: MAPPING configuration error for request URI
It feels like maybe an Apache thing, but then again Tomcat is working enough to tell me that the examples directory isn't available, so I am truly lost. Don't know which errors are most important so I'll throw them all out there. I Googled on all of them, but could find no solution, even though I know this question and variants has been asked many times. Please go easy on this Java newbie...
My Catalina DOS window that comes up when I invoke startup shows:
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
... I have a feeling it should say more than that, but as a newbie I have no idea.
When I go to http://localhost:8080/ I get an error "HTTP Status 500 - No Context configured to process this request"
When I go to http://localhost:8080/examples/ I get an error "The requested resource (/examples) is not available."
My apache log in the tomcats logs folder says:
2005-04-28 23:09:29 [org.apache.catalina.conne
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.s
at java.net.PlainSocketImpl.a
at java.net.ServerSocket.impl
at java.net.ServerSocket.acce
at org.apache.catalina.connec
at java.lang.Thread.run(Threa
Catalina log says:
2005-04-28 23:29:53 HttpProcessor[8080][4] process.invoke
java.lang.NullPointerExcep
at org.apache.catalina.valves
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.C
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.C
at org.apache.catalina.connec
at org.apache.catalina.connec
at java.lang.Thread.run(Threa
Localhost log is saying something different now than half an hour ago---I think all I did in between was stop IIS even though it's on another port:
2005-04-28 23:09:39 StandardContext[/manager]:
2005-04-28 23:09:39 StandardContext[/manager]:
2005-04-28 23:09:39 StandardContext[/manager]:
LifecycleException: Container StandardContext[/manager] has not been started
at org.apache.catalina.core.C
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.C
at org.apache.catalina.core.S
at org.apache.catalina.core.C
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.startu
at org.apache.catalina.startu
at org.apache.catalina.startu
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at org.apache.catalina.startu
2005-04-28 23:33:01 StandardHost[localhost]: MAPPING configuration error for request URI
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER