-
Aug 31st, 2007, 02:41 AM
#1
Acegi integration in JBoss
Hello,
I am facing problem in Acegi integration with JBOSS. I have successfully used acegi with servlets using Tomcat 6. In my servlets based application I used following configurations in tomcat.
<filter>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
<init-param>
<param-name>targetClass</param-name>
<param-value>org.acegisecurity.util.FilterChainProxy</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.util.Log4jConfigList ener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
</listener>
My Jboss application is based on EJB 3.0 and JSF. I want to use same filter based Acegi security in my jboss application. But problem is in configurations. I do not know how/where to make these configurations.
Should I have to make changes in
jboss-4.0.4.GA\server\default\deploy\jbossweb-tomcat55.sar\conf\web.xml ?
But this file already have following some other filters.
<filter>
<filter-name>CommonHeadersFilter</filter-name>
<filter-class>org.jboss.web.tomcat.filters.ReplyHeaderFilt er</filter-class>
<init-param>
<param-name>X-Powered-By</param-name>
<param-value>Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CommonHeadersFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
I donot think that both of these filters will work at same time.
Kindly help me in this regard.
Thanks
Best Regards
Muhammad Yasir Siddiqi
System Architect
Advanced VoIP
Islamabad, 44000 Pakistan
Mobile: +92-321-5110619
Email: niityasir@hotmail.com
IM: niityasir@hotmail.com (MSN)
-
Sep 3rd, 2007, 06:47 AM
#2
Please use [ code][/code ] tags when posting code, it makes your post reable.
Just do it as you normally would do it in tomcat. You configure it in the web.xml used by your web application. NOT in the web.xml used for configuring your whole server.
Also posting in the correct forum Acegi might yield more results!
Last edited by Marten Deinum; Sep 3rd, 2007 at 06:55 AM.
-
Sep 4th, 2007, 12:28 AM
#3
Acegi integration in JBoss
Thanks for your valuable suggestions.
Best Regards
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules