E aê galera!!!
Estou com uma grande dúvida...
Comecei os estudos em STRUTS de algumas apostilas e da Caelum FJ-21, porém todas as pequenas aplicações estão tendo como erro HTTP 404.
Fiz os mesmos passo à passo das apostilas, criei os arquivos .xml e fiz mapping para redirecionar páginas.
Estão sem erros de códigos, porém está sendo impossível de encontrar o objeto/arquivo da página.
Segue a resposta do console ao rodar...
10/03/2010 11:49:27 org.apache.catalina.core.AprLifecycleListener init
INFO: 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\jre6\bin;.;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\oraclexe\app\oracle\product0.2.0\server\bin;C:\Program Files\JavaFX\javafx-sdk1.2\bin;C:\Program Files\JavaFX\javafx-sdk1.2\emulator\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;c:\Program Files\Common Files\Roxio Shared\DLLShared\;c:\Program Files\Common Files\Roxio Shared0.0\DLLShared\;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Sun\SDK\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live
10/03/2010 11:49:27 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ExemploServlet' did not find a matching property.
10/03/2010 11:49:27 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jspteste' did not find a matching property.
10/03/2010 11:49:27 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:struts' did not find a matching property.
10/03/2010 11:49:27 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
10/03/2010 11:49:27 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 715 ms
10/03/2010 11:49:27 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
10/03/2010 11:49:27 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.24
10/03/2010 11:49:29 org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[/struts][commons-attributes-api-2.2.jar]: Required extension "ant" not found.
10/03/2010 11:49:29 org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[/struts][commons-attributes-api-2.2.jar]: Required extension "qdox" not found.
10/03/2010 11:49:29 org.apache.catalina.util.ExtensionValidator validateManifestResources
INFO: ExtensionValidator[/struts]: Failure to find 2 required extension(s).
10/03/2010 11:49:29 org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
10/03/2010 11:49:29 org.apache.catalina.core.StandardContext start
SEVERE: Context [/struts] startup failed due to previous errors
10/03/2010 11:49:29 org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/struts] has not been started
10/03/2010 11:49:30 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
10/03/2010 11:49:30 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
10/03/2010 11:49:30 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/33 config=null
10/03/2010 11:49:30 org.apache.catalina.startup.Catalina start
INFO: Server startup in 2278 ms
e o arquivo .xml
<?xml version="1.0" encoding="UTF-8"?>
<struts-config>
<action-mappings>
<action path="/teste" type="br.com.inmetrics.struts.action.TesteSimplesAction">
<forward name="ok" path="/exemplo.jsp" />
</action>
<action path="/teste" type="br.com.inmetrics.struts.action.ListaContatosAction">
<forward name="lista" path="/lista.jsp" />
</action>
</action-mappings>
</struts-config>
Obrigado!!!!