This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Regarding Illegal Argument exception in EJB application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Regarding Illegal Argument exception in EJB application" Watch "Regarding Illegal Argument exception in EJB application" New topic
Author

Regarding Illegal Argument exception in EJB application

Shital Mandlecha
Greenhorn

Joined: Feb 17, 2012
Posts: 5
Hi all,

I'm using netbeans with glassfish server and oracle 10g as backend. I tried creating an application in EJB, where in I'm facing some problems.
First of all I created an entity class named Stud with Derby database as backend, connection was done and table got created with data storage and retrieval done successfully.
But as soon as Oracle 10g was taken for backend database connectivity, application gets compiled and deployed successfully, but while running the application error comes into picture,
which I was not able to understand at all because I have set the classpath variable for ojdbc14.jar.
One reason that I understand is table is not getting created in the database. But could not get, how to solve this problem?

Caused by: java.lang.IllegalArgumentException: Object: p.Stud[ id=1 ] is not a known entity type.
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerNewObjectForPersist(UnitOfWorkImpl.java:4169)
at org.eclipse.persistence.internal.jpa.EntityManagerImpl.persist(EntityManagerImpl.java:440)
at com.sun.enterprise.container.common.impl.EntityManagerWrapper.persist(EntityManagerWrapper.java:269)

Please help me to solve this problem.

Shital.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding Illegal Argument exception in EJB application
 
Similar Threads
Questions about Oracle OCP 10g DBA
J2EE and Oracle Cluster
Oracle Transaction Rollback
JPA in Myeclipse6.5 with oracle 10g
JDBC driver confusion