wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Container Not injecting ref for Weblogic 11g, EJB 3.0, jdk160_21, Helios Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Container Not injecting ref for Weblogic 11g, EJB 3.0, jdk160_21, Helios" Watch "Container Not injecting ref for Weblogic 11g, EJB 3.0, jdk160_21, Helios" New topic
Author

Container Not injecting ref for Weblogic 11g, EJB 3.0, jdk160_21, Helios

Divs Basu
Greenhorn

Joined: Jul 20, 2012
Posts: 2
[size=12]Hi,

I am trying to run Application Client app for the tutorial example given in Java EE 5. I am using Weblogic 11g, EJB 3.0 and Eclipse (Helios), jdk160_21. I am running the server, launching the App Client, but it's giving me this error, which seems to be an issue that EJB Container is not injecting the reference. Can somebody point out what am I missing?

The exception is below:

Caught an unexpected exception!
java.lang.NullPointerException
at com.learn.ejb.stateless.ConverterClient.doConversion(ConverterClient.java:22)
at com.learn.ejb.stateless.ConverterClient.main(ConverterClient.java:16)



The code is as below for ready reference

Thanks,
DibsLearner[/size]



[Thumbnail for SessionBean3.0_Helios_Weblogic11g.JPG]

shivaram kumar
Greenhorn

Joined: May 10, 2012
Posts: 6
you need to use JNDI lookup... instead of DI...

try this post
Divs Basu
Greenhorn

Joined: Jul 20, 2012
Posts: 2
Thanks shivaram. I have been successful in doing that, but acc to Java EE5 Tutorial this should work even without JNDI, which doesn't seem to be happening. I would like to know why?
 
Consider Paul's rocket mass heater.
 
subject: Container Not injecting ref for Weblogic 11g, EJB 3.0, jdk160_21, Helios
 
Similar Threads
How to run the ConverterClient app?
Issue Whie Deploying EJB on JBoss AS 5.1.0...
Need a *working* EJB 3 tutorial!!
ejb hanging
EJB Application Client Clarification