Caused by: java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:209)
大致是不能得到struts2的action管理对象,使用三大框架继承时,使用struts2-spring-plugin-2.2.1.jar这个插件时,spring ioc容器会代为管理struts2的action对象 原因:
1, 没用使用到这个包
2,使用这个包后没有在web.xml中配置 需加上监听
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
3,其他包冲突 博主就是因为 包冲突 以org.springframework.web.context开头的包有两个,删掉小的就好了
补充, 如何删掉myEclipse中的包,方法:先删掉引用(包名后带路径) ,然后在删除包 不然会报错
相关推荐
com.opensymphony.xwork2.DefaultActionProxy com.opensymphony.xwork2.DefaultActionInvocation org.apache.struts2.dispatcher.FilterDispatcher
com.opensymphony.xwork2 Main XWork ...com.opensymphony.xwork2.spring.interceptor Spring specific interceptor classes. com.opensymphony.xwork2.test com.opensymphony.xwork2.util XWork util classes. ...
struts 2.3.4.1 最新英文版API ...com.opensymphony.xwork2.spring.interceptor Spring specific interceptor classes. com.opensymphony.xwork2.test com.opensymphony.xwork2.util XWork util classes. ...
com.opensymphony.xwork2.XWorkException (implements com.opensymphony.xwork2.util.location.Locatable) org.apache.struts2.StrutsException (implements com.opensymphony.xwork2.util.location.Locatable)
OpenSymphony公司旗下的一款xwork资源包,开发java项目不可缺少的东西!!!
java 请求的方法不存在(NoSuchMethodException) java 请求的方法不存在(NoSuchMethodException)
用于解决struts2升级至2.3.37时 出现java.lang.NoSuchMethodError: com.opensymphony.xwork2.ActionContext.put(Ljava/lang/异常时,更换的xwork-core-2.3.37.jar
Java程序包,Java是一门面向对象编程语言,不仅吸收了C++语言的各种优点,还摒弃了C++里难以理解的多继承、指针等概念,因此Java语言具有功能强大和简单易用两个特征。Java语言作为静态面向对象编程语言的代表,极好...
struts2 依赖核心包 --xwork 源文件
可解决java.lang.NoSuchMethodError: com.opensymphony.xwork2.ActionContext.get(Ljava/lang/Object;)Ljava/lang/Object; java.lang.ClassNotFoundException: com.opensymphony.xwork2.util.TextUtils struts2.1.8...
OSCache标记库由OpenSymphony设计,它是一种开创性的缓存方案,它提供了在现有JSP页面之内实现内存缓存的功能。OSCache是个一个被广泛采用的高性能的J2EE缓存框架,OSCache还能应用于任何Java应用程序的普通的缓存...
NULL 博文链接:https://jetwu.iteye.com/blog/537615
www.opensymphony.com下载的ognl源码
com.opensymphony.xwork2.ActionContext和com.opensymphony.xwork2.util.ValueStack 1)ValueStack和ActionContext的作用: 当客户端向action发送请求并且最后跳转到另外一个页面的时候,在跳转的同时,struts2框架...
struts2最新2.3.4.1源码
描述了oscahce在JAVA开发中的应用和配置说明
www.opensymphony.com上下载的xwork源码
Apache Struts ... This product includes software developed by ...XWork (http://www.opensymphony.com/xwork/). XPP3 (http://www.extreme.indiana.edu/xgws/xsoap/xpp/). XStream (http://xstream.codehaus.org/).
com.opensymphony.xwork2.ObjectFactory接口(spring) struts.objectFactory.spring.autoWire Whether Spring should autoWire or not 是否自动绑定Spring struts.objectFactory.spring.useClassCache ...
Apache Struts ... This product includes software developed by ...XWork (http://www.opensymphony.com/xwork/). XPP3 (http://www.extreme.indiana.edu/xgws/xsoap/xpp/). XStream (http://xstream.codehaus.org/).