File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes  javax.ejb.CreateException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark " javax.ejb.CreateException" Watch " javax.ejb.CreateException" New topic


sam jadhav

Joined: Jan 12, 2009
Posts: 5
I have the problem related to EJB -

When I call the create method of entity bean from session bean the following exception is get generated.

Also when I call any find method the Find fail exception.

Table name also present in database same in jboss-cmp-jdbc.xml

Bound EJB Home 'LeaveApplicationBean' to jndi 'LeaveApplicationBean' { entity bean )

16:56:29,380 INFO [EJBDeployer] Deployed: file:/C:/jboss-4.0.5.GA/jboss-4.0.5.GA/server/default/deploy/LeaveEntityBeanNew.jar

16:56:34,151 INFO [TomcatDeployer] deploy, ctxPath=/LeaveModule, warUrl=.../tmp/deploy/tmp7368LeaveModule-exp.war/

16:56:39,345 INFO [TomcatDeployer] undeploy, ctxPath=/customeTag, warUrl=.../tmp/deploy/tmp7365customeTag-exp.war/

16:56:39,486 INFO [EJBDeployer] Undeploying: file:/C:/jboss-4.0.5.GA/jboss-4.0.5.GA/server/default/deploy/LeaveSessionBean.jar

16:56:39,580 INFO [EjbModule] Deploying leaveBean

16:56:39,720 INFO [ProxyFactory] Bound EJB Home 'leaveBean' to jndi 'leaveBean' { Session Bean }

16:56:39,720 INFO [EJBDeployer] Deployed: file:/C:/jboss-4.0.5.GA/jboss-4.0.5.GA/server/default/deploy/LeaveSessionBean.jar

16:56:40,018 WARN [DeployerInterceptorJSE] Cannot load servlet class: com.leave.LeaveTest

16:56:40,018 INFO [TomcatDeployer] deploy, ctxPath=/customeTag, warUrl=.../tmp/deploy/tmp7371customeTag-exp.war/

16:56:50,061 INFO [STDOUT] Inside ejbCreate

16:56:50,202 ERROR [LeaveApplicationBean] Error checking if entity exists

java.sql.SQLException: [Oracle][ODBC][Ora]ORA-00921: unexpected end of SQL command

at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)

at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)

at sun.jdbc.odbc.JdbcOdbc.SQLExecute(Unknown Source)

I agree. Here's the link:
subject: javax.ejb.CreateException
It's not a secret anymore!