Galera alguém sabe me dizer como configurar o namespace da minha action está acontecendo a seguinte exception.
segue a minha action, a jsp de onde estou chamando-a e o web.xml
ForcecedorAction
package br.com.view.actions.fornecedor;
import org.apache.struts2.config.Action;
import org.apache.struts2.config.Results;
import org.apache.struts2.config.Result;
import org.springframework.beans.factory.annotation.Autowired;
import br.com.business.fornecedor.FornecedorService;
import br.com.view.actions.BaseAction;
@Action(name="fornecedor", namespace="/")
@Results(value = {@Result(name = "success", value = "/jsp/fornecedor/fornecedor.jsp")})
public class FornecedorAction extends BaseAction {
private static final long serialVersionUID = -1898120279803778672L;
private String nomeFornecedor;
@Autowired
private FornecedorService fornecedorService;
public String execute(){
nomeFornecedor = fornecedorService.buscaFornecedor();
return SUCCESS;
}
public String getNomeFornecedor() {
return nomeFornecedor;
}
public void setNomeFornecedor(String nomeFornecedor) {
this.nomeFornecedor = nomeFornecedor;
}
}
Web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>JbossStruts</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
<init-param>
<param-name>actionPackages</param-name>
<param-value>br.com.view.actions.*</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>
login.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login</title>
</head>
<body>
<s:form action="fornecedor" theme="simple">
<s:submit label="Logar"/>
</s:form>
</body>
</html>
Se alguém puder me ajudar agradeço muito, o pior é que no WebLogic funcionou e no JBOSS to apanhando um bucado pra fazer funcionar.
Valew