| Author |
unable to find the context [/HelloWeb]
|
yogesh srinivasan
Ranch Hand
Joined: Jun 08, 2007
Posts: 55
|
|
Hi I'm getting the following excepiton while start my tomcat server
May 21, 2009 12:01:48 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\javatest\webApp\HelloWeb\build\web does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:141)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3855)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4024)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
May 21, 2009 12:01:48 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
May 21, 2009 12:01:48 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
May 21, 2009 12:01:48 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/HelloWeb] startup failed due to previous errors
May 21, 2009 12:01:48 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/HelloWeb] has not been started
But there is no folder called "HelloWeb" under my tomcat_home\webapps, how could this exception be resolved.
|
 |
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
|
|
|
i am not sure. go to and remove the web directory. then restart the tomcat
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12266
|
|
It appears that Tomcat is NOT looking under the standard location.
under my tomcat_home\webapps,
I am guessing your Tomcat server.xml has been modified to define another Document base directory.
Bill
|
Java Resources at www.wbrogden.com
|
 |
yogesh srinivasan
Ranch Hand
Joined: Jun 08, 2007
Posts: 55
|
|
Hi Guys Sorry for the late reply,
I tried deleting the folder HelloWeb from tomact_home/work/catalina/localhost and restart tomcat, but still i got the same exception.
I tomcat is picking up the applications from the tomcat_home/webapp folder as my other applications are working fine. Still no luck
|
 |
Seetharaman Venkatasamy
Ranch Hand
Joined: Jan 28, 2008
Posts: 5575
|
|
|
you have any entry in server.xml for HelloWeb ?
|
 |
 |
|
|
subject: unable to find the context [/HelloWeb]
|
|
|