4. 錯(cuò)誤描述: Eclipse 不能自動(dòng)編譯,即使已經(jīng)在Project menu選擇了自動(dòng)構(gòu)建選項(xiàng)。
錯(cuò)誤信息: 不能編譯,生成java class文件
錯(cuò)誤原因: 項(xiàng)目屬性里面的java構(gòu)建路徑里面缺少構(gòu)建需要的類包,或者錯(cuò)誤引用不存在的類包
錯(cuò)誤解決: 項(xiàng)目屬性里面的java構(gòu)建路徑里面添加必要的類包。
3. 錯(cuò)誤描述:
錯(cuò)誤信息: java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool: method <init>()V not found
錯(cuò)誤原因: commons-pool-1.2.jar,commons-dbcp-1.2.1.jar,commons-collections.jar版本問(wèn)題
錯(cuò)誤解決: commons-pool-1.2.jar,commons-dbcp-1.2.1.jar,commons-collections.jar放置,就解決。
2.
錯(cuò)誤描述:當(dāng)用Eclipse的Lomboz J2EE Project 創(chuàng)建web應(yīng)用, web server選的是weblogic8.1, 自動(dòng)生成的weblogic.xml 的參考DTD <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 6.1//EN" "
當(dāng)在weblogic.xml添加
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes> //要weblogic 先加載 WEB-INF下面的jar包, 避免類包沖突.
</container-descriptor>
產(chǎn)生警告:
錯(cuò)誤信息: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: Element type "prefer-web-inf-classes" must be declared.
Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "container-descriptor" must match "(check-auth-on-forward?,redirect-content-type?,redirect-content?,redirect-with-absolute-url?)". (line 5, column 26).>
錯(cuò)誤原因: weblogic.xml的DTD版本是6.1,版本太老
錯(cuò)誤解決: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 7.0//EN" "
1. 錯(cuò)誤描述:把a(bǔ)xis-bin-1_2_1.zip解壓后的webapps目錄下面的axis目錄copy到{TOMCAT_HOME}\webapps\axis. Tomcat啟動(dòng)之后,點(diǎn)擊 http://127.0.0.1:8080/axis/happyaxis.jsp, 有下面錯(cuò)誤
錯(cuò)誤信息: Error: could not find class javax.activation.DataHandler from file activation.jar Axis will not work. 。
控制臺(tái)顯示下面錯(cuò)誤:
-Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
錯(cuò)誤原因: 缺少 activation.jar ,mail.jar,
錯(cuò)誤解決: 把這幾個(gè)類包放到{TOMCAT_HOME}\webapps\axis\WEB-INF\lib下面。