Hi all


I migrated from Version 3.0 final to the newest Snapshot version. Now i have 
problems getting my remote EJB Services instanciated.



The generated ServiceLocator now uses Spring mechanisms to instantiate the 
remote beans from JNDI (instead of using direct JNDI calls in Version 3.0). I 
had to put several libraries into the classpath of my web-app to get 
ServiceLocator code up and running, but now i get a CreateException.



12:31:55,953 ERROR [LogInterceptor] EJBException in method: 
public abstract at.oeamtc.leonardo.core.ejb.PersonService 
at.oeamtc.leonardo.core.ejb.PersonServiceHome.create() throws 
javax.ejb.CreateException:

javax.ejb.EJBException: Could not instantiate bean

   at 
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:180)

   at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:78)

   at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)

   at 
org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)

   at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)

   at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)

   at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)

   at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)

   at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)

   at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)

   at 
org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)

   at org.jboss.ejb.Container.invoke(Container.java:894)

   at 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:342)

   at 
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118)

   at $Proxy185.create(Unknown Source)

   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:324)

   at 
org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.create(AbstractSlsbInvokerInterceptor.java:174)

   at 
org.springframework.ejb.access.LocalSlsbInvokerInterceptor.newSessionBeanInstance(LocalSlsbInvokerInterceptor.java:132)

   at 
org.springframework.ejb.access.LocalSlsbInvokerInterceptor.getSessionBeanInstance(LocalSlsbInvokerInterceptor.java:106)

   at 
org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invoke(LocalSlsbInvokerInterceptor.java:62)

   at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)

   at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)

   at $Proxy174.getLeoUserData(Unknown Source)

   at 
at.oeamtc.leonardo.UISecurityController.putLeoUserObjectInSession(UISecurityController.java:73)

   at 
at.oeamtc.leonardo.SecurityFilter.setPrincipal(SecurityFilter.java:99)

   at 
at.oeamtc.leonardo.SecurityFilter.doFilter(SecurityFilter.java:68)

   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

   at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

   at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)

   at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)

   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)

   at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)

   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)

   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

   at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

   at java.lang.Thread.run(Thread.java:534)

12:31:55,963 ERROR [[action]] Servlet.service() 
for servlet action threw exception

javax.ejb.EJBException: Could not instantiate bean

   at 
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:180)

   at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:78)

   at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)

   at 
org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)

   at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)

   at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)

   at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)

   at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)

   at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)

   at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)

   at 
org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)

   at org.jboss.ejb.Container.invoke(Container.java:894)

   at 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:342)

   at 
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:118)

   at $Proxy185.create(Unknown Source)

   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:324)

   at 
org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.create(AbstractSlsbInvokerInterceptor.java:174)

   at 
org.springframework.ejb.access.LocalSlsbInvokerInterceptor.newSessionBeanInstance(LocalSlsbInvokerInterceptor.java:132)

   at 
org.springframework.ejb.access.LocalSlsbInvokerInterceptor.getSessionBeanInstance(LocalSlsbInvokerInterceptor.java:106)

   at 
org.springframework.ejb.access.LocalSlsbInvokerInterceptor.invoke(LocalSlsbInvokerInterceptor.java:62)

   at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)

   at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)

   at $Proxy174.getLeoUserData(Unknown Source)

   at 
at.oeamtc.leonardo.UISecurityController.putLeoUserObjectInSession(UISecurityController.java:73)

   at 
at.oeamtc.leonardo.SecurityFilter.setPrincipal(SecurityFilter.java:99)

   at 
at.oeamtc.leonardo.SecurityFilter.doFilter(SecurityFilter.java:68)

   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

   at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

   at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)

   at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)

   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)

   at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)

   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)

   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

   at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

   at java.lang.Thread.run(Thread.java:534)





I am sure that i am doing something wrong, but can anybody help me getting this 
to run? Is this a classloader issue? I use Jboss 4.0.2 with 



<attribute name="Java2ClassLoadingCompliance">false</attribute>

<attribute name="UseJBossWebLoader">false</attribute>





which worked fine with androMDA 3.0



LG

Michael[/code]
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3147#3147
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to