请问你的java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet问题怎么解决的? 50
你好,我用的环境是jdk6,tomcat6,eclipse3.2,struts1.2,启动Tomcat时报错java.lang.ClassNotFoundExceptio...
你好,我用的环境是jdk6,tomcat6,eclipse3.2,struts1.2,启动Tomcat时报错java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet,请问你的这个问题是如何解决的?谢谢!
请问jdk6,tomcat6,struts1.2,myeclipse6.5GA这个组合应该是兼容的吧? 展开
请问jdk6,tomcat6,struts1.2,myeclipse6.5GA这个组合应该是兼容的吧? 展开
8个回答
展开全部
配置你的web。xml如下
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>
/WEB-INF/struts-config.xml,
/WEB-INF/struts-config-test.xml,
</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Standard Action Servlet Mapping
-->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>
/WEB-INF/struts-config.xml,
/WEB-INF/struts-config-test.xml,
</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Standard Action Servlet Mapping
-->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
建议你把所有的jar包放入lib文件夹下
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询