Tomcat tells me:
Exception starting filter struts2
Thursday, 24. March, 16: 09
2011-3-24 16:07:16 org. Apache. Catalina. Core. aprlifecyclelistener init
Information: The APR based Apache Tomcat native library which allows optimal performance in production environments was not found on the java. library. path: D: \ Dev \ Java \ bin ;.; c: \ windows \ sun \ Java \ bin; c: \ windows \ system32; C: \ WINDOWS; D: \ Dev \ Java \ JRE \ bin; D: /dev/Java/bin /.. /JRE/bin/server; D:/dev/Java/bin /.. /JRE/bin; D:/dev/Java/bin /.. /JRE/lib/amd64; D: \ Dev \ Java \ bin; c: \ windows \ system32; C: \ WINDOWS; c: \ windows \ system32 \ WBEM; C: \ windows \ system32 \ windowspowershell \ V1.0 \; D: \ Dev \ dB \ mysql \ mysql5.5 \ bin; D: \ Dev \ eclipse-SDK-3.6.2-win32-x86_64 \ eclipse;
2011-3-24 16:07:17 org. Apache. Coyote. http11.http11protocol init
Information: initializing coyote HTTP/1.1 on http-8080
2011-3-24 16:07:17 org. Apache. Catalina. startup. Catalina Load
Information: initialization processed in 1130 MS
2011-3-24 16:07:17 org. Apache. Catalina. Core. standardservice start
Information: starting service Catalina
2011-3-24 16:07:17 org. Apache. Catalina. Core. standardengine start
Information: Starting Servlet Engine: Apache Tomcat/6.0.32
2011-3-24 16:07:17 org. Apache. Catalina. startup. hostconfig deploydescriptor
Information: deploying configuration descriptor host-manager.xml
2011-3-24 16:07:17 org. Apache. Catalina. startup. hostconfig deploydescriptor
Information: deploying configuration descriptor manager. xml
2011-3-24 16:07:18 org. Apache. Catalina. startup. hostconfig deploydescriptor
Information: deploying configuration descriptor phonebook. xml
2011-3-24 16:07:18 org. Apache. Catalina. Core. standardcontext filterstart
Severe: exception starting filter struts2
Java. Lang. classnotfoundexception: org. Apache. struts2.dispatcher. filterdispatcher
At Org. Apache. Catalina. loader. webappclassloader. loadclass (webappclassloader. Java: 1680)
At org. Apache. Catalina. loader. webappclassloader. loadclass (webappclassloader. Java: 1526)
At org. Apache. Catalina. Core. applicationfilterconfig. getfilter (applicationfilterconfig. Java: 269)
At org. Apache. Catalina. Core. applicationfilterconfig. setfilterdef (applicationfilterconfig. Java: 422)
At org. Apache. Catalina. Core. applicationfilterconfig. <init> (applicationfilterconfig. Java: 115)
At org. Apache. Catalina. Core. standardcontext. filterstart (standardcontext. Java: 4071)
At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4725)
At org. Apache. Catalina. Core. containerbase. addchildinternal (containerbase. Java: 799)
At org. Apache. Catalina. Core. containerbase. addchild (containerbase. Java: 779)
At org. Apache. Catalina. Core. standardhost. addchild (standardhost. Java: 601)
At org. Apache. Catalina. startup. hostconfig. deploydescriptor (hostconfig. Java: 675)
At org. Apache. Catalina. startup. hostconfig. deploydescriptors (hostconfig. Java: 601)
At org. Apache. Catalina. startup. hostconfig. deployapps (hostconfig. Java: 502)
At org. Apache. Catalina. startup. hostconfig. Start (hostconfig. Java: 1315)
At org. Apache. Catalina. startup. hostconfig. lifecycleevent (hostconfig. Java: 324)
At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 142)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1061)
At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 840)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1053)
At org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 463)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 525)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 754)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 595)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 597)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 289)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 414)
2011-3-24 16:07:18 org. Apache. Catalina. Core. standardcontext start
Severe: Error filterstart
2011-3-24 16:07:18 org. Apache. Catalina. Core. standardcontext start
Severe: context [/phonebook] Startup failed due to previous errors
2011-3-24 16:07:18 org. Apache. Catalina. startup. hostconfig deploydescriptor
Information: deploying configuration descriptor struts2demo. xml
16:07:19 com. opensymphony. xwork2.config. providers. xmlconfigurationprovider register
Information: parsing configuration file [struts-default.xml]
16:07:19 com. opensymphony. xwork2.config. providers. xmlconfigurationprovider register
Information: parsing configuration file [struts-plugin.xml]
16:07:19 com. opensymphony. xwork2.config. providers. xmlconfigurationprovider register
Information: parsing configuration file [struts. xml]
2011-3-24 16:07:19 org. Apache. struts2.config. settings getlocale
Warning settings: cocould not parse struts. locale setting, substituting default VM locale
2011-3-24 16:07:19 com. opensymphony. xwork2.util. objecttypedeterminerfactory <clinit>
Information: detected genericsobjecttypedeterminer, initializing it...
2011-3-24 16:07:19 org. Apache. Catalina. startup. hostconfig deploydirectory
Information: deploying web application directory docs
2011-3-24 16:07:19 org. Apache. Catalina. startup. hostconfig deploydirectory
Information: deploying web application directory examples
2011-3-24 16:07:20 org. Apache. Catalina. Core. applicationcontext log
Information: contextlistener: contextinitialized ()
2011-3-24 16:07:20 org. Apache. Catalina. Core. applicationcontext log
Information: sessionlistener: contextinitialized ()
2011-3-24 16:07:20 org. Apache. Catalina. startup. hostconfig deploydirectory
Information: deploying web application directory Root
2011-3-24 16:07:20 org. Apache. Coyote. http11.http11protocol start
Information: Starting coyote HTTP/1.1 on http-8080
2011-3-24 16:07:20 org. Apache. JK. Common. channelsocket init
Information: JK: ajp13 listening on/0.0.0.0: 8009
2011-3-24 16:07:20 org. Apache. JK. server. jkmain start
Description: JK running id = 0 time = 0/50 Config = NULL
2011-3-24 16:07:20 org. Apache. Catalina. startup. Catalina start
Information: server startup in 3180 MS
Solution:
Weird. Remove some of the referenced external jar (five related to struts2: commons-logging, freemarker, ognl, struts2-core, xwork) from the build path, copy these jar files from the project-independent directory to the project's WEB-INF/lib, add the copied jar files to the build path, and then clean, build, start tomcat, but this time there is no error ......?
To verify whether the JAR file is not placed in the lib directory, remove the packages in build path and add the jar, clean, build, restart Tomcat files in the directory outside the project, there is no error !?
I used to encounter this problem occasionally ...... I think this is annoying. That's incredible. What is going on?
Likewise, after modifying something, no matter how you build it, you cannot change the builld to the work directory (or classes). You can only clear the work and let it build completely new. And so on. It is basically a problem with the build project. The Maven I heard two days ago does not know whether it can cure this problem.
I don't know if other open-source ides have such problems. If you have enough time, you must try netbeans.