Bom dia!
Tô começando agora com Struts 2 e estou com um problema que não estou conseguindo resolver.
Justamente na montagem do ambiente.
Instalei o jdk 7 - Instalei Eclipse - Coloquei os jar´s na lib do webinf - fiz referencia a biblioteca e instalei o Tomcat 7.
Criei uma action e um jsp de teste. Mas quando rodo o projeto estou tomando o seguinte erro:
Jun 14, 2012 9:47:46 AM org.apache.catalina.core.AprLifecycleListener init
Informações: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;.
Jun 14, 2012 9:47:46 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
Advertência: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Painel Wdev' did not find a matching property.
Jun 14, 2012 9:47:46 AM org.apache.coyote.AbstractProtocol init
Informações: Initializing ProtocolHandler ["http-bio-8080"]
Jun 14, 2012 9:47:46 AM org.apache.coyote.AbstractProtocol init
Informações: Initializing ProtocolHandler ["ajp-bio-8009"]
Jun 14, 2012 9:47:46 AM org.apache.catalina.startup.Catalina load
Informações: Initialization processed in 767 ms
Jun 14, 2012 9:47:46 AM org.apache.catalina.core.StandardService startInternal
Informações: Starting service Catalina
Jun 14, 2012 9:47:46 AM org.apache.catalina.core.StandardEngine startInternal
Informações: Starting Servlet Engine: Apache Tomcat/7.0.27
Jun 14, 2012 9:47:47 AM org.apache.catalina.core.StandardContext filterStart
Grave: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.FilterDispatcher
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:525)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:507)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:124)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:256)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4638)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Jun 14, 2012 9:47:47 AM org.apache.catalina.core.StandardContext startInternal
Grave: Error filterStart
Jun 14, 2012 9:47:47 AM org.apache.catalina.core.StandardContext startInternal
Grave: Context [/Painel_Wdev] startup failed due to previous errors
Jun 14, 2012 9:47:47 AM org.apache.coyote.AbstractProtocol start
Informações: Starting ProtocolHandler ["http-bio-8080"]
Jun 14, 2012 9:47:47 AM org.apache.coyote.AbstractProtocol start
Informações: Starting ProtocolHandler ["ajp-bio-8009"]
Jun 14, 2012 9:47:47 AM org.apache.catalina.startup.Catalina start
Informações: Server startup in 881 ms
Alguém poderia me dar uma ajuda?
Muito obrigado!
Sds,
Vitor