9
我試圖在Eclipse中通過Tomcat運行war文件。但是,當我試圖運行它,我收到以下錯誤在服務器控制檯:Eclipse Indigo中的Tomcat 7:Tomcat未能啓動
Aug 2, 2013 4:06:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/kajarigd/J2EEProject/eclipse/Eclipse.app/Contents/MacOS/lib], exists: [false], isDirectory: [false], canRead: [false]
Aug 2, 2013 4:06:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/kajarigd/J2EEProject/eclipse/Eclipse.app/Contents/MacOS/lib], exists: [false], isDirectory: [false], canRead: [false]
Aug 2, 2013 4:06:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/kajarigd/J2EEProject/eclipse/Eclipse.app/Contents/MacOS/lib], exists: [false], isDirectory: [false], canRead: [false]
Aug 2, 2013 4:06:58 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/Users/kajarigd/J2EEProject/eclipse/Eclipse.app/Contents/MacOS/lib], exists: [false], isDirectory: [false], canRead: [false]
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:236)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:426)
請讓我知道如何解決這個問題。
你如何在Eclipse中通過Tomcat運行戰爭? – yair
我右鍵點擊戰爭。然後選擇運行配置。在配置中,我設置了Apache Tomcat。 – kajarigd
我已經創建了一個Maven項目並將其導入Eclipse。在目標文件夾中我有戰爭文件。但是當我嘗試在Tomcat中添加/刪除資源時,它說「沒有可以從服務器添加或刪除的資源」。 – kajarigd