`
edwin492
  • 浏览: 114759 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Line: 209 - com/opensymphony/xwork2/spring/SpringO

    博客分类:
  • SSH
阅读更多

 

启动服务器时出现异常:

警告: Failed startup of context com.google.apphosting.utils.jetty.DevAppEngineWebAppContext@1242b11{/,E:\workspace\uploadPhoto\war}

Class: com.opensymphony.xwork2.spring.SpringObjectFactory
File: SpringObjectFactory.java
Method: getClassInstance
Line: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1
Caused by: java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:209)

原因两个:
1.lib中多导入包的大原因:去掉struts2-spring-plugin-2.1.8包即可,因为没有用到spring。
2.还有的原因是用spring了,却没加监听器,在web.xml里面加上

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

转自:http://hi.baidu.com/zjameschen/blog/item/fd038b203e7ef5439922ed22.html

分享到:
评论

相关推荐

    OpenSymphony公司的xwork资源包

    在XWork中,每个动作都是一个Java类,该类通常继承自`com.opensymphony.xwork2.ActionSupport`基类。开发者可以在这个类中定义处理用户请求的方法,并在XML配置文件中指定这些方法与URL请求的对应关系。这样,当用户...

    struts2下的Xwork2源文件

    struts2下的Xwork2源文件 在 opensymphony开源社区http://www.opensymphony.com/ 可匿名使用SVN checkout xwork2的源代码 http://svn.opensymphony.com/svn/xwork/trunk

    升级struts2.3.32 需要的jar:asm-3.3.jar,asm-commons-3.3,asm-tree-3.3.jar

    不然有以下报错java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/ClassFinder$InfoBuildingVisitor,导入asm-3.3.jar,asm-commons-3.3,asm-tree-3.3.jar即可,压缩包里面有

    MiddleGen+Sitemesh.zip

    201.2.0/middlegenide_1.2.0.zip/download?use_mirror=nchc 下载文件:middlegenide_1.2.0.zip (7)Sitemesh: 本书使用版本:2.2 官方网站:http://www.opensymphony.com/sitemesh/index.html 下载页面:...

    论坛系统(Struts 2+Hibernate+Spring实现)

    DOCTYPE validators SYSTEM "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd" PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN"&gt; -&lt;validators&gt; -&lt;validator type="requiredstring"&gt; ...

    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常用资源下载地址

    - WebWork官方站点:http://www.opensymphony.com/webwork/ - WebWork&Struts2中文站点:http://webwork.javascud.org/ 6. **Hibernate**:Hibernate是一个对象关系映射(ORM)框架,用于简化Java应用程序的...

    struts2-core-2.1.8.1 xwork-core-2.1.6源码

    3. **类型转换(Type Conversion)**:Struts2自动处理用户输入数据的类型转换,这在`com.opensymphony.xwork2.converters`包中实现。例如,`StringConverter`将字符串转换为其他类型,如整数或日期。 4. **配置...

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

    com.opensymphony.xwork2.DefaultActionProxy

    com.opensymphony.xwork2.DefaultActionProxy com.opensymphony.xwork2.DefaultActionInvocation org.apache.struts2.dispatcher.FilterDispatcher

    struts-2.3.15.3-apps.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/).

    struts-2.5.13-docs

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

    xwork-2.1.5-all.rar_xwork_xwork-2.1.5_xwork-2.1.5.jar_xwork-core

    XWork与Struts2紧密相关,Struts2是基于XWork构建的一个MVC框架,它在XWork的基础上增加了视图层的支持,提供了更全面的Web应用解决方案。 8. **应用场景**: XWork常用于企业级的Web应用开发,尤其适合那些需要...

    XWork & Struts Core 2.3.15 API【HTML版】

    使用 struts-2.3.15.3-all.zip 里面的源码生成的 Struts Core: struts-2.3.15.3-all\src\core\src\main\java XWork Core: struts-2.3.15.3-all\src\xwork-core\src\main\java

    SVN 源码 地址

    - `http://svn.opensymphony.com/svn/xwork/trunk/xwork` #### 八、Hibernate Hibernate提供了两个SVN地址供用户访问: - 匿名访问地址:`http://anonsvn.jboss.org/repos/hibernate` - 开发者访问地址:`...

    jsoup jar包

    2.把sitemesh-2.3.jar加入classpath中,把tld放到WebContent/WEB-INF/tld/下 3.更改web.xml文件,在适当地方加下: (1) filter配置: &lt;filter-name&gt;sitemesh&lt;/filter-name&gt; &lt;filter-class&gt; ...

    Strtus2学习笔记

    - 下载地址:[http://www.opensymphony.com/xwork](http://www.opensymphony.com/xwork) - 注意版本兼容性,建议使用XWork 2.1.2以匹配Struts2.1.6 #### 三、创建项目 1. **打开MyEclipse并新建项目** - 类型...

    sitemesh教程

    在更复杂的Web应用架构中,Sitemesh可以与其他框架,如Struts、Spring MVC或WebWork等一起工作,共同构建前端视图层。这些框架通常负责业务逻辑的控制,而Sitemesh则专注于页面的布局和装饰,实现视图的统一风格。...

    ssh(struts2.3.4+spring3.2+hibernate4.1.1)整合中jar包作用介绍

    - **主要包路径及主要类**: `com.opensymphony.xwork2`,包含配置、拦截器等关键组件。 - **依赖的自有JAR包**: 无 - **依赖的第三方JAR包**: `aopalliance.jar` - **是否为第三方包**: 否 **3. AOP Alliance** - *...

Global site tag (gtag.js) - Google Analytics