- 論壇徽章:
- 0
|
【協(xié)助置頂】從GBK到UTF-8的國(guó)際中文化實(shí)施問題(已解決)
今天又有新問題出來了:
我的中間件是weblogic 7 和JBoss3.2.1_Tomcat 4.
數(shù)據(jù)庫為oracle 9
1.編碼從GBK轉(zhuǎn)換到UTF-8后的*.java文件, 已經(jīng)成功發(fā)布到weblogic7, 數(shù)據(jù)庫,JSP/Servlet都全沒有問題.比較成功.
2.編碼從GBK轉(zhuǎn)換到UTF-8后的*.java文件,也已經(jīng)成功發(fā)布到Jboss上了,數(shù)據(jù)庫,JSP/Servlet也沒有問題了,但美中不足,在啟動(dòng)JBoss的時(shí)候,總要報(bào)一個(gè)錯(cuò)誤,非常討厭的錯(cuò)誤,我貼出來大家?guī)兔Ψ治鲆幌掳?br />
這是啟動(dòng)JBOSS的時(shí)候的一個(gè)錯(cuò)誤,但我的系統(tǒng)還是正常,只是怪得很
============================================
16:57:45,859 ERROR [Digester] Parse Error at line 28 column 11: The content of e
lement type "web-app" must match "(icon?,display-name?,description?,distributabl
e?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,se
ssion-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-
ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,
ejb-ref*,ejb-local-ref*)".
org.xml.sax.SAXParseException: The content of element type "web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-
mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco
me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
=============================================
這是我的web.xml文件,filter是專門用來解決JSP/Servlet方面的中文問題,classes我已經(jīng)通過ISO-8859-1編譯,JDBC用了國(guó)際化中文包,所以三層都是沒問題,系統(tǒng)運(yùn)轉(zhuǎn)還可以. 但總是報(bào)個(gè)錯(cuò),真是討厭又煩
============================================
<?xml version="1.0" encoding="UTF-8"?>;
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">;
<web-app>;
<welcome-file-list>;
<welcome-file>;index.jsp</welcome-file>;
</welcome-file-list>;
<filter>;
<filter-name>;Set Character Encoding</filter-name>;
<filter-class>;filters.SetCharacterEncodingFilter</filter-class>;
<init-param>;
<param-name>;encoding</param-name>;
<param-value>;utf-8</param-value>;
</init-param>;
<init-param>;
<param-name>;ignore</param-name>;
<param-value>;true</param-value>;
</init-param>;
</filter>;
<filter-mapping>;
<filter-name>;Set Character Encoding</filter-name>;
<url-pattern>;/*</url-pattern>;
</filter-mapping>;
</web-app>;
=============================================
高手們,幫幫分析一下哪里錯(cuò)了,感激中………………………… |
|