• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

CantInstantiateObjectExp in local ejb

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Iam new to EJB2 with Websphere, I got the following error while try to the LOCAL EJB, Please help me to solve this error.


com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is com.ibm.ejs.container.ContainerEJBException: Unable to initialize deferred EJB.
at com.ibm.ws.runtime.component.EJBContainerImpl.initializeDeferredEJB(EJBContainerImpl.java:4177)
at com.ibm.ejs.container.HomeOfHomes.getHome(HomeOfHomes.java:341)
at com.ibm.ejs.container.HomeOfHomes.getHome(HomeOfHomes.java:300)
at com.ibm.ejs.container.EJSContainer.getLocalHome(EJSContainer.java:1176)
at com.ibm.ejs.container.util.LocalInterfaceHomeObjectFactory.getObjectInstance(LocalInterfaceHomeObjectFactory.java:115)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:314)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:874)
at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:191)

Advance Thanks..

ejb-jar.xml
-----------
<enterprise-beans>
<session id="Session_1">
<display-name>Common RVW EJB</display-name>
<ejb-name>RVWEJB</ejb-name>
<home>com.ramco.ejb.RVWEJBHome</home>
<remote>com.ramco.ejb.RVWEJBRemote</remote>
<ejb-class>com.ramco.ejb.RVWEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref id="EJBLocalRef_1178289858377">
<ejb-ref-name>rvw/RVWLocalEJB</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>com.ramco.local.ejb.RVWEJBHomeLocal</local-home>
<local>com.ramco.local.ejb.RVWEJBRemoteLocal</local>
<ejb-link>commonEJB.jar#RVWEJBLocal</ejb-link>
</ejb-local-ref>
</session>
<session id="Session_1178289858377">
<ejb-name>RVWEJBLocal</ejb-name>
<local-home>com.ramco.local.ejb.RVWEJBHomeLocal</local-home>
<local>com.ramco.local.ejb.RVWEJBRemoteLocal</local>
<ejb-class>com.ramco.local.ejb.RVWEJBBeanLocal</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>

client code( JSP)
----------------
InitialContext context = new InitialContext();
out.println("Context created.....");
context.lookup("java:comp/env/rvw/RVWLocalEJB");

Pls post your reply as soon as possible, thanks lot.........

regards
Babu Jayaraman
 
He's my best friend. Not yours. Mine. You can have this tiny ad:
ScroogeXHTML 8.7 - RTF to HTML5 and XHTML converter
https://coderanch.com/t/730700/ScroogeXHTML-RTF-HTML-XHTML-converter
    Bookmark Topic Watch Topic
  • New Topic