首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

Eclipse 3.5暖部署WEB程序报java.lang.IllegalArgumentException Error

2012-07-02 
Eclipse 3.5热部署WEB程序报java.lang.IllegalArgumentException Error?2010-7-13 11:07:33 org.apache.ca

Eclipse 3.5热部署WEB程序报java.lang.IllegalArgumentException Error



?2010-7-13 11:07:33 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;d:\ORANT\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ORANT\BIN;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;D:\Program Files\Java\jdk1.6.0_10\bin;D:\Program Files\Java\jdk1.6.0_10\jre\bin
2010-7-13 11:07:33 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8000
2010-7-13 11:07:33 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 865 ms
2010-7-13 11:07:33 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2010-7-13 11:07:33 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.26
2010-7-13 11:07:33 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor oc.xml
2010-7-13 11:07:33 org.apache.catalina.core.StandardContext resourcesStart
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\oc 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:4086)
?at org.apache.catalina.core.StandardContext.start(StandardContext.java:4255)
?at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
?at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
?at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
?at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
?at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
?at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
?at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
?at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
?at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
?at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
?at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
?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:519)
?at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
?at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
?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:289)
?at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2010-7-13 11:07:33 org.apache.catalina.core.StandardContext start
严重: Error in resourceStart()
2010-7-13 11:07:33 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2010-7-13 11:07:33 org.apache.catalina.core.StandardContext start
严重: Context [/oc] startup failed due to previous errors
2010-7-13 11:07:33 org.apache.catalina.core.StandardContext stop
信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/oc] has not been started
2010-7-13 11:07:33 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8000
2010-7-13 11:07:34 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2010-7-13 11:07:34 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/47? config=null
2010-7-13 11:07:34 org.apache.catalina.startup.Catalina start
信息: Server startup in 516 ms

?

解决办法:

1.在servers中新建的SERVER上右击——属性的General项下右边Location属性点击SwitchLocation按钮,设置成/Servers/Tomcat v6.0

2.双击新建的server,修改Server Options设置:将Publish module contexts
?

3. 配置WEB项目的server选项:右击WEB项目——属性(properties)——server(新建WEB项目后默认是none)选中里面您servers热部署中创建的server(我的是Tomcat v6.0
?

?

原贴:http://tdcq.iteye.com/blog/367516

热点排行