Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deployment problem in OC4J

 
dnyan ginde
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have created an EJB project in Eclipse Ganymede. This EJB project contains one stateless session bean and a client to test this bean. I have created a separate JPA project which contains one EJB 3.0 entity bean. I packaged both these projects in one single EAR file. When i try to deploy this EAR file to OC4J 10.1.3.4, i get the following warning on server startup:


Terminal is the EJB 3.0 entity bean.
The EAR gets deployed successfully even after this warning. However when i test the application i get the following exception:


While creating the JPA project in eclipse i have selected "Automatic detection of entity beans" hence i have not declared the entity beans in persistence.xml.

Can anybody tell me if I am missing anything?
 
dnyan ginde
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i move the contents of the JPA project to the stateless bean project, everything works fine. The problem arises only when the JPA project and the stateless bean projects are different.
 
dnyan ginde
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was able to resolve the issue. Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic