Como configuro o filtro do struts2 para funcionar com dois ou mais sistemas web no mesmo tomcat?
Atualmente uso annotations para tudo e meu web.xml está assim :
<?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>TheGrid</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<session-config>
<session-timeout>3000</session-timeout>
</session-config>
<filter>
<filter-name>the-grid</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>the-grid</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
struts.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.devMode" value="true" />
<package name="default" extends="struts-default">
<interceptors>
<interceptor name="autorizador" class="cmabreu.TheGrid.CIM.Interceptor.ClientAccessInterceptor" />
<interceptor-stack name="seguranca">
<interceptor-ref name="autorizador" />
<interceptor-ref name="defaultStack" />
</interceptor-stack>
</interceptors>
<global-results>
<result name="naoLogado">/index.jsp</result>
</global-results>
</package>
</struts>
Tenho várias actions anotadas para o struts2 em 3 sistemas distintos que desenvolvo no eclipse e
gostaria de colocá-los para rodas nesta IDE ( aba SERVERS ). Aparentemente eles entram em conflito
e só um funciona, os demais não acham as actions.
Agradeço qualquer dica.
EDT : Cada um tem seu próprio web.xml e struts.xml.