[分享]Tomcat 6.0启动报错java.lang.IllegalArgumentException_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2422 | 回复: 0   主题: [分享]Tomcat 6.0启动报错java.lang.IllegalArgumentException        下一篇 
Irvinna
注册用户
等级:新兵
经验:51
发帖:46
精华:0
注册:2011-8-19
状态:离线
发送短消息息给Irvinna 加好友    发送短消息息给Irvinna 发消息
发表于: IP:您无权察看 2014-12-30 14:22:18 | [全部帖] [楼主帖] 楼主

基本上就是下面这个症状,还有就是删除webapps和Catalina中的文件后,重新启动tomcat,Catalina中的文件又会莫名其妙的回来,一开始我也很不理解,后来发现还要删除,D:\Tomcat 6.0\conf\Catalina\localhost下面的相关xml文件,然后Tomcat启动特别正常.

删除项目需要删除webapps和Catalina中的文件还有D:\Tomcat 6.0\conf\Catalina\localhost下面的相关xml文件才能完全删除整个项目,或者直接用Tomcat主页中的Tomcat Manager(推荐)

2010-1-9 22:24:16 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;D:\Tomcat 6.0\bin

2010-1-9 22:24:16 org.apache.coyote.http11.Http11Protocol init


信息: Initializing Coyote HTTP/1.1 on http-8080

2010-1-9 22:24:16 org.apache.catalina.startup.Catalina load


信息: Initialization processed in 444 ms

2010-1-9 22:24:16 org.apache.catalina.core.StandardService start


信息: Starting service Catalina

2010-1-9 22:24:16 org.apache.catalina.core.StandardEngine start


信息: Starting Servlet Engine: Apache Tomcat/6.0.20

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext resourcesStart


严重: Error starting static Resources

java.lang.IllegalArgumentException: Document base D:\Tomcat 6.0\webapps\helloapp 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.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
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: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(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:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2010-1-9 22:24:16 org.apache.catalina.core.StandardContext start


严重: Error in resourceStart()

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext start


严重: Error getConfigured

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext start


严重: Context [/helloapp] startup failed due to previous errors

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext stop


信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/helloapp] has not been started

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext resourcesStart


严重: Error starting static Resources

java.lang.IllegalArgumentException: Document base D:\Tomcat 6.0\webapps\javamail1 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.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
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: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(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:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2010-1-9 22:24:16 org.apache.catalina.core.StandardContext start


严重: Error in resourceStart()

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext start


严重: Error getConfigured

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext start


严重: Context [/javamail1] startup failed due to previous errors

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext stop


信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/javamail1] has not been started

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext resourcesStart


严重: Error starting static Resources

java.lang.IllegalArgumentException: Document base D:\Tomcat 6.0\webapps\javamail2 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.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
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: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(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:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2010-1-9 22:24:16 org.apache.catalina.core.StandardContext start


严重: Error in resourceStart()

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext start


严重: Error getConfigured

2010-1-9 22:24:16 org.apache.catalina.session.JDBCStore getConnection


信息: The database connection is null or was found to be closed. Trying to re-open it.

2010-1-9 22:24:16 org.apache.catalina.session.JDBCStore open


严重: JDBC driver class not found java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext start


严重: Error manager.start()

java.lang.NullPointerException
at org.apache.catalina.session.JDBCStore.open(JDBCStore.java:881)
at org.apache.catalina.session.JDBCStore.getConnection(JDBCStore.java:833)
at org.apache.catalina.session.JDBCStore.start(JDBCStore.java:968)
at org.apache.catalina.session.PersistentManagerBase.start(PersistentManagerBase.java:948)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4438)
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:526)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
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: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(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:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2010-1-9 22:24:16 org.apache.catalina.core.StandardContext start


严重: Context [/javamail2] startup failed due to previous errors

2010-1-9 22:24:16 org.apache.catalina.core.StandardContext stop


信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/javamail2] has not been started

2010-1-9 22:24:17 org.apache.coyote.http11.Http11Protocol start


信息: Starting Coyote HTTP/1.1 on http-8080

2010-1-9 22:24:17 org.apache.jk.common.ChannelSocket init


信息: JK: ajp13 listening on /0.0.0.0:8009

2010-1-9 22:24:17 org.apache.jk.server.JkMain start


信息: Jk running ID=0 time=0/31 config=null

2010-1-9 22:24:17 org.apache.catalina.startup.Catalina start


信息: Server startup in 762 ms

2010-1-9 22:24:57 org.apache.catalina.startup.HostConfig checkResources


信息: Undeploying context [/Test]

2010-1-9 22:24:57 org.apache.catalina.core.StandardContext listenerStop


严重: Exception sending context destroyed event to listener instance of class com.sun.faces.application.WebappLifecycleListener

java.lang.NoClassDefFoundError: com/sun/faces/spi/InjectionProviderException
at com.sun.faces.application.WebappLifecycleListener.handleAttributeEvent(WebappLifecycleListener.java:224)
at com.sun.faces.application.WebappLifecycleListener.contextDestroyed(WebappLifecycleListener.java:275)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3973)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4577)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1103)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1271)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.sun.faces.spi.InjectionProviderException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 14 more
2010-1-9 22:24:57 org.apache.catalina.core.StandardContext listenerStop


严重: Exception sending context destroyed event to listener instance of class com.sun.faces.config.ConfigureListener

java.lang.NoClassDefFoundError: com/sun/faces/config/ConfigureListener$ServletContextAdapter
at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:489)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3973)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4577)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1103)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1271)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener$ServletContextAdapter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 13 more
2010-1-9 22:25:10 org.apache.coyote.http11.Http11Protocol pause


信息: Pausing Coyote HTTP/1.1 on http-8080

2010-1-9 22:25:11 org.apache.catalina.core.StandardService stop


信息: Stopping service Catalina

2010-1-9 22:25:11 org.apache.coyote.http11.Http11Protocol destroy


信息: Stopping Coyote HTTP/1.1 on http-8080

--转自 北京联动北方科技有限公司




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论