java.lang.ClassNotFoundException:启动SimpleStruts2应用程序时org.apache.struts2.dispatcher.ng.filter.StrutsP

java.lang.ClassNotFoundException:启动SimpleStruts2应用程序时org.apache.struts2.dispatcher.ng.filter.StrutsP,第1张

java.lang.ClassNotFoundException:启动SimpleStruts2应用程序时org.apache.struts2.dispatcher.ng.filter.StrutsP

使用以下命令将Maven项目转换为Eclipse动态Web项目:

mvn eclipse:eclipse -Dwtpversion=3.4.2

您可以更改使用的任何WTP版本

.classpath
应该是这样的

<classpath>  <classpathentry kind="src" path="src/main/java" including="***.java"/>  <classpathentry kind="output" path="target/classes"/>  <classpathentry kind="var" path="M2_REPO/asm/asm/3.3/asm-3.3.jar"/>  <classpathentry kind="var" path="M2_REPO/asm/asm-commons/3.3/asm-commons-3.3.jar"/>  <classpathentry kind="var" path="M2_REPO/asm/asm-tree/3.3/asm-tree-3.3.jar"/>  <classpathentry kind="var" path="M2_REPO/commons-fileupload/commons-fileupload/1.2.2/commons-fileupload-1.2.2.jar" />  <classpathentry kind="var" path="M2_REPO/commons-io/commons-io/2.0.1/commons-io-2.0.1.jar"/>  <classpathentry kind="var" path="M2_REPO/commons-lang/commons-lang/2.5/commons-lang-2.5.jar"/>  <classpathentry kind="var" path="M2_REPO/org/freemarker/freemarker/2.3.18/freemarker-2.3.18.jar"/>  <classpathentry kind="var" path="M2_REPO/javassist/javassist/3.11.0.GA/javassist-3.11.0.GA.jar"/>  <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>  <classpathentry kind="var" path="M2_REPO/ognl/ognl/3.0.4/ognl-3.0.4.jar"/>  <classpathentry kind="var" path="M2_REPO/org/apache/struts/struts2-core/2.3.1.2/struts2-core-2.3.1.2.jar"/>  <classpathentry kind="lib" path="C:/Program Files/Java/jdk1.6.0_32/lib/tools.jar"/>  <classpathentry kind="var" path="M2_REPO/org/apache/struts/xwork/xwork-core/2.3.1.2/xwork-core-2.3.1.2.jar"/>  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/></classpath>

构建后,WAR文件应部署

%CATALINA_base%webapps



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4899278.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-12
下一篇 2022-11-12

发表评论

登录后才能评论

评论列表(0条)

保存