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 <attribute name="Isolated"> true <attribute name="CallByValue"> true and in jboss-service.xml with below <attribute name="UseJBossWebLoader">false 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(); bean.setJndiName(name); bean.setBusinessInterface(clazz); bean.setLookupHomeOnStartup(true); bean.setResourceRef(false); try { // Invoking after properties set ensure the lookup // is performed. bean.afterPropertiesSet(); } 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.setTarget(bean.getObject()); 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 venkat View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044200#4044200 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044200 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user