tomcat 啟動時控制台輸出的:
信息: 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\jdk1.6.0_39\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk1.6.0_39\jre\bin;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Java\jdk1.6.0_39bin;C:\eclipse;;.2015-1-11 23:11:50 org.apache.coyote.http11.Http11Protocol init2015-1-11 23:11:51 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\OrderSystem\WEB-INF\lib\javaee_no_persistence.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Action :List userList =userService.getUserList(); 執行這句是報:class file editor source not found
根據代碼提示: throw new IllegalArgumentException("The " + methodName + "() is not defined in action " + getAction().getClass() + "");
請高手詳細點指點....謝謝
參考啟動Tomcat報WEB-INF\lib\j2ee.jar jar not loaded異常的解決辦法
原因可能多重加載了。
解決辦法:將工程\WEB-INF\lib下的j2ee.jar包刪除就可以了,因為\Tomcat\lib中可能已經包含了j2ee.jar了(雖然我沒發現,呵呵)
你看看把工程\WEB-INF\lib下的javaee_no_persistence.jar刪除,能否解決問題。_**請注意在刪除前備份一下你的項目。**_