0 Replies Latest reply on Aug 30, 2001 5:50 PM by Alex Lee

    ClassCastException while deploying MDB in JBoss 2.2.2

    Alex Lee Newbie

      hi,
      i am trying to deploy an MDB on JBoss 2.2.2. On JBoss 2.4.0, everything works fine. But on JBoss 2.2.2, i get the following eception:

      TIA.

      alex

      [Container factory] Deploying:file:/C:/Program Files/IBM/VisualAge for Java/ide/project_resources/jboss22/tmp/deploy/Default/deploy
      [Verifier] Verifying valoader:/C:/Program Files/IBM/VisualAge for Java/ide/project_resources/jboss22/tmp/deploy/Default/deploy/ejb1001.jar
      [Container factory] Deploying PageSenderMDB
      [Container factory] Serious error in init: java.lang.ClassCastException
      [Container factory] java.lang.Exception: java.lang.ClassCastException
      [Container factory] java.lang.Throwable(java.lang.String)
      [Container factory] java.lang.Exception(java.lang.String)
      [Container factory] void org.jboss.ejb.MessageDrivenContainer.init()
      [Container factory] void org.jboss.ejb.Application.init()
      [Container factory] void org.jboss.ejb.ContainerFactory.deploy(java.net.URL, java.net.URL [])
      [Container factory] void org.jboss.ejb.ContainerFactory.deploy(java.lang.String, java.lang.String [])
      [Container factory] java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])
      [Container factory] java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(java.lang.Object, java.lang.String, java.lang.Object [], java.lang.String [])
      [Container factory] java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object [], java.lang.String [])
      [Container factory] void org.jboss.deployment.J2eeDeployer.startApplication(org.jboss.deployment.Deployment)
      [Container factory] void org.jboss.deployment.J2eeDeployer.deploy(java.lang.String)
      [Container factory] java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])
      [Container factory] java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(java.lang.Object, java.lang.String, java.lang.Object [], java.lang.String [])
      [Container factory] java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object [], java.lang.String [])
      [Container factory] void org.jboss.ejb.AutoDeployer.deploy(java.lang.String)
      [Container factory] void org.jboss.ejb.AutoDeployer.run()
      [Container factory] void org.jboss.ejb.AutoDeployer.startService()
      [Container factory] void org.jboss.util.ServiceMBeanSupport.start()
      [Container factory] java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])
      [Container factory] java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(java.lang.Object, java.lang.String, java.lang.Object [], java.lang.String [])
      [Container factory] java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object [], java.lang.String [])
      [Container factory] void org.jboss.util.ServiceControl.start()
      [Container factory] java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])
      [Container factory] java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(java.lang.Object, java.lang.String, java.lang.Object [], java.lang.String [])
      [Container factory] java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object [], java.lang.String [])
      [Container factory] org.jboss.Main(java.lang.String, java.lang.String)
      [Container factory] java.lang.Object org.jboss.Main$1.run()
      [Container factory] java.lang.Object java.security.AccessController.doPrivileged(java.security.PrivilegedAction)
      [Container factory] void org.jboss.Main.main(java.lang.String [])
      [Container factory]
      [Container factory] Could not stop JMSContainerInvoker consumer:java.lang.NullPointerException
      [J2EE Deployer Default] Starting deploy failed!
      [Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy file:/C:/Program Files/IBM/VisualAge for Java/ide/project_resources/jboss22/tmp/deploy/Default/deploy, Cause:java.lang.Exception: java.lang.ClassCastException
      [Auto deploy] java.lang.Throwable(java.lang.String)
      java.lang.Exception(java.lang.String)
      org.jboss.ejb.DeploymentException(java.lang.String, java.lang.Exception)
      void org.jboss.ejb.ContainerFactory.deploy(java.net.URL, java.net.URL [])
      void org.jboss.ejb.ContainerFactory.deploy(java.lang.String, java.lang.String [])
      java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])
      java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(java.lang.Object, java.lang.String, java.lang.Object [], java.lang.String [])
      java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object [], java.lang.String [])
      void org.jboss.deployment.J2eeDeployer.startApplication(org.jboss.deployment.Deployment)
      void org.jboss.deployment.J2eeDeployer.deploy(java.lang.String)
      java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])
      java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(java.lang.Object, java.lang.String, java.lang.Object [], java.lang.String [])
      java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object [], java.lang.String [])
      void org.jboss.ejb.AutoDeployer.deploy(java.lang.String)
      void org.jboss.ejb.AutoDeployer.run()
      void org.jboss.ejb.AutoDeployer.startService()
      void org.jboss.util.ServiceMBeanSupport.start()
      java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])
      java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(java.lang.Object, java.lang.String, java.lang.Object [], java.lang.String [])
      java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object [], java.lang.String [])
      void org.jboss.util.ServiceControl.start()
      java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])
      java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(java.lang.Object, java.lang.String, java.lang.Object [], java.lang.String [])
      java.lang.Object com.sun.management.jmx.MBeanServerImpl.invoke(javax.management.ObjectName, java.lang.String, java.lang.Object [], java.lang.String [])
      org.jboss.Main(java.lang.String, java.lang.String)
      java.lang.Object org.jboss.Main$1.run()
      java.lang.Object java.security.AccessController.doPrivileged(java.security.PrivilegedAction)
      void org.jboss.Main.main(java.lang.String [])