I need help understanding how multiple sculptor generated applications communicate. I understand that you have to use scoped class loaders in order to have the 2 applications deployed together which I assume solves bean definitions loading correctly. http://www.fornax-platform.org/tracker/browse/CSC-207 http://www.fornax-platform.org/tracker/browse/CSC-207 But isolating the class loader now seems to be causing me problems with classes being found.
The setup I have is EAR1 instantiates Services from EAR2. When stepping through the code the EJB beans in both EAR files are being instantiated fine but when trying to instantiate the spring beans in EAR1 it fails finding classes in EAR2. Here is the log information and stack. 2:01:33,895 INFO [STDOUT] testStarted testAddUpdateOrgMembers(com.mycompany.services.j2eetests.ServiceTest) 2:01:38,598 ERROR [STDERR] The member ClientPortalInterfaceServiceImpl in com.mycompany.services.pcs.core.serviceimpl.Clie tPortalInterfaceServiceImpl uses the type com.mycompany.services.party.serviceapi.SessionManager which cannot be found on he classpath. Weaving is therefore skipped for this particular member java.lang.RuntimeException: org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [com.mycompany.services.pcs], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.mycompany.services.pcs' defined in URL [jar:file:/C:/sfsl/runtime/localhost/workstation/jboss/tmp/deploy/tmp31491pcs-ear.ear-contents/pcs-core-1.0-SNAPSHOT.jar!/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientPortalInterfaceService' defined in class path resource [Service-core.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: com/mycompany/services/party/exception/ACSSessionManagerException at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorHandler.java:113) at org.jboss.ejb3.EJBContainer.invokePostConstruct(EJBContainer.java:623) at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:131) at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49) at org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50) at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at com.mycompany.spc.bhp.logging.LoggingEJBInterceptor.invoke(LoggingEJBInterceptor.java:52) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at com.mycompany.spc.bhp.logging.EJBServerInterceptor.invoke(EJBServerInterceptor.java:37) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214) at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184) at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81) at $Proxy562.getPCSContext(Unknown Source) at com.mycompany.services.j2eetests.ServiceTest.testAddUpdateOrgMembers(ServiceTest.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at junit.framework.TestCase.runTest(TestCase.java:168) I have tried many things and now I am to a point where I do not know what to do next. Thanks, James -- View this message in context: http://www.nabble.com/Multiple-applications-tp20181270s17564p20181270.html Sent from the Fornax-Platform mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Fornax-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fornax-developer
