这几天正在阅读AsyncWeb的源代码,今天终于把项目跑起来了,记录几个调试过程中遇到的异常。
AsyncWeb Server的404错误页面:
异常记录:
[15:51:24] ERROR [SingleHttpSessionIoHandler] Unexpected exception from a service : /127.0.0.1:3021
java.util.MissingResourceException: Can’t find bundle for base name org.apache.asyncweb.server.errorReporting.strings, locale zh_CN
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:715)
at org.apache.asyncweb.server.errorReporting.StandardResponseFormatter.getBundle(StandardResponseFormatter.java:45)
at org.apache.asyncweb.server.errorReporting.StandardResponseFormatter.doFormat(StandardResponseFormatter.java:66)
at org.apache.asyncweb.server.errorReporting.StandardResponseFormatter.formatResponse(StandardResponseFormatter.java:36)
at org.apache.asyncweb.server.context.AbstractHttpServiceContext.commitResponse(AbstractHttpServiceContext.java:131)
at org.apache.asyncweb.server.HttpServiceHandler.handleUnmappedRequest(HttpServiceHandler.java:178)
…
解决方法:
找到 strings.properties 文件,复制一份,重命名为 strings_zh_CN.properties 文件即可。
ava.lang.ClassNotFoundException: org.springframework.ejb.config.JeeNamespaceHandler
解决方法:引入 spring-remoting.jar 即可。
java.lang.ClassNotFoundException: org.springframework.scripting.config.LangNamespaceHandler
解决方法:引入 spring-support.jar 即可。
java.lang.ClassNotFoundException: org.springframework.transaction.config.TxNamespaceHandler
解决方法:引入 spring-dao.jar 即可。
java.lang.ClassNotFoundException: org.springframework.aop.config.AopNamespaceHandler
解决方法:引入 spring-aop.jar 即可。
Sorry, the comment form is closed at this time.
No comments yet.