Ajuda com Struts2

3 respostas
biroska

Estou estudando Struts2 há algumas semanas, mas tenho tido dificuldade para realizar a configuração.

Estou com a seguinte mensagem de erro:
"start?path=/AplicacaoStruts2
FAIL - Application at context path /AplicacaoStruts2 could not be started
C:\Documents and Settings\ctaim\Desktop\Java Web\AplicacaoStruts2\nbproject\build-impl.xml:686: O módulo não foi implementado.
FALHA NA CONSTRUÇÃO (tempo total: 6 segundos)"

Acho que deve haver algum erro no xml, mas não sei em qual e como corrigir, vocês podem me ajudar com esse problema.

web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <filter>
        <filter-name>struts2</filter-name>
        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <filter-mapping>
        <filter-name>applicationSessionFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>example/HelloWorld.jsp</welcome-file>
    </welcome-file-list>
</web-app>
Struts.xml
<struts>
    <include file="example.xml"/>
    <!-- Configuration for the default package. -->
<!--    <package name="example" extends="struts-default"> -->
        <action name="Cadastro" class="example.Cadastro">
            <result>/Cadastro.jsp</result>
        </action>

    </package>
</struts>

Desde já agradeço
Valeu!

3 Respostas

Natalia_Lima

Aew, tenta ver se o que falam nesses tópicos ajuda:

http://www.guj.com.br/java/225641–o-modulo-nao-foi-implementado—netbeansresolvido

http://www.guj.com.br/java/227728–buil-impl686-o-modulo-nao-foi-implementado

esmiralha

Seu XML é inválido. Tem um elemento comentado nele.

V

O seu struts.xml esta no formato inválido verifica a tag “”.

Criado 24 de janeiro de 2011
Ultima resposta 24 de jan. de 2011
Respostas 3
Participantes 4