0 Replies Latest reply on Apr 26, 2006 7:06 PM by Anbu Murali

    Problem with Classloader scoping in sar

    Anbu Murali Newbie

      Hi,
      I'm facing a problem with classloader scoping. I have a sar with all the portal libraries (like portal-security-lib) in sar's lib folder. I have classloader isolation configured in sar's META-INF/jboss-service.xml

      <loader-repository>dot.com:loader=xxx.sar
      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
      </loader-repository>

      Now I get a ClassNotFoundExceptions for the portal classes as below:
      26.04.2006_14:54:05|I|000000|10.3.3.220|cae_admin-server 8111|org.jboss.system.ServiceConfigurator|[Problem configuring service portal:service=PolicyService]
      java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.portal.security.jacc.JBossSecurityProvider
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:356)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:442)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
      at org.jboss.system.ServiceController.install(ServiceController.java:215)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.install(Unknown Source)

      Any ideas what could be the problem?

      Thanks