eclipse啟動tomcat錯誤:A Java Exception has occurred(轉)


在tomcat bin目錄下執行startup.bat可以正常啟動,但在eclipse下安裝了tomcat插件並且配置tomcat路徑后啟動且報錯:A Java Exception has occurred

解決方法,在eclipse中[window][Preferences]找到[tomcat][JVM Settings],在右邊的配置頁中找到[Classpath (Before generated classpath)],點擊[jar/Zip]在彈出的文件選擇框中選擇tomcat目錄下的bin/tomcat-juli.jar文件,如圖:

啟動tomcat,錯誤解決!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2013-11-20 21:53:56 [I]-[INFO] [FileOperationFactory] Read the ci base configuration file success!
2013-11-20 21:53:56 [I]-[INFO] [FileOperationFactory] Read the ci fields configuration file success!
2013-11-20 21:53:56 [I]-[INFO] [FileOperationFactory] Read the database configuration file success!
2013-11-20 21:53:56 [I]-[INFO] [FileOperationFactory] Read the ci relation configuration file success!
2013-11-20 21:53:57 [I]-[INFO] [FileServer] Neo4j Server started.
十一月 20, 2013 9:53:58 下午 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\tomcat\webapps\mxgraph
十一月 20, 2013 9:53:58 下午 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\tomcat\webapps\mxGraphExamples
十一月 20, 2013 9:53:58 下午 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\tomcat\webapps\ROOT
十一月 20, 2013 9:53:58 下午 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ "http-nio-8080" ]
十一月 20, 2013 9:53:58 下午 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [ "ajp-nio-8009" ]
十一月 20, 2013 9:53:58 下午 org.apache.catalina.startup.Catalina start
INFO: Server startup in 12930 ms

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM