Boa noite…
Pessoal estou fazendo um projeto utilizando o Spring Security + jsf, mas estou com um pequeno problema, que quando eu mando execultar o meu aplicativo o meu módulo não implanta no apache…
Segue abaixo os meus códigos…
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" 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_3_0.xsd">
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>SpringSecurity</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SpringSecurity</servlet-name>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<!--Spring Security -->
<filter>
<filter-name>SpringSecurity</filter-name>
<filter-class>
org.springframework.web.filter.DelegatingFilterProxy
</filter-class>
</filter>
<filter-mapping><!-- ok-->
<filter-name>SpringSecurity</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.xhtml</welcome-file>
</welcome-file-list>
</web-app>
applicationContext
<?xml version="1.0" encoding="UTF-8"?>
<b:beans xmlns="http://www.springframework.org/schema/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:b="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd">
<http auto-config="true" access-denied-page="/negado.jsp">
<intercept-url pattern="/admin/**" access="ROLE_ADMIN" />
<intercept-url pattern="/paginas/**" access="ROLE_USER" />
<form-login login-page="/index.xhtml" authentication-failure-url="/login.jsp?error=invalido" />
</http>
<authentication-manager>
<authentication-provider>
<jdbc-user-service data-source-ref="dataSource"
users-by-username-query="SELECT username, password, enable FROM usuarios WHERE username=?"
authorities-by-username-query="SELECT username, authority FROM autorizacoes WHERE username=?"/>
</authentication-provider>
</authentication-manager>
<b:bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<b:property name="url" value="jdbc:postgresql://localhost:5432/SpringSecurity"/>
<b:property name="driverClassName" value="org.postgresql.Driver"/>
<b:property name="username" value="postgres"/>
<b:property name="password" value="postgres"/>
</b:bean>
</b:beans>
Aguardo resposta