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 阅读(343) 评论(0)  编辑  收藏 所属分类: WebService

只有注册用户登录后才能发表评论。


网站导航:
 
<2013年6月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

常用链接

留言簿(2)

随笔分类

随笔档案

文章分类

文章档案

相册

收藏夹

Java

搜索

  •  

最新随笔

最新评论

阅读排行榜

评论排行榜