1 Reply Latest reply on May 9, 2007 12:56 PM by jaikiran pai

    Jboss Classloader isolation not working

    venkaiah p Newbie

      I am using EJB2.1 Jboss4.0.2 and Xfire for webservices

      1. I set the below things for Jboss class loader isolation

      in JBOSS_HOME\server\default\deploy ear-deployer xml file

      &ltattribute name="Isolated"> true
      &ltattribute name="CallByValue"> true

      and in jboss-service.xml with below

      &ltattribute name="UseJBossWebLoader"&gtfalse

      2.In my application getting the local EJB proxy using the spring
      with the below code

      public static Object getEJB(String name, Class clazz)
      // Look up the job slsb as a proxy factory bean.
      LocalStatelessSessionProxyFactoryBean bean = new LocalStatelessSessionProxyFactoryBean();
      // Invoking after properties set ensure the lookup
      // is performed.
      catch(NamingException e)
      logger.error("Naming Exception=" + e.getMessage());

      // Proxy the factory bean to add the interceptor.
      ProxyFactory factory = new ProxyFactory(new Class[] {clazz});
      factory.addAdvice(0, new TransactionFailureInterceptor());
      return factory.getProxy();

      and while getting the proxy of the bean using the below code
      ProcManager ProcManager = (ProcManager) BeanUtil
      .getEJB("ProcManagerLocal", ProcManager.class);

      where ProcManager is the interface commonly implemented by both Service class and EJB and this service class is exposed as a webservice using xfire over spring configuration.

      3. With these configurations the application is getting deployed but a method call on the EJB throught service impl is throwing the below error

      NoSuchMethodExceptionCaused by: java.lang.NoSuchMethodException: $Proxy104.logon(com.to.Logon)
      at java.lang.Class.getMethod(Class.java:1581)
      at org.springframework.ejb.access.LocalSlsbInvokerInt erceptor.invoke(LocalSlsbInvokerInterceptor.java:6 9)
      at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :185)
      at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:209)
      ... 49 more

      3. Can some suggest on how to resolve this...

      thanks in advance