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.placeManu
alHold - Exception occurs in the Servicing
com.uhc.basics.exceptions.
BasicsExce
ption :: 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.servic
e.ServiceE
xception :: Failed to obtain EJB Home, Root Cause: Name "comp/env/ManualHoldEJB" not found in context "java:".
Root Cause detail
-----------------
javax.naming.NameNotFoundE
xception: Name "comp/env/ManualHoldEJB" not found in context "java:".
at com.uhc.basics.compmgmt.se
rvices.Bas
icsCompMgm
tDelegate.
getEJBInst
ance(Basic
sCompMgmtD
elegate.ja
va:138)
at com.uhc.basics.compmgmt.se
rvices.Cus
tomerDeleg
ate.placeM
anualHold(
CustomerDe
legate.jav
a: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.jav
aURLContex
tRoot
Context method: lookup(Name)
Context name: java:
Target name: comp/env/ManualHoldEJB
Other data: ""
Exception stack trace: com.ibm.websphere.naming.C
annotInsta
ntiateObje
ctExceptio
n: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is com.ibm.websphere.naming.C
annotInsta
ntiateObje
ctExceptio
n: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is com.ibm.ejs.container.Cont
ainerEJBEx
ception: 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="ServiceLocatorMetaDa
ta">
<!-- 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.ejbHom
ePath" value = "java:comp/env/ManualHoldE
JB"/>
<property key="CustomerOverrideHome"
value= "CustomerOverrideEJB.ejbHo
meName,EJB
" />
<property key="CustomerOverrideHome.
ejbHomePat
h" value = "java:comp/env/CustomerOve
rrideEJB"/
>
<property key="CustomerAORHome" value= "CustomerAOREJB.ejbHomeNam
e,EJB" />
<property key="CustomerAORHome.ejbHo
mePath" value = "java:comp/env/CustomerAOR
EJB"/>
<property key="ProducerGarnishmentHo
me" value = "ProducerGarnishmentEJB.ej
bHomeName,
EJB"/>
<property key="ProducerGarnishmentHo
me.ejbHome
Path" value = "java:comp/env/ProducerGar
nishmentEJ
B"/>
<property key="KARatesHome" value = "KARatesEJB.ejbHomeName,EJ
B"/>
<property key="KARatesHome.ejbHomePa
th" value = "java:comp/env/KARatesEJB"
/>
<property key="CustomerBaseHome" value= "CustomerBaseEJB.ejbHomeNa
me,EJB" />
<property key="CustomerBaseHome.ejbH
omePath" value= "java:comp/env/CustomerBas
eEJB" />
<property key="IssueHandlingHome" value = "IssueHandlingEJB.ejbHomeN
ame,EJB"/>
<property key="IssueHandlingHome.ejb
HomePath" value= "java:comp/env/IssueHandli
ngEJB" />
<property key="CustomerHome" value = "CustomerEJB.ejbHomeName,E
JB"/>
<property key="CustomerHome.ejbHomeP
ath" 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.
WsnInitial
ContextFac
tory"/> -->
<!-- <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>
Start Free Trial