dcsimg
NullPointerException when <Context> added to Tomcat server.xml
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Tom_Berry
Posted On:   Thursday, October 10, 2002 10:10 AM

I am just trying to add a new web app to Tomcat It runs fine without it, but once the context is added, the following error message flashes by: Apache Tomcat/4.0.4 java.lang.NullPointerException at java.io.File. (File.java:180) at org.apache.catalina.core.StandardContext.getBasePath(StandardContext.java:3659) at org.apache.catalina.core.StandardContext.setResources(StandardContext.java:1108) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3316) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:638) at org.apac   More>>

I am just trying to add a new web app to Tomcat




It runs fine without it, but once the context is added, the following error message flashes by:



Apache Tomcat/4.0.4

java.lang.NullPointerException


at java.io.File. (File.java:180)

at org.apache.catalina.core.StandardContext.getBasePath(StandardContext.java:3659)

at org.apache.catalina.core.StandardContext.setResources(StandardContext.java:1108)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3316)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)

at org.apache.catalina.core.StandardService.start(StandardService.java:388)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)

at org.apache.catalina.startup.Catalina.start(Catalina.java:781)

at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)

at org.apache.catalina.startup.Catalina.process(Catalina.java:179)

at java.lang.reflect.Method.invoke(Native Method)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)



I have triple checked the folder structure - I've added the WEB-INF folder with classes and lib under it - and web.xml has been placed in WEB-INF. I installed Tomcat 4.1.12 and have the same problem. Any help would be greatly appreciated.


Thank you

Tom Berry    <<Less

Re: NullPointerException when &lt;Context&gt; added to Tomcat server.xml

Posted By:   Jeff_Hubbach  
Posted On:   Thursday, October 10, 2002 11:52 AM

does the directory apress exist in the folder that is referenced as the appBase in the parent Host?
About | Sitemap | Contact