Solved

EJB errors going from RAD 6 to RAD 7

Posted on 2008-06-17
3
2,231 Views
Last Modified: 2013-12-14
I am having EJB errors going from RAD 6 to Rad 7.  These all compiled and worked properly before the upgrade.

Errors I'm getting if config has JNDI context local:ejb/ in front of JNDI lookup name or with no context infront:
ERROR 2008-06-16 12:37:29,871 {pu1} [WebContainer : 3] CustomerDelegate.placeManualHold -  Exception occurs in the Servicing
com.uhc.basics.exceptions.BasicsException ::  Service Exception occurs while locating ManualHoldHome,  Root Cause: Failed to obtain EJB Home,  Root Cause: Name "comp/env/ManualHoldEJB" not found in context "java:".
 
 Root Cause detail
 -----------------
 com.uhc.basics.j2ee.service.ServiceException :: Failed to obtain EJB Home,  Root Cause: Name "comp/env/ManualHoldEJB" not found in context "java:".
 
 Root Cause detail
 -----------------
 javax.naming.NameNotFoundException: Name "comp/env/ManualHoldEJB" not found in context "java:".
 at com.uhc.basics.compmgmt.services.BasicsCompMgmtDelegate.getEJBInstance(BasicsCompMgmtDelegate.java:138)
 at com.uhc.basics.compmgmt.services.CustomerDelegate.placeManualHold(CustomerDelegate.java:5814)
 
 
Error I'm getting with  java:comp/env context in front.
[6/16/08 8:11:13:295 EDT] 00000023 Helpers       W   NMSV0610I: A NamingException is being thrown from a javax.naming.Context implementation. Details follow:

Context implementation: com.ibm.ws.naming.java.javaURLContextRoot

Context method: lookup(Name)

Context name: java:

Target name: comp/env/ManualHoldEJB

Other data: ""

Exception stack trace: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is 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.]]


 

My service locator config:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE configuration SYSTEM "http://uhg.uht.com/dtd/configuration.dtd">

<configuration name="ServiceLocatorMetaData">

<!-- Start of all the DAO Entries -->

<property key="CustomerDAO" value = "CustomerDAO,DAO"/>

<property key="ProducerDAO" value = "ProducerDAO,DAO"/>

<property key="BasicsUtilsDAO" value = "BasicsUtilsDAO,DAO"/>

<property key="AuditDAO" value = "AuditDAO,DAO"/>

<property key="CalendarDAO" value = "CalendarDAO,DAO"/>

<property key="IssueDAO" value = "IssueDAO,DAO"/>

<property key="InboundDAO" value = "InboundDAO,DAO"/>

<property key="SystemDAO" value = "SystemDAO,DAO"/>

<property key="ManualDepositsDAO" value = "ManualDepositsDAO,DAO"/>

<property key="PaymentDAO" value = "PaymentDAO,DAO"/>

<!-- End of all DAO Entries -->


<!-- Start of all EJB Entries -->

<property key="ManualHoldHome" value = "ManualHoldEJB.ejbHomeName,EJB"/>

<property key="ManualHoldHome.ejbHomePath" value = "java:comp/env/ManualHoldEJB"/>

<property key="CustomerOverrideHome" value= "CustomerOverrideEJB.ejbHomeName,EJB" />

<property key="CustomerOverrideHome.ejbHomePath" value = "java:comp/env/CustomerOverrideEJB"/>

<property key="CustomerAORHome" value= "CustomerAOREJB.ejbHomeName,EJB" />

<property key="CustomerAORHome.ejbHomePath" value = "java:comp/env/CustomerAOREJB"/>

<property key="ProducerGarnishmentHome" value = "ProducerGarnishmentEJB.ejbHomeName,EJB"/>

<property key="ProducerGarnishmentHome.ejbHomePath" value = "java:comp/env/ProducerGarnishmentEJB"/>

<property key="KARatesHome" value = "KARatesEJB.ejbHomeName,EJB"/>

<property key="KARatesHome.ejbHomePath" value = "java:comp/env/KARatesEJB"/>

<property key="CustomerBaseHome" value= "CustomerBaseEJB.ejbHomeName,EJB" />

<property key="CustomerBaseHome.ejbHomePath" value= "java:comp/env/CustomerBaseEJB" />

<property key="IssueHandlingHome" value = "IssueHandlingEJB.ejbHomeName,EJB"/>

<property key="IssueHandlingHome.ejbHomePath" value= "java:comp/env/IssueHandlingEJB" />

<property key="CustomerHome" value = "CustomerEJB.ejbHomeName,EJB"/>

<property key="CustomerHome.ejbHomePath" value= "java:comp/env/CustomerEJB" />

<!-- End of all EJB entries -->


<!-- These are the entries that are related to meta data required by the ServiceLocator-->

<!-- for server deployments, the following lines are not required for an EJB lookup -->

<!-- <property key="nameService" value = "com.ibm.websphere.naming.WsnInitialContextFactory"/> -->

<!-- <property key="providerUrl" value = "iiop:///"/> -->

<!-- End of all meta data entries -->


<!-- Admin App UI config-->

<property key="ITDashboardDAO" value = "ITDashboardDAO,DAO"/>

<property key="AdminUIDAO" value = "AdminUIDAO,DAO"/>

</configuration>

radconfig.doc
0
Comment
Question by:sladej
3 Comments
 
LVL 10

Accepted Solution

by:
Nellios earned 500 total points
ID: 21810650
Stick with " java:comp/env/ManualHoldEJB" approach.
Check that all needed classes exist in the jar and review/validate your descriptor.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ArrayIndexOutOfBoundException 9 67
JavaScript/Java - Changing an image background color 4 54
eclipse argument 14 53
nextBoolean(double p) for Random class 3 35
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now