[opencms-dev] help with acegi security...

Mick Knutson mickknutson at gmail.com
Sun Jan 7 18:55:22 CET 2007


I have added acegi to the web.xml and created my
applicationContext-acegi-security.xml just fine.
Now when I attempt to access "./subscription-only" I get my form and attempt
to login.

The acegilogin.jsp is a jsp I created in opencms and this is the <form>:

<form action="<c:url value='j_acegi_security_check'/>" method="POST">


Here is my error:
Error reading resource from path "/tro/j_acegi_security_check".
Reason: Unable to read resource "/tro/j_acegi_security_check".

Detailed:

org.opencms.file.CmsVfsResourceNotFoundException: Error reading
resource from path "/tro/j_acegi_security_check".
	at org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResourceNotFoundException.java:78)
	at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:213)
	at org.opencms.db.CmsDbContext.report(CmsDbContext.java:197)
	at org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:3830)
	at org.opencms.file.CmsObject.readResource(CmsObject.java:2711)
	at org.opencms.file.CmsObject.readResource(CmsObject.java:2677)
	at org.opencms.main.OpenCmsCore.initResource(OpenCmsCore.java:1170)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1346)
	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:151)
	at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:163)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
	at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
	at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
	at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.opencms.file.CmsVfsResourceNotFoundException: Unable to
read resource "/tro/j_acegi_security_check".
	at org.opencms.db.generic.CmsVfsDriver.readResource(CmsVfsDriver.java:1434)
	at org.opencms.db.CmsDriverManager.readResource(CmsDriverManager.java:5590)
	at org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:5595)
	at org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:3828)

	... 36 more


Can anyone help me to understand how to get acegi working as FORM based web
user authentication?

-- 
Thanks

DJ MICK

(Mick Knutson)
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20070107/b27af1d0/attachment.htm>


More information about the opencms-dev mailing list