Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: javax.naming.NamingException when performing local lookup

$
0
0

Hi Jun,

 

Thanks for your reply and also the hint,

 

However, when I tried to use the @Resource annotation as mentioned by you, I get the below error message:

 

<message xml:lang="en">

while trying to invoke the method com.ep.it.substmgr.ejb.SubstMgrLocal.storeSubstTemplateToDb(java.lang.String, java.lang.String, java.lang.String, java.lang.String) of a null object loaded from field com.ep.it.substmgr.odata.processor.SubstitutionTemplateProcessor.bean of an object loaded from local variable 'this'

</message>

 

It seems to me that it is not able to lookup the resource properly. Do I need to use any element for the @Resource annotation? Or add new entry into the deployment descriptor?

 

Thanks & Regards,

Goh


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>