jburns
Aug 19th, 2004, 12:41 PM
Hi. I'm trying to get the bare-bones quick-start application modifications to work with my application. I've added a 'secure' directory into the project tree, with the index.jsp debug page, and have added the required beans to application-context.xml along with the required filter changes to web.xml. I've also added to required libraries to my WEB-INF/lib directory. The application deploys as usual with everything working correctly.
However, when I go to the Acegi-secured 'secure' directory, I get the following....any ideas?
--Joe
browser:
javax.servlet.ServletException: /acegilogin.jsp(23,4) According to TLD or attribute directive in tag file, attribute test does not accept any expressions
at net.sf.acegisecurity.intercept.web.SecurityEnforce mentFilter.doFilter(SecurityEnforcementFilter.java :207)
at
Tomcat console:
DEBUG - PathBasedFilterInvocationDefinitionMap.lookupAttri butes(112) | Converted
URL to lowercase, from: 'org.apache.coyote.tomcat5.CoyoteRequestFacade@7e5 619';
to: '/index.jsp'
DEBUG - PathBasedFilterInvocationDefinitionMap.lookupAttri butes(123) | Candidate
is: '/index.jsp'; pattern is /secure/**; matched=false
DEBUG - AbstractSecurityInterceptor.interceptor(346) | Public object - authentic
ation not attempted
DEBUG - SecurityEnforcementFilter.doFilter(168) | Chain processed normally
DEBUG - AbstractIntegrationFilter.doFilter(193) | ContextHolder does not contain
any authentication information
DEBUG - AbstractIntegrationFilter.doFilter(164) | Authentication not added to Co
ntextHolder (could not extract an authentication object from the container which
is an instance of Authentication)
DEBUG - PathBasedFilterInvocationDefinitionMap.lookupAttri butes(112) | Converted
URL to lowercase, from: 'org.apache.coyote.tomcat5.CoyoteRequestFacade@7e5 619';
to: '/secure/index.jsp'
DEBUG - PathBasedFilterInvocationDefinitionMap.lookupAttri butes(123) | Candidate
is: '/secure/index.jsp'; pattern is /secure/**; matched=true
DEBUG - AbstractSecurityInterceptor.interceptor(273) | Secure object: FilterInvo
cation: URL: /secure/index.jsp; ConfigAttributes: [ROLE_SUPERVISOR]
DEBUG - SecurityEnforcementFilter.doFilter(191) | Authentication failed - adding
target URL to Session: http://localhost:9080/projectscribe/secure/index.jsp
net.sf.acegisecurity.AuthenticationCredentialsNotF oundException: A valid SecureC
ontext was not provided in the RequestContext
at net.sf.acegisecurity.intercept.AbstractSecurityInt erceptor.intercepto
r(AbstractSecurityInterceptor.java:280)
However, when I go to the Acegi-secured 'secure' directory, I get the following....any ideas?
--Joe
browser:
javax.servlet.ServletException: /acegilogin.jsp(23,4) According to TLD or attribute directive in tag file, attribute test does not accept any expressions
at net.sf.acegisecurity.intercept.web.SecurityEnforce mentFilter.doFilter(SecurityEnforcementFilter.java :207)
at
Tomcat console:
DEBUG - PathBasedFilterInvocationDefinitionMap.lookupAttri butes(112) | Converted
URL to lowercase, from: 'org.apache.coyote.tomcat5.CoyoteRequestFacade@7e5 619';
to: '/index.jsp'
DEBUG - PathBasedFilterInvocationDefinitionMap.lookupAttri butes(123) | Candidate
is: '/index.jsp'; pattern is /secure/**; matched=false
DEBUG - AbstractSecurityInterceptor.interceptor(346) | Public object - authentic
ation not attempted
DEBUG - SecurityEnforcementFilter.doFilter(168) | Chain processed normally
DEBUG - AbstractIntegrationFilter.doFilter(193) | ContextHolder does not contain
any authentication information
DEBUG - AbstractIntegrationFilter.doFilter(164) | Authentication not added to Co
ntextHolder (could not extract an authentication object from the container which
is an instance of Authentication)
DEBUG - PathBasedFilterInvocationDefinitionMap.lookupAttri butes(112) | Converted
URL to lowercase, from: 'org.apache.coyote.tomcat5.CoyoteRequestFacade@7e5 619';
to: '/secure/index.jsp'
DEBUG - PathBasedFilterInvocationDefinitionMap.lookupAttri butes(123) | Candidate
is: '/secure/index.jsp'; pattern is /secure/**; matched=true
DEBUG - AbstractSecurityInterceptor.interceptor(273) | Secure object: FilterInvo
cation: URL: /secure/index.jsp; ConfigAttributes: [ROLE_SUPERVISOR]
DEBUG - SecurityEnforcementFilter.doFilter(191) | Authentication failed - adding
target URL to Session: http://localhost:9080/projectscribe/secure/index.jsp
net.sf.acegisecurity.AuthenticationCredentialsNotF oundException: A valid SecureC
ontext was not provided in the RequestContext
at net.sf.acegisecurity.intercept.AbstractSecurityInt erceptor.intercepto
r(AbstractSecurityInterceptor.java:280)