程序在tomcat下能正常运行,在resin就会报如下的错误?什么原因??/span>

zns2002 2006-09-15 04:56:54
程序在tomcat下能正常运行,在resin就会报如下的错误?什么原因??

java.lang.ExceptionInInitializerError
at service.CustomerService.<init>(CustomerService.java:12)
at service.CustomerService.<clinit>(CustomerService.java:11)
at command.LoginCommand.execute(LoginCommand.java:24)
at control.Control.UserDoAction(Control.java:20)
at control.Control.doGet(Control.java:30)
at control.Control.doPost(Control.java:37)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:171)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.RuntimeException: 初始化ibatis(manager)异常: com.ibatis.dao.client.DaoException:
Error while configuring DaoManager. Cause: com.ibatis.common.exception.NestedRuntimeException:
Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing
XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error
parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException:
Error parsing XML. Cause: com.caucho.xml.XmlParseException: stream:49:
bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error parsing
XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException:
Error parsing XML. Cause: com.caucho.xml.XmlParseException: stream:49:
bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing
XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException:
Error parsing XML. Cause: com.caucho.xml.XmlParseException: stream:49:
bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error parsing
XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException:
Error parsing XML. Cause: com.caucho.xml.XmlParseException: stream:49:
bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error occurred.
Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause:
com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath
'/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException:
Error parsing XML. Cause: com.caucho.xml.XmlParseException: stream:49:
bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error parsing
XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException:
Error parsing XML. Cause: com.caucho.xml.XmlParseException: stream:49:
bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing
XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException:
Error parsing XML. Cause: com.caucho.xml.XmlParseException: stream:49:
bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.exception.NestedRuntimeException: Error parsing
XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException:
Error parsing XML. Cause: com.caucho.xml.XmlParseException: stream:49:
bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: com.caucho.xml.XmlParseException: stream:49: bad character fffd
Caused by: com.caucho.xml.XmlParseException: stream:49: bad character fffd
at persistence.ManagerDAOConfig.<clinit>(ManagerDAOConfig.java:17)
... 15 more
...全文
368 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
LQQ_QQL 2010-06-17
  • 打赏
  • 举报
回复
你的sql-map配置文件有不可识别字符。注意全角或半角的问题。
尤其中文注释,最好不要写中文注释。

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧