Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

EJB errors going from RAD 6 to RAD 7

Posted on 2008-06-17
3
Medium Priority
?
2,258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
Nellios earned 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
A solution for Fortify Path Manipulation.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

604 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