Author | Message |
---|---|
xieguahu
Posts: 50
|
Posted 21:31 Nov 04, 2009 |
I got a 404 page, and the error says:
INFO: Initializing log4j from [C:\CS520\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\csns\WEB-INF\classes\log4j.xml] SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
Where should I look into the probelm? Last edited by xieguahu at
21:35 Nov 04, 2009.
|
xieguahu
Posts: 50
|
Posted 21:46 Nov 04, 2009 |
problem sovled by refreshing
|
cysun
Posts: 2935
|
Posted 21:50 Nov 04, 2009 |
...workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\csns is where Eclipse deploys and runs the project, and sometimes that folder gets messed up. In the Servers view, right click on "csns" then select "Clean Module Work Directory ...". If that doesn't fix the problem, in the Servers view, remove "csns". Exit Eclipse, manually delete the csns folder under ...workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps, then restart Eclipse and try to run the project again. |
jason1353
Posts: 12
|
Posted 17:54 May 13, 2010 |
when I delete the csns directory I get another error (Illegal Argument.....) it complaints that csns directory does not exists. I could run the application by refreshing though. |
p0941
Posts: 95
|
Posted 00:12 May 25, 2010 |
I got IllegalArgumentEcxeption after following the instruction above. I did the refreshing, but it's not helpful.
java.lang.IllegalArgumentException: Document base /home/wpang/Struts_R/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/csns does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4048)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
|