9 Replies Latest reply on Apr 7, 2011 10:08 AM by javacoryd

    Porting application from JBoss AS 4.2.0GA to 6.0 Final

    javacoryd

      We have an ear file which contains 2 jars.  One jar contains EJB 2s and the other contains EJB 3s.  This application currently runs on 4.2.0 GA and we are attempting to port it to 6.0 Final. 

       

      In doing so, the EJB3s deploy fine, but I can't seem to get the EJB2s to deploy.  I have stripped the application down to simply deploying 1 EJB2 stateless session bean ( IdentifierDataChange ).  In the logs I get this, which looks fine:

       

      10:33:44,686 INFO  [org.jboss.ejb.deployers.EjbDeployer] installing bean: ejb/epicGs.jar#IdentifierDataChange,uid2079070299

      10:33:44,686 INFO  [org.jboss.ejb.deployers.EjbDeployer]   with dependencies:

      10:33:44,686 INFO  [org.jboss.ejb.deployers.EjbDeployer]   and supplies:

      10:33:44,686 INFO  [org.jboss.ejb.deployers.EjbDeployer]     jndi:IdentifierDataChange

      10:33:44,686 INFO  [org.jboss.ejb.deployers.EjbDeployer]     jndi:epic/IdentifierDataChange/com.prioritytech.domain.process.client.IdentifierDataChange

       

      But then further down in the log I get this error, which I can explain.  It looks like it JBoss AS is trying to register the EJB2 in jndi, but fails to find the jndi server?

       

      10:34:44,017 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.j2ee:jndiName=IdentifierDataChange,service=EJB state=Create mode=Manual requiredState=Installed: java.rmi.ServerException: Could not bind home; nested exception is:

          javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]

          at org.jboss.proxy.ejb.ProxyFactory.bindProxy(ProxyFactory.java:484) [:6.0.0.Final]

          at org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:239) [:6.0.0.Final]

          at org.jboss.ejb.SessionContainer.startInvokers(SessionContainer.java:440) [:6.0.0.Final]

          at org.jboss.ejb.SessionContainer.startService(SessionContainer.java:398) [:6.0.0.Final]

          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:355) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:301) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

          at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source) [:1.6.0_18]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_18]

          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_18]

          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]

          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189) [:2.2.0.GA]

          at $Proxy41.start(Unknown Source)    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53) [:2.2.0.GA]

          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41) [:2.2.0.GA]

          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.system.ServiceController.doChange(ServiceController.java:671) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

          at org.jboss.system.ServiceController.start(ServiceController.java:443) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_18]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_18]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_18]

          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_18]

          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]

          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) [:6.0.0.GA]

          at $Proxy260.start(Unknown Source)    at org.jboss.ejb.EjbModule.startService(EjbModule.java:501) [:6.0.0.Final]

          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:355) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:301) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

          at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source) [:1.6.0_18]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_18]

          at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_18]

          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]

          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

          at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189) [:2.2.0.GA]

          at $Proxy41.start(Unknown Source)    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53) [:2.2.0.GA]

          at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41) [:2.2.0.GA]

          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.system.ServiceController.doChange(ServiceController.java:671) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

          at org.jboss.system.ServiceController.start(ServiceController.java:443) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

          at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189) [:6.0.0.Final]

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102) [:6.0.0.Final]

          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49) [:6.0.0.Final]

          at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]

          at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]

          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]

          at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]

          at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]

          at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]

          at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]

          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]

          at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

          at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]

          at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]

          at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]

          at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]

          at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]

          at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]

          at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]

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

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

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

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

          at java.lang.Thread.run(Thread.java:619) [:1.6.0_18]

      Caused by: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]

          at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1317) [:5.0.5.Final]

          at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1446) [:5.0.5.Final]

          at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:484) [:5.0.5.Final]

          at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:477) [:5.0.5.Final]

          at javax.naming.InitialContext.rebind(InitialContext.java:408) [:1.6.0_18]

          at org.jboss.util.naming.Util.rebind(Util.java:131) [jboss-common-core.jar:2.2.17.GA]

          at org.jboss.util.naming.Util.rebind(Util.java:117) [jboss-common-core.jar:2.2.17.GA]

          at org.jboss.proxy.ejb.ProxyFactory.rebindHomeProxy(ProxyFactory.java:492) [:6.0.0.Final]

          at org.jboss.proxy.ejb.ProxyFactory.bindProxy(ProxyFactory.java:480) [:6.0.0.Final]

          ... 122 more

      Caused by: java.net.SocketTimeoutException: Receive timed out

          at java.net.PlainDatagramSocketImpl.receive0(Native Method) [:1.6.0_18]

          at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) [:1.6.0_18]

          at java.net.DatagramSocket.receive(DatagramSocket.java:712) [:1.6.0_18]

          at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1287) [:5.0.5.Final]

          ... 130 more

       

      Any help would be appreciated.

       

      Thanks,

       

      Cory.

        • 1. Porting application from JBoss AS 4.2.0GA to 6.0 Final
          jaikiran

          Are you packaging any jndi.properties in your application? If yes, remove that file from your application packaging.

          • 2. Porting application from JBoss AS 4.2.0GA to 6.0 Final
            javacoryd

            No, the only place this file exists is in our {server}/conf directory.

            • 3. Porting application from JBoss AS 4.2.0GA to 6.0 Final
              wdfink

              I suppose that the conf/jndi.properties are in the classpath as well and cause problems as well.

              If all EJBs are within this server you should not need it.

              • 4. Porting application from JBoss AS 4.2.0GA to 6.0 Final
                javacoryd

                If I remove the jndi.properties file from {server}/conf the server throws a javax.naming.NoInitialContextException.

                 

                Cory.

                • 5. Porting application from JBoss AS 4.2.0GA to 6.0 Final
                  jaikiran

                  Post the output of:

                   

                  jar -tf epicGs.jar

                  • 6. Re: Porting application from JBoss AS 4.2.0GA to 6.0 Final
                    javacoryd

                    I think I may have got past this issue.  See if this makes sense.  I changed the jboss.xml deploy descriptor for the epicGs.jar from this:

                     

                    <session>

                             <ejb-name>IdentifierDataChange</ejb-name>

                             <jndi-name>IdentifierDataChange</jndi-name>

                     

                            <method-attributes>

                            </method-attributes>

                    </session>

                     

                    to this:

                     

                    <session>

                             <ejb-name>IdentifierDataChange</ejb-name>

                             <jndi-name>java:IdentifierDataChange</jndi-name>

                     

                            <method-attributes>

                            </method-attributes>

                    </session>

                     

                    Would this make sense this change is needed?

                     

                    Thanks,

                     

                    Cory.

                    • 7. Re: Porting application from JBoss AS 4.2.0GA to 6.0 Final
                      jaikiran

                      Cory Dahlstrom wrote:

                       


                      Would this make sense this change is needed?

                       

                      Not really My guess is that it's just hiding the real issue, which we haven't yet figured out.

                      • 8. Porting application from JBoss AS 4.2.0GA to 6.0 Final
                        javacoryd

                        It looks like the EJB2 are deploying now.  I can see them in JNDI and there are no errors on deployment of them.  However, we have about 300 EJB2 stateless session & entity beans.  It's taking almost 20 minutes to deploy all of the EJB2s.  This took about 1-3 minutes on 4.2.0.  I can't explain why it's taking much longer.

                         

                        Also, JBoss 6 is now attempting to deploy the EJB 3s and in mapping one of the entity beans it's getting this error.  I do have a version of antlr in my ear ( 2.7.5 ).  Could this be causing the issue?

                         

                        Caused by: org.hibernate.HibernateException: Unable to parse order-by fragment

                            at org.hibernate.sql.ordering.antlr.OrderByFragmentTranslator.render(OrderByFragmentTranslator.java:66) [:3.6.0.Final]

                            at org.hibernate.sql.Template.renderOrderByStringTemplate(Template.java:694) [:3.6.0.Final]

                            at org.hibernate.persister.collection.AbstractCollectionPersister.<init>(AbstractCollectionPersister.java:556) [:3.6.0.Final]

                            at org.hibernate.persister.collection.OneToManyPersister.<init>(OneToManyPersister.java:84) [:3.6.0.Final]

                            at org.hibernate.persister.PersisterFactory.createCollectionPersister(PersisterFactory.java:104) [:3.6.0.Final]

                            at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:305) [:3.6.0.Final]

                            at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1842) [:3.6.0.Final]

                            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:902) [:3.6.0.Final]

                            ... 79 more

                        Caused by: java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token

                            at antlr.CharScanner.makeToken(Unknown Source) [:6.0.0.Final]

                            at org.hibernate.sql.ordering.antlr.GeneratedOrderByLexer.mIDENT(GeneratedOrderByLexer.java:238) [:3.6.0.Final]

                            at org.hibernate.sql.ordering.antlr.GeneratedOrderByLexer.nextToken(GeneratedOrderByLexer.java:138) [:3.6.0.Final]

                            at antlr.TokenBuffer.fill(Unknown Source) [:6.0.0.Final]

                            at antlr.TokenBuffer.LA(Unknown Source) [:6.0.0.Final]

                            at antlr.LLkParser.LA(Unknown Source) [:6.0.0.Final]

                            at org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentParser.expression(GeneratedOrderByFragmentParser.java:531) [:3.6.0.Final]

                            at org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentParser.sortKey(GeneratedOrderByFragmentParser.java:337) [:3.6.0.Final]

                            at org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentParser.sortSpecification(GeneratedOrderByFragmentParser.java:248) [:3.6.0.Final]

                            at org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentParser.orderByFragment(GeneratedOrderByFragmentParser.java:192) [:3.6.0.Final]

                            at org.hibernate.sql.ordering.antlr.OrderByFragmentTranslator.render(OrderByFragmentTranslator.java:60) [:3.6.0.Final]

                            ... 86 more

                        • 9. Porting application from JBoss AS 4.2.0GA to 6.0 Final
                          javacoryd

                          I just wanted to let everyone know that I did resolve this issue.  In my ear/lib directory existed a jnp_client.jar file that was not compatible with JBoss 6.  I remove this and JNDI lookups are fine.

                           

                          Thanks,

                           

                          Cory.