Class not found no struts

1 resposta
filipeandrep

Galera estou tendo um proplema no struts 2. Configurei o arquivo web.xml conforme a indicação do proprio struts, setei suas devidas libs e no entanto é gerada a seguinte exceção:

java.lang.ClassNotFoundException: org.apache.struts2.dispacher.FilterDispatcher

segue o meu web.xml:

<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <filter> <filter-name>filtroStruts</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <filter-mapping> <filter-name>filtroStruts</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <servlet> <servlet-name>dwr</servlet-name> <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>dwr</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file> index.jsp </welcome-file> </welcome-file-list> <jsp-config> <taglib> <taglib-uri>/s</taglib-uri> <taglib-location>/WEB-INF/struts-tags.tld</taglib-location> </taglib> </jsp-config> </web-app>

1 Resposta

thiago.correa

Pergunta besta: Adicionou os jars no lib da sua aplicação ou no lib do servidor??!

Criado 28 de fevereiro de 2007
Ultima resposta 28 de fev. de 2007
Respostas 1
Participantes 2