posts - 93,  comments - 2,  trackbacks - 0
          1.org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0xfa (at char #193, byte #127)

          org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:488)

          org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)

          javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

          javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)

          org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)

          org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)

          org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)

          com.adtech.libraryunion.filter.LoginFilter.doFilter(LoginFilter.java:54)

          原因:調用接口的文件的編碼方式不是UTF-8
          解決:用記事本打開調用的文件,另存為UTF-8格式即可解決
          2.web.xml中
          <context-param>
              <param-name>contextConfigLocation</param-name>
              <param-value>classpath*:applicationContext.xml</param-value>
           </context-param>時
          applicationContext.xml文件的位置在tomcat6.0.35\webapps\axis2\WEB-INF\classes目錄下

          <context-param>
              <param-name>contextConfigLocation</param-name>
              <param-value>/WEB-INF/applicationContext.xml</param-value>
          </context-param>
          applicationContext.xml文件的位置在tomcat6.0.35\webapps\axis2\WEB-INF\目錄下
          posted on 2013-06-25 17:01 Terry Zou 閱讀(367) 評論(0)  編輯  收藏 所屬分類: WebService

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2013年6月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          Java

          搜索

          •  

          最新隨筆

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 沧源| 汤阴县| 开阳县| 平舆县| 蕲春县| 广德县| 西青区| 仲巴县| 新化县| 长海县| 蕲春县| 塔城市| 义乌市| 天峨县| 宣武区| 衢州市| 浦江县| 泗阳县| 米林县| 墨玉县| 安国市| 交城县| 鄂伦春自治旗| 邛崃市| 南丹县| 南京市| 松原市| 平谷区| 思南县| 黄浦区| 邯郸市| 犍为县| 湘潭市| 岢岚县| 西昌市| 霍林郭勒市| 岚皋县| 娄烦县| 黑河市| 施甸县| 美姑县|