Results 1 to 3 of 3

Thread: Acegi integration in JBoss

  1. #1

    Default 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)

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Thumbs up 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
  •