[jboss-user] [EJB 3.0] - error in deploying EJB3

paresh bhavsar do-not-reply at jboss.com
Mon May 24 09:56:32 EDT 2010


paresh bhavsar [http://community.jboss.org/people/bhavsar.er] created the discussion

"error in deploying EJB3"

To view the discussion, visit: http://community.jboss.org/message/544500#544500

--------------------------------------------------------------
 Hi,

I am having below mentioned persistence.xml.

<
persistence-unit name=+"eksOracle">
<jta-data-source>java:OracleDS</jta-data-source>
<properties>
<property name=+"hibernate.dialect" value=+"org.hibernate.dialect.OracleDialect" />
</properties>
</persistence-unit>

=============================================

i am using @PersistenceContext


(unitName="eksOracle")

*private* EntityManager entityManager;

in my DAO and getting following error.


2010-05-24 19:10:51,729 INFO  [org.jboss.ejb3.session.SessionSpecContainer] (HDScanner) Stopping jboss.j2ee:jar=TestEJB.jar,name=MstConceptFacade,service=EJB3
2010-05-24 19:10:51,729 INFO  [org.jboss.ejb3.EJBContainer] (HDScanner) STOPPED EJB: com.eks.ias.service.core.entity.MstConceptFacade ejbName: MstConceptFacade
2010-05-24 19:10:51,729 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Start: name=jboss.j2ee:jar=TestEJB.jar,name=MstConceptFacade,service=EJB3 state=Create
*java.lang.ClassCastException: $Proxy947 cannot be cast to javax.naming.Context*
 at org.jboss.util.naming.Util.createSubcontext(Util.java:70)

please let me know where i am mistaking in injecting EntityManager...


++


+


--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/544500#544500]

Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100524/6fa87534/attachment.html 


More information about the jboss-user mailing list