2 Replies Latest reply on Jan 22, 2014 11:12 AM by Shawn Ellis

    JBoss-6.1.0 Final - EJB3 Timer Service: org.hibernate.hql.ast.HqlToken cannot be cast to antlr.Token

    Shawn Ellis Newbie

      We are getting a Hibernate exception when using EJB3. JBoss 6.1.0 will start up the Timer Service if it detects a deployment of an ejb with version 3. The reason for the exception is that our application packages an older version of Hibernate which conflicts with the version of hibernate used by common/deploy/jboss-ejb3-timerservice-mk2.jar. We do have classloader isolation enabled in the application.

       

      Is there a workaround to this problem like disabling the EJB 3 Timer Service? The application does not use EJB Timers. If it's possible, how do you disable the EJB 3 Timer Service?

       

      We are also looking at upgrading our version of Hibernate, but I'm hoping that there is another possibility to limit the scope of our testing. Thanks for your help.

       

      DEPLOYMENTS IN ERROR:

        Deployment "jboss.j2ee:ear=PS.ear,jar=dispatcher.jar,name=ECommandExecutor,service=EJB3" is in error due to the following reason(s): java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken cannot be cast to antlr.Token

       

          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.2.GA]

          at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.2.GA]

          at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.1.0.Final]

          at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]

          at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.1.0.Final]

          at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.1.0.Final]

          at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]

          at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_41]