struts2-core-2.3.4.1.jar!/struts-default.xml:找不到

Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/D:/MyEclipse%208.5/.metadata/.me_tcat/webapps/ROOT/WEB-INF/lib/struts2-core-2.2.1.jar!/struts-default.xml:29:72 - bean - jar:file:/D:/MyEclipse%208.5/.metadata/.me_tcat/webapps/ROOT/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72

1个回答

 struts的核心包加载重复了,去掉一个试试。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
可能是struts2-core .jar 的问题
今天突然想学习下 Struts 2 看着视频 模仿着做. 同样的操作 我出错了.. [code="java"]严重: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/E:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/Struts2/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)[/code] web.xml 中的配置 [code="java"]<filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>[/code] 我使用的struts2-core-2.1.6.jar ,我想可能就是这个jar 的问题吧 [b]问题补充:[/b] [quote]有点怪,你下的官方的jar吧 lovewhzlq (架构师) 2009-04-26 [/quote] 是在官网下载的最新的jar 没想到 新的和 2.0.11 的有这么多区别... 看看官网有老版本的下载么 [b]问题补充:[/b] [quote]异常太少了,估计你加入项目的 jar 文件不符合要求。 下载struts 2.1.6 中的all包。 至少要加入 6 个jar文件。 Java代码 struts-2.1.6/lib/commons-logging-1.0.4.jar struts-2.1.6/lib/freemarker-2.3.13.jar struts-2.1.6/lib/ognl-2.6.11.jar struts-2.1.6/lib/struts2-core-2.1.6.jar struts-2.1.6/lib/xwork-2.1.2.jar struts-2.1.6/lib/commons-fileupload-1.2.1.jar struts-2.1.6/lib/commons-logging-1.0.4.jar struts-2.1.6/lib/freemarker-2.3.13.jar struts-2.1.6/lib/ognl-2.6.11.jar struts-2.1.6/lib/struts2-core-2.1.6.jar struts-2.1.6/lib/xwork-2.1.2.jar struts-2.1.6/lib/commons-fileupload-1.2.1.jar 另外org.apache.struts2.dispatcher.FilterDispatcher 在 2.1.6 中已经过时,请用org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter替代。 hantsy (高级程序员) [/quote] 我刚学struts2 没想有这就过时了,, 还是先下载个 2.0.14的 根据教程好好学习下吧
maven2 xml重复载入
<p>使用maven2时遇到问题<br>struts2报错:<br>Failed startup of context <a href="mailto:org.mortbay.jetty.webapp.WebAppContext@1aaa14a%7B/xun,src/main/webapp">org.mortbay.jetty.webapp.WebAppContext@1aaa14a{/xun,src/main/webapp</a>}<br>Unable to load configuration. - bean - jar:file:/F:/xun/src/main/webapp/WEB-INF/lib/struts2-core-2.1.8.jar!/struts-default.xml:29:72<br>Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file<span style="color: #ff0000;"><span style="color: #000000;">:</span>/F:/Repository/org/apache/struts/struts2-core/2.1.8/struts2-core-2.1.8.jar!/struts-default.xml</span>:29:72 - bean - jar:file:<span style="color: #ff0000;">/F:/xun/src/main/webapp/WEB-INF/lib/struts2-core-2.1.8.jar!/struts-default.xml</span>:29:72<br>slf4j警告:<br>SLF4J: Class path contains multiple SLF4J bindings.<br>SLF4J: Found binding in [jar:file:<span style="color: #ff0000;">/F:/Repository/org/slf4j/slf4j-log4j12/1.5.11/slf4j-log4j12-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class</span>]<br>SLF4J: Found binding in [jar:file:<span style="color: #ff0000;">/F:/xun/src/main/webapp/WEB-INF/lib/slf4j-log4j12-1.5.11.jar!/org/slf4j/impl/StaticLoggerBinder.class</span>]</p> <p> </p> <p>看log好像是maven把这两个配置文件载入了两次,弄了好久也不知道怎么解决。。。</p>
struts2上传文件时,action中的file为空,怎么解决?
我使用struts2上传文件时,Action类中的File对象获取不了jsp中上传的文件,调试过后发现file为空。 以下是我写的代码 fileupload.jsp ``` <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>文件上传</title> </head> <body> <form action="fileupload.action" method="post" enctype="multipart/form-data"> 文件:<input type="file" name="file"/> <input type="submit" value="上传"/> </form> </body> </html> ``` struts.xml ``` <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"> <struts> <!-- 设计文件上传的临时路径 --> <constant name="struts.multipart.saveDir" value="c:\" /> <!-- 设置上传文件总大小 --> <!-- <constant name="struts.multipart.maxSize" value="100001"/> --> <package name="default" namespace="/" extends="struts-default"> <action name="login" class="com.fan.demo.action.UploadAction"> <result>/fileupload.jsp</result> </action> <action name="fileupload" class="com.fan.demo.action.UploadAction" method="upload"> <result name="success">/success.jsp</result> <result name="error">/error.jsp</result> <interceptor-ref name="fileUpload"> <!-- 设置文件大小 --> <!-- <param name="maximumSize">100000</param> --> </interceptor-ref> <interceptor-ref name="defaultStack"/> </action> </package> </struts> ``` UploadAction.java ``` package com.fan.demo.action; import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionContext; public class UploadAction { private File file;//文件名,这个File对象为空,怎么解决 private String fileFileName;//属性 private String fileContentType;//类型 public String upload() { //获取文件上传临时目录 String path=ServletActionContext.getServletContext().getRealPath("/upload"); try { FileUtils.copyFile(file, new File(path,fileFileName)); return Action.SUCCESS; } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return Action.ERROR; } public String execute(){ return "success"; } public File getFile() { return file; } public void setFile(File file) { this.file = file; } public String getFileFileName() { return fileFileName; } public void setFileFileName(String fileFileName) { this.fileFileName = fileFileName; } public String getFileContentType() { return fileContentType; } public void setFileContentType(String fileContentType) { this.fileContentType = fileContentType; } } ``` -- -- -- -- -- -- -- -- --- -- -- -- -- --- -- --- --- --- --- -- -- -- -- --- -- --- --- --- - 我在上传一个1k的文件的时候报错了,以下是异常信息 ``` 16:19:09.517 [http-8080-1] ERROR org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception occurred during processing request: null java.lang.NullPointerException at java.io.File.<init>(File.java:262) ~[?:1.6.0_13] at com.fan.demo.action.UploadAction.upload(UploadAction.java:17) ~[UploadAction.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.6.0_13] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[?:1.6.0_13] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[?:1.6.0_13] at java.lang.reflect.Method.invoke(Method.java:597) ~[?:1.6.0_13] at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:897) ~[ognl-3.0.21.jar:?] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1299) ~[ognl-3.0.21.jar:?] at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68) ~[ognl-3.0.21.jar:?] at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108) ~[xwork-core-2.3.37.jar:2.3.37] at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1375) ~[ognl-3.0.21.jar:?] at ognl.ASTMethod.getValueBody(ASTMethod.java:91) ~[ognl-3.0.21.jar:?] at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) ~[ognl-3.0.21.jar:?] at ognl.SimpleNode.getValue(SimpleNode.java:258) ~[ognl-3.0.21.jar:?] at ognl.Ognl.getValue(Ognl.java:470) ~[ognl-3.0.21.jar:?] at ognl.Ognl.getValue(Ognl.java:434) ~[ognl-3.0.21.jar:?] at com.opensymphony.xwork2.ognl.OgnlUtil$3.execute(OgnlUtil.java:398) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecuteMethod(OgnlUtil.java:450) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.ognl.OgnlUtil.callMethod(OgnlUtil.java:396) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:430) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:290) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251) ~[xwork-core-2.3.37.jar:2.3.37] at org.apache.struts2.interceptor.DeprecationInterceptor.intercept(DeprecationInterceptor.java:41) ~[struts2-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256) ~[struts2-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265) ~[xwork-core-2.3.37.jar:2.3.37] at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76) ~[struts2-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) ~[struts2-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125) ~[struts2-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91) ~[struts2-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:326) ~[struts2-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) ~[struts2-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189) ~[xwork-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:326) ~[struts2-core-2.3.37.jar:2.3.37] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245) ~[xwork-core-2.3.37.jar:2.3.37] at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54) ~[struts2-core-2.3.37.jar:2.3.37] at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:575) [struts2-core-2.3.37.jar:2.3.37] at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81) [struts2-core-2.3.37.jar:2.3.37] at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99) [struts2-core-2.3.37.jar:2.3.37] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:?] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:?] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:?] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:?] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) [catalina.jar:?] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:?] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:?] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) [catalina.jar:?] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) [tomcat-coyote.jar:?] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) [tomcat-coyote.jar:?] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) [tomcat-coyote.jar:?] at java.lang.Thread.run(Thread.java:619) [?:1.6.0_13] ``` 已经引入的jar包: ![图片说明](https://img-ask.csdn.net/upload/201908/20/1566268296_421812.png) 项目:![图片说明](https://img-ask.csdn.net/upload/201908/20/1566271042_863578.png) debug结果:file,fileFileName,fileContentType均为null
部署Struts2出错,程序没可以运行,就是看到这些debug信息觉得奇怪
五月 17, 2017 12:12:12 下午 org.apache.jasper.servlet.TldScanner scanJars 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 2017-05-17 12:12:12,648 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:12,650 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:12,651 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:12,651 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:12,652 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:12,657 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:12,657 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:12,658 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:12,658 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:12,658 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:12,706 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:12,707 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:12,707 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:12,708 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:12,708 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:12,708 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loading action configurations from: struts-default.xml 2017-05-17 12:12:12,709 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Creating revision for URL: jar:file:/F:/Tomcat/apache-tomcat-8.0.43/webapps/struts2-blank/WEB-INF/lib/struts2-core-2.3.32.jar!/struts-default.xml 2017-05-17 12:12:12,738 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded action configuration from: struts-default.xml 2017-05-17 12:12:12,739 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Parsing configuration file [struts-default.xml] 2017-05-17 12:12:12,743 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type: name:struts impl:com.opensymphony.xwork2.ObjectFactory 2017-05-17 12:12:12,744 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.factory.ResultFactory name:struts impl:org.apache.struts2.factory.StrutsResultFactory 2017-05-17 12:12:12,745 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.factory.ActionFactory name:struts impl:com.opensymphony.xwork2.factory.DefaultActionFactory 2017-05-17 12:12:12,745 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.factory.ConverterFactory name:struts impl:com.opensymphony.xwork2.factory.DefaultConverterFactory 2017-05-17 12:12:12,745 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.factory.InterceptorFactory name:struts impl:com.opensymphony.xwork2.factory.DefaultInterceptorFactory 2017-05-17 12:12:12,745 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.factory.ValidatorFactory name:struts impl:com.opensymphony.xwork2.factory.DefaultValidatorFactory 2017-05-17 12:12:12,745 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.factory.UnknownHandlerFactory name:struts impl:com.opensymphony.xwork2.factory.DefaultUnknownHandlerFactory 2017-05-17 12:12:12,745 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.FileManager name:system impl:com.opensymphony.xwork2.util.fs.DefaultFileManager 2017-05-17 12:12:12,746 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.FileManagerFactory name:struts impl:com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory 2017-05-17 12:12:12,790 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.ActionProxyFactory name:struts impl:org.apache.struts2.impl.StrutsActionProxyFactory 2017-05-17 12:12:12,792 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.ActionProxyFactory name:prefix impl:org.apache.struts2.impl.PrefixBasedActionProxyFactory 2017-05-17 12:12:12,792 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.ObjectTypeDeterminer name:struts impl:com.opensymphony.xwork2.conversion.impl.DefaultObjectTypeDeterminer 2017-05-17 12:12:12,793 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.util.PatternMatcher name:struts impl:com.opensymphony.xwork2.util.WildcardHelper 2017-05-17 12:12:12,794 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.util.PatternMatcher name:namedVariable impl:com.opensymphony.xwork2.util.NamedVariablePatternMatcher 2017-05-17 12:12:12,795 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.util.PatternMatcher name:regex impl:org.apache.struts2.util.RegexPatternMatcher 2017-05-17 12:12:12,796 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.util.ContentTypeMatcher name:struts impl:org.apache.struts2.util.DefaultContentTypeMatcher 2017-05-17 12:12:12,799 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.dispatcher.mapper.ActionMapper name:struts impl:org.apache.struts2.dispatcher.mapper.DefaultActionMapper 2017-05-17 12:12:12,800 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.dispatcher.mapper.ActionMapper name:composite impl:org.apache.struts2.dispatcher.mapper.CompositeActionMapper 2017-05-17 12:12:12,801 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.dispatcher.mapper.ActionMapper name:restful impl:org.apache.struts2.dispatcher.mapper.RestfulActionMapper 2017-05-17 12:12:12,802 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.dispatcher.mapper.ActionMapper name:restful2 impl:org.apache.struts2.dispatcher.mapper.Restful2ActionMapper 2017-05-17 12:12:12,806 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.dispatcher.multipart.MultiPartRequest name:jakarta impl:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest 2017-05-17 12:12:12,808 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.dispatcher.multipart.MultiPartRequest name:jakarta-stream impl:org.apache.struts2.dispatcher.multipart.JakartaStreamMultiPartRequest 2017-05-17 12:12:12,811 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.views.TagLibraryDirectiveProvider name:s impl:org.apache.struts2.views.DefaultTagLibrary 2017-05-17 12:12:12,811 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.views.TagLibraryModelProvider name:s impl:org.apache.struts2.views.DefaultTagLibrary 2017-05-17 12:12:12,812 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type: name:default impl:org.apache.struts2.views.freemarker.FreemarkerThemeTemplateLoader 2017-05-17 12:12:12,817 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type: name:struts impl:org.apache.struts2.views.freemarker.FreemarkerManager 2017-05-17 12:12:12,819 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Unable to load optional class: org.apache.struts2.views.velocity.VelocityManager 2017-05-17 12:12:12,820 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type: name:default impl:org.apache.struts2.components.template.TemplateEngineManager 2017-05-17 12:12:12,826 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.components.template.TemplateEngine name:ftl impl:org.apache.struts2.components.template.FreemarkerTemplateEngine 2017-05-17 12:12:12,827 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.components.template.TemplateEngine name:vm impl:org.apache.struts2.components.template.VelocityTemplateEngine 2017-05-17 12:12:12,828 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.components.template.TemplateEngine name:jsp impl:org.apache.struts2.components.template.JspTemplateEngine 2017-05-17 12:12:12,828 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.impl.XWorkConverter name:struts impl:com.opensymphony.xwork2.conversion.impl.XWorkConverter 2017-05-17 12:12:12,828 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor name:struts impl:com.opensymphony.xwork2.conversion.impl.DefaultConversionPropertiesProcessor 2017-05-17 12:12:12,828 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.ConversionFileProcessor name:struts impl:com.opensymphony.xwork2.conversion.impl.DefaultConversionFileProcessor 2017-05-17 12:12:12,829 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor name:struts impl:com.opensymphony.xwork2.conversion.impl.DefaultConversionAnnotationProcessor 2017-05-17 12:12:12,829 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.TypeConverterCreator name:struts impl:com.opensymphony.xwork2.conversion.impl.DefaultTypeConverterCreator 2017-05-17 12:12:12,829 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.TypeConverterHolder name:struts impl:com.opensymphony.xwork2.conversion.impl.DefaultTypeConverterHolder 2017-05-17 12:12:12,829 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type: name:default impl:com.opensymphony.xwork2.conversion.impl.XWorkBasicConverter 2017-05-17 12:12:12,829 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.impl.CollectionConverter name:struts impl:com.opensymphony.xwork2.conversion.impl.CollectionConverter 2017-05-17 12:12:12,829 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.impl.ArrayConverter name:struts impl:com.opensymphony.xwork2.conversion.impl.ArrayConverter 2017-05-17 12:12:12,830 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.impl.DateConverter name:struts impl:com.opensymphony.xwork2.conversion.impl.DateConverter 2017-05-17 12:12:12,830 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.impl.NumberConverter name:struts impl:com.opensymphony.xwork2.conversion.impl.NumberConverter 2017-05-17 12:12:12,830 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.impl.StringConverter name:struts impl:com.opensymphony.xwork2.conversion.impl.StringConverter 2017-05-17 12:12:12,832 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.TextProvider name:struts impl:com.opensymphony.xwork2.TextProviderSupport 2017-05-17 12:12:12,832 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.LocaleProvider name:struts impl:com.opensymphony.xwork2.DefaultLocaleProvider 2017-05-17 12:12:12,834 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.components.UrlRenderer name:struts impl:org.apache.struts2.components.ServletUrlRenderer 2017-05-17 12:12:12,836 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.views.util.UrlHelper name:struts impl:org.apache.struts2.views.util.DefaultUrlHelper 2017-05-17 12:12:12,837 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.util.ValueStackFactory name:struts impl:com.opensymphony.xwork2.ognl.OgnlValueStackFactory 2017-05-17 12:12:12,837 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.util.reflection.ReflectionProvider name:struts impl:com.opensymphony.xwork2.ognl.OgnlReflectionProvider 2017-05-17 12:12:12,838 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.util.reflection.ReflectionContextFactory name:struts impl:com.opensymphony.xwork2.ognl.OgnlReflectionContextFactory 2017-05-17 12:12:12,838 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.TextProvider name:system impl:com.opensymphony.xwork2.DefaultTextProvider 2017-05-17 12:12:12,839 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.conversion.NullHandler name:java.lang.Object impl:com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler 2017-05-17 12:12:12,842 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.validator.ActionValidatorManager name:struts impl:com.opensymphony.xwork2.validator.AnnotationActionValidatorManager 2017-05-17 12:12:12,843 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.validator.ActionValidatorManager name:no-annotations impl:com.opensymphony.xwork2.validator.DefaultActionValidatorManager 2017-05-17 12:12:12,845 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.validator.ValidatorFactory name:default impl:com.opensymphony.xwork2.validator.DefaultValidatorFactory 2017-05-17 12:12:12,846 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.validator.ValidatorFileParser name:default impl:com.opensymphony.xwork2.validator.DefaultValidatorFileParser 2017-05-17 12:12:12,847 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type: name:default impl:com.opensymphony.xwork2.ognl.OgnlUtil 2017-05-17 12:12:12,847 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.util.TextParser name:struts impl:com.opensymphony.xwork2.util.OgnlTextParser 2017-05-17 12:12:12,847 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:com.opensymphony.xwork2.util.CompoundRoot impl:com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor 2017-05-17 12:12:12,848 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:java.lang.Object impl:com.opensymphony.xwork2.ognl.accessor.ObjectAccessor 2017-05-17 12:12:12,848 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:java.util.Iterator impl:com.opensymphony.xwork2.ognl.accessor.XWorkIteratorPropertyAccessor 2017-05-17 12:12:12,849 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:java.util.Enumeration impl:com.opensymphony.xwork2.ognl.accessor.XWorkEnumerationAccessor 2017-05-17 12:12:12,850 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:java.util.List impl:com.opensymphony.xwork2.ognl.accessor.XWorkListPropertyAccessor 2017-05-17 12:12:12,851 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:java.util.Set impl:com.opensymphony.xwork2.ognl.accessor.XWorkCollectionPropertyAccessor 2017-05-17 12:12:12,852 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:java.util.Map impl:com.opensymphony.xwork2.ognl.accessor.XWorkMapPropertyAccessor 2017-05-17 12:12:12,852 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:java.util.Collection impl:com.opensymphony.xwork2.ognl.accessor.XWorkCollectionPropertyAccessor 2017-05-17 12:12:12,853 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:com.opensymphony.xwork2.ognl.ObjectProxy impl:com.opensymphony.xwork2.ognl.accessor.ObjectProxyPropertyAccessor 2017-05-17 12:12:12,854 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.MethodAccessor name:java.lang.Object impl:com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor 2017-05-17 12:12:12,854 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.MethodAccessor name:com.opensymphony.xwork2.util.CompoundRoot impl:com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor 2017-05-17 12:12:12,855 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type: name:default impl:org.apache.struts2.views.jsp.ui.OgnlTool 2017-05-17 12:12:12,857 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.dispatcher.StaticContentLoader name:struts impl:org.apache.struts2.dispatcher.DefaultStaticContentLoader 2017-05-17 12:12:12,860 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.UnknownHandlerManager name:struts impl:com.opensymphony.xwork2.DefaultUnknownHandlerManager 2017-05-17 12:12:12,862 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:org.apache.struts2.dispatcher.DispatcherErrorHandler name:struts impl:org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler 2017-05-17 12:12:12,863 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:java.util.ArrayList impl:com.opensymphony.xwork2.ognl.accessor.XWorkListPropertyAccessor 2017-05-17 12:12:12,863 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:java.util.HashSet impl:com.opensymphony.xwork2.ognl.accessor.XWorkCollectionPropertyAccessor 2017-05-17 12:12:12,864 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:ognl.PropertyAccessor name:java.util.HashMap impl:com.opensymphony.xwork2.ognl.accessor.XWorkMapPropertyAccessor 2017-05-17 12:12:12,865 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.security.ExcludedPatternsChecker name:struts impl:com.opensymphony.xwork2.security.DefaultExcludedPatternsChecker 2017-05-17 12:12:12,866 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded type:com.opensymphony.xwork2.security.AcceptedPatternsChecker name:struts impl:com.opensymphony.xwork2.security.DefaultAcceptedPatternsChecker 2017-05-17 12:12:12,867 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:12,867 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:12,868 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:12,868 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:12,869 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:12,869 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loading action configurations from: struts-plugin.xml 2017-05-17 12:12:12,870 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Unable to locate configuration files of the name struts-plugin.xml, skipping 2017-05-17 12:12:12,870 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Parsing configuration file [struts-plugin.xml] 2017-05-17 12:12:12,870 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:12,871 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:12,871 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:12,872 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:12,872 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:12,872 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loading action configurations from: struts.xml 2017-05-17 12:12:12,873 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Creating revision for URL: file:/F:/Tomcat/apache-tomcat-8.0.43/webapps/struts2-blank/WEB-INF/classes/struts.xml 2017-05-17 12:12:12,877 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loading action configurations from: example.xml 2017-05-17 12:12:12,878 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Creating revision for URL: file:/F:/Tomcat/apache-tomcat-8.0.43/webapps/struts2-blank/WEB-INF/classes/example.xml 2017-05-17 12:12:12,882 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded action configuration from: example.xml 2017-05-17 12:12:12,882 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded action configuration from: struts.xml 2017-05-17 12:12:12,882 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Parsing configuration file [struts.xml] 2017-05-17 12:12:12,884 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - struts.properties missing 2017-05-17 12:12:12,886 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory) 2017-05-17 12:12:12,886 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ActionFactory) 2017-05-17 12:12:12,887 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ResultFactory) 2017-05-17 12:12:12,887 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ConverterFactory) 2017-05-17 12:12:12,887 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.factory.InterceptorFactory) 2017-05-17 12:12:12,887 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.factory.ValidatorFactory) 2017-05-17 12:12:12,888 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.factory.UnknownHandlerFactory) 2017-05-17 12:12:12,888 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory) 2017-05-17 12:12:12,888 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter) 2017-05-17 12:12:12,888 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter) 2017-05-17 12:12:12,889 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter) 2017-05-17 12:12:12,889 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter) 2017-05-17 12:12:12,889 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter) 2017-05-17 12:12:12,889 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter) 2017-05-17 12:12:12,890 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor) 2017-05-17 12:12:12,890 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor) 2017-05-17 12:12:12,890 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor) 2017-05-17 12:12:12,890 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator) 2017-05-17 12:12:12,890 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder) 2017-05-17 12:12:12,891 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider) 2017-05-17 12:12:12,891 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider) 2017-05-17 12:12:12,891 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory) 2017-05-17 12:12:12,891 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer) 2017-05-17 12:12:12,891 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper) 2017-05-17 12:12:12,892 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest) 2017-05-17 12:12:12,892 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager) 2017-05-17 12:12:12,894 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Choosing bean (struts) for (org.apache.struts2.views.velocity.VelocityManager) to be loaded from the ObjectFactory 2017-05-17 12:12:12,895 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer) 2017-05-17 12:12:12,895 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager) 2017-05-17 12:12:12,895 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory) 2017-05-17 12:12:12,895 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider) 2017-05-17 12:12:12,895 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory) 2017-05-17 12:12:12,896 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher) 2017-05-17 12:12:12,896 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (org.apache.struts2.util.ContentTypeMatcher) 2017-05-17 12:12:12,896 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader) 2017-05-17 12:12:12,896 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager) 2017-05-17 12:12:12,896 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper) 2017-05-17 12:12:12,896 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser) 2017-05-17 12:12:12,897 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (org.apache.struts2.dispatcher.DispatcherErrorHandler) 2017-05-17 12:12:12,897 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.security.ExcludedPatternsChecker) 2017-05-17 12:12:12,897 INFO [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:45) - Choosing bean (struts) for (com.opensymphony.xwork2.security.AcceptedPatternsChecker) 2017-05-17 12:12:12,900 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Added default resource bundle '{}' to default resource bundles for the following classloader '{}' 2017-05-17 12:12:12,913 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:12,914 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:12,915 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:12,915 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:12,916 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:12,917 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:12,917 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:12,918 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:12,919 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:12,920 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:12,922 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:12,922 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:12,923 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:12,924 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:12,924 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:12,927 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded [BUILDER] PackageConfig: [struts-default] for namespace [] with parents [[]] 2017-05-17 12:12:12,975 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loading validator definitions. 2017-05-17 12:12:13,006 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:13,007 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:13,008 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:13,009 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:13,009 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:13,016 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - new I18nInterceptor() 2017-05-17 12:12:13,018 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - new I18nInterceptor() 2017-05-17 12:12:13,045 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - new I18nInterceptor() 2017-05-17 12:12:13,056 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:13,056 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:13,057 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:13,057 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:13,057 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:13,061 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:13,062 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:13,062 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:13,063 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:13,063 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:13,063 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Found following implementations of FileManager interface: [system, jboss] 2017-05-17 12:12:13,063 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - No user defined FileManager, looking up for internal implementations! 2017-05-17 12:12:13,064 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.vfs.VirtualFile] class, not a JBoss 7! 2017-05-17 12:12:13,065 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cannot load [org.jboss.virtual.VirtualFile] class, not a JBoss 5! 2017-05-17 12:12:13,065 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using default implementation of FileManager provided under name [system]: DefaultFileManager 2017-05-17 12:12:13,065 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded [BUILDER] PackageConfig: [default] for namespace [/] with parents [[PackageConfig: [struts-default] for namespace [] with parents [[]]]] 2017-05-17 12:12:13,069 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded //index in 'default' package:{ActionConfig index () - action - file:/F:/Tomcat/apache-tomcat-8.0.43/webapps/struts2-blank/WEB-INF/classes/struts.xml:23:30} 2017-05-17 12:12:13,070 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded [BUILDER] PackageConfig: [example] for namespace [/example] with parents [[PackageConfig: [default] for namespace [/] with parents [[PackageConfig: [struts-default] for namespace [] with parents [[]]]]]] 2017-05-17 12:12:13,079 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded /example/HelloWorld in 'example' package:{ActionConfig HelloWorld (example.HelloWorld) - action - file:/F:/Tomcat/apache-tomcat-8.0.43/webapps/struts2-blank/WEB-INF/classes/example.xml:10:62} 2017-05-17 12:12:13,081 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded /example/Login_* in 'example' package:{ActionConfig Login_* (example.Login.{1}()) - action - file:/F:/Tomcat/apache-tomcat-8.0.43/webapps/struts2-blank/WEB-INF/classes/example.xml:14:67} 2017-05-17 12:12:13,081 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Loaded /example/* in 'example' package:{ActionConfig * (example.ExampleSupport) - action - file:/F:/Tomcat/apache-tomcat-8.0.43/webapps/struts2-blank/WEB-INF/classes/example.xml:19:57} 2017-05-17 12:12:13,081 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:77) - Package [default] already loaded, skipping re-loading it and using existing PackageConfig [PackageConfig: [default] for namespace [/] with parents [[PackageConfig: [struts-default] for namespace [] with parents [[]]]]] 2017-05-17 12:12:13,085 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Compiling pattern 'Login_*' 2017-05-17 12:12:13,086 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Compiling pattern '*' 2017-05-17 12:12:13,182 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Using object wrapper of class org.apache.struts2.views.freemarker.StrutsBeanWrapper 2017-05-17 12:12:13,366 DEBUG [localhost-startStop-1] log4j2.Log4j2Logger (Log4j2Logger.java:73) - Cleaning up resources used to init Dispatcher 五月 17, 2017 12:12:13 下午 org.apache.catalina.startup.HostConfig deployDirectory
第一次写struts2,被一个login例子搞死了。。。高手们帮忙看一下。。
myEclipse 7.5 JDK: 1.6 tomcat : 6.0 拿着参考文档学: lib(commons-logging.jar,freemarker.jar,ognl.jar,struts2-core.jar,xwork.jar) 后面又加了:commons-io-2.0.1.jar ,commons-lang-2.5.jar classes(struts.xml) struts.xml: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <package name="struts2" extends="struts-default"> <action name="login" class="org.gxf.demo.LoginAction"> <result name="success">/success.jsp</result> </action> </package> </struts> web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>Struts2.0</display-name> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app> login.jsp: <%@ page language="java" contentType="text/html; charset=GBK"%> <html> <head> <title>登录页面</title> </head> <body> <!-- 提交请求参数的表单 --> <form action="login.action" method="post"> <table align="center"> <caption>用户登录</caption> <tr> <td> 用户名: <input type="text" name="username" /> </td> </tr> <tr> <td> 密&nbsp;&nbsp;码: <input type="text" name="password" /> </td> </tr> <tr align="center"> <td colspan="2"> <input type="submit" value="登录" /> <input type="reset" value="重填" /> </td> </tr> </table> </form> </body> </html> public class LoginAction { private String username; private String password; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String execute() throws Exception{ if("hello".equals(getUsername())){ return "success"; }else{ return "fail"; } } } error: 2011-12-16 15:45:23 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory struts2study 2011-12-16 15:45:25 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info 信息: Parsing configuration file [struts-default.xml] 2011-12-16 15:45:26 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info 信息: Parsing configuration file [struts-plugin.xml] 2011-12-16 15:45:26 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error 严重: Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/D:/apache-tomcat-6.0.24/webapps/struts2study/WEB-INF/lib/struts2-gxp-plugin-2.3.1.jar!/struts-plugin.xml:8:162 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:195) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean - jar:file:/D:/apache-tomcat-6.0.24/webapps/struts2study/WEB-INF/lib/struts2-gxp-plugin-2.3.1.jar!/struts-plugin.xml:8:162 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:235) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ... 30 more Caused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329) at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:157) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:206) ... 33 more 2011-12-16 15:45:26 org.apache.catalina.core.StandardContext filterStart 严重: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/D:/apache-tomcat-6.0.24/webapps/struts2study/WEB-INF/lib/struts2-gxp-plugin-2.3.1.jar!/struts-plugin.xml:8:162 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:449) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:195) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: Unable to load configuration. - bean - jar:file:/D:/apache-tomcat-6.0.24/webapps/struts2study/WEB-INF/lib/struts2-gxp-plugin-2.3.1.jar!/struts-plugin.xml:8:162 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436) ... 28 more Caused by: Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean - jar:file:/D:/apache-tomcat-6.0.24/webapps/struts2study/WEB-INF/lib/struts2-gxp-plugin-2.3.1.jar!/struts-plugin.xml:8:162 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:235) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ... 30 more Caused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329) at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:157) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:206) ... 33 more 2011-12-16 15:45:26 org.apache.catalina.core.StandardContext start 严重: Error filterStart 2011-12-16 15:45:26 org.apache.catalina.core.StandardContext start 严重: Context [/struts2study] startup failed due to previous errors
JBoss部署web项目启动报错
JBoss6.0 final,没有项目时正常启动,部署项目就会报错 20:07:12,070 INFO [AbstractJBossASServerBase] Server Configuration: JBOSS_HOME URL: file:/F:/DevelopTools/jboss-6.0.0.Final/ Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml Common Base: $JBOSS_HOME\common/ Common Library: $JBOSS_HOME\common/lib/ Server Name: default Server Base: $JBOSS_HOME\server/ Server Library: $JBOSS_HOME\server/default/lib/ Server Config: $JBOSS_HOME\server/default/conf/ Server Home: $JBOSS_HOME\server/default/ Server Data: $JBOSS_HOME\server/default/data/ Server Log: $JBOSS_HOME\server/default/log/ Server Temp: $JBOSS_HOME\server/default/tmp/ 20:07:12,070 INFO [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"] 20:07:13,381 INFO [ServerInfo] Java version: 1.6.0_13,Sun Microsystems Inc. 20:07:13,381 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_13-b03) 20:07:13,381 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 11.3-b02,Sun Microsystems Inc. 20:07:13,381 INFO [ServerInfo] OS-System: Windows Vista 6.1,x86 20:07:13,381 INFO [ServerInfo] VM arguments: -Djboss.home=F:\DevelopTools\jboss-6.0.0.Final -Djava.library.path=F:\DevelopTools\MyEclipse\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin -Djava.endorsed.dirs=F:\DevelopTools\jboss-6.0.0.Final\lib\endorsed -Xms128m -Xmx512m -XX:MaxPermSize=256m 20:07:13,429 INFO [JMXKernel] Legacy JMX core initialized 20:07:17,438 INFO [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA 20:07:18,094 INFO [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0] 20:07:20,902 ERROR [AbstractKernelController] Error installing to Parse: name=vfs:///F:/DevelopTools/jboss-6.0.0.Final/server/default/deploy/hr_manager.war state=PreParse mode=Manual requiredState=Parse: org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfs:///F:/DevelopTools/jboss-6.0.0.Final/server/default/deploy/hr_manager.war at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:383) [:2.2.0.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:343) [:2.2.0.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:315) [:2.2.0.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:255) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA] at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final] at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2] at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2] at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA] at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2] at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2] at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2] at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2] at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2] at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2] at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final] at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] at java.lang.Thread.run(Thread.java:619) [:1.6.0_13] Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: vfs:///F:/DevelopTools/jboss-6.0.0.Final/server/default/deploy/hr_manager.war/WEB-INF/lib/struts2-core-2.1.8.1.jar/META-INF/struts-tags.tld@9,37 at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:224) [jbossxb.jar:2.0.3.GA] at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:178) [jbossxb.jar:2.0.3.GA] at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:257) [jbossxb.jar:2.0.3.GA] at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:231) [jbossxb.jar:2.0.3.GA] at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137) [:2.2.0.GA] at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java:64) [:6.0.0.Final] at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java:38) [:6.0.0.Final] at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121) [:2.2.0.GA] at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.handleMultipleFiles(AbstractVFSParsingDeployer.java:446) [:2.2.0.GA] at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:319) [:2.2.0.GA] at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:376) [:2.2.0.GA] ... 47 more Caused by: org.xml.sax.SAXException: cvc-datatype-valid.1.2.1: '2.2.3' is not a valid value for 'decimal'. @ vfs:///F:/DevelopTools/jboss-6.0.0.Final/server/default/deploy/hr_manager.war/WEB-INF/lib/struts2-core-2.1.8.1.jar/META-INF/struts-tags.tld[9,37] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.error(SaxJBossXBParser.java:416) [jbossxb.jar:2.0.3.GA] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.xs.XMLSchemaValidator.elementLocallyValidType(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.xs.XMLSchemaValidator.processElementContent(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.xs.XMLSchemaValidator.handleEndElement(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.Final] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:209) [jbossxb.jar:2.0.3.GA] ... 57 more 20:07:20,981 警告 [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal 20:07:23,134 警告 [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal 20:07:23,275 INFO [JMXConnector] starting JMXConnector on host 127.0.0.1:1090 20:07:23,384 INFO [MailService] Mail Service bound to java:/Mail 20:07:24,336 信息 [HornetQServerImpl] live server is starting.. 20:07:24,384 INFO [JournalStorageManager] Using NIO Journal 20:07:24,399 警告 [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this. 20:07:25,023 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5445 for CORE protocol 20:07:25,039 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5455 for CORE protocol 20:07:25,039 信息 [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120) started 20:07:25,086 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/ 20:07:25,242 INFO [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_14_0_Final) - JBoss Inc. 20:07:25,242 INFO [arjuna] ARJUNA-12324 Start RecoveryActivators 20:07:25,257 INFO [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at 星期一, 20 十月 2014 20:07:25 20:07:25,616 INFO [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712 20:07:25,616 INFO [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712 20:07:25,616 INFO [jbossatx] ARJUNA-32013 Starting transaction recovery manager 20:07:25,632 INFO [arjuna] ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713 20:07:25,632 INFO [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713 20:07:25,695 INFO [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService 20:07:25,742 INFO [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_14_0_Final) - JBoss Inc. 20:07:25,789 INFO [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore. 20:07:25,960 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: F:\DevelopTools\MyEclipse\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin 20:07:26,070 INFO [ModClusterService] Initializing mod_cluster 1.1.0.Final 20:07:26,085 INFO [TomcatDeployment] deploy, ctxPath=/invoker 20:07:26,428 INFO [RARDeployment] Required license terms exist, view vfs:/F:/DevelopTools/jboss-6.0.0.Final/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml 20:07:26,444 INFO [RARDeployment] Required license terms exist, view vfs:/F:/DevelopTools/jboss-6.0.0.Final/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml 20:07:26,460 INFO [RARDeployment] Required license terms exist, view vfs:/F:/DevelopTools/jboss-6.0.0.Final/server/default/deploy/jms-ra.rar/META-INF/ra.xml 20:07:26,460 INFO [HornetQResourceAdapter] HornetQ resource adaptor started 20:07:26,475 INFO [RARDeployment] Required license terms exist, view vfs:/F:/DevelopTools/jboss-6.0.0.Final/server/default/deploy/mail-ra.rar/META-INF/ra.xml 20:07:26,475 INFO [RARDeployment] Required license terms exist, view vfs:/F:/DevelopTools/jboss-6.0.0.Final/server/default/deploy/quartz-ra.rar/META-INF/ra.xml 20:07:26,569 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2 20:07:26,616 INFO [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl 20:07:26,616 INFO [QuartzScheduler] Quartz Scheduler v.1.8.3 created. 20:07:26,616 INFO [RAMJobStore] RAMJobStore initialized. 20:07:26,616 INFO [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3) 'JBossQuartzScheduler' with instanceId 'NON_CLUSTERED' Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. NOT STARTED. Currently in standby mode. Number of jobs executed: 0 Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. 20:07:26,616 INFO [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler' initialized from an externally opened InputStream. 20:07:26,616 INFO [StdSchedulerFactory] Quartz scheduler version: 1.8.3 20:07:26,616 INFO [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED started. 20:07:27,427 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' 20:07:27,631 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA' 20:07:27,755 INFO [xnio] XNIO Version 2.1.0.CR2 20:07:27,771 INFO [nio] XNIO NIO Implementation Version 2.1.0.CR2 20:07:27,911 INFO [remoting] JBoss Remoting version 3.1.0.Beta2 20:07:27,989 INFO [TomcatDeployment] deploy, ctxPath=/ 20:07:28,021 信息 [service] Removing bootstrap log handlers 20:07:28,083 ERROR [ProfileServiceBootstrap] Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): DEPLOYMENTS IN ERROR: Deployment "vfs:///F:/DevelopTools/jboss-6.0.0.Final/server/default/deploy/hr_manager.war" is in error due to the following reason(s): org.xml.sax.SAXException: cvc-datatype-valid.1.2.1: '2.2.3' is not a valid value for 'decimal'. @ vfs:///F:/DevelopTools/jboss-6.0.0.Final/server/default/deploy/hr_manager.war/WEB-INF/lib/struts2-core-2.1.8.1.jar/META-INF/struts-tags.tld[9,37] at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA] at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA] at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final] at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final] at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] at java.lang.Thread.run(Thread.java:619) [:1.6.0_13] 20:07:28,099 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080 20:07:28,099 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 20:07:28,099 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.Final "Neo"] Started in 16s:29ms
struts2构建问题。
环境tomcat6.0 怎么构建一个helloworld web应用 D:\apache-tomcat-6.0.18\webapps\struts2_helloworld D:\apache-tomcat-6.0.18\webapps\struts2_helloworld\index.jsp 跳转 D:\apache-tomcat-6.0.18\webapps\struts2_helloworld\helloworld.jsp 显示helloworld D:\apache-tomcat-6.0.18\webapps\struts2_helloworld\META-INF D:\apache-tomcat-6.0.18\webapps\struts2_helloworld\WEB-INF\web.xml D:\apache-tomcat-6.0.18\webapps\struts2_helloworld\WEB-INF\classes\helloworld.class D:\apache-tomcat-6.0.18\webapps\struts2_helloworld\WEB-INF\classes\helloworld.xml D:\apache-tomcat-6.0.18\webapps\struts2_helloworld\WEB-INF\classes\struts.xml D:\apache-tomcat-6.0.18\webapps\struts2_helloworld\WEB-INF\lib\有5个struts核心jar包 这是我的所有的目录及文件,可是运行不了 ! 注意:[color=red]不用IDE[/color],怎么构建一个HelloWorld应用?最好给出[color=red]详细步骤[/color],谢谢各位哥哥姐姐。 或者邮箱联系下。谢谢了!邮箱cssiege@126.com [b]问题补充:[/b] web.xml [code="xml"] <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app> [/code] struts.xml [code="xml"] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <include file="helloworld.xml"></include> </struts> [/code] helloworld.xml [code="xml"] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <package name="helloworld" extends="struts-default"> <action name="helloworld" class="HelloWorldAction"> <result>/helloworld.jsp</result> </action> </package> </struts> [/code] [b]问题补充:[/b] helloworld.xml本地写的没错,还是运行不了 [code="xml"] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <package name="helloworld" extends="struts-default"> <action name="helloworld" class="HelloWorld"> <result>/helloworld.jsp</result> </action> </package> </struts> [/code] [b]问题补充:[/b] [color=red]再次补充[/color] java类:HelloWorld.java 编译后class是 HelloWorld.class,可能上面大小写没有仔细写上,我本地,不存在大小写的问题,统一都是这个 [color=red]tomcat启动信息[/color]如下 2009-12-2 12:59:07 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performanc e in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_12\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WIND OWS;C:\Program Files\Java\jdk1.6.0_12\bin;C:\oracle\ora92\bin;C:\Program Files\O racle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C: \WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Thunder Network\ KanKan\Codecs;D:\Program Files\MySQL\MySQL Server 5.0\bin 2009-12-2 12:59:07 org.apache.coyote.http11.Http11Protocol init 信息: Initializing Coyote HTTP/1.1 on http-9999 2009-12-2 12:59:07 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 466 ms 2009-12-2 12:59:07 org.apache.catalina.core.StandardService start 信息: Starting service Catalina 2009-12-2 12:59:07 org.apache.catalina.core.StandardEngine start 信息: Starting Servlet Engine: Apache Tomcat/6.0.18 2009-12-2 12:59:08 com.opensymphony.xwork2.config.providers.XmlConfigurationProv ider register 信息: Parsing configuration file [struts-default.xml] 2009-12-2 12:59:08 com.opensymphony.xwork2.config.providers.XmlConfigurationProv ider register 信息: Parsing configuration file [struts-plugin.xml] 2009-12-2 12:59:08 com.opensymphony.xwork2.config.providers.XmlConfigurationProv ider register 信息: Parsing configuration file [struts.xml] 2009-12-2 12:59:08 org.apache.struts2.config.Settings getLocale 警告: Settings: Could not parse struts.locale setting, substituting default VM l ocale 2009-12-2 12:59:08 com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory <cli nit> 信息: Setting DefaultObjectTypeDeterminer as default ... 2009-12-2 12:59:08 com.opensymphony.xwork2.config.providers.XmlConfigurationProv ider register 信息: Parsing configuration file [struts-default.xml] 2009-12-2 12:59:08 com.opensymphony.xwork2.config.providers.XmlConfigurationProv ider register 信息: Parsing configuration file [struts-plugin.xml] 2009-12-2 12:59:08 com.opensymphony.xwork2.config.providers.XmlConfigurationProv ider register 信息: Parsing configuration file [struts.xml] 2009-12-2 12:59:08 org.apache.struts2.config.Settings getLocale 警告: Settings: Could not parse struts.locale setting, substituting default VM l ocale 2009-12-2 12:59:09 org.apache.catalina.core.StandardContext start 严重: Error filterStart 2009-12-2 12:59:09 org.apache.catalina.core.StandardContext start 严重: Context [/struts2_helloworldtest] startup failed due to previous errors 2009-12-2 12:59:09 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-9999 2009-12-2 12:59:09 org.apache.jk.common.ChannelSocket init 信息: JK: ajp13 listening on /0.0.0.0:8009 2009-12-2 12:59:09 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/31 config=null 2009-12-2 12:59:09 org.apache.catalina.startup.Catalina start 信息: Server startup in 2451 ms [color=brown]index.jsp也访问不了[/color] [b]问题补充:[/b] [color=red]首先,index.jsp访问不了[/color] http://localhost:9999/struts2_helloworldtest/ http://localhost:9999/struts2_helloworld/index.jsp 都不行。真不知道怎么回事,愁死了。 index.jsp上的信息: HTTP Status 404 - ------------------------------------------------------------- type Status report message description The requested resource () is not available. ------------------------------------------------------------- Apache Tomcat/6.0.18 [b]问题补充:[/b] 上面访问是这两个 http://localhost:9999/struts2_helloworld http://localhost:9999/struts2_helloworld/index.jsp [b]问题补充:[/b] [color=red]jar包:[/color]这是struts-2.0.14-all.zip里面的5个我考到lib下的 struts2-core-2.0.14.jar xwork-2.0.7.jar ognl-2.6.11.jar freemarker-2.3.8.jar commons-logging-1.0.4.jar [b]问题补充:[/b] [color=red]哎,我这是没用IDE自己写的目录结构,可是运行不了,还有让我看tomcat日志,这个我也看了,可是对于我这样的初学者,也看不懂什么日志啊。现在我就是想运行就运行不了啊!(启动tomcat上面也贴出出错信息了,index.jsp打不开)最好有人能给我个详细步骤。[/color]
struts2集成spring产生的问题
是了在用strut2集成spring,便是产生了一个问题,在网上找了一下也没找到解决方案,请大家看一下,帮忙解决一下: struts2的版本是:2.1.6, 集成spring的时候用的是struts2-spring-plugin-2.1.6.jar 开发IDE是用的MyEclipse6.0.1, 服务器版本是Tomcat 6.0 然后集成之后,我是想用sping来对struts2的Action进行管理. web.xml的内容如下: ------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/applicationContext.xml,classpath:applicationContext-*.xml </param-value> </context-param> <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>*.jspa</url-pattern> </filter-mapping> <servlet> <servlet-name>velocity</servlet-name> <servlet-class> org.apache.velocity.tools.view.servlet.VelocityViewServlet </servlet-class> </servlet> <servlet-mapping> <servlet-name>velocity</servlet-name> <url-pattern>*.vm</url-pattern> </servlet-mapping> <servlet> <servlet-name>dwr</servlet-name> <servlet-class> org.directwebremoting.servlet.DwrServlet </servlet-class> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dwr</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping> </web-app> ------------------------------------------------------------------------------------------ struts.xml内容如下: ------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <!-- 配置国际化信息 --> <constant name="struts.custom.i18n.resources" value="messages" /> <!-- 设置使用的解码集 --> <constant name="struts.i18n.encoding" value="utf-8" /> <package name="pages" namespace="/pages" extends="struts-default"> <action name="display" class="DisplayAction"> <result type="velocity">welcome.vm</result> <result name="showchart" type="velocity">sdv.vm</result> <result name="JSONTree" type="velocity">treedat.vm</result> </action> <action name="treedemo" class="TreedemoAction"> <result type="velocity">treedemo.vm</result> <result name="treeJSON" type="velocity">treedat.vm</result> </action> <action name="inquire" class="DWRInquireProcess"> <result type="velocity">inquiredData.vm</result> </action> </package> </struts> ------------------------------------------------------------------------------------------ struts.properties的内容如下: ------------------------------------------------------------------------------------------ struts.action.extension = jspa struts.objectFactory = spring struts.objectFactory.spring.autoWire = name #for develop reason, we don't want the client browser cache the static content struts.serve.static.browserCache = false #we hope the server auto load the struts.xml file, when it is changed struts.configuration.xml.reload = true ------------------------------------------------------------------------------------------ spring的配置文件applicationContext.xml的内容如下: ------------------------------------------------------------------------------------------ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="DisplayAction" class="com.intel.sdv2.action.DisplayPage"> </bean> <bean id="TreedemoAction" class="com.intel.sdv2.action.TreeDemo"></bean> <bean id="DWRInquireProcess" class="com.intel.sdv2.action.DWRFormProcess"> </bean> </beans> ------------------------------------------------------------------------------------------ 项目中用的jar包如下: ------------------------------------------------------------------------------------------ commons-logging-1.1.jar freemarker-2.3.13.jar ognl-2.6.11.jar struts2-core-2.1.6.jar xwork-2.1.2.jar commons-digester-1.8.jar commons-io-1.3.2.jar commons-fileupload-1.2.1.jar json-lib-2.1.jar velocity-1.5.jar velocity-tools-1.4.jar commons-collections-3.2.jar commons-lang-2.2.jar dwr.jar struts2-spring-plugin-2.1.6.jar ------------------------------------------------------------------------------------------ 启动Tomcat时报的错如下: ------------------------------------------------------------------------------------------ 2009-7-29 15:33:14 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info 信息: ... initialized Struts-Spring integration successfully 2009-7-29 15:33:14 org.apache.catalina.core.StandardContext filterStart 严重: Exception starting filter struts2 java.lang.NullPointerException at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325) at org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168) at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:191) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 2009-7-29 15:33:14 org.apache.catalina.core.StandardContext start 严重: Error filterStart 2009-7-29 15:33:14 org.apache.catalina.core.StandardContext start 严重: Context [/SDVWeb2] startup failed due to previous errors 2009-7-29 15:33:14 org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext ------------------------------------------------------------------------------------------ 在没用集成Spring之间,一切运行都正常,当我把spring集成进去后,就报这样的错误了。弄不明白是什么原因?请大家看一下,有什么解决方法,谢谢!!!
Xstream 对象转xml 出现Cannot reference implicit element
调用 xStream 的 toXML方法,就出现如下错误,汗啊 toXML 传入的是一个action: com.thoughtworks.xstream.converters.ConversionException: Could not call java.util.concurrent.ConcurrentHashMap.writeObject() : Could not call java.util.Collections$SynchronizedList.writeObject() : Cannot reference implicit element ---- Debugging information ---- implicit-element : [] referencing-element : /com.travelsky.tdp.pkgStock.view.travelb2b.PproductInfoAction/container/factories/entry/com.opensymphony.xwork2.inject.ContainerBuilder_-4/outer-class/factories/entry[2]/com.opensymphony.xwork2.inject.Scope_-2_-1/instance/reflectionProvider/ognlUtil/defaultConverter/typeConverter/defaultTypeConverter/objectFactory/appContext/servletContext/context/attributes/java.util.concurrent.ConcurrentHashMap/org.apache.catalina.util.DefaultAnnotationProcessor/context/bindings/entry/org.apache.naming.NamingEntry/value/bindings/entry/org.apache.naming.NamingEntry/value/cachedChannelsTransactional/dynamic-proxy/handler/target/_connection/_workService/executor/workers/java.util.concurrent.ThreadPoolExecutor_-Worker/thread/group/threads/net.sf.ehcache.store.DiskStore_-SpoolAndExpiryThread/outer-class/freeSpace/java.util.Collections_-SynchronizedCollection/default/mutex ------------------------------- message : Could not call java.util.Collections$SynchronizedList.writeObject() cause-exception : com.thoughtworks.xstream.core.AbstractReferenceMarshaller$ReferencedImplicitElementException cause-message : Cannot reference implicit element ------------------------------- message : Could not call java.util.concurrent.ConcurrentHashMap.writeObject() cause-exception : com.thoughtworks.xstream.converters.ConversionException cause-message : Could not call java.util.Collections$SynchronizedList.writeObject() : Cannot reference implicit element ---- Debugging information ---- implicit-element : [] referencing-element : /com.travelsky.tdp.pkgStock.view.travelb2b.PproductInfoAction/container/factories/entry/com.opensymphony.xwork2.inject.ContainerBuilder_-4/outer-class/factories/entry[2]/com.opensymphony.xwork2.inject.Scope_-2_-1/instance/reflectionProvider/ognlUtil/defaultConverter/typeConverter/defaultTypeConverter/objectFactory/appContext/servletContext/context/attributes/java.util.concurrent.ConcurrentHashMap/org.apache.catalina.util.DefaultAnnotationProcessor/context/bindings/entry/org.apache.naming.NamingEntry/value/bindings/entry/org.apache.naming.NamingEntry/value/cachedChannelsTransactional/dynamic-proxy/handler/target/_connection/_workService/executor/workers/java.util.concurrent.ThreadPoolExecutor_-Worker/thread/group/threads/net.sf.ehcache.store.DiskStore_-SpoolAndExpiryThread/outer-class/freeSpace/java.util.Collections_-SynchronizedCollection/default/mutex ------------------------------- ------------------------------- at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:103) at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:215) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:98) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:38) at com.thoughtworks.xstream.XStream.marshal(XStream.java:837) at com.thoughtworks.xstream.XStream.marshal(XStream.java:826) at com.thoughtworks.xstream.XStream.toXML(XStream.java:815) at com.travelsky.tdp.pkgStock.logic.util.FM_XMLTools.Object2Xml(FM_XMLTools.java:39) at com.travelsky.tdp.pkgStock.rest.ContentTypeInterceptor.handleResult(ContentTypeInterceptor.java:67) at com.travelsky.tdp.pkgStock.rest.ContentTypeInterceptor.intercept(ContentTypeInterceptor.java:54) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at cn.org.rapid_framework.web.scope.FlashFilter.doFilterInternal(FlashFilter.java:28) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at javacommon.filter.LoggerMDCFilter.doFilterInternal(LoggerMDCFilter.java:54) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675) at java.lang.Thread.run(Thread.java:619) Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call java.util.Collections$SynchronizedList.writeObject() : Cannot reference implicit element ---- Debugging information ---- implicit-element : [] referencing-element : /com.travelsky.tdp.pkgStock.view.travelb2b.PproductInfoAction/container/factories/entry/com.opensymphony.xwork2.inject.ContainerBuilder_-4/outer-class/factories/entry[2]/com.opensymphony.xwork2.inject.Scope_-2_-1/instance/reflectionProvider/ognlUtil/defaultConverter/typeConverter/defaultTypeConverter/objectFactory/appContext/servletContext/context/attributes/java.util.concurrent.ConcurrentHashMap/org.apache.catalina.util.DefaultAnnotationProcessor/context/bindings/entry/org.apache.naming.NamingEntry/value/bindings/entry/org.apache.naming.NamingEntry/value/cachedChannelsTransactional/dynamic-proxy/handler/target/_connection/_workService/executor/workers/java.util.concurrent.ThreadPoolExecutor_-Worker/thread/group/threads/net.sf.ehcache.store.DiskStore_-SpoolAndExpiryThread/outer-class/freeSpace/java.util.Collections_-SynchronizedCollection/default/mutex ------------------------------- message : Could not call java.util.Collections$SynchronizedList.writeObject() cause-exception : com.thoughtworks.xstream.core.AbstractReferenceMarshaller$ReferencedImplicitElementException cause-message : Cannot reference implicit element ------------------------------- at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:103) at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:215) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:56) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.ArrayConverter.marshal(ArrayConverter.java:45) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:55) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.extended.DynamicProxyConverter.marshal(DynamicProxyConverter.java:60) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:55) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:68) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.reflection.SerializableConverter$1.writeToStream(SerializableConverter.java:104) at com.thoughtworks.xstream.core.util.CustomObjectOutputStream.writeObjectOverride(CustomObjectOutputStream.java:84) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322) at java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1247) at sun.reflect.GeneratedMethodAccessor282.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:99) ... 176 more Caused by: com.thoughtworks.xstream.core.AbstractReferenceMarshaller$ReferencedImplicitElementException: Cannot reference implicit element ---- Debugging information ---- implicit-element : [] referencing-element : /com.travelsky.tdp.pkgStock.view.travelb2b.PproductInfoAction/container/factories/entry/com.opensymphony.xwork2.inject.ContainerBuilder_-4/outer-class/factories/entry[2]/com.opensymphony.xwork2.inject.Scope_-2_-1/instance/reflectionProvider/ognlUtil/defaultConverter/typeConverter/defaultTypeConverter/objectFactory/appContext/servletContext/context/attributes/java.util.concurrent.ConcurrentHashMap/org.apache.catalina.util.DefaultAnnotationProcessor/context/bindings/entry/org.apache.naming.NamingEntry/value/bindings/entry/org.apache.naming.NamingEntry/value/cachedChannelsTransactional/dynamic-proxy/handler/target/_connection/_workService/executor/workers/java.util.concurrent.ThreadPoolExecutor_-Worker/thread/group/threads/net.sf.ehcache.store.DiskStore_-SpoolAndExpiryThread/outer-class/freeSpace/java.util.Collections_-SynchronizedCollection/default/mutex ------------------------------- at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.reflection.SerializableConverter$1.defaultWriteObject(SerializableConverter.java:176) at com.thoughtworks.xstream.core.util.CustomObjectOutputStream.defaultWriteObject(CustomObjectOutputStream.java:80) at java.util.Collections$SynchronizedCollection.writeObject(Collections.java:1602) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:99) ... 350 more ========================================= <?xml version="1.0" encoding="UTF-8" ?> null ========================================= 2014-05-14 14:34:14,680 [1167244/[SHA325]stest/127.0.0.1/20bb88da3c7442988693c52d3eb8dc6f - /fproduct/travelb2b/pproduct-info!list.shtml] ERROR org.apache.struts2.dispatcher.Dispatcher - Exception occurred during processing request: getWriter() has already been called for this response java.lang.IllegalStateException: getWriter() has already been called for this response at org.apache.catalina.connector.Response.getOutputStream(Response.java:580) ~[catalina.jar:6.0.35] at org.apache.catalina.connector.ResponseFacade.getOutputStream(ResponseFacade.java:183) ~[catalina.jar:6.0.35] at com.travelsky.tdp.pkgStock.rest.ContentTypeInterceptor.handleResult(ContentTypeInterceptor.java:76) ~[ContentTypeInterceptor.class:na] at com.travelsky.tdp.pkgStock.rest.ContentTypeInterceptor.intercept(ContentTypeInterceptor.java:54) ~[ContentTypeInterceptor.class:na] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54) ~[struts2-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563) ~[struts2-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) [struts2-core-2.3.15.1.jar:2.3.15.1] at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99) [struts2-core-2.3.15.1.jar:2.3.15.1] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.35] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.35] at cn.org.rapid_framework.web.scope.FlashFilter.doFilterInternal(FlashFilter.java:28) [rapid-core-4.0.3.jar:na] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.35] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.35] at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) [spring-orm-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.35] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.35] at javacommon.filter.LoggerMDCFilter.doFilterInternal(LoggerMDCFilter.java:54) [stock-core-rapidframework-1.1-SNAPSHOT.jar:na] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.35] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.35] at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) [spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) [spring-web-3.0.5.RELEASE.jar:3.0.5.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.35] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.35] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:6.0.35] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:6.0.35] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina.jar:6.0.35] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:6.0.35] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:6.0.35] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) [catalina.jar:6.0.35] at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877) [tomcat-coyote.jar:6.0.35] at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594) [tomcat-coyote.jar:6.0.35] at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675) [tomcat-coyote.jar:6.0.35] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_10-rc2] 2014-5-14 14:34:14 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407) at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:906) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:586) at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at cn.org.rapid_framework.web.scope.FlashFilter.doFilterInternal(FlashFilter.java:28) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at javacommon.filter.LoggerMDCFilter.doFilterInternal(LoggerMDCFilter.java:54) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675) at java.lang.Thread.run(Thread.java:619)
spring整合 hibernate 映射出问题
报错信息 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegist Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:185) at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:135) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:389) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1799) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870) at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:339) at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:427) at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:412) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549) ... 25 more Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:138) at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:188) at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:341) at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:506) at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:146) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:163) ... 34 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:135) ... 43 more Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for emloyees in class com.imooc.employee.domain.Department at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:316) at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:310) at org.hibernate.mapping.Property.getGetter(Property.java:321) at org.hibernate.tuple.entity.PojoEntityTuplizer.buildPropertyGetter(PojoEntityTuplizer.java:444) at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:200) at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:82) ... 48 more 实体类 一方package com.imooc.employee.domain; import java.util.HashSet; import java.util.Set; public class Department { private Integer did; private String dname; private String ddesc; private Set<Employee> employees = new HashSet<Employee>(); public Integer getDid() { return did; } public Set<Employee> getEmployees() { return employees; } public void setEmployees(Set<Employee> employees) { this.employees = employees; } public void setDid(Integer did) { this.did = did; } public String getDname() { return dname; } public void setDname(String dname) { this.dname = dname; } public String getDdesc() { return ddesc; } public void setDdesc(String ddesc) { this.ddesc = ddesc; } } 多方 package com.imooc.employee.domain; import java.util.Date; public class Employee { private Integer eid; private String ename; private String sex; private Date birthday; private Date joinDate; private String eno; private String username; private String password; private Department department; public Integer getEid() { return eid; } public void setEid(Integer eid) { this.eid = eid; } public String getEname() { return ename; } public void setEname(String ename) { this.ename = ename; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } public Date getBirthday() { return birthday; } public void setBirthday(Date birthday) { this.birthday = birthday; } public Date getJoinDate() { return joinDate; } public void setJoinDate(Date joinDate) { this.joinDate = joinDate; } public String getEno() { return eno; } public void setEno(String eno) { this.eno = eno; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Department getDepartment() { return department; } public void setDepartment(Department department) { this.department = department; } } 配置文件 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="com.imooc.employee.domain.Department" table="department"> <id name="did" column="did"> <generator class="native"/> </id> <property name="dname" column="dname" length="20"/> <property name="ddesc" column="ddesc" length="100"/> <set name="emloyees"> <key column="dno"/> <one-to-many class="com.imooc.employee.domain.Employee"/> </set> </class> </hibernate-mapping> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="com.imooc.employee.domain.Employee" table="employee"> <id name="eid" column="eid"> <generator class="native" /> </id> <property name="ename" column="ename" length="20" /> <property name="sex" column="sex" length="10" /> <property name="birthday" column="birthday" /> <property name="joinDate" column="joinDate" /> <property name="eno" column="eno" length="20" /> <property name="username" column="username" length="20" /> <property name="password" column="password" length="20" /> <many-to-one name="department" class="com.imooc.employee.domain.Department" column="dno"/> </class> </hibernate-mapping> jar包为 antlr-2.7.7.jar aopalliance-1.0.jar asm-5.1.jar aspectjweaver.jar c3p0-0.9.5.2.jar catalina.jar classmate-1.3.0.jar commons-fileupload-1.3.2.jar commons-io-2.4.jar commons-lang3-3.2.jar commons-logging-1.1.3.jar dom4j-1.6.1.jar ehcache-2.10.3.jar freemarker-2.3.23.jar hibernate-commons-annotations-4.0.2.Final.jar hibernate-core-4.2.21.Final.jar hibernate-ehcache-4.2.18.Final.jar hibernate-jpa-2.0-api-1.0.1.Final.jar jandex-2.0.3.Final.jar javassist-3.18.1-GA.jar jboss-logging-3.1.0.GA.jar jboss-logmanager-2.0.4.Final.jar jboss-transaction-api_1.1_spec-1.0.1.Final.jar log4j-api-2.7.jar log4j-core-2.7.jar log4j-jboss-logmanager-1.1.2.Final.jar mchange-commons-java-0.2.11.jar mysql-connector-java-5.0.8.jar ognl-3.1.12.jar servlet-api.jar slf4j-api-1.6.1.jar slf4j-log4j12-1.7.19.jar spring-aop-4.0.0.RELEASE.jar spring-aspects-4.0.0.RELEASE.jar spring-beans-4.0.0.RELEASE.jar spring-context-4.0.0.RELEASE.jar spring-context-support-4.0.0.RELEASE.jar spring-core-4.0.0.RELEASE-javadoc.jar spring-core-4.0.0.RELEASE-sources.jar spring-core-4.0.0.RELEASE.jar spring-expression-4.0.0.RELEASE-javadoc.jar spring-expression-4.0.0.RELEASE-sources.jar spring-expression-4.0.0.RELEASE.jar spring-jdbc-4.0.0.RELEASE.jar spring-orm-4.0.0.RELEASE-javadoc.jar spring-orm-4.0.0.RELEASE-sources.jar spring-orm-4.0.0.RELEASE.jar spring-struts-3.2.0.RELEASE.jar spring-test-4.0.0.RELEASE.jar spring-tx-4.0.0.RELEASE-javadoc.jar spring-tx-4.0.0.RELEASE-sources.jar spring-tx-4.0.0.RELEASE.jar spring-web-4.0.0.RELEASE-javadoc.jar spring-web-4.0.0.RELEASE-sources.jar spring-web-4.0.0.RELEASE.jar struts2-convention-plugin-2.5.10.jar struts2-core-2.5.10.jar struts2-spring-plugin-2.5.10.jar xwork - jar.jar 哪位大神能给看一下 问题出在哪里
hibernate 映射问题 一对多映射
报错信息 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegist Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:185) at org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:135) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:389) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1799) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870) at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:339) at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:427) at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:412) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549) ... 25 more Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:138) at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:188) at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:341) at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:506) at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:146) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:163) ... 34 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:135) ... 43 more Caused by: org.hibernate.PropertyNotFoundException: Could not find a getter for emloyees in class com.imooc.employee.domain.Department at org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:316) at org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:310) at org.hibernate.mapping.Property.getGetter(Property.java:321) at org.hibernate.tuple.entity.PojoEntityTuplizer.buildPropertyGetter(PojoEntityTuplizer.java:444) at org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:200) at org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:82) ... 48 more 实体类 一方package com.imooc.employee.domain; import java.util.HashSet; import java.util.Set; public class Department { private Integer did; private String dname; private String ddesc; private Set<Employee> employees = new HashSet<Employee>(); public Integer getDid() { return did; } public Set<Employee> getEmployees() { return employees; } public void setEmployees(Set<Employee> employees) { this.employees = employees; } public void setDid(Integer did) { this.did = did; } public String getDname() { return dname; } public void setDname(String dname) { this.dname = dname; } public String getDdesc() { return ddesc; } public void setDdesc(String ddesc) { this.ddesc = ddesc; } } 多方 package com.imooc.employee.domain; import java.util.Date; public class Employee { private Integer eid; private String ename; private String sex; private Date birthday; private Date joinDate; private String eno; private String username; private String password; private Department department; public Integer getEid() { return eid; } public void setEid(Integer eid) { this.eid = eid; } public String getEname() { return ename; } public void setEname(String ename) { this.ename = ename; } public String getSex() { return sex; } public void setSex(String sex) { this.sex = sex; } public Date getBirthday() { return birthday; } public void setBirthday(Date birthday) { this.birthday = birthday; } public Date getJoinDate() { return joinDate; } public void setJoinDate(Date joinDate) { this.joinDate = joinDate; } public String getEno() { return eno; } public void setEno(String eno) { this.eno = eno; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Department getDepartment() { return department; } public void setDepartment(Department department) { this.department = department; } } 配置文件 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="com.imooc.employee.domain.Department" table="department"> <id name="did" column="did"> <generator class="native"/> </id> <property name="dname" column="dname" length="20"/> <property name="ddesc" column="ddesc" length="100"/> <set name="emloyees"> <key column="dno"/> <one-to-many class="com.imooc.employee.domain.Employee"/> </set> </class> </hibernate-mapping> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="com.imooc.employee.domain.Employee" table="employee"> <id name="eid" column="eid"> <generator class="native" /> </id> <property name="ename" column="ename" length="20" /> <property name="sex" column="sex" length="10" /> <property name="birthday" column="birthday" /> <property name="joinDate" column="joinDate" /> <property name="eno" column="eno" length="20" /> <property name="username" column="username" length="20" /> <property name="password" column="password" length="20" /> <many-to-one name="department" class="com.imooc.employee.domain.Department" column="dno"/> </class> </hibernate-mapping> jar包为 antlr-2.7.7.jar aopalliance-1.0.jar asm-5.1.jar aspectjweaver.jar c3p0-0.9.5.2.jar catalina.jar classmate-1.3.0.jar commons-fileupload-1.3.2.jar commons-io-2.4.jar commons-lang3-3.2.jar commons-logging-1.1.3.jar dom4j-1.6.1.jar ehcache-2.10.3.jar freemarker-2.3.23.jar hibernate-commons-annotations-4.0.2.Final.jar hibernate-core-4.2.21.Final.jar hibernate-ehcache-4.2.18.Final.jar hibernate-jpa-2.0-api-1.0.1.Final.jar jandex-2.0.3.Final.jar javassist-3.18.1-GA.jar jboss-logging-3.1.0.GA.jar jboss-logmanager-2.0.4.Final.jar jboss-transaction-api_1.1_spec-1.0.1.Final.jar log4j-api-2.7.jar log4j-core-2.7.jar log4j-jboss-logmanager-1.1.2.Final.jar mchange-commons-java-0.2.11.jar mysql-connector-java-5.0.8.jar ognl-3.1.12.jar servlet-api.jar slf4j-api-1.6.1.jar slf4j-log4j12-1.7.19.jar spring-aop-4.0.0.RELEASE.jar spring-aspects-4.0.0.RELEASE.jar spring-beans-4.0.0.RELEASE.jar spring-context-4.0.0.RELEASE.jar spring-context-support-4.0.0.RELEASE.jar spring-core-4.0.0.RELEASE-javadoc.jar spring-core-4.0.0.RELEASE-sources.jar spring-core-4.0.0.RELEASE.jar spring-expression-4.0.0.RELEASE-javadoc.jar spring-expression-4.0.0.RELEASE-sources.jar spring-expression-4.0.0.RELEASE.jar spring-jdbc-4.0.0.RELEASE.jar spring-orm-4.0.0.RELEASE-javadoc.jar spring-orm-4.0.0.RELEASE-sources.jar spring-orm-4.0.0.RELEASE.jar spring-struts-3.2.0.RELEASE.jar spring-test-4.0.0.RELEASE.jar spring-tx-4.0.0.RELEASE-javadoc.jar spring-tx-4.0.0.RELEASE-sources.jar spring-tx-4.0.0.RELEASE.jar spring-web-4.0.0.RELEASE-javadoc.jar spring-web-4.0.0.RELEASE-sources.jar spring-web-4.0.0.RELEASE.jar struts2-convention-plugin-2.5.10.jar struts2-core-2.5.10.jar struts2-spring-plugin-2.5.10.jar xwork - jar.jar 哪位大神能给看一下 问题出在哪里
struts2 找不到action 页面404
QAQ大晚上的有没有人啊啊啊啊呜呜呜 struts.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <package name="DoudouShop" extends="struts-default"> <action name="login" class="doudou.struts.aciton.AdminAction"> <result name="success">/loginsuccess.jsp</result> <result name="error">/loginerror.jsp</result> </action> </package> </struts> web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:web="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <display-name>DoudouShop</display-name> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app> AdminAction.java package doudou.struts.action; import com.opensymphony.xwork2.ActionSupport; import doudou.service.AdminServiceImpl; public class AdminAction extends ActionSupport { private String adminType; private String loginPwd; private String loginName; private String adminName; public String getAdminType() { return adminType; } public void setAdminType(String adminType) { this.adminType = adminType; } public String getLoginPwd() { return loginPwd; } public void setLoginPwd(String loginPwd) { this.loginPwd = loginPwd; } public String getLoginName() { return loginName; } public void setLoginName(String loginName) { this.loginName = loginName; } public String getAdminName() { return adminName; } public void setAdminName(String adminName) { this.adminName = adminName; } public String adminLogin() throws Exception{ AdminServiceImpl b=new AdminServiceImpl(); if(b.adminLogin(loginName, loginPwd)==null) return"success"; else return"error"; } } 我运行最基本的jsp(没加任何内容) 还是显示404啊为什么啊 六月 12, 2016 12:55:27 上午 org.apache.catalina.core.StandardContext startInternal 严重: One or more Filters failed to start. Full details will be found in the appropriate container log file 六月 12, 2016 12:55:27 上午 org.apache.catalina.core.StandardContext startInternal 严重: Context [/DoudouMall] startup failed due to previous errors 六月 12, 2016 12:55:28 上午 org.apache.catalina.startup.TldConfig execute 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 六月 12, 2016 12:55:29 上午 org.apache.catalina.core.StandardContext filterStart 严重: Exception starting filter struts2 Unable to load configuration. - action - file:/D:/JEEworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/DoudouShop/WEB-INF/classes/struts.xml:7:71 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4908) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5602) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: Unable to load configuration. - action - file:/D:/JEEworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/DoudouShop/WEB-INF/classes/struts.xml:7:71 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489) ... 14 more Caused by: Action class [doudou.struts.aciton.AdminAction] not found - action - file:/D:/JEEworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/DoudouShop/WEB-INF/classes/struts.xml:7:71 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:482) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:426) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:552) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:292) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:258) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) ... 16 more 六月 12, 2016 12:55:29 上午 org.apache.catalina.core.StandardContext startInternal 严重: One or more Filters failed to start. Full details will be found in the appropriate container log file 六月 12, 2016 12:55:29 上午 org.apache.catalina.core.StandardContext startInternal 严重: Context [/DoudouShop] startup failed due to previous errors 六月 12, 2016 12:55:29 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-8080"] 六月 12, 2016 12:55:29 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-bio-8009"] 六月 12, 2016 12:55:29 上午 org.apache.catalina.startup.Catalina start 信息: Server startup in 12908 ms
老板的奇怪想法
最近公司老板有一个想法,请大家一起讨论一下 老板想用SSH架构做基盘,在这个基础上封装一下.现在有这么一个功能 以前struts是这样做验证的,首先就是在struts.xml里配一下 <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validation.xml" /> </plug-in> 然后就是validation.xml的内容,如下 <form-validation> <formset> <form name="/Sample"> <field property="dwgNo" depends="required"> <arg0 key="input.dwgNo" /> </field> </form> </formset> </form-validation> 老板想这样多麻烦,他想把这个validation.xml的内容放到数据库里去,表的结构如下图 [img]/upload/attachment/93237/42e00b8f-0f33-39bd-ae5a-73cde3512153.bmp[/img] 功能还是要和以前STRUTS一样,表单提交里要先验证一下,但是这个validation.xml文件是没有的 要到数据库里去取。 这样的话就有多种实现,要么就改改org.apache.struts.validator.ValidatorPlugIn这个类, 要么就写这和这个类一样功能的类,但它原来是读validation.xml文件,现在是读数据库。 大家能否给点实现方式,最好是能贴上代码,谢谢了 [b]问题补充:[/b] 没办法,做员工的只能听老板的话,要么我就写一个类似于ValidatorPlugIn这样的类吧,代替原来的STRUTS验证,用SPRING的AOP可行吗? [b]问题补充:[/b] 我打算改一下ValidatorPlugin相关类的源代码,我用的是struts2.1.6,我下载了源代码,我把它放到我的工程里面,但是现在报这个错: 2009-04-14 14:13:30,421 [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sshdemo2]]-[ERROR] Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/E:/apache-tomcat-5.5.17/webapps/sshdemo2/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4193) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/E:/apache-tomcat-5.5.17/webapps/sshdemo2/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55) ... 31 more Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - file:/E:/apache-tomcat-5.5.17/webapps/sshdemo2/WEB-INF/classes/struts-default.xml:29:72 - bean - jar:file:/E:/apache-tomcat-5.5.17/webapps/sshdemo2/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:206) ... 34 more 说我找不到struts-default.xml这个文件,确实我下的源码里是没有这个文件,但我把这个文件放到SRC目录下了啊,为什么会报错????? [b]问题补充:[/b] 我知道啊,我们公司用的是STRUTS2.1.6,这里面也有像1.X版本里的验证框架吧, 帮我看看吧,我现在有上面的异常 我把struts-default.xml放到WEB-INF/下面之后又报下面的异常 2009-04-14 14:30:44,453 [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sshdemo2]]-[ERROR] Exception starting filter struts2 java.lang.RuntimeException: java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=java.lang.String, name='struts.objectFactory.spring.autoWire'] in public org.apache.struts2.spring.StrutsSpringObjectFactory(java.lang.String,java.lang.String,java.lang.String,javax.servlet.ServletContext). at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132) at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51) at com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:507) at com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:517) at com.opensymphony.xwork2.inject.ContainerImpl$9.call(ContainerImpl.java:548) at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574) at com.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:546) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:182) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4193) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) Caused by: java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=java.lang.String, name='struts.objectFactory.spring.autoWire'] in public org.apache.struts2.spring.StrutsSpringObjectFactory(java.lang.String,java.lang.String,java.lang.String,javax.servlet.ServletContext). at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:495) at com.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:532) at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:581) at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:530) at com.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32) at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:130) ... 39 more Caused by: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=java.lang.String, name='struts.objectFactory.spring.autoWire'] in public org.apache.struts2.spring.StrutsSpringObjectFactory(java.lang.String,java.lang.String,java.lang.String,javax.servlet.ServletContext). at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.<init>(ContainerImpl.java:345) at com.opensymphony.xwork2.inject.ContainerImpl$5.create(ContainerImpl.java:305) at com.opensymphony.xwork2.inject.ContainerImpl$5.create(ContainerImpl.java:304) at com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(ReferenceCache.java:150) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at com.opensymphony.xwork2.inject.util.ReferenceCache.internalCreate(ReferenceCache.java:76) at com.opensymphony.xwork2.inject.util.ReferenceCache.get(ReferenceCache.java:116) at com.opensymphony.xwork2.inject.ContainerImpl.getConstructor(ContainerImpl.java:594) at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:491) ... 44 more Caused by: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=java.lang.String, name='struts.objectFactory.spring.autoWire'] in public org.apache.struts2.spring.StrutsSpringObjectFactory(java.lang.String,java.lang.String,java.lang.String,javax.servlet.ServletContext). at com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector(ContainerImpl.java:235) at com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors(ContainerImpl.java:225) at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.constructParameterInjector(ContainerImpl.java:353) at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.<init>(ContainerImpl.java:337) ... 53 more 这是为什么啊? [b]问题补充:[/b] 王者之剑你好 这个问题怎么解决啊 我肯定少了什么文件没加上去,但我不知道 我就是把STRUTS1.2.6的源码放到我的工程里了,然后删掉原来的struts2-core-2.1.6.jar这个包. [b]问题补充:[/b] STRUTS2.1.6源码,上面写错了 [b]问题补充:[/b] 对了还有,没替换这个包之前,我的项目是能跑通的 我的JAR包肯定都有的 只不过源码里没有struts-default.xml这个文件 我还少什么没加上?加在哪儿? [b]问题补充:[/b] 嗯,改源码确实很难. STRUTS2.1.6太复杂了,STRUTS1.3的话还可以考虑 大家说说,有什么解决方案吗? 给提供一下 [b]问题补充:[/b] 不会吧,我什么时候说过两个框架要一起用 哎~ 能不能提点好的意见,真服了你 我打算用拦截器去做 在ACTION的方法调用前做一把处理 [b]问题补充:[/b] 兄弟,我没说我要一起用啊 大哥 我说的是STRUTS1.3的话,改STRUTS源码比较容易 但我现在用的是STRUTS2.1.6啊 我用拦截器差不多实现这个功能了 [b]问题补充:[/b] 嗯,现在你知道了 不过,你能不能提点好的建议啥的啊 不要只是路过啊
关于Struts2的一个问题
大侠们,昨晚测试的时候,结果成功显示,今天早上再来,就不成功了,后台一直报错: ``` 12:41:15.562 [http-8080-3] ERROR org.apache.struts2.dispatcher.Dispatcher - Could not find action or result /No2_Web/0 com.opensymphony.xwork2.config.ConfigurationException: There is no Action mapped for namespace [/] and action name [0] associated with context path [/No2_Web]. at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185) ~[xwork-core-2.3.28.jar:2.3.28] at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63) ~[struts2-core-2.3.28.jar:2.3.28] at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37) ~[struts2-core-2.3.28.jar:2.3.28] at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58) ~[xwork-core-2.3.28.jar:2.3.28] at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:557) [struts2-core-2.3.28.jar:2.3.28] at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81) [struts2-core-2.3.28.jar:2.3.28] at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99) [struts2-core-2.3.28.jar:2.3.28] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.41] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.41] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:6.0.41] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:6.0.41] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina.jar:6.0.41] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [catalina.jar:6.0.41] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:6.0.41] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) [catalina.jar:6.0.41] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) [tomcat-coyote.jar:6.0.41] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) [tomcat-coyote.jar:6.0.41] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) [tomcat-coyote.jar:6.0.41] at java.lang.Thread.run(Thread.java:619) [?:1.6.0_13] ``` 但我的struts.xml里并没有名字为0的action,JSP页面也没有访问0: ``` <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"> <struts> <constant name="struts.enable.DynamicMethodInvocation" value="true" /> <constant name="struts.devMode" value="true" /> <package name="default" namespace="/user" extends="struts-default"> <!-- 用户登录和注册 --> <action name="user*" class="customer.CustomerControl" method="user_{1}" > <result name="none"></result> </action> <!-- 首页菜单区展示 --> <action name="menulist" class="menu.MenuControl" method="menu_list" > <result name="redirect" type="redirect">/index_menu.jsp</result> </action> <action name="menuhotlist" class="menu.MenuControl" method="menu_list_hot" > <result name="redirect" type="redirect">/index_menu.jsp</result> </action> </package> <package name="admin" namespace="/admin" extends="struts-default"> <action name="adminlogin" class="admin.AdminControl" method="admin_login" > <result name="none"></result> </action> <action name="adminregister" class="admin.AdminControl" method="admin_register" > <result name="none"></result> </action> </package> </struts> ``` 具体操作: A.jsp ``` <ul> <li><a href="user/menuhotlist" target="menu">热销菜→</a></li> <li><a href="user/menulist?menu.type=1" target="menu">招牌菜→</a></li> <li><a href="user/menulist?menu.type=2" target="menu">主食区→</a></li> <li><a href="user/menulist?menu.type=3" target="menu">小吃区→</a></li> <li><a href="user/menulist?menu.type=4" target="menu">饮料区→</a></li> </ul> <div class="con_right"> <iframe name="menu" src="user/menuhotlist.action" class="iframe_menu"></iframe> </div> ``` B.jsp ``` <table cellspacing="0px" style="width:795px; border-collapse:collapse; text-align:center;"> <% Menu menu = null; List list = new ArrayList(); list = (List)session.getAttribute("menuindex"); String str; int i; for(i=0;i<list.size();i++){ menu = (Menu)list.get(i); %> <tr> <td style="width:150px; height:160px; border-bottom:2px dashed #ccc; padding-top:5px; padding-bottom:5px;"><img src="<%=menu.getPic()%>" style="width:150px; height:150px;" ></td> <td style="width:295px; border-bottom:2px dashed #ccc; font-size:24px;"><%=menu.getName()%></td> <td style="border-bottom:2px dashed #ccc; font-size:24px;">¥<%=menu.getPrice()%></td> <td style="border-bottom:2px dashed #ccc; font-size:24px;"><%=menu.getSale()%>&nbsp;份</td> <td style="width:170px; border-bottom:2px dashed #ccc;"><input type="button" value="加入购物车" onclick="Button1_onclick(this.id)" style="height:40px; font-size:18px;" /></td> </tr> <% } %> </table> ``` menuhotlist.action: ``` public String menu_list_hot(){ HttpServletResponse response = ServletActionContext.getResponse(); Map session = ActionContext.getContext().getSession(); DBConnect db=new DBConnect(); Connection con=db.getCon(); Statement stat = null; ResultSet rs = null; String sql = "select top 10 m_name,m_price,m_pic,m_sale from menus order by m_sale desc"; List<Menu> list = new ArrayList(); try { stat = con.createStatement(); rs=stat.executeQuery(sql); while(rs.next()){ menu = new Menu(); menu.setName(rs.getString("m_name")); menu.setPrice(Float.parseFloat(rs.getString("m_price"))); menu.setPic(rs.getString("m_pic")); menu.setPic(rs.getString("m_sale")); list.add(menu); } con.close(); //放到session session.put("menuindex",list); //request.getRequestDispatcher("../index_menu.jsp").forward(request,response); //response.sendRedirect("../index_menu.jsp"); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return "redirect"; } ``` menulist.action ``` public String menu_list(){ HttpServletResponse response = ServletActionContext.getResponse(); Map session = ActionContext.getContext().getSession(); DBConnect db=new DBConnect(); Connection con=db.getCon(); PreparedStatement prepstmt = null; ResultSet rs = null; String typestr = ""; String sql = "select m_name,m_price,m_pic,m_sale from menus where m_type = ?"; List<Menu> list = new ArrayList(); switch(menu.getType()){ case 1:typestr="招牌";break; case 2:typestr="主食";break; case 3:typestr="小吃";break; case 4:typestr="饮料";break; default: } try { prepstmt = con.prepareStatement(sql); prepstmt.setString(1, typestr); rs = prepstmt.executeQuery(); while(rs.next()){ menu = new Menu(); menu.setName(rs.getString("m_name")); menu.setPrice(Float.parseFloat(rs.getString("m_price"))); menu.setPic(rs.getString("m_pic")); menu.setPic(rs.getString("m_sale")); list.add(menu); System.out.println(rs.getString("m_pic")); } con.close(); //放到session session.put("menuindex",list); //request.getRequestDispatcher("../index_menu.jsp").forward(request,response); //response.sendRedirect("../index_menu.jsp"); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return "redirect"; } ``` A.jsp请求action,action把结果放入session的一个List里,B.jsp再取出
ssh架构报错,请大家帮忙看下
导入包xwork-2.0.4.jar报 log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. 2011-4-2 14:59:48 org.apache.catalina.core.StandardContext filterStart 严重: Exception starting filter struts2 Unable to load bean: type:com.opensymphony.xwork2.util.ObjectTypeDeterminer class:com.opensymphony.xwork2.util.GenericsObjectTypeDeterminer - bean - jar:file:/F:/WorkProgram/apache-tomcat-6.0.18/webapps/HelloWorld/WEB-INF/lib/struts2-core-2.0.11.jar!/struts-default.xml:36:148 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:208) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:131) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.NoClassDefFoundError: ognl/OgnlException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getDeclaredConstructors(Class.java:1836) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:198) ... 33 more Caused by: java.lang.ClassNotFoundException: ognl.OgnlException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 37 more 2011-4-2 14:59:48 org.apache.catalina.core.StandardContext start 换成了xwork-2.1.2.jar时报的错: log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. 2011-4-2 15:04:13 org.apache.catalina.core.StandardContext filterStart 严重: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/F:/WorkProgram/apache-tomcat-6.0.18/webapps/HelloWorld/WEB-INF/lib/struts2-core-2.0.11.jar!/struts-default.xml:36:148 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: Unable to load bean: type:com.opensymphony.xwork2.util.ObjectTypeDeterminer class:com.opensymphony.xwork2.util.GenericsObjectTypeDeterminer - bean - jar:file:/F:/WorkProgram/apache-tomcat-6.0.18/webapps/HelloWorld/WEB-INF/lib/struts2-core-2.0.11.jar!/struts-default.xml:36:148 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55) ... 30 more Caused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.util.GenericsObjectTypeDeterminer at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:146) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:193) ... 33 more 大家帮忙看看吧,真的很纠结啊
使用spring2.5@AspectJ进行AOP编程时遇到的配置问题
想在原来的正常运行的SSH系统上通过Aspectj增加AOP功能,在原来的包基础上加上了Aspectj的相关包,但只要我在applictationContext.xml上配置了:<aop:aspectj-autoproxy></aop:aspectj-autoproxy>,tomcat启动正常,但只要访问提交数据就会出现下面的错误,google上也没有找到想类似的解决方面,请知道的朋友指点一下, 谢谢! applictationContext.xml 文件 <?xml version="1.0" encoding="UTF-8"?> <beans default-autowire="byName" default-lazy-init="true" xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"> <!-- --> 注析掉下面一行就正常,当然AOP也没用了 <aop:aspectj-autoproxy></aop:aspectj-autoproxy> <!-- aopTest --> <bean id="msgAspect" class="com.ewf.util.aop.MsgAspect" ></bean> 包列表如下: antlr-2.7.6.jar aopalliance.jar asm.jar asm-util-2.2.3.jar asm-commons-2.2.3.jar aspectjrt.jar aspectjweaver.jar c3p0-0.9.1.2.jar cglib-nodep-2.1_3.jar common-dev.jar commons-beanutils-1.8.0.jar commons-collections-3.1.jar commons-digester-2.0.jar commons-fileupload-1.2.1.jar commons-io-1.3.2.jar commons-lang-2.3.jar commons-logging-1.1.1.jar dom4j-1.6.1.jar ehcache-1.6.0-beta5.jar ejb3-persistence-1.0.2GA.jar freemarker-2.3.13.jar hibernate-annotations-3.4.0GA.jar hibernate-commons-annotations-3.1.0GA.jar hibernate-core-3.3.0SP1.jar hibernate-ehcache-3.3.0.SP1.jar hibernate-entitymanager-3.4.0GA.jar hibernate-validator.jar javassist-3.4.jar jaxen-1.1-beta-7.jar jta.jar jtds-1.2.2.jar log4j-1.2.15.jar mysql-connector-java-5.1.6-bin.jar ognl-2.6.11.jar slf4j-api.jar slf4j-log4j12.jar spring-2.5.6.jar spring-security-core-2.0.4.jar struts2-core-2.1.2.jar struts2-spring-plugin-2.1.2.jar velocity-1.5.jar velocity-tools-1.4.jar velocity-tools-view-1.4.jar xwork-2.1.1.jar 错误提示如下:+++++++++++++ 2010-10-23 21:15:55,625 ERROR [com.ewf.util.ExceptionInterceptor] - java.lang.NullPointerException at com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:208) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:246) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:49) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:124) at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:170) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:170) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:208) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:127) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:104) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:143) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:137) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy13.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at com.ewf.util.webwork.ExceptionInterceptor.intercept(ExceptionInterceptor.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:113) at org.springframework.aop.interceptor.DebugInterceptor.invoke(DebugInterceptor.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy12.intercept(Unknown Source) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:230) at com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling(DefaultActionInvocation.java:229) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:456) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:227) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:477) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:467) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.ewf.util.filter.LoginFilter.doFilterInternal(LoginFilter.java:29) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) 2010-10-23 21:15:55,750 ERROR [com.opensymphony.xwork2.DefaultActionInvocation] - There was an exception while instantiating the result of type org.apache.struts2.dispatcher.VelocityResult Caught OgnlException while setting property 'location' on type '$Proxy26'. - Class: ognl.ObjectPropertyAccessor File: ObjectPropertyAccessor.java Method: setProperty Line: 132 - ognl/ObjectPropertyAccessor.java:132:-1 at com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:400) at com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:87) at com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperties(OgnlReflectionProvider.java:55) at com.opensymphony.xwork2.ObjectFactory.buildResult(ObjectFactory.java:215) at com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:201) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:349) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:259) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:477) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:467) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.ewf.util.filter.LoginFilter.doFilterInternal(LoginFilter.java:29) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: ognl.NoSuchPropertyException: $Proxy26.location at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:132) at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27) at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1656) at ognl.ASTProperty.setValueBody(ASTProperty.java:101) at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177) at ognl.SimpleNode.setValue(SimpleNode.java:246) at ognl.Ognl.setValue(Ognl.java:476) at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:197) at com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:393) ... 33 more
哪位大神帮我看下我的struts2的配置呢· 老报错!
web.xml配置如下 <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> struts.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"> <struts> <package name="crmDemo" extends="struts-default" namespace="/"> <action name="crm" class="struts2day4.crmSystem" method="excrm"></action> </package> </struts> 下面是错误信息 严重: Exception starting filter [struts] Unable to load configuration. - action - file:/D:/apache-tomcat-9.0.13/webapps/struts2day4/WEB-INF/classes/struts.xml:8:65 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:493) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:270) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:251) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:102) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4491) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1432) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1422) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1432) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1422) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:801) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.startup.Catalina.start(Catalina.java:695) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492) Caused by: Unable to load configuration. - action - file:/D:/apache-tomcat-9.0.13/webapps/struts2day4/WEB-INF/classes/struts.xml:8:65 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) ... 35 more Caused by: Action class [struts2day4.crmSystem] not found - action - file:/D:/apache-tomcat-9.0.13/webapps/struts2day4/WEB-INF/classes/struts.xml:8:65 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:486) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:429) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:556) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:295) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:264) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) ... 38 more 11月 21, 2018 12:49:58 上午 org.apache.catalina.core.StandardContext startInternal 严重: One or more Filters failed to start. Full details will be found in the appropriate container log file 11月 21, 2018 12:49:58 上午 org.apache.catalina.core.StandardContext startInternal 严重: Context [/struts2day4] startup failed due to previous errors WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/D:/apache-tomcat-9.0.13/lib/catalina.jar) to field java.io.ObjectStreamClass$Caches.localDescs WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 11月 21, 2018 12:49:58 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory [D:\apache-tomcat-9.0.13\webapps\docs] 11月 21, 2018 12:49:58 上午 org.apache.jasper.servlet.TldScanner scanJars 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 11月 21, 2018 12:49:58 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [D:\apache-tomcat-9.0.13\webapps\docs] has finished in [178] ms 11月 21, 2018 12:49:58 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory [D:\apache-tomcat-9.0.13\webapps\examples] 11月 21, 2018 12:49:59 上午 org.apache.jasper.servlet.TldScanner scanJars 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 11月 21, 2018 12:49:59 上午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 11月 21, 2018 12:49:59 上午 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 11月 21, 2018 12:49:59 上午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: attributeAdded('StockTicker', 'async.Stockticker@283baa39') 11月 21, 2018 12:49:59 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [D:\apache-tomcat-9.0.13\webapps\examples] has finished in [543] ms 11月 21, 2018 12:49:59 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory [D:\apache-tomcat-9.0.13\webapps\host-manager] 11月 21, 2018 12:49:59 上午 org.apache.jasper.servlet.TldScanner scanJars 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 11月 21, 2018 12:49:59 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [D:\apache-tomcat-9.0.13\webapps\host-manager] has finished in [104] ms 11月 21, 2018 12:49:59 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory [D:\apache-tomcat-9.0.13\webapps\manager] 11月 21, 2018 12:49:59 上午 org.apache.jasper.servlet.TldScanner scanJars 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 11月 21, 2018 12:49:59 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [D:\apache-tomcat-9.0.13\webapps\manager] has finished in [106] ms 11月 21, 2018 12:49:59 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory [D:\apache-tomcat-9.0.13\webapps\ROOT] 11月 21, 2018 12:49:59 上午 org.apache.jasper.servlet.TldScanner scanJars 信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 11月 21, 2018 12:49:59 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [D:\apache-tomcat-9.0.13\webapps\ROOT] has finished in [91] ms 11月 21, 2018 12:49:59 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-nio-8080"] 11月 21, 2018 12:49:59 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-nio-8009"] 11月 21, 2018 12:49:59 上午 org.apache.catalina.startup.Catalina start 信息: Server startup in 4670 ms
关于struts2.1.2中codebehind插件---bug?
<p>本人在用struts2-codebehind-plugin-2.1.2插件进行开发过程中遇到下面问题:<br /><br /> <br /><br />struts2.xml如下:<br />Xml代码 复制代码<br /><br />   1. &lt;struts&gt;  <br />   2.   <br />   3.     &lt;constant name="struts.codebehind.defaultPackage" value="test"&gt;   <br />   4.     &lt;constant name="struts.codebehind.pathPrefix" value="/view/ftl/"&gt;  <br />   5.    <br />   6.     &lt;package name="test" extends="struts-default"&gt;  <br />   7.         &lt;interceptors&gt;  <br />   8.             &lt;interceptor name="metoken" class="com.test.core.web.struts2.TokenInterceptor"&gt;  <br />   9.             &lt;interceptor name="authority" class="com.test.core.web.struts2.AuthorityInterceptor"&gt;  <br />  10.   <br />  11.             &lt;interceptor-stack name="normalStack"&gt;  <br />  12.                 &lt;interceptor-ref name="metoken"&gt;  <br />  13.                 &lt;interceptor-ref name="authority"&gt;  <br />  14.                 &lt;interceptor-ref name="paramsPrepareParamsStack"&gt;  <br />  15.             &lt;/interceptor-stack&gt;  <br />  16.         &lt;/interceptors&gt;  <br />  17.   <br />  18.         &lt;default-interceptor-ref name="normalStack"&gt;  <br />  19.   <br />  20.     &lt;/package&gt;  <br />  21.   <br />  22. &lt;/struts&gt;  <br /><br />&lt;struts&gt;<br /><br /> &lt;constant name="struts.codebehind.defaultPackage" value="test"&gt; <br /> &lt;constant name="struts.codebehind.pathPrefix" value="/view/ftl/"&gt;<br /> <br /> &lt;package name="test" extends="struts-default"&gt;<br /> &lt;interceptors&gt;<br /> &lt;interceptor name="metoken" class="com.test.core.web.struts2.TokenInterceptor"&gt;<br /> &lt;interceptor name="authority" class="com.test.core.web.struts2.AuthorityInterceptor"&gt;<br /><br /> &lt;interceptor-stack name="normalStack"&gt;<br /> &lt;interceptor-ref name="metoken"&gt;<br /> &lt;interceptor-ref name="authority"&gt;<br /> &lt;interceptor-ref name="paramsPrepareParamsStack"&gt;<br /> &lt;/interceptor-stack&gt;<br /> &lt;/interceptors&gt;<br /><br /> &lt;default-interceptor-ref name="normalStack"&gt;<br /><br /> &lt;/package&gt;<br /><br />&lt;/struts&gt;<br /><br /> <br /><br />使用零配置的时候,页面和action都能用 就是interceptor不起作用。还请大虾们帮忙啊~~~~~~~~~<br /><br /> <br /><br />使用的是struts2-core-2.1.2.jar struts2-codebehind-plugin-2.1.2.jar freemarker-2.3.12.jar</p> <p> </p>
weblogic内存溢出outofmemory日志分析
软件环境: aix 6.1+weblogic10.3+oracle11 系统每天同时在线人数100左右,数据库的数据量有多张频繁操作的表数据记录在千万以上,主要后台自动处理线程过多。 系统前段时间运行一直正常,只是从7月底出现OOM,最近差不多半个月出现一次。 对weblogic产生的phd文件和javacore文件分析的不太清楚。。。 以下是javacore的日志: ***WARNING*** Java heap is almost exhausted : 0% free Java heap Please enable verbosegc trace and use IBM Pattern Modeling and Analysis Tool(http://www.alphaworks.ibm.com/tech/pmat) to analyze garbage collection activities. If heapdumps are generated at the same time, please use IBM HeapAnalyzer(http://www.alphaworks.ibm.com/tech/heapanalyzer) to analyze Java heap. File name : C:\Users\Wcy\Desktop\20140813\ebills\heapdump\javacore.20140813.091552.10551312.0007.txt Cause of thread dump : Dump Event "systhrow" (00040000) Detail "java/lang/OutOfMemoryError" received Date: 2014/08/13 at 09:16:49 Process ID : Not available Operating System : AIX 6.1 Processor Architecture : ppc Number of Processors : 12 Java version : JRE 1.6.0 IBM J9 2.4 AIX ppc-32 build jvmap3260sr9-20110624_85526 Virtual machine version : VM build 20110624_085526 Just-In-Time(JIT) compiler switch, Ahead-Of-Time (AOT) compiler switch, Compiler version : JIT enabled, AOT enabled - r9_20101028_17488ifx17 Garbage collector version : GC - 20101027_AA Java Heap Information Maximum Java heap size : 1024m Initial Java heap size : 512m Java Home Directory : /usr/java6/jre Java DLL Directory : /usr/java6/jre/bin System Classpath : /usr/java6/jre/lib/vm.jar;/usr/java6/jre/lib/annotation.jar;/usr/java6/jre/lib/beans.jar;/usr/java6/jre/lib/java.util.jar;/usr/java6/jre/lib/jndi.jar;/usr/java6/jre/lib/logging.jar;/usr/java6/jre/lib/security.jar;/usr/java6/jre/lib/sql.jar;/usr/java6/jre/lib/ibmorb.jar;/usr/java6/jre/lib/ibmorbapi.jar;/usr/java6/jre/lib/ibmcfw.jar;/usr/java6/jre/lib/rt.jar;/usr/java6/jre/lib/charsets.jar;/usr/java6/jre/lib/resources.jar;/usr/java6/jre/lib/ibmpkcs.jar;/usr/java6/jre/lib/ibmcertpathfw.jar;/usr/java6/jre/lib/ibmjgssfw.jar;/usr/java6/jre/lib/ibmjssefw.jar;/usr/java6/jre/lib/ibmsaslfw.jar;/usr/java6/jre/lib/ibmjcefw.jar;/usr/java6/jre/lib/ibmjgssprovider.jar;/usr/java6/jre/lib/ibmjsseprovider2.jar;/usr/java6/jre/lib/ibmcertpathprovider.jar;/usr/java6/jre/lib/ibmxmlcrypto.jar;/usr/java6/jre/lib/management-agent.jar;/usr/java6/jre/lib/xml.jar;/usr/java6/jre/lib/jlm.jar;/usr/java6/jre/lib/javascript.jar; User Arguments : -Xjcl:jclscar_24 -Dcom.ibm.oti.vm.bootstrap.library.path=/usr/java6/jre/lib/ppc -Dsun.boot.library.path=/usr/java6/jre/lib/ppc -Djava.library.path=/usr/java6/jre/lib/ppc:/usr/java6/jre/lib/ppc:/usr/java6/jre/lib/ppc/j9vm:/usr/java6/jre/lib/ppc/j9vm:/usr/java6/jre/lib/ppc:/usr/java6/jre/../lib/ppc::/home/ebills/bea/wlserver_10.3/server/native/aix/ppc:/usr/lib:/usr/lib -Djava.home=/usr/java6/jre -Djava.ext.dirs=/usr/java6/jre/lib/ext -Duser.dir=/weblogic/ebills/bea/user_projects/domains/nbdomain _j2se_j9=71168 0xF0A89414 -Djava.runtime.version=pap3260sr9fp2-20110627_03 (SR9 FP2) -Xdump -Djava.class.path=:/home/ebills/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/ebills/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/java6/lib/tools.jar:/home/ebills/bea/wlserver_10.3/server/lib/weblogic_sp.jar:/home/ebills/bea/wlserver_10.3/server/lib/weblogic.jar:/home/ebills/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/home/ebills/bea/wlserver_10.3/server/lib/webservices.jar:/home/ebills/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/ebills/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/home/ebills/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/home/ebills/bea/wlserver_10.3/server/lib/xqrl.jar:: -Xms512m -Xmx1024m -da -Dplatform.home=/home/ebills/bea/wlserver_10.3 -Dwls.home=/home/ebills/bea/wlserver_10.3/server -Dweblogic.home=/home/ebills/bea/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dclient.encoding.override=GBK -Dfile.encoding=GBK -Duser.language=zh -Duser.region=CN -Ddefault.client.encoding=GBK -Dweblogic.threadpool.MinPoolSize=200 -Dweblogic.threadpool.MaxPoolSize=500 -Djava.awt.headless=true -Dweblogic.ext.dirs=/home/ebills/bea/patch_wls1030/profiles/default/sysext_manifest_classpath:/home/ebills/bea/patch_cie660/profiles/default/sysext_manifest_classpath -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic -Dweblogic.Name=AdminServer -Djava.security.policy=/home/ebills/bea/wlserver_10.3/server/lib/weblogic.policy -Dsun.java.command=weblogic.Server -Dsun.java.launcher=SUN_STANDARD _port_library 0xF0A89C18 _org.apache.harmony.vmi.portlib 0x3013DE18 User Limit Analysis User Limit Analysis Type Soft Limit Hard Limit RLIMIT_AS unlimited unlimited RLIMIT_CORE unlimited unlimited RLIMIT_CPU unlimited unlimited RLIMIT_DATA 2,147,483,645 bytes unlimited RLIMIT_FSIZE unlimited unlimited RLIMIT_NOFILE 1,024 1,024 RLIMIT_RSS unlimited unlimited RLIMIT_STACK 2,147,483,646 bytes 2,147,483,646 bytes Environment Variables Analysis Environment Variable Environment Variable Value _ /usr/java6/bin/java POST_CLASSPATH :/home/ebills/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/home/ebills/bea/wlserver_10.3/server/lib/xqrl.jar CLUSTER_PROPERTIES -Dweblogic.management.discover=true JAVA_VENDOR IBM LANG Zh_CN PRODUCTION_MODE true DOMAIN_HOME /weblogic/ebills/bea/user_projects/domains/nbdomain LOGIN ebills CLASSPATHSEP : DATABASE_CLASSPATH /home/ebills/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar CIE660_PATCH_LIBPATH /home/ebills/bea/patch_cie660/profiles/default/native WLS1030_PATCH_EXT_DIR /home/ebills/bea/patch_wls1030/profiles/default/sysext_manifest_classpath POINTBASE_HOME /home/ebills/bea/wlserver_10.3/common/eval/pointbase SSH_TTY /dev/pts/0 debugFlag false MEM_MAX_PERM_SIZE -XX:MaxPermSize=1024m SUN_JAVA_HOME CLCMD_PASSTHRU 1 PATCH_CLASSPATH /home/ebills/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/ebills/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar PATH /home/ebills/bea/wlserver_10.3/server/bin:/home/ebills/bea/modules/org.apache.ant_1.6.5/bin:/usr/java6/jre/bin:/usr/java6/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/ebills/bin:/usr/bin/X11:/sbin:/usr/java6/bin:/usr/java6/jre/bin:. FEATURES_DIR /home/ebills/bea/modules/features CIE660_PATCH_PATH /home/ebills/bea/patch_cie660/profiles/default/native verboseLoggingFlag false ANT_CONTRIB /home/ebills/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2 PATCH_PATH /home/ebills/bea/patch_wls1030/profiles/default/native:/home/ebills/bea/patch_cie660/profiles/default/native BEA_JAVA_HOME JAVA_VM ARDIR /home/ebills/bea/wlserver_10.3/server/lib LC__FASTMSG true POINTBASE_CLASSPATH :/home/ebills/bea/wlserver_10.3/common/eval/pointbase/lib/pbembedded57.jar:/home/ebills/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar SSH_AUTH_SOCK /tmp/ssh-IbX9437420/agent.9437420 CIE660_PATCH_CLASSPATH /home/ebills/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar JAVA_PROFILE JAVA_DEBUG CLASSPATH :/home/ebills/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/ebills/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/java6/lib/tools.jar:/home/ebills/bea/wlserver_10.3/server/lib/weblogic_sp.jar:/home/ebills/bea/wlserver_10.3/server/lib/weblogic.jar:/home/ebills/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/home/ebills/bea/wlserver_10.3/server/lib/webservices.jar:/home/ebills/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/ebills/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/home/ebills/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/home/ebills/bea/wlserver_10.3/server/lib/xqrl.jar:: LOGNAME ebills SAMPLES_HOME /home/ebills/bea/wlserver_10.3/samples MAIL /usr/spool/mail/ebills enableHotswapFlag POINTBASE_TOOLS /home/ebills/bea/wlserver_10.3/common/eval/pointbase/lib/pbtools57.jar LOCPATH /usr/lib/nls/loc MODULES_DIR /home/ebills/bea/modules PATCH_LIBPATH /home/ebills/bea/patch_wls1030/profiles/default/native:/home/ebills/bea/patch_cie660/profiles/default/native PATHSEP : WLS1030_PATCH_PATH /home/ebills/bea/patch_wls1030/profiles/default/native WLS1030_PATCH_CLASSPATH /home/ebills/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar iterativeDevFlag false doExitFlag false USER ebills SERVER_NAME AdminServer AUTHSTATE compat SERVER_CLASS weblogic.Server PRE_CLASSPATH JAVA_PROPERTIES -Dplatform.home=/home/ebills/bea/wlserver_10.3 -Dwls.home=/home/ebills/bea/wlserver_10.3/server -Dweblogic.home=/home/ebills/bea/wlserver_10.3/server -Dweblogic.management.discover=true BEA_HOME /home/ebills/bea MEM_DEV_ARGS SHELL /usr/bin/ksh ODMDIR /etc/objrepos OMNIORB_CONFIG /home/gjyw/ebills/config/ecorba.cfg JAVA_HOME /usr/java6 testConsoleFlag false WLS_HOME /home/ebills/bea/wlserver_10.3/server WLS1030_PATCH_LIBPATH /home/ebills/bea/patch_wls1030/profiles/default/native CIE660_PATCH_EXT_DIR /home/ebills/bea/patch_cie660/profiles/default/sysext_manifest_classpath JAVA_OPTIONS -da -Dplatform.home=/home/ebills/bea/wlserver_10.3 -Dwls.home=/home/ebills/bea/wlserver_10.3/server -Dweblogic.home=/home/ebills/bea/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dclient.encoding.override=GBK -Dfile.encoding=GBK -Duser.language=zh -Duser.region=CN -Ddefault.client.encoding=GBK -Dweblogic.threadpool.MinPoolSize=200 -Dweblogic.threadpool.MaxPoolSize=500 -Djava.awt.headless=true -Dweblogic.ext.dirs=/home/ebills/bea/patch_wls1030/profiles/default/sysext_manifest_classpath:/home/ebills/bea/patch_cie660/profiles/default/sysext_manifest_classpath -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic HOME /home/ebills MEM_ARGS -Xms512m -Xmx1024m WEBLOGIC_EXTENSION_DIRS /home/ebills/bea/patch_wls1030/profiles/default/sysext_manifest_classpath:/home/ebills/bea/patch_cie660/profiles/default/sysext_manifest_classpath ANT_HOME /home/ebills/bea/modules/org.apache.ant_1.6.5 FILEDIR /home/gjyw/ebills/acct SSH_CONNECTION 10.100.67.22 3456 10.100.133.2 22 SSH_CLIENT 10.100.67.22 3456 22 WEBLOGIC_CLASSPATH /home/ebills/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/ebills/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/java6/lib/tools.jar:/home/ebills/bea/wlserver_10.3/server/lib/weblogic_sp.jar:/home/ebills/bea/wlserver_10.3/server/lib/weblogic.jar:/home/ebills/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/home/ebills/bea/wlserver_10.3/server/lib/webservices.jar:/home/ebills/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/ebills/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar TERM vt100 MAILMSG [YOU HAVE NEW MAIL] POINTBASE_FLAG false LONG_DOMAIN_HOME /weblogic/ebills/bea/user_projects/domains/nbdomain PWD /weblogic/ebills/bea/user_projects/domains/nbdomain TZ Asia/Shanghai MEM_PERM_SIZE -XX:PermSize=512m BZJFILEDIR /weblogic/ebills/gjyw/ebills/ebillsData/DepositAcct WL_HOME /home/ebills/bea/wlserver_10.3 DEBUG_PORT 8453 A__z ! LOGNAME IBM_JVM_AIXTHREAD_SCOPE_NEW_VALUE S AIXTHREAD_SCOPE S IBM_JVM_CHANGED_ENVVARS_10551312 AIXTHREAD_SCOPE,NULLPTR,CORE_MMAP,LDR_CNTRL IBM_JVM_NULLPTR_NEW_VALUE NOSEGV NULLPTR NOSEGV IBM_JVM_CORE_MMAP_NEW_VALUE yes CORE_MMAP yes IBM_JVM_LDR_CNTRL_NEW_VALUE MAXDATA=0XA0000000@DSA LDR_CNTRL MAXDATA=0XA0000000@DSA NLSPATH /usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat LIBPATH /usr/java6/jre/lib/ppc:/usr/java6/jre/lib/ppc/j9vm:/usr/java6/jre/lib/ppc/j9vm:/usr/java6/jre/lib/ppc:/usr/java6/jre/../lib/ppc::/home/ebills/bea/wlserver_10.3/server/native/aix/ppc:/usr/lib:/usr/java6/jre/lib/ppc/headless IBM_JAVA_COMMAND_LINE /usr/java6/bin/java -Xms512m -Xmx1024m -da -Dplatform.home=/home/ebills/bea/wlserver_10.3 -Dwls.home=/home/ebills/bea/wlserver_10.3/server -Dweblogic.home=/home/ebills/bea/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dclient.encoding.override=GBK -Dfile.encoding=GBK -Duser.language=zh -Duser.region=CN -Ddefault.client.encoding=GBK -Dweblogic.threadpool.MinPoolSize=200 -Dweblogic.threadpool.MaxPoolSize=500 -Djava.awt.headless=true -Dweblogic.ext.dirs=/home/ebills/bea/patch_wls1030/profiles/default/sysext_manifest_classpath:/home/ebills/bea/patch_cie660/profiles/default/sysext_manifest_classpath -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic -Dweblogic.Name=AdminServer -Djava.security.policy=/home/ebills/bea/wlserver_10.3/server/lib/weblogic.policy weblogic.Server Free Java heap size: 11.89 KB Allocated Java heap size: 1 GB Memory Segment Analysis Memory Segment Analysis Memory Type # of Segments Used Memory(bytes) Used Memory(%) Free Memory(bytes) Free Memory(%) Total Memory(bytes) Internal 431 0 0 28,332,996 100 28,332,996 Object(reserved) 1 1,073,741,824 100 0 0 1,073,741,824 Class 17,984 174,683,076 96.44 6,441,464 3.56 181,124,540 JIT Code Cache 7 58,720,256 100 0 0 58,720,256 JIT Data Cache 4 26,811,512 79.9 6,742,920 20.1 33,554,432 Overall 18,427 1,333,956,668 96.98 41,517,380 3.02 1,375,474,048 Current Thread : Thread Name [ACTIVE] ExecuteThread: '119' for queue: 'weblogic.kernel.Default (self-tuning)' State Runnable Java Stack at java/lang/String. (String.java:350(Compiled Code)) at java/lang/Throwable.printStackTrace(Throwable.java:369(Compiled Code)) at java/lang/Throwable.printStackTrace(Throwable.java:212(Compiled Code)) at weblogic/utils/StackTraceUtilsClient.throwable2StackTrace(StackTraceUtilsClient.java:25(Compiled Code)) at weblogic/jdbc/common/internal/ConnectionEnv.setup(ConnectionEnv.java:308(Compiled Code)) at weblogic/common/resourcepool/ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:303(Compiled Code)) at weblogic/jdbc/common/internal/ConnectionPool.reserve(ConnectionPool.java:427(Compiled Code)) at weblogic/jdbc/common/internal/ConnectionPool.reserve(ConnectionPool.java:316(Compiled Code)) at weblogic/jdbc/common/internal/ConnectionPoolManager.reserve(ConnectionPoolManager.java:85(Compiled Code)) at weblogic/jdbc/common/internal/ConnectionPoolManager.reserve(ConnectionPoolManager.java:61(Compiled Code)) at weblogic/jdbc/jta/DataSource.getXAConnectionFromPool(DataSource.java:1450(Compiled Code)) at weblogic/jdbc/jta/DataSource.refreshXAConnAndEnlist(DataSource.java:1272(Compiled Code)) at weblogic/jdbc/jta/DataSource.getConnection(DataSource.java:425(Compiled Code)) at weblogic/jdbc/jta/DataSource.connect(DataSource.java:382(Compiled Code)) at weblogic/jdbc/common/internal/RmiDataSource.getConnection(RmiDataSource.java:336(Compiled Code)) at com/amerisia/ebills/commons/util/ServiceLocator.getConnection(ServiceLocator.java:66(Compiled Code)) at com/amerisia/ebills/commons/util/BaseDAO.makeConnection(BaseDAO.java:72(Compiled Code)) at com/amerisia/ebills/commons/util/BaseDAO.loadAllRowBySql(BaseDAO.java:623(Compiled Code)) at com/amerisia/ebills/chat/ejbs/ChatDAO.getLeaveWord(ChatDAO.java:119(Compiled Code)) at com/amerisia/ebills/chat/ejbs/ChatManagerEJB.getLeaveWord(ChatManagerEJB.java:165(Compiled Code)) at com/amerisia/ebills/chat/ejbs/ChatManager_oxcdb1_ELOImpl.getLeaveWord(ChatManager_oxcdb1_ELOImpl.java:358(Compiled Code)) at com/amerisia/ebills/chat/facade/ChatNoteManagerEJB.getLeaveWord(ChatNoteManagerEJB.java:110(Compiled Code)) at com/amerisia/ebills/chat/facade/ChatNoteManager_hfunq5_EOImpl.getLeaveWord(ChatNoteManager_hfunq5_EOImpl.java:339(Compiled Code)) at com/amerisia/ebills/chat/facade/ChatNoteManager_hfunq5_EOImpl_WLSkel.invoke(Bytecode PC:240(Compiled Code)) at weblogic/rmi/internal/ServerRequest.sendReceive(ServerRequest.java:174(Compiled Code)) at weblogic/rmi/cluster/ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345(Compiled Code)) at weblogic/rmi/cluster/ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259(Compiled Code)) at com/amerisia/ebills/chat/facade/ChatNoteManager_hfunq5_EOImpl_1030_WLStub.getLeaveWord(Bytecode PC:37(Compiled Code)) at com/amerisia/ebills/chat/action/ChatAction.getMsgsForLeft(ChatAction.java:466(Compiled Code)) at sun/reflect/GeneratedMethodAccessor234.invoke(Bytecode PC:64(Compiled Code)) at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37(Compiled Code)) at java/lang/reflect/Method.invoke(Method.java:589(Compiled Code)) at com/amerisia/ebills/commons/action/EbillsBaseDispatchAction.dispatchMethod(EbillsBaseDispatchAction.java:1072(Compiled Code)) at org/apache/struts/actions/DispatchAction.execute(DispatchAction.java:194(Compiled Code)) at org/apache/struts/action/RequestProcessor.processActionPerform(RequestProcessor.java(Compiled Code)) at org/apache/struts/action/RequestProcessor.process(RequestProcessor.java:203(Compiled Code)) at org/apache/struts/action/ActionServlet.process(ActionServlet.java:1196(Compiled Code)) at org/apache/struts/action/ActionServlet.doGet(ActionServlet.java:414(Compiled Code)) at javax/servlet/http/HttpServlet.service(HttpServlet.java:707(Compiled Code)) at javax/servlet/http/HttpServlet.service(HttpServlet.java:820(Compiled Code)) at weblogic/servlet/internal/StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227(Compiled Code)) at weblogic/servlet/internal/StubSecurityHelper.invokeServlet(StubSecurityHelper.java:121(Compiled Code)) at weblogic/servlet/internal/ServletStubImpl.execute(ServletStubImpl.java:292(Compiled Code)) at weblogic/servlet/internal/TailFilter.doFilter(TailFilter.java:26(Compiled Code)) at weblogic/servlet/internal/FilterChainImpl.doFilter(FilterChainImpl.java:42(Compiled Code)) at com/amerisia/ebills/commons/web/EncodingFilter.doFilter(EncodingFilter.java(Compiled Code)) at weblogic/servlet/internal/FilterChainImpl.doFilter(FilterChainImpl.java:42(Compiled Code)) at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3486(Compiled Code)) at weblogic/security/acl/internal/AuthenticatedSubject.doAs(AuthenticatedSubject.java:321(Compiled Code)) at weblogic/security/service/SecurityManager.runAs(Bytecode PC:18(Compiled Code)) at weblogic/servlet/internal/WebAppServletContext.securedExecute(WebAppServletContext.java:2120(Compiled Code)) at weblogic/servlet/internal/WebAppServletContext.execute(WebAppServletContext.java:2086(Compiled Code)) at weblogic/servlet/internal/ServletRequestImpl.run(ServletRequestImpl.java:1406(Compiled Code)) at weblogic/work/ExecuteThread.execute(ExecuteThread.java:201(Compiled Code)) at weblogic/work/ExecuteThread.run(ExecuteThread.java:173(Compiled Code)) Native Stack (0xD2647A48 [libj9prt24.so+0x9a48]) (0xD2BA2C38 [libj9dmp24.so+0x10c38]) (0xD263FBAC [libj9prt24.so+0x1bac]) (0xD2BA0AB4 [libj9dmp24.so+0xeab4]) (0xD2B9F0CC [libj9dmp24.so+0xd0cc]) (0xD263FBAC [libj9prt24.so+0x1bac]) (0xD2B9ED10 [libj9dmp24.so+0xcd10]) (0xD2BA5280 [libj9dmp24.so+0x13280]) (0xD2B944DC [libj9dmp24.so+0x24dc]) (0xD2B983A0 [libj9dmp24.so+0x63a0]) (0xD263FBAC [libj9prt24.so+0x1bac]) (0xD2B98344 [libj9dmp24.so+0x6344]) (0xD2B98130 [libj9dmp24.so+0x6130]) (0xD2BB3A94 [libj9dmp24.so+0x21a94]) (0xD2BB3ED0 [libj9dmp24.so+0x21ed0]) (0xD0ED2204 [libj9hookable24.so+0x204]) (0xD4007228 [libj9vm24.so+0x9228]) (0xD4007C8C [libj9vm24.so+0x9c8c]) (0xD5016A8C [libj9jit24.so+0x56aa8c]) (0xD4009910 [libj9vm24.so+0xb910]) (0xD263FBAC [libj9prt24.so+0x1bac]) (0xD4009830 [libj9vm24.so+0xb830]) (0xD2197CC0 [libj9thr24.so+0x1cc0]) _pthread_body+0xec (0xD04EFC50 [libpthreads.a+0x3c50]) Number of loaded classes in Java heap : 34,648 Number of classloaders in Java heap : 9,321 Recommended -Xmxcl setting (only for IBM Java 5.0, up to and including Service Refresh 4 (build date:February 1st ,2007)) : 12,117 or greater note: oNLY FOR jAVA 5.0 sERVICE rEFRESH 4 (BUILD DATE:fEBRUARY 1ST, 2007) AND OLDER. wHEN YOU USE DELEGATED CLASS LOADERS, THE jvm CAN CREATE A LARGE NUMBER OF cLASSlOADER OBJECTS. oN ibm jAVA 5.0 sERVICE rEFRESH 4 AND OLDER, THE NUMBER OF CLASS LOADERS THAT ARE PERMITTED IS LIMITED TO 8192 BY DEFAULT AND AN oUToFmEMORYeRROR EXCEPTION IS THROWN WHEN THIS LIMIT IS EXCEEDED. uSE THE -xMXCL PARAMETER TO INCREASE THE NUMBER OF CLASS LOADERS ALLOWED TO AVOID THIS PROBLEM, FOR EXAMPLE TO 25000, BY SETTING -xMXCL25000, UNTIL THE PROBLEM IS RESOLVED. pLEASE EXAMINE THE CURRENT THREAD STACK TRACE TO CHECK WHETHER A CLASS LOADER IS BEING LOADED IF THERE IS AN oUToFmEMORYeRROR. fOR EXAMPLE, THE FOLLOWING STACK TRACE INDICATES THAT A CLASS LOADER IS BEING LOADED: AT COM/IBM/OTI/VM/vm.INITIALIZEcLASSlOADER(nATIVE mETHOD) AT JAVA/LANG/cLASSlOADER. (cLASSlOADER.JAVA:120) cOMMAND LINE : /USR/JAVA6/BIN/JAVA -xMS512M -xMX1024M -DA -dPLATFORM.HOME=/HOME/EBILLS/BEA/WLSERVER_10.3 -dWLS.HOME=/HOME/EBILLS/BEA/WLSERVER_10.3/SERVER -dWEBLOGIC.HOME=/HOME/EBILLS/BEA/WLSERVER_10.3/SERVER -dWEBLOGIC.MANAGEMENT.DISCOVER=TRUE -dWLW.ITERATIVEdEV=FALSE -dWLW.TESTcONSOLE=FALSE -dWLW.LOGeRRORStOcONSOLE= -dCLIENT.ENCODING.OVERRIDE=gbk -dFILE.ENCODING=gbk -dUSER.LANGUAGE=ZH -dUSER.REGION=cn -dDEFAULT.CLIENT.ENCODING=gbk -dWEBLOGIC.THREADPOOL.mINpOOLsIZE=200 -dWEBLOGIC.THREADPOOL.mAXpOOLsIZE=500 -dJAVA.AWT.HEADLESS=TRUE -dWEBLOGIC.EXT.DIRS=/HOME/EBILLS/BEA/PATCH_WLS1030/PROFILES/DEFAULT/SYSEXT_MANIFEST_CLASSPATH:/HOME/EBILLS/BEA/PATCH_CIE660/PROFILES/DEFAULT/SYSEXT_MANIFEST_CLASSPATH -dWEBLOGIC.MANAGEMENT.USERNAME=WEBLOGIC -dWEBLOGIC.MANAGEMENT.PASSWORD=WEBLOGIC -dWEBLOGIC.nAME=aDMINsERVER -dJAVA.SECURITY.POLICY=/HOME/EBILLS/BEA/WLSERVER_10.3/SERVER/LIB/WEBLOGIC.POLICY WEBLOGIC.sERVER tHREAD sTATUS aNALYSIS sTATUS nUMBER OF tHREADS : 287 Percentage Deadlock 0 0 (%) Runnable 6 2 (%) Waiting on condition 263 92 (%) Waiting on monitor 0 0 (%) Suspended 0 0 (%) Object.wait() 0 0 (%) Blocked 16 6 (%) Parked 2 1 (%) Thread Method Analysis Method Name Number of Threads : 287 Percentage java/lang/Object.wait(Native Method) 167 58 (%) java/lang/Thread.sleep(Native Method) 22 8 (%) NO JAVA STACK 13 5 (%) weblogic/socket/PosixSocketMuxer.processSockets(PosixSocketMuxer.java:93(Compiled Code)) 10 3 (%) weblogic/timers/internal/TimerManagerImpl.complete(TimerManagerImpl.java:654(Compiled Code)) 6 2 (%) java/lang/Throwable.fillInStackTrace(Native Method) 5 2 (%) java/net/PlainSocketImpl.socketAccept(Native Method) 5 2 (%) weblogic/servlet/internal/session/SessionContext$SessionInvalidator.timerExpired(SessionContext.java:788(Compiled Code)) 2 1 (%) sun/misc/Unsafe.park(Native Method) 2 1 (%) java/util/AbstractList.iterator(AbstractList.java:583(Compiled Code)) 2 1 (%) java/io/ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:3036(Compiled Code)) 2 1 (%) java/lang/StringBuilder.toString(StringBuilder.java:803(Compiled Code)) 2 1 (%) sun/reflect/UTF8.encode(UTF8.java:33(Compiled Code)) 2 1 (%) java/nio/CharBuffer.wrap(CharBuffer.java:361(Compiled Code)) 2 1 (%) java/util/Hashtable.newEntry(Hashtable.java:91(Compiled Code)) 2 1 (%) java/util/regex/Pattern.newSingle(Pattern.java:2962(Compiled Code)) 1 0 (%) java/util/Vector. (Vector.java:76(Compiled Code)) 1 0 (%) java/util/TreeMap.putImpl(TreeMap.java:4544(Compiled Code)) 1 0 (%) java/util/Hashtable.put(Hashtable.java:769(Compiled Code)) 1 0 (%) java/util/Hashtable.clone(Hashtable.java:327(Compiled Code)) 1 0 (%) java/util/AbstractList$FullListIterator. (AbstractList.java:94(Compiled Code)) 1 0 (%) java/util/AbstractCollection.toArray(AbstractCollection.java:352(Compiled Code)) 1 0 (%) java/security/SecureRandom.nextBytes(SecureRandom.java:292(Compiled Code)) 1 0 (%) java/net/SocketInputStream.read(SocketInputStream.java:179(Compiled Code)) 1 0 (%) java/net/Inet6AddressImpl.lookupAllHostAddr(Native Method) 1 0 (%) java/lang/reflect/Method.invoke(Method.java:611(Compiled Code)) 1 0 (%) java/lang/reflect/Array.newArrayImpl(Native Method) 1 0 (%) java/lang/Throwable.printStackTrace(Throwable.java:363(Compiled Code)) 1 0 (%) java/lang/Throwable.printStackTrace(Throwable.java:338(Compiled Code)) 1 0 (%) java/lang/StringBuilder.ensureCapacityImpl(StringBuilder.java:339(Compiled Code)) 1 0 (%) java/lang/String.toUpperCase(String.java:1300(Compiled Code)) 1 0 (%) java/lang/String.toUpperCase(String.java:1129(Compiled Code)) 1 0 (%) java/lang/String. (String.java:350(Compiled Code)) 1 0 (%) java/io/ObjectStreamClass.lookup(ObjectStreamClass.java:291(Compiled Code)) 1 0 (%) java/io/ObjectStreamClass.lookup(ObjectStreamClass.java:287(Compiled Code)) 1 0 (%) java/io/ObjectInputStream.readString(ObjectInputStream.java:1629(Compiled Code)) 1 0 (%) com/ibm/tools/attach/javaSE/IPC.waitSemaphore(Native Method) 1 0 (%) com/ibm/misc/SignalDispatcher.waitForSignal(Native Method) 1 0 (%) com/ibm/lang/management/OperatingSystemNotificationThread.processNotificationLoop(Native Method) 1 0 (%) com/ibm/lang/management/MemoryNotificationThread.processNotificationLoop(Native Method) 1 0 (%) com/bea/security/xacml/combinator/standard/StandardRuleCombinerLibrary$3$1.evaluate(StandardRuleCombinerLibrary.java:200(Compiled Code)) 1 0 (%) com/amerisia/ebills/schedule/data/FileSource.findAll(FileSource.java:213(Compiled Code)) 1 0 (%) com/amerisia/ebills/commons/util/BaseDAO.loadAllRowBySql(BaseDAO.java:644(Compiled Code)) 1 0 (%) weblogic/utils/io/ChunkedDataOutputStream.makeChunkedDataInputStream(ChunkedDataOutputStream.java:376(Compiled Code)) 1 0 (%) weblogic/utils/http/QueryParams.getCurrent(QueryParams.java:21(Compiled Code)) 1 0 (%) weblogic/utils/collections/SecondChanceCacheMap.put(SecondChanceCacheMap.java:72(Compiled Code)) 1 0 (%) weblogic/socket/PosixSocketMuxer.poll(Native Method) 1 0 (%) weblogic/servlet/internal/MuxableSocketHTTP. (MuxableSocketHTTP.java:112(Compiled Code)) 1 0 (%) weblogic/security/service/SecurityManager.runAs(Bytecode PC:18(Compiled Code)) 1 0 (%) weblogic/security/service/JNDIResource.initialize(JNDIResource.java:146(Compiled Code)) 1 0 (%) weblogic/jndi/internal/BasicNamingNode.getPrefix(BasicNamingNode.java:984(Compiled Code)) 1 0 (%) sun/util/calendar/ZoneInfo.getOffsets(ZoneInfo.java:237(Compiled Code)) 1 0 (%) sun/reflect/GeneratedMethodAccessor120.invoke(Bytecode PC:0(Compiled Code)) 1 0 (%) org/apache/struts/util/RequestUtils.populate(RequestUtils.java:399(Compiled Code)) 1 0 (%) oracle/net/ano/AnoComm.o(Bytecode PC:1(Compiled Code)) 1 0 (%) oracle/jdbc/driver/T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:801(Compiled Code)) 1 0 (%) oracle/jdbc/driver/T4CMAREngine.unmarshalKEYVAL(T4CMAREngine.java:1859(Compiled Code)) 1 0 (%) oracle/jdbc/driver/DBConversion.stringToDriverCharBytes(DBConversion.java:443(Compiled Code)) 1 0 (%) Thread Aggregation Analysis Thread Type Number of Threads : 287 Percentage Thread 276 96 (%)
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
此博客仅为我业余记录文章所用,发布到此,仅供网友阅读参考,如有侵权,请通知我,我会删掉。 补充 有不少读者留言说本文章没有用,因为天气预报直接打开手机就可以收到了,为何要多此一举发送到邮箱呢!!!那我在这里只能说:因为你没用,所以你没用!!! 这里主要介绍的是思路,不是天气预报!不是天气预报!!不是天气预报!!!天气预报只是用于举例。请各位不要再刚了!!! 下面是我会用到的两个场景: 每日下
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了无数
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外
大学四年自学走来,这些珍藏的「实用工具/学习网站」我全贡献出来了
知乎高赞:文中列举了互联网一线大厂程序员都在用的工具集合,涉及面非常广,小白和老手都可以进来看看,或许有新收获。
《阿里巴巴开发手册》读书笔记-编程规约
Java编程规约命名风格 命名风格 类名使用UpperCamelCase风格 方法名,参数名,成员变量,局部变量都统一使用lowerCamelcase风格 常量命名全部大写,单词间用下划线隔开, 力求语义表达完整清楚,不要嫌名字长 ...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
你知道的越多,你不知道的越多 点赞再看,养成习惯 本文 GitHub https://github.com/JavaFamily 已收录,有一线大厂面试点思维导图,也整理了很多我的文档,欢迎Star和完善,大家面试可以参照考点复习,希望我们一起有点东西。 前前言 为啥今天有个前前言呢? 因为你们的丙丙啊,昨天有牌面了哟,直接被微信官方推荐,知乎推荐,也就仅仅是还行吧(心里乐开花)
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
Python爬虫精简步骤1 获取数据
爬虫的工作分为四步: 1.获取数据。爬虫程序会根据我们提供的网址,向服务器发起请求,然后返回数据。 2.解析数据。爬虫程序会把服务器返回的数据解析成我们能读懂的格式。 3.提取数据。爬虫程序再从中提取出我们需要的数据。 4.储存数据。爬虫程序把这些有用的数据保存起来,便于你日后的使用和分析。 这一篇的内容就是:获取数据。 首先,我们将会利用一个强大的库——requests来获取数据。 在电脑上安装
Python绘图,圣诞树,花,爱心 | Turtle篇
1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle() circle.shape('circle') circle.color('red') circle.speed('fastest') circle.up() square = turtle.Turtle()
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 更多有趣分析教程,扫描下方二维码关注vx公号「裸睡的猪」 即可查看! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
别低估自己的直觉,也别高估自己的智商
所有群全部吵翻天,朋友圈全部沦陷,公众号疯狂转发。这两周没怎么发原创,只发新闻,可能有人注意到了。我不是懒,是文章写了却没发,因为大家的关注力始终在这次的疫情上面,发了也没人看。当然,我...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。   再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。   下文是原回答,希望能对你能有所启发。   如果我说,这个世界上人真的分三六九等,
为什么听过很多道理,依然过不好这一生?
记录学习笔记是一个重要的习惯,不希望学习过的东西成为过眼云烟。做总结的同时也是一次复盘思考的过程。 本文是根据阅读得到 App上《万维钢·精英日课》部分文章后所做的一点笔记和思考。学习是一个系统的过程,思维模型的建立需要相对完整的学习和思考过程。以下观点是在碎片化阅读后总结的一点心得总结。
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
如何优雅地打印一个Java对象?
你好呀,我是沉默王二,一个和黄家驹一样身高,和刘德华一样颜值的程序员。虽然已经写了十多年的 Java 代码,但仍然觉得自己是个菜鸟(请允许我惭愧一下)。 在一个月黑风高的夜晚,我思前想后,觉得再也不能这么蹉跎下去了。于是痛下决心,准备通过输出的方式倒逼输入,以此来修炼自己的内功,从而进阶成为一名真正意义上的大神。与此同时,希望这些文章能够帮助到更多的读者,让大家在学习的路上不再寂寞、空虚和冷。 ...
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计
Linux 命令(122)—— watch 命令
1.命令简介 2.命令格式 3.选项说明 4.常用示例 参考文献 [1] watch(1) manual
Linux 命令(121)—— cal 命令
1.命令简介 2.命令格式 3.选项说明 4.常用示例 参考文献 [1] cal(1) manual
记jsp+servlet+jdbc实现的新闻管理系统
1.工具:eclipse+SQLyog 2.介绍:实现的内容就是显示新闻的基本信息,然后一个增删改查的操作。 3.数据库表设计 列名 中文名称 数据类型 长度 非空 newsId 文章ID int 11 √ newsTitle 文章标题 varchar 20 √ newsContent 文章内容 text newsStatus 是否审核 varchar 10 news...
Python新型冠状病毒疫情数据自动爬取+统计+发送报告+数据屏幕(三)发送篇
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告(本文) 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允
相关热词 c#导入fbx c#中屏蔽键盘某个键 c#正态概率密度 c#和数据库登陆界面设计 c# 高斯消去法 c# codedom c#读取cad文件文本 c# 控制全局鼠标移动 c# temp 目录 bytes初始化 c#
立即提问