1 An internal error occurred during: "Add Deployment".
Container with path org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_20 could not be found in project
2 奇怪異常
重啟 打開 關閉,檢測配置文件 檢測struts.xml web.xml
3
Description Resource Path Location Type
Java compiler level does not match the version of the installed Java project facet. hr Unknown Faceted Project Problem (Java Version Mismatch)
window -->preferences -->myeclipse -->validation -->javascript validator for Js
files 把Bulid 復選框的勾去掉 就行了
4 Description Resource Path Location Type
String cannot be resolved to a type list.jsp /hr/WebRoot/infoManage/group line 6 JSP Problem
5 Description Resource Path Location Type
Cannot return from outside a function or method. login.jsp /hr/WebRoot line 39 Client-side JavaScript Problem
6 tomcat啟動成功后Applications無法啟動,Running狀態為false,點擊start 仍然為false
7Tomcat 6.0 錯誤信息: 嚴重: StandardServer.await:create[8005]: java.net.BindException: Address already in use: JVM_Bind
當MyEclipse里面tomcat 7.x啟動不了,這是因為端口被占用了,此時可以配置一下tomcat的端口號 ,或者把占用端口8005的進程結束掉,一般來說這時你的任務管理器中會有個javaw.exe的進程,把它結束了就行了,這樣問題就解決了
8 嚴重: Exception starting filter struts2 Error building results for action check in namespace - action - file
9 顯示行號
在window--> Preferences--> MyEclipse--> Editors--> Common Editor Preferences中的Show line numbers
在使用MyEclipse開發程序的時候,不顯示行號是一件很煩人的事情,要想顯示行號,按住 Ctrl + F10 選擇 show Line Numbers
10 嚴重: Error filterStart
2012-6-27 10:27:53 org.apache.catalina.core.StandardContext start
11 嚴重: Context startup failed due to previous errors org.apache.catalina.core.ApplicationContext log
12 嚴重: Exception starting filter struts2
Error building results for action check in namespace - action - file:/F:/srv/tomcat/webapps/hr_ssi_002/WEB-INF/classes/struts.xml:372:65
13 Errors occurred during the build. Errors running builder 'Java Builder' on project ''. java.lang.NullPointerException
Errors occurred during the build. Errors running builder 'JavaScript Validator ' on project '##'. ja
分類: eclipse 2011-12-08 11:43 349人閱讀 評論(0) 收藏 舉報
把JavaScript Validator去掉。去掉的方法是:選擇一個項目—-右鍵Properties—-Builder s(排二個)—-點一下右則會有四項—-取消第一項“JavaScript Validator”的勾就OK了。
14 嚴重: Servlet.service() for servlet default threw exception java.lang.ClassNotFoundException: org.apache.commons.lang.xwork.StringUtils
java.lang.ClassNotFoundException: org.apache.commons.lang.xwork.StringUtils
今天在Struts2框架下使用JSON插件時,程序保存找不到類org/apache/commons/lang/xwork/StringUtils,我很奇怪,commons-lang包明明導入了,卻又發現commons-lang包中根本沒有xwork子包,幾經周折終於找到了原因:我沒有導入xwork-core這個jar包。呵呵,問題解決了。
將struts2-spring-plugin升級到最新的2.2.3.1即可。
備選方案
第一步:我首先懷疑是不是我的配置文件出現了錯誤,我重新配置了一下,但是還是不行。(配置stuts.xml,web.xml你可以從struts2中apps中copy)
第二步:我開始懷疑是不是我的jar包出現了問題,因為我以前出現過jar包導錯的情況,我又重新導jar包,但還是無濟於事。
(commons-fileupload,commons-io,commons-lang,freemaker,javassist,ongl,struts2-core,xwork-core).jar包
第三步:我開始懷疑是不是我的服務器出現了錯誤,我開始手動啟動Tomcat服務器,果然出現以上錯誤,原來是服務器出現了問題,我從http://tomcat.apache.org/download-55.cgi重新下載了,試了一下,沒有以上錯誤了
15 嚴重: Exception starting filter struts2 Action class [CheckUser] not found - action - file:/
Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.
StrutsPrepareAndExecuteFilter
剛給web.xml配置好,啟動提示這個錯誤。
仔細檢查,對應的類文件都是存在的。
后來發現,因為配置好有,手欠,按了ctrl+Shift+F
這樣便在xml了出現了“ ”空格,所以報錯了。
16 嚴重: The web application [/] created a ThreadLocal with key of type
出現這個原因是因為你是在服務器為STOP的情況下,進行的重新部署,先STOP之后再部署,就沒事了
17 Description Resource Path Location Type
Package JSON extends undefined package json-default struts.xml /hr/conf/struts line 7 Struts 2 Problem
在myeclipse中->windows->preferences->搜索框輸入xml->XML Catalog
->User Specified Entries里面自己配置個dtd的本地url校驗,這樣就不用去聯網校驗了~~