I recieve this error when binding to a remote stateless EJB.
As you can see, the BeanDelegate class locates the Remote Bean via JNDI. The BeanDelegate class extends SimpleRemoteStatelessSessionProxyFactoryBean, and simply adds the ability to specify a java.namming.provider.url so that the administrator can change the xml file as the web client is moved from environment to another environment. This worked on Friday, I came in on Monday, and somehow this has become broken. I'm unable to track down the cause and any help would be greatly appreciated. Below are my client classes.Code:[11/1/04 13:25:44:114 EST] e910e91 DefaultListab I org.springframework.beans.factory.support.DefaultListableBeanFactory Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [UserManager]; Root of BeanFactory hierarchy] [11/1/04 13:25:44:114 EST] e910e91 DefaultListab I org.springframework.beans.factory.support.DefaultListableBeanFactory Creating shared instance of singleton bean 'UserManager' [11/1/04 13:25:49:036 EST] e910e91 BeanDelegate I com.llic.util.ejb.BeanDelegate Located object with JNDI name [ejb/UserManagerBean]: value=[IOR:000000000000003e524d493a636f6d2e6c6c69632e757365726d616e616765722e656a622e557365724d616e61676572486f6d653a3030303030303030303030303030303000000000000001000000000000039c0001020000000011646576776173312e6c6c69632e636f6d00000dd6000000b94a4d4249000000124760d55865393862343736306435353839386435000000240000009549454a5002000d1093aa0c446f634672616d65776f726b03454a4200000076acac0002000100290000005f5f686f6d654f66486f6d6573235f5f686f6d654f66486f6d6573235f5f686f6d654f66486f6d6573084a6176612055736572204d616e61676d656e742073797374656d23757365726d616e61676572656a622e6a617223656a622f557365724d616e616765724265616e0000000000000b0000000100000014000000000501000100000000000101000000000049424d0a00000008000000011420000100000026000000020002000049424d040000000500050101020000000000001f000000040000000300000020000000040000000100000021000001d8000100000000000400020000000000240000001e0000002600020000000000010000000c3139322e3136382e322e36000dd80040000000000000000806062b1200021e02000000230401000806062b1200021e02000000136d69636b65792e6c6c69632e636f6d3a333839000000000000000000000000000000000000420000000000240000001e0000006600420000000000010000000c3139322e3136382e322e36000dd90040000000000000000806062b1200021e02000000230401000806062b1200021e02000000136d69636b65792e6c6c69632e636f6d3a333839000000000000000000000000000000000000020000000000240000001e0000002600020000000000010000000c3139322e3136382e322e36000dd800400000000000000008060667810201010100000023040100080606678102010101000000136d69636b65792e6c6c69632e636f6d3a333839000000000000000000000000000000000000420000000000240000001e0000006600420000000000010000000c3139322e3136382e322e36000dd900400000000000000008060667810201010100000023040100080606678102010101000000136d69636b65792e6c6c69632e636f6d3a333839000000000000000000000000000000000000000014000000080000007e407e0dd749424d060000002800000000196d69636b65792e6c6c69632e636f6d3a3338392f7761736164312e312e31202000407e000003090000002800000000196d69636b65792e6c6c69632e636f6d3a3338392f7761736164312e312e31202000407e000000250000000400000003] [11/1/04 13:25:49:302 EST] e910e91 ServletInstan E SRVE0100E: Did not realize init() exception thrown by servlet SystemInitializer: javax.servlet.ServletException: Error creating bean with name 'UserManager' defined in class path resource [usermanagerejbcontext.xml]: Initialization of bean failed; nested exception is org.aopalliance.aop.AspectException: EJB home [null] has no no-arg create() method at java.lang.Throwable.<init>(Throwable.java) at java.lang.Throwable.<init>(Throwable.java:73) at javax.servlet.ServletException.<init>(ServletException.java:161) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:99) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147) at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113) at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224) at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542) at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1277) at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283) at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:387) at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:209) at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:987) at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136) at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:418) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:787) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:575) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413) at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125) at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536) at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413) at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183) at com.ibm.ws.runtime.WsServer.start(WsServer.java:128) at com.ibm.ws.runtime.WsServer.main(WsServer.java:225) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41) at java.lang.reflect.Method.invoke(Method.java:386) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94) at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97) ---- Begin backtrace for Nested Throwables org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'UserManager' defined in class path resource [usermanagerejbcontext.xml]: Initialization of bean failed; nested exception is org.aopalliance.aop.AspectException: EJB home [null] has no no-arg create() method EJB home [null] has no no-arg create() method [11/1/04 13:25:49:427 EST] e910e91 WebGroup E SRVE0020E: [Servlet Error]-[SystemInitializer]: Failed to load servlet: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'UserManager' defined in class path resource [usermanagerejbcontext.xml]: Initialization of bean failed; nested exception is org.aopalliance.aop.AspectException: EJB home [null] has no no-arg create() method EJB home [null] has no no-arg create() method [11/1/04 13:25:49:443 EST] e910e91 TraceNLS u No message text associated with key Error.creating.bean.with.name.'UserManager'.defined.in.class.path.resource.[usermanagerejbcontext.xml]:.Initialization.of.bean.failed;.nested.exception.is.org.aopalliance.aop.AspectException:.EJB.home.[null].has.no.no-arg.create().method in bundle com.ibm.ejs.resources.seriousMessages [11/1/04 13:25:49:443 EST] e910e91 WebAppServlet E Error creating bean with name UserManager defined in class path resource [usermanagerejbcontext.xml]: Initialization of bean failed; nested exception is org.aopalliance.aop.AspectException: EJB home [null] has no no-arg create() method [11/1/04 13:25:49:521 EST] e910e91 WebGroup I SRVE0180I: [User Manager Web Interface] [/usermanager] [Servlet.LOG]: action: init [11/1/04 13:25:50:568 EST] e910e91 TilesPlugin I org.apache.struts.tiles.TilesPlugin Tiles definition factory loaded for module ''.
And the two client classes.Code:/* * Created on Oct 12, 2004 * */ package com.llic.usermanager.ejb; import java.rmi.RemoteException; import java.util.List; import com.llic.usermanager.data.ApplicationVO; import com.llic.usermanager.data.GroupVO; import com.llic.usermanager.data.RoleVO; import com.llic.usermanager.data.UserVO; /** * @author Todd Nine * */ public interface UserManager { public static final String ENABLED = "Y"; public static final String DISABLED = "N"; ..methods here... }
Code:/* * Created on Oct 12, 2004 * */ package com.llic.usermanager.ejb; import java.rmi.RemoteException; import javax.ejb.CreateException; import javax.ejb.EJBHome; /** * @author Todd Nine * */ public interface UserManagerHome extends EJBHome { public UserManagerRemote create() throws CreateException, RemoteException; }Code:/* * Created on Oct 12, 2004 * */ package com.llic.usermanager.ejb; import java.rmi.Remote; import javax.ejb.EJBObject; /** * @author Todd Nine * */ public interface UserManagerRemote extends Remote, EJBObject, UserManager { }


Reply With Quote
