3 Replies Latest reply on Aug 21, 2007 12:16 PM by Antoine Herzog

    using jboss-web and jboss-app to mod class loading behavior

    Advait Newbie

      I have a pebble.war for blogging on JBoss AS 4.0.5_GA. But when I start server it gives:

      ==============================================
      16:21:23,241 ERROR [[/pebble]] Exception starting filter Acegi Filter Chain Proxy
      javax.servlet.ServletException: Bean context must contain at least one bean of type org.acegisecurity.util.FilterChainPr
      oxy
      at org.acegisecurity.util.FilterToBeanProxy.doInit(FilterToBeanProxy.java:137)
      at org.acegisecurity.util.FilterToBeanProxy.init(FilterToBeanProxy.java:181)
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
      at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
      at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:77)
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
      ==============================================

      But when, I change jboss-service.xml and make UseJBossWebLoader to 'true', the problem resolves. But I need to do it using jboss-web or jboss-app.xml, as changing in jboss-service.xml has far reaching effects on other WARs deployed. So I put following in WEB-INF of war:

      <jboss-web>
      <class-loading java2ClassLoadingCompliance="false">
      <loader-repository>
      com.example:loader=pebble.war <loader-repository-config>java2ParentDelegation=true</loader-repository-config>
      </loader-repository>
      </class-loading>
      </jboss-web>

      But same problem persists, I also tried all permutation and combination of true/false in above.