6 Replies Latest reply on Jul 1, 2011 8:19 AM by Julie H

    Problems Migrating from WAS to JBoss 6

    Julie H Newbie

      Hi.

       

      I am in the processing of migrating one of our applications from WAS to JBoss 6, and have come across an issue I am having trouble resolving. Would appreciate it if someone could provide some insight into this problem.

       

      The application follows the EJB2.0 spec and uses Xdoclet annotations.

      We want to first get the application up and running on JBOSS 6, with a view to then converting the application to use EJB3.0 spec.

       

      I have installed the application successfully in JBoss 5 (just to check whether I got the same issue as in JBoss 6), and it installs successfully (haven't run it yet though - so it may fail at runtime).

       

      The error I am getting is as follows :

       

      2011-06-30 15:05:32,554 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Create: name=jboss.j2ee:jndiName=BPProcessAudit,service=EJB state=Configured mode=Manual requiredState=Create: java.lang.ClassCastException: $Proxy193 cannot be cast to javax.ejb.EJBLocalHome

      at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.getEJBLocalHome(BaseLocalProxyFactory.java:244) [:6.0.0.Final]

      at org.jboss.ejb.Container.createService(Container.java:923) [:6.0.0.Final]

      at org.jboss.ejb.SessionContainer.createService(SessionContainer.java:159) [:6.0.0.Final]

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

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

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

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

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

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

      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.create(Unknown Source) at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:54) [:2.2.0.GA]

      at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:42) [: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.create(ServiceController.java:405) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

      at sun.reflect.GeneratedMethodAccessor321.invoke(Unknown Source) [:1.6.0_13]

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

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

      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 $Proxy173.create(Unknown Source) at org.jboss.ejb.EjbModule.createService(EjbModule.java:449) [:6.0.0.Final]

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

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

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

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

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

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

      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.create(Unknown Source) at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:54) [:2.2.0.GA]

      at org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:42) [: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.create(ServiceController.java:405) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]

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

      at org.jboss.system.deployers.ServiceDeployer.create(ServiceDeployer.java:184) [:6.0.0.Final]

      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99) [: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.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]

      at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]

      at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]

      at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]

      at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]

      at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]

      at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]

      at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]

      at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]

      at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]

      at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]

      at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_13]

      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_13]

      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_13]

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_13]

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_13]

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_13]

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_13]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_13]

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

       

      This error occurs for each of the EJB's contained in the application.

       

      The class which causes the above problem is :

       

      package com.xx.dao.ejb;

      import java.rmi.RemoteException;

      import javax.ejb.CreateException;
      import javax.ejb.EJBException;
      import javax.ejb.SessionBean;
      import javax.ejb.SessionContext;

      // other imports deleted

      /**
      * --
      * @ejb.bean
      *    name = "BPProcessAudit"
      *    display-name = "BPProcessAudit Database Access Bean"
      *    type = "Stateless"
      *    transaction-type = "Bean"
      *    jndi-name = "ejb/xx/xx/BPProcessAudit"
      *    local-jndi-name = "ejb/xx/xx/BPProcessAuditLocal"
      *    view-type = "both"
      *
      * @ejb.home
      *    remote-class = "com.xx.dao.ejb.interfaces.BPProcessAuditHome"
      *    local-class = "com.xx.dao.ejb.interfaces.BPProcessAuditLocalHome"
      *
      * @ejb.interface
      *    remote-class = "com.xx.dao.ejb.interfaces.BPProcessAudit"
      *    local-class = "com.xx.dao.ejb.interfaces.BPProcessAuditLocal"
      *
      * @ejb.util
      *    generate = "logical"
      *
      * @ejb.resource-ref
      *  res-ref-name = "MYDB_REF"
      *  res-type = "javax.sql.DataSource"
      *  res-auth = "Container"
      *  jndi-name = "jdbc/AXISDB"
      *
      * @websphere.resource-ref
      *  res-ref-name = "MYDB_REF"
      *  isolation-level = "TRANSACTION_READ_COMMITTED"
      */
      public class BPProcessAuditEJB implements SessionBean {

        //Static fields
        private static final long serialVersionUID = -76401858385693261L;

        //Instance fields
        private SessionContext sessionContext;

        public void ejbCreate() throws EJBException, CreateException {
        }

        public void ejbActivate() throws EJBException, RemoteException {
        }

        public void ejbPassivate() throws EJBException, RemoteException {
        }

        public void ejbRemove() throws EJBException, RemoteException {
        }

       

        /**
          *
          * @param primaryKey
          * @return
          * @throws EJBException
          * --
          * @ejb.interface-method
          *    view-type = "both"
          */
        public BPProcessAuditVO find(BPProcessAuditPK primaryKey) throws EJBException, DataAccessException {

            // code deleted
           
        }

       

       

      The Local and remote interfaces, and the utility class are all generated by Xdoclet.

       

      Please let me know what other information would be useful in identifying the issue.

       

      Thanks

        • 1. Re: Problems Migrating from WAS to JBoss 6
          jaikiran pai Master

          Please post the generated local/remote interfaces and also the local-home/remote-home interfaces. Also post the generated ejb-jar.xml and jboss.xml

          • 2. Re: Problems Migrating from WAS to JBoss 6
            Julie H Newbie

            Generated interface classes are as follows :

             

            /*
            * Generated by XDoclet - Do not edit!
            */
            package com.xx.dao.ejb.interfaces;

            /**
            * Remote interface for BPProcessAudit.
            * @since bpm sprint 0.2 --
            */
            public interface BPProcessAudit
              extends javax.ejb.EJBObject
            {

              public com.xx.utils.dao.BPProcessAuditVO find( com.xx.utils.dao.BPProcessAuditPK primaryKey )
                  throws com.xx.dao.ejb.DataAccessException, java.rmi.RemoteException;

            }

             

             

            /*
            * Generated by XDoclet - Do not edit!
            */
            package com.xx.dao.ejb.interfaces;

            /**
            * Home interface for BPProcessAudit.
            * @since bpm sprint 0.2 --
            */
            public interface BPProcessAuditHome
              extends javax.ejb.EJBHome
            {
              public static final String COMP_NAME="java:comp/env/ejb/BPProcessAudit";
              public static final String JNDI_NAME="ejb/xx/xx/BPProcessAudit";

              public com.xx.dao.ejb.interfaces.BPProcessAudit create()
                  throws javax.ejb.CreateException,java.rmi.RemoteException;

            }

             

            /*
            * Generated by XDoclet - Do not edit!
            */
            package com.xx.dao.ejb.interfaces;

            /**
            * Local interface for BPProcessAudit.
            * @since bpm sprint 0.2 --
            */
            public interface BPProcessAuditLocal
              extends javax.ejb.EJBLocalObject
            {

              public com.xx.utils.dao.BPProcessAuditVO find( com.xx.utils.dao.BPProcessAuditPK primaryKey ) throws javax.ejb.EJBException, com.xx.dao.ejb.DataAccessException;

            }

             

             

            /*
            * Generated by XDoclet - Do not edit!
            */
            package com.xx.dao.ejb.interfaces;

            /**
            * Local home interface for BPProcessAudit.
            * @since bpm sprint 0.2 --
            */
            public interface BPProcessAuditLocalHome
              extends javax.ejb.EJBLocalHome
            {
              public static final String COMP_NAME="java:comp/env/ejb/BPProcessAuditLocal";
              public static final String JNDI_NAME="ejb/xx/xx/BPProcessAuditLocal";

              public com.xx.dao.ejb.interfaces.BPProcessAuditLocal create()
                  throws javax.ejb.CreateException;

            }

             

            the ejb-jar.xml is as follows : (I have deleted the other EJBs and just left the one mentioned above, plus removed comments, for brevity)

             

            <?xml version="1.0" encoding="UTF-8"?>

            <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

            <ejb-jar >

              <description><![CDATA[No Description.]]></description>
              <display-name>Generated by XDoclet</display-name>

              <enterprise-beans>


                  <session >
                    <description><![CDATA[Title BPProcessAuditEJB <br> Description Data Access Object Session Bean <br> Table BP_PROCESS_AUDIT <br> Generated 18/04/05 11:24 <br> Copyright Copyright (c) March 2005 <br> Company xx Ltd <br>]]></description>
                    <display-name>BPProcessAudit Database Access Bean</display-name>

                    <ejb-name>BPProcessAudit</ejb-name>

                    <home>com.xx.dao.ejb.interfaces.BPProcessAuditHome</home>
                    <remote>com.xx.dao.ejb.interfaces.BPProcessAudit</remote>
                    <local-home>com.xx.dao.ejb.interfaces.BPProcessAuditLocalHome</local-home>
                    <local>com.xx.dao.ejb.interfaces.BPProcessAuditLocal</local>
                    <ejb-class>com.xx.dao.ejb.BPProcessAuditEJB</ejb-class>
                    <session-type>Stateless</session-type>
                    <transaction-type>Bean</transaction-type>

                    <resource-ref >
                        <res-ref-name>MYDB_REF</res-ref-name>
                        <res-type>javax.sql.DataSource</res-type>
                        <res-auth>Container</res-auth>
                    </resource-ref>

                  </session>

              </enterprise-beans>

              <assembly-descriptor >

              </assembly-descriptor>

            </ejb-jar>

             

             

            I don't have a jboss.xml.

             

            Thanks for looking at this for me!

            • 3. Re: Problems Migrating from WAS to JBoss 6
              Wolf-Dieter Fink Master

              Maybe the missing jboss.xml might be the problem.

              How do you use XDoclet? by ANT?

              If yes you should add the tasks to generate the jboss specific deployment descriptor to your build process.

              • 4. Re: Problems Migrating from WAS to JBoss 6
                Julie H Newbie

                Thanks for your reply.

                I will give that a try.

                However, my understanding was that a jboss.xml was an optional component that is used if you want to change the default ejb mappings.

                (It didn't seem to be required when I deployed to JBoss5.)

                Is this not correct?

                Thanks

                • 5. Re: Problems Migrating from WAS to JBoss 6
                  jaikiran pai Master

                  Do you have any jar file(s) containing javax.ejb.* classes in your application? If yes, remove those jars from application packaging.

                  • 6. Re: Problems Migrating from WAS to JBoss 6
                    Julie H Newbie

                    Thanks Jaikiran!

                    That was the problem.

                    I found a jar deployed with the application that contained javax.ejb classes.

                    I moved it out to a 'compiletime' lib to remove it from the ear, and the redeploy worked.

                    Thanks very much for you help with this.

                    Julie