• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.ejb.CreateException  RSS feed

sam jadhav
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!