为了账号安全,请及时绑定邮箱和手机立即绑定

用MyEclipse自动装配struts2出错

为什么我用MyEclipse自动配置的时候会报错


2017-8-14 23:38:35 org.apache.tomcat.util.digester.SetPropertiesRule begin

警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HelloWorld2' did not find a matching property.

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Server version:        Apache Tomcat/7.0.79

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Server built:          Jun 26 2017 16:25:20 UTC

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Server number:         7.0.79.0

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: OS Name:               Windows Vista

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: OS Version:            6.1

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Architecture:          amd64

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Java Home:             e:\Users\Administrator\AppData\Local\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\jre

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: JVM Version:           1.6.0_13-b03

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: JVM Vendor:            Sun Microsystems Inc.

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: CATALINA_BASE:         E:\Users\Administrator\Workspaces\MyEclipse 10\.metadata\.plugins\org.eclipse.wst.server.core\tmp0

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: CATALINA_HOME:         F:\网络下载\apache-tomcat-7.0.79

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:49697

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dcatalina.base=E:\Users\Administrator\Workspaces\MyEclipse

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: 10\.metadata\.plugins\org.eclipse.wst.server.core\tmp0

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dcatalina.home=F:\网络下载\apache-tomcat-7.0.79

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dwtp.deploy=E:\Users\Administrator\Workspaces\MyEclipse

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: 10\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Djava.endorsed.dirs=F:\网络下载\apache-tomcat-7.0.79\endorsed

2017-8-14 23:38:35 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dfile.encoding=GBK

2017-8-14 23:38:35 org.apache.catalina.core.AprLifecycleListener lifecycleEvent

信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: e:\Users\Administrator\AppData\Local\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;e:\Users\Administrator\AppData\Local\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\jre\bin;C:\Program Files\Java\jdk1.8.0_131\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\mysql-5.6.37-winx64\mysql-5.6.37-winx64\bin;D:\apache-maven-3.5.0\bin

2017-8-14 23:38:36 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ["http-bio-8080"]

2017-8-14 23:38:36 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ["ajp-bio-8009"]

2017-8-14 23:38:36 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 2229 ms

2017-8-14 23:38:36 org.apache.catalina.core.StandardService startInternal

信息: Starting service Catalina

2017-8-14 23:38:36 org.apache.catalina.core.StandardEngine startInternal

信息: Starting Servlet Engine: Apache Tomcat/7.0.79

2017-8-14 23:38:37 org.apache.tomcat.websocket.server.WsSci onStartup

信息: JSR 356 WebSocket (Java WebSocket 1.1) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocket JARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. 

2017-8-14 23:38:37 org.apache.catalina.core.StandardContext filterStart

严重: Exception starting filter struts2

java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)

at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:495)

at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:477)

at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:113)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4958)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:619)

2017-8-14 23:38:37 org.apache.catalina.core.StandardContext startInternal

严重: One or more Filters failed to start. Full details will be found in the appropriate container log file

2017-8-14 23:38:37 org.apache.catalina.core.StandardContext startInternal

严重: Context [/HelloWorld2] startup failed due to previous errors

2017-8-14 23:38:37 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["http-bio-8080"]

2017-8-14 23:38:37 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["ajp-bio-8009"]

2017-8-14 23:38:37 org.apache.catalina.startup.Catalina start

信息: Server startup in 1341 ms


正在回答

2 回答

support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocket JARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available.

应该是你的JAVA版本太低了,试试下载高版本的JAVA jdk

0 回复 有任何疑惑可以回复我~
#1

丶归途

而且你这里也显示ava.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter 我的也有,但我真的已经导入了包了,很不明白。
2017-08-19 回复 有任何疑惑可以回复我~

struts.zml都是跟老师配的一样的,求大神来解答!!谢谢

0 回复 有任何疑惑可以回复我~
#1

qq_晴天_180 提问者

xml写错了
2017-08-14 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

用MyEclipse自动装配struts2出错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信