2
我收到以下錯誤消息。我認爲存在某種依賴性問題,但無法找到它。Tomcat - 部署網絡應用時出錯
這裏是你已經打包了servlet API到您的WAR文件(servlet的API-2.5.jar)錯誤
Aug 31, 2011 9:43:00 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\ui-services-1.0\WEB-INF\lib\servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Aug 31, 2011 9:43:08 PM org.apache.catalina.startup.HostConfig deployWAR
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 60
SEVERE: Error deploying web application archive ui-services-1.0.war
at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
同樣的問題,因爲http://stackoverflow.com/questions/6751920/tomcat-7-servlet-3-0-invalid-byte-tag-in-constant-pool? –
相關:http://stackoverflow.com/questions/4076601/how-do-i-import-the-javax-servlet-api-in-my-eclipse-project – BalusC