[Resolvido] Erro em VRaptor 3.1 + Spring Security 3.0.1

Não está usando.

web.xml:

[code]<?xml version="1.0" encoding="UTF-8"?>

vraptor-blank-project

<!--
	VRaptor will scan classpath for all @Component and @Resource inside
	WEB-INF/classes If you want to load them also from WEB-INF/lib/ jars,
	you need to specify from which packages they will be loaded, comma
	separated:
-->

<!--
	<context-param>
	<param-name>br.com.caelum.vraptor.packages</param-name>
	<param-value>br.com.caelum.vraptor.blank</param-value>
	</context-param>
-->

<!--
	if you are using a servlet 3.0 container as glassfish 3 or jetty 8,
	you dont need this filter configuration
-->
<context-param>
	<param-name>contextConfigLocation</param-name>
	<param-value>classpath:/applicationContext.xml</param-value>
</context-param>

<filter>
	<filter-name>vraptor</filter-name>
	<filter-class>br.com.caelum.vraptor.VRaptor</filter-class>
</filter>

<filter-mapping>
	<filter-name>vraptor</filter-name>
	<url-pattern>/*</url-pattern>
	<dispatcher>FORWARD</dispatcher>
	<dispatcher>REQUEST</dispatcher>
</filter-mapping>

<!--
<filter>
	<filter-name>springSecurityFilterChain</filter-name>
	<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
	<filter-name>springSecurityFilterChain</filter-name>
	<url-pattern>/*</url-pattern>
</filter-mapping>
	- Loads the root application context of this web app at startup. - The
	application context is then available via -
	WebApplicationContextUtils.getWebApplicationContext(servletContext).
<listener>
	<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
-->

[/code]

applicationContext.xml:

[code]<?xml version="1.0" encoding="UTF-8"?>

<!--
  • Sample namespace-based configuration

–>

<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans=“http://www.springframework.org/schema/beans” xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=“http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd”>

<global-method-security pre-post-annotations="enabled">
</global-method-security>

<http use-expressions="true">
	<!--
		Disable web URI authorization, as we're using
		<global-method-security> and have @Secured the services layer instead
		<intercept-url pattern="/listAccounts.html" access="isRememberMe()"
		/> <intercept-url pattern="/post.html"
		access="hasRole('ROLE_TELLER')" />
	-->
	<intercept-url pattern="/login.jsp*" access="IS_AUTHENTICATED_ANONYMOUSLY" />
	<intercept-url pattern="/**" access="ROLE_USER" />
	<form-login login-page="/login.jsp"
		authentication-failure-url="/login.jsp?login_error=1" />
	<http-basic />
	<logout logout-success-url="/index.jsp" />
	<remember-me />
</http>

<!--
	Usernames/Passwords are rod/koala dianne/emu scott/wombat peter/opal
-->
<authentication-manager>
	<authentication-provider>
		<password-encoder hash="md5" />
		<user-service>
			<user name="rod" password="a564de63c2d0da68cf47586ee05984d7"
				authorities="ROLE_SUPERVISOR, ROLE_USER, ROLE_TELLER" />
			<user name="dianne" password="65d15fe9156f9c4bbffd98085992a44e"
				authorities="ROLE_USER,ROLE_TELLER" />
			<user name="scott" password="2b58af6dddbd072ed27ffc86725d7d3a"
				authorities="ROLE_USER" />
			<user name="peter" password="22b5c9accc6e1ba628cedc63a72d57f8"
				authorities="ROLE_USER" />
		</user-service>
	</authentication-provider>
</authentication-manager>

</beans:beans>
[/code]

log de qdo eu subo a aplicação:

13:01:01,156 INFO [ClassPathXmlApplicationContext] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@5e55ab: startup date [Thu Feb 25 13:01:01 BRT 2010]; root of context hierarchy 13:01:01,250 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [applicationContext.xml] 13:01:01,453 INFO [GlobalMethodSecurityBeanDefinitionParser] Expressions were enabled for method security but no SecurityExpressionHandler was configured. All hasPermision() expressions will evaluate to false. 13:01:01,500 INFO [FilterInvocationSecurityMetadataSourceParser] Creating access control expression attribute 'IS_AUTHENTICATED_ANONYMOUSLY' for /login.jsp* 13:01:01,500 INFO [FilterInvocationSecurityMetadataSourceParser] Creating access control expression attribute 'ROLE_USER' for /** 13:01:01,625 INFO [HttpSecurityBeanDefinitionParser] Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 300, Root bean: class [org.springframework.security.web.authentication.logout.LogoutFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 400, Root bean: class [org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 800, Root bean: class [org.springframework.security.web.authentication.www.BasicAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1200, Root bean: class [org.springframework.security.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1300, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1400, Root bean: class [org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1500, Root bean: class [org.springframework.security.web.authentication.AnonymousAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1600, Root bean: class [org.springframework.security.web.session.SessionManagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1800, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0>, order = 1900] 13:01:01,843 INFO [ClassPathXmlApplicationContext] Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler#0' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 13:01:01,859 INFO [ClassPathXmlApplicationContext] Bean '(inner bean)' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 13:01:01,859 INFO [ClassPathXmlApplicationContext] Bean '(inner bean)' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 13:01:01,859 INFO [ClassPathXmlApplicationContext] Bean 'org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 13:01:01,875 INFO [ClassPathXmlApplicationContext] Bean 'org.springframework.security.methodSecurityMetadataSourceAdvisor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 13:01:01,890 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@364641: defining beans [org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler#0,org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0,org.springframework.security.access.vote.AffirmativeBased#0,org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor#0,org.springframework.security.methodSecurityMetadataSourceAdvisor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.security.web.PortMapperImpl#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy#0,org.springframework.security.authentication.ProviderManager#0,org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler#0,org.springframework.security.access.vote.AffirmativeBased#1,org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authentication.AnonymousAuthenticationProvider#0,org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices#0,org.springframework.security.authentication.RememberMeAuthenticationProvider#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.springframework.security.config.http.UserDetailsServiceInjectionBeanPostProcessor#0,org.springframework.security.filterChainProxy,org.springframework.security.core.userdetails.memory.InMemoryDaoImpl#0,org.springframework.security.authentication.dao.DaoAuthenticationProvider#0,org.springframework.security.authentication.DefaultAuthenticationEventPublisher#0,org.springframework.security.authenticationManager]; root of factory hierarchy 13:01:01,968 INFO [MethodSecurityInterceptor] Validated configuration attributes 13:01:02,281 INFO [FilterSecurityInterceptor] Validated configuration attributes 13:01:02,484 INFO [VRaptorApplicationContext] Refreshing Root WebApplicationContext: startup date [Thu Feb 25 13:01:02 BRT 2010]; parent: org.springframework.context.support.ClassPathXmlApplicationContext@5e55ab 13:01:02,625 INFO [VRaptorApplicationContext] Scanning WEB-INF/classes: C:\JAVA\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\vraptor-blank-project\WEB-INF\classes 13:01:02,640 DEBUG [ComponentScanner ] scanning [] 13:01:02,671 DEBUG [ComponentScanner ] Identified candidate component class: file [C:\JAVA\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\vraptor-blank-project\WEB-INF\classes\br\com\caelum\vraptor\blank\IndexController.class] 13:01:02,687 INFO [DefaultListableBeanFactory] Overriding bean definition for bean 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor': replacing [Root bean: class [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Root bean: class [br.com.caelum.vraptor.ioc.spring.InjectionBeanPostProcessor]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] 13:01:02,687 DEBUG [VRaptorApplicationContext] Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@17cfd38: defining beans [defaultTypeFinder,asmBasedTypeCreator,defaultRouter,defaultResourceTranslator,emptyElementsRemoval,pathAnnotationRoutesParser,defaultRoutes,defaultAcceptHeaderToFormat,defaultResourceNotFoundHandler,defaultConverters,encodingHandlerFactory,defaultDeserializers,defaultInterceptorRegistry,noRoutesConfiguration,paranamerNameProvider,objenesisProxifier,defaultMethodNotAllowedHandler,defaultMultipartConfig,XStreamXMLDeserializer,defaultTypeNameExtractor,stereotypeHandler,converterHandler,interceptorStereotypeHandler,deserializesHandler,stereotypedBeansRegistrar,defaultSpringLocator,flashInterceptor,outjectResult,deserializingInterceptor,defaultPathResolver,XStreamXMLSerialization,defaultFormatResolver,emptyResult,multipartInterceptor,defaultResult,defaultLogicResult,defaultHttpResult,defaultPageResult,applicationConfiguration,defaultRepresentationResult,XStreamJSONSerialization,jstlLocalization,resourceLookupInterceptor,defaultRefererResult,parametersInstantiatorInterceptor,defaultMethodInfo,executeMethodInterceptor,replicatorOutjector,downloadInterceptor,defaultValidationViewsFactory,defaultStatus,interceptorListPriorToExecutionExtractor,forwardToDefaultViewInterceptor,defaultValidator,instantiateInterceptor,ognlParametersProvider,bigDecimalConverter,bigIntegerConverter,booleanConverter,byteConverter,characterConverter,doubleConverter,enumConverter,floatConverter,integerConverter,localeBasedCalendarConverter,localeBasedDateConverter,longConverter,primitiveBooleanConverter,primitiveByteConverter,primitiveCharConverter,primitiveDoubleConverter,primitiveFloatConverter,primitiveIntConverter,primitiveLongConverter,primitiveShortConverter,shortConverter,uploadedFileConverter,VRaptorRequestProvider,httpServletRequestProvider,httpServletResponseProvider,httpSessionProvider,defaultRequestExecution,defaultInterceptorStack,indexController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,cacheBasedTypeCreator]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@364641 13:01:02,828 DEBUG [VRaptorApplicationContext] Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@6a63d3] 13:01:02,828 DEBUG [VRaptorApplicationContext] Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@bfed5a] 13:01:02,843 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@17cfd38: defining beans [defaultTypeFinder,asmBasedTypeCreator,defaultRouter,defaultResourceTranslator,emptyElementsRemoval,pathAnnotationRoutesParser,defaultRoutes,defaultAcceptHeaderToFormat,defaultResourceNotFoundHandler,defaultConverters,encodingHandlerFactory,defaultDeserializers,defaultInterceptorRegistry,noRoutesConfiguration,paranamerNameProvider,objenesisProxifier,defaultMethodNotAllowedHandler,defaultMultipartConfig,XStreamXMLDeserializer,defaultTypeNameExtractor,stereotypeHandler,converterHandler,interceptorStereotypeHandler,deserializesHandler,stereotypedBeansRegistrar,defaultSpringLocator,flashInterceptor,outjectResult,deserializingInterceptor,defaultPathResolver,XStreamXMLSerialization,defaultFormatResolver,emptyResult,multipartInterceptor,defaultResult,defaultLogicResult,defaultHttpResult,defaultPageResult,applicationConfiguration,defaultRepresentationResult,XStreamJSONSerialization,jstlLocalization,resourceLookupInterceptor,defaultRefererResult,parametersInstantiatorInterceptor,defaultMethodInfo,executeMethodInterceptor,replicatorOutjector,downloadInterceptor,defaultValidationViewsFactory,defaultStatus,interceptorListPriorToExecutionExtractor,forwardToDefaultViewInterceptor,defaultValidator,instantiateInterceptor,ognlParametersProvider,bigDecimalConverter,bigIntegerConverter,booleanConverter,byteConverter,characterConverter,doubleConverter,enumConverter,floatConverter,integerConverter,localeBasedCalendarConverter,localeBasedDateConverter,longConverter,primitiveBooleanConverter,primitiveByteConverter,primitiveCharConverter,primitiveDoubleConverter,primitiveFloatConverter,primitiveIntConverter,primitiveLongConverter,primitiveShortConverter,shortConverter,uploadedFileConverter,VRaptorRequestProvider,httpServletRequestProvider,httpServletResponseProvider,httpSessionProvider,defaultRequestExecution,defaultInterceptorStack,indexController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,cacheBasedTypeCreator]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@364641 13:01:02,843 DEBUG [VRaptorApplicationContext] Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@1d840d9] 13:01:02,921 INFO [DefaultConverters ] Registering bundled converters 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.BigDecimalConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.BigIntegerConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.BooleanConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.ByteConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.CharacterConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.DoubleConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.EnumConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.FloatConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.IntegerConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.LocaleBasedCalendarConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.LocaleBasedDateConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.LongConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveBooleanConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveByteConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveCharConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveDoubleConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveFloatConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveIntConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveLongConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.PrimitiveShortConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.converter.ShortConverter 13:01:02,921 DEBUG [DefaultConverters ] bundled converter to be registered: class br.com.caelum.vraptor.interceptor.multipart.UploadedFileConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.http.route.DefaultTypeFinder 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.http.asm.AsmBasedTypeCreator 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.http.route.DefaultRouter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.http.DefaultResourceTranslator 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.http.ognl.EmptyElementsRemoval 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.http.route.PathAnnotationRoutesParser 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.core.DefaultRoutes 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.view.DefaultAcceptHeaderToFormat 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.resource.DefaultResourceNotFoundHandler 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.core.DefaultConverters 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.http.EncodingHandlerFactory 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.deserialization.DefaultDeserializers 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.DefaultInterceptorRegistry 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.http.route.NoRoutesConfiguration 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.http.ParanamerNameProvider 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.proxy.ObjenesisProxifier 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.resource.DefaultMethodNotAllowedHandler 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.multipart.DefaultMultipartConfig 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.deserialization.XStreamXMLDeserializer 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.DefaultTypeNameExtractor 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.ioc.ResourceHandler 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.ioc.ConverterHandler 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.ioc.InterceptorStereotypeHandler 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.deserialization.DeserializesHandler 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.ioc.spring.StereotypedBeansRegistrar 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.ioc.spring.DefaultSpringLocator 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.FlashInterceptor 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.OutjectResult 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.DeserializingInterceptor 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.view.DefaultPathResolver 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.serialization.xstream.XStreamXMLSerialization 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.http.DefaultFormatResolver 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.view.EmptyResult 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.multipart.MultipartInterceptor 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.core.DefaultResult 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.view.DefaultLogicResult 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.view.DefaultHttpResult 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.view.DefaultPageResult 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.config.ApplicationConfiguration 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.serialization.DefaultRepresentationResult 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.serialization.xstream.XStreamJSONSerialization 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.core.JstlLocalization 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.view.DefaultRefererResult 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.core.DefaultMethodInfo 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.ExecuteMethodInterceptor 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.validator.ReplicatorOutjector 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.download.DownloadInterceptor 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.view.DefaultValidationViewsFactory 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.view.DefaultStatus 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.InterceptorListPriorToExecutionExtractor 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.extra.ForwardToDefaultViewInterceptor 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.validator.DefaultValidator 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.InstantiateInterceptor 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.http.ognl.OgnlParametersProvider 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.BigDecimalConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.BigIntegerConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.BooleanConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.ByteConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.CharacterConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.DoubleConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.EnumConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.FloatConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.IntegerConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.LocaleBasedCalendarConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.LocaleBasedDateConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.LongConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.PrimitiveBooleanConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.PrimitiveByteConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.PrimitiveCharConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.PrimitiveDoubleConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.PrimitiveFloatConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.PrimitiveIntConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.PrimitiveLongConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.PrimitiveShortConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.converter.ShortConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.interceptor.multipart.UploadedFileConverter 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.core.RequestInfo 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning interface br.com.caelum.vraptor.http.MutableRequest 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning interface br.com.caelum.vraptor.http.MutableResponse 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning interface javax.servlet.http.HttpSession 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.core.DefaultRequestExecution 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.core.DefaultInterceptorStack 13:01:02,953 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.blank.IndexController 13:01:02,953 DEBUG [ResourceRegistrar ] Found resource: class br.com.caelum.vraptor.blank.IndexController 13:01:02,968 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for IndexController.index() as [] 13:01:02,968 DEBUG [DefaultParametersControl] For / retrieved / with {} 13:01:02,984 INFO [RouteBuilder ] / -> IndexController.index() 13:01:02,984 DEBUG [StereotypedBeansRegistrar] scanning class org.springframework.context.annotation.ConfigurationClassPostProcessor 13:01:02,984 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.ioc.spring.InjectionBeanPostProcessor 13:01:02,984 DEBUG [StereotypedBeansRegistrar] scanning class org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProcessor 13:01:02,984 DEBUG [StereotypedBeansRegistrar] scanning class org.springframework.context.annotation.CommonAnnotationBeanPostProcessor 13:01:02,984 DEBUG [StereotypedBeansRegistrar] scanning class org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator 13:01:02,984 DEBUG [StereotypedBeansRegistrar] scanning class br.com.caelum.vraptor.reflection.CacheBasedTypeCreator 13:01:02,984 INFO [VRaptor ] VRaptor 3.1.1 successfuly initialized 25/02/2010 13:01:02 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 25/02/2010 13:01:03 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 25/02/2010 13:01:03 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/31 config=null 25/02/2010 13:01:03 org.apache.catalina.startup.Catalina start INFO: Server startup in 2597 ms 13:01:03,375 DEBUG [VRaptor ] VRaptor received a new request 13:01:03,453 DEBUG [DefaultRequestExecution] executing stack DefaultRequestExecution 13:01:03,625 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ResourceLookupInterceptor 13:01:03,625 DEBUG [DefaultResourceTranslator] trying to access / 13:01:03,656 DEBUG [DefaultResourceTranslator] found resource [DefaultResourceMethod: IndexController.indexIndexController.index()] 13:01:03,703 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor FlashInterceptor 13:01:03,718 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor InterceptorListPriorToExecutionExtractor 13:01:03,718 DEBUG [InstantiatedInterceptorHandler] Invoking interceptor InstantiateInterceptor 13:01:03,828 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ParametersInstantiatorInterceptor 13:01:03,828 DEBUG [JstlLocalization ] couldn't find message bundle, creating an empty one 13:01:03,828 DEBUG [AsmBasedTypeCreator ] Trying to make class for IndexController$index$715134878$1 13:01:03,843 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for IndexController.index() as [] 13:01:03,843 DEBUG [AsmBasedTypeCreator ] Parameter names found for creating type are: [] 13:01:03,843 DEBUG [AsmBasedTypeCreator ] Methods: [] 13:01:03,843 DEBUG [AsmBasedTypeCreator ] Fields: [] 13:01:03,843 DEBUG [CacheBasedTypeCreator] cached generic type for method [DefaultResourceMethod: IndexController.indexIndexController.index()] 13:01:03,859 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for IndexController.index() as [] 13:01:03,859 DEBUG [ParametersInstantiatorInterceptor] Parameter values for [DefaultResourceMethod: IndexController.indexIndexController.index()] are [] 13:01:03,906 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExecuteMethodInterceptor 13:01:03,906 DEBUG [ExecuteMethodInterceptor] Invoking IndexController.index() 13:01:03,906 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor OutjectResult 13:01:03,921 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ForwardToDefaultViewInterceptor 13:01:03,921 DEBUG [ForwardToDefaultViewInterceptor] forwarding to the dafault page for this logic 13:01:03,937 DEBUG [DefaultPageResult ] forwarding to /WEB-INF/jsp/index/index.jsp 13:01:03,953 DEBUG [DefaultStaticContentHandler] Deferring request to container: /vraptor-blank-project/WEB-INF/jsp/index/index.jsp 13:01:04,031 DEBUG [VRaptor ] VRaptor ended the request

acho que eu sei corrigir isso… mas precisa ser no src do vraptor… faço isso e te mando um snapshot com a solução, ok?

Obrigado! :smiley: :smiley:

corrigido e snapshot gerado:
http://oss.sonatype.org/content/repositories/snapshots/br/com/caelum/vraptor/3.1.2-SNAPSHOT/vraptor-3.1.2-20100226.014118-2.jar

-coloque o context-listener de novo no web.xml
-coloque o applicationContext.xml na pasta WEB-INF

agora deve funcionar (o problema dos 2 servletContexts foi resolvido)

Hmm, aproveitando o tópico do colega… e como ficou essa integração? é mesmo necessário ter um applicationContext? Ou pode ser um vazio ou até mesmo o xml do acegy somente?

E fiquei com outra dúvida? como o vraptor está fazendo? O Spring usa o contexto já criado pelo vraptor ou o contrário?

a integração com o Spring security precisa de um applicationContext.xml configurado (talvez no spring 3 tenha algum jeito de não precisar)

o VRaptor usa o contexto do Spring, se existir

Lucas,

Funcionou perfeitamente!!

Obrigado pela atenção :smiley: