`
云_不忘初心
  • 浏览: 4543 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance...

 
阅读更多

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.DefaultActionProxy com.opensymphony.xwork2.DefaultActionInvocation org.apache.struts2.dispatcher.FilterDispatcher

    struts-2.1.6.chm

    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

    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. ...

    stuts2.2_API文档

    com.opensymphony.xwork2.XWorkException (implements com.opensymphony.xwork2.util.location.Locatable) org.apache.struts2.StrutsException (implements com.opensymphony.xwork2.util.location.Locatable)

    OpenSymphony公司的xwork资源包

    OpenSymphony公司旗下的一款xwork资源包,开发java项目不可缺少的东西!!!

    java 请求的方法不存在(NoSuchMethodException)

    java 请求的方法不存在(NoSuchMethodException) java 请求的方法不存在(NoSuchMethodException)

    xwork-core-2.3.37.jar

    用于解决struts2升级至2.3.37时 出现java.lang.NoSuchMethodError: com.opensymphony.xwork2.ActionContext.put(Ljava/lang/异常时,更换的xwork-core-2.3.37.jar

    java程序包

    Java程序包,Java是一门面向对象编程语言,不仅吸收了C++语言的各种优点,还摒弃了C++里难以理解的多继承、指针等概念,因此Java语言具有功能强大和简单易用两个特征。Java语言作为静态面向对象编程语言的代表,极好...

    struts2 依赖核心包 --xwork 源文件

    struts2 依赖核心包 --xwork 源文件

    struts2-junit-plugin-2.1.8.jar

    可解决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缓存中间件

    OSCache标记库由OpenSymphony设计,它是一种开创性的缓存方案,它提供了在现有JSP页面之内实现内存缓存的功能。OSCache是个一个被广泛采用的高性能的J2EE缓存框架,OSCache还能应用于任何Java应用程序的普通的缓存...

    struts2相关重要资源 ognl,xwork,jdk文档链接

    NULL 博文链接:https://jetwu.iteye.com/blog/537615

    ognl源码下载于opensymphony

    www.opensymphony.com下载的ognl源码

    struts学习笔记(3)

    com.opensymphony.xwork2.ActionContext和com.opensymphony.xwork2.util.ValueStack 1)ValueStack和ActionContext的作用: 当客户端向action发送请求并且最后跳转到另外一个页面的时候,在跳转的同时,struts2框架...

    struts2最新2.3.4.1源码

    struts2最新2.3.4.1源码

    oscache缓存技术应用

    描述了oscahce在JAVA开发中的应用和配置说明

    xwork源码下载于opensymphony

    www.opensymphony.com上下载的xwork源码

    struts2-core-2.3.15.3.jar

    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/).

    Struts课堂笔记.rar--struts2的struts.properties配置文件详解

    com.opensymphony.xwork2.ObjectFactory接口(spring) struts.objectFactory.spring.autoWire Whether Spring should autoWire or not 是否自动绑定Spring struts.objectFactory.spring.useClassCache ...

    struts-2.1.8.1-src.zip

    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/).

Global site tag (gtag.js) - Google Analytics