ilove_xx 2016-03-04 02:46 采纳率: 0%
浏览 1432

关于struts不能启动的问题,求大神帮忙看看

严重: Exception starting filter struts2
Class: com.opensymphony.xwork2.spring.SpringObjectFactory
File: SpringObjectFactory.java
Method: getClassInstance

Caused by: java.lang.NullPointerException

下面是我的配置文件和代码:
@Controller
@Scope("prototype")
public class FirstAction extends BaseAction{

public String welcome() throws Exception {
    return "welcome";
}

}

<?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">

<!-- -->


/pages/welcome.jsp


<?xml version="1.0" encoding="UTF-8"?>

used
<!-- struts前端控制器配置 -->

struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


struts2
/*

  • 写回答

4条回答

  • 猪猪侠- 2016-03-04 02:59
    关注

    空指针异常,你相应的架包拷贝到项目里面了嘛

    评论

报告相同问题?

悬赏问题

  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏