1 Reply Latest reply on May 27, 2005 7:05 PM by Mathias Peters

    ClassCastException while deploying EJB

    Mathias Peters Newbie

      Hi to everybody,

      I have a problem deploying an entity bean.
      I am using Eclipse 3.1 with XDoclet 1.2.3 and JBoss 3.2.7.
      The jboss log tells me:


      2005-05-22 02:38:10,810 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:10,811 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:10,811 DEBUG [org.jboss.deployment.MainDeployer] Copying file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar -> /opt/jboss-3.2.7/server/default/tmp/deploy/tmp14409momShop.jar
      2005-05-22 02:38:10,812 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.ejb.EJBDeployer@1486306
      2005-05-22 02:38:10,812 DEBUG [org.jboss.ejb.EJBDeployer] init, momShop.jar
      2005-05-22 02:38:10,828 DEBUG [org.jboss.ejb.EJBDeployer] looking for nested deployments in : file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:10,828 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.ejb:service=EJBDeployer][type=org.jboss.deployment.SubDeployer.init][message=]
      2005-05-22 02:38:10,829 DEBUG [org.jboss.deployment.DeploymentInfo] createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null, configParserClassName: null, repositoryConfig: null)
      2005-05-22 02:38:10,829 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/opt/jboss-3.2.7/server/default/tmp/deploy/tmp14409momShop.jar
      2005-05-22 02:38:10,829 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.UnifiedLoaderRepository3@facf0b, ucl=org.jboss.mx.loading.UnifiedClassLoader3@1780f30{ url=file:/opt/jboss-3.2.7/server/default/tmp/deploy/tmp14409momShop.jar ,addedOrder=0}
      2005-05-22 02:38:10,829 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] setRepository, r=org.jboss.mx.loading.UnifiedLoaderRepository3@facf0b, ucl=org.jboss.mx.loading.UnifiedClassLoader3@1780f30{ url=file:/opt/jboss-3.2.7/server/default/tmp/deploy/tmp14409momShop.jar ,addedOrder=0}
      2005-05-22 02:38:10,829 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@1780f30{ url=file:/opt/jboss-3.2.7/server/default/tmp/deploy/tmp14409momShop.jar ,addedOrder=0}
      2005-05-22 02:38:10,832 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:10,832 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:10,832 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:10,832 DEBUG [org.jboss.ejb.EJBDeployer] create, momShop.jar
      2005-05-22 02:38:10,968 DEBUG [org.jboss.ejb.EJBDeployer] Verifying file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:10,985 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean checked: KundeBean: Verified.
      2005-05-22 02:38:10,991 DEBUG [org.jboss.mx.modelmbean.ModelMBeanInvoker] No persistence-manager descriptor found, null persistence will be used
      2005-05-22 02:38:10,992 DEBUG [org.jboss.ejb.EJBDeployer] Deploying: file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:10,992 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EjbModule,module=momShop.jar
      2005-05-22 02:38:10,992 DEBUG [org.jboss.ejb.EjbModule] Creating jboss.j2ee:service=EjbModule,module=momShop.jar
      2005-05-22 02:38:11,001 DEBUG [org.jboss.ejb.EjbModule] createService, begin
      2005-05-22 02:38:11,002 INFO [org.jboss.ejb.EjbModule] Deploying KundeBean
      2005-05-22 02:38:11,003 DEBUG [org.jboss.ejb.EjbModule] Creating WebClassLoader of class org.jboss.web.WebClassLoader
      2005-05-22 02:38:11,024 DEBUG [org.jboss.mx.modelmbean.ModelMBeanInvoker] No persistence-manager descriptor found, null persistence will be used
      2005-05-22 02:38:11,025 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB
      2005-05-22 02:38:11,026 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: []
      2005-05-22 02:38:11,027 DEBUG [org.jboss.ejb.EntityContainer] Creating jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB
      2005-05-22 02:38:11,037 DEBUG [org.jboss.mx.modelmbean.ModelMBeanInvoker] No persistence-manager descriptor found, null persistence will be used
      2005-05-22 02:38:11,038 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EJB,plugin=pool,jndiName=momShop/KundeLocal
      2005-05-22 02:38:11,043 DEBUG [org.jboss.ejb.plugins.EntityInstancePool] Creating jboss.j2ee:service=EJB,plugin=pool,jndiName=momShop/KundeLocal
      2005-05-22 02:38:11,043 DEBUG [org.jboss.ejb.plugins.EntityInstancePool] Created jboss.j2ee:service=EJB,plugin=pool,jndiName=momShop/KundeLocal
      2005-05-22 02:38:11,043 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceController][type= org.jboss.system.ServiceMBean.create][message=]
      2005-05-22 02:38:11,043 DEBUG [org.jboss.management.j2ee.factory.DefaultManagedObjectFactoryMap] Failed to find factory for event: javax.management.Notification[source=jboss.system:service=ServiceController][type= org.jboss.system.ServiceMBean.create][message=]
      2005-05-22 02:38:11,043 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:service=EJB,plugin=pool,jndiName=momShop/KundeLocal dependents are: []
      2005-05-22 02:38:11,049 DEBUG [org.jboss.mx.modelmbean.ModelMBeanInvoker] No persistence-manager descriptor found, null persistence will be used
      2005-05-22 02:38:11,049 DEBUG [org.jboss.ejb.EntityContainer] Created jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB
      2005-05-22 02:38:11,050 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceController][type= org.jboss.system.ServiceMBean.create][message=]
      2005-05-22 02:38:11,050 DEBUG [org.jboss.management.j2ee.factory.DefaultManagedObjectFactoryMap] Failed to find factory for event: javax.management.Notification[source=jboss.system:service=ServiceController][type= org.jboss.system.ServiceMBean.create][message=]
      2005-05-22 02:38:11,050 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB dependents are: []
      2005-05-22 02:38:11,050 DEBUG [org.jboss.ejb.EjbModule] Bound jmxName=jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB, hash=272262219into Registry
      2005-05-22 02:38:11,051 DEBUG [org.jboss.ejb.EjbModule] Created jboss.j2ee:service=EjbModule,module=momShop.jar
      2005-05-22 02:38:11,051 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceController][type= org.jboss.system.ServiceMBean.create][message=]
      2005-05-22 02:38:11,052 DEBUG [org.jboss.management.j2ee.factory.DefaultManagedObjectFactoryMap] Failed to find factory for event: javax.management.Notification[source=jboss.system:service=ServiceController][type= org.jboss.system.ServiceMBean.create][message=]
      2005-05-22 02:38:11,052 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:service=EjbModule,module=momShop.jar dependents are: []
      2005-05-22 02:38:11,052 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.ejb:service=EJBDeployer][type=org.jboss.deployment.SubDeployer.create][message=]
      2005-05-22 02:38:11,052 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying momShop.jar
      2005-05-22 02:38:11,052 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:11,053 DEBUG [org.jboss.ejb.EJBDeployer] start application, deploymentInfo: org.jboss.deployment.DeploymentInfo@af9a83cb { url=file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar }
      deployer: org.jboss.ejb.EJBDeployer@1486306
      status: Starting
      state: START_DEPLOYER
      watch: file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      lastDeployed: 1116722290832
      lastModified: 1116722290000
      mbeans:
      jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB state: Created
      , short name: momShop.jar, parent short name: null
      2005-05-22 02:38:11,053 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EjbModule,module=momShop.jar
      2005-05-22 02:38:11,053 DEBUG [org.jboss.ejb.EjbModule] Starting jboss.j2ee:service=EjbModule,module=momShop.jar
      2005-05-22 02:38:11,053 DEBUG [org.jboss.ejb.EjbModule] startService, starting container: KundeBean
      2005-05-22 02:38:11,054 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB
      2005-05-22 02:38:11,055 DEBUG [org.jboss.ejb.EntityContainer] Starting jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB
      2005-05-22 02:38:11,055 DEBUG [org.jboss.ejb.EntityContainer] Begin java:comp/env for EJB: KundeBean
      2005-05-22 02:38:11,055 DEBUG [org.jboss.ejb.EntityContainer] TCL: org.jboss.util.loading.DelegatingClassLoader@a06e8d
      2005-05-22 02:38:11,075 DEBUG [org.jboss.ejb.EntityContainer] End java:comp/env for EJB: KundeBean
      2005-05-22 02:38:11,091 DEBUG [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] Bound EJBLocalHome of KundeBean to momShop/KundeLocal
      2005-05-22 02:38:11,091 DEBUG [org.jboss.ejb.plugins.AbstractInstanceCache] Starting InvalidableEntityInstanceCache...
      2005-05-22 02:38:11,092 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.KundeBean] Initializing CMP plugin for KundeBean
      2005-05-22 02:38:11,093 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.KundeBean] Loading standardjbosscmp-jdbc.xml : file:/opt/jboss-3.2.7/server/default/conf/standardjbosscmp-jdbc.xml
      2005-05-22 02:38:11,285 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.KundeBean] jar:file:/opt/jboss-3.2.7/server/default/tmp/deploy/tmp14409momShop.jar!/META-INF/jbosscmp-jdbc.xml found. Overriding defaults
      2005-05-22 02:38:11,315 ERROR [org.jboss.ejb.EntityContainer] Starting failed jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB
      java.lang.ClassCastException: $Proxy58
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:135)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:420)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:353)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:155)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:337)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:899)
      at $Proxy18.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:415)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy56.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:367)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:899)
      at $Proxy18.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:415)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy15.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:570)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:829)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
      at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      2005-05-22 02:38:11,329 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB
      javax.management.RuntimeMBeanException: java.lang.ClassCastException: $Proxy58
      at org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:82)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:64)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:899)
      at $Proxy18.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:415)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy56.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:367)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:899)
      at $Proxy18.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:415)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy15.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:570)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:829)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
      at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: java.lang.ClassCastException: $Proxy58
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:135)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:420)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:353)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:155)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:337)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      ... 66 more
      2005-05-22 02:38:11,336 DEBUG [org.jboss.ejb.EjbModule] Started jboss.j2ee:service=EjbModule,module=momShop.jar
      2005-05-22 02:38:11,336 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceController][type= org.jboss.system.ServiceMBean.start][message=]
      2005-05-22 02:38:11,336 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:service=EjbModule,module=momShop.jar dependent components: []
      2005-05-22 02:38:11,336 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:11,337 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.ejb:service=EJBDeployer][type=org.jboss.deployment.SubDeployer.start][message=]
      2005-05-22 02:38:11,337 DEBUG [org.jboss.management.j2ee.J2EEDeployedObject] File: file:/opt/jboss-3.2.7/server/default/tmp/deploy/tmp14409momShop.jar, descriptor: META-INF/ejb-jar.xml
      2005-05-22 02:38:11,338 DEBUG [org.jboss.management.j2ee.J2EEDeployedObject] File: file:/opt/jboss-3.2.7/server/default/tmp/deploy/tmp14409momShop.jar, descriptor: META-INF/jboss.xml
      2005-05-22 02:38:11,339 DEBUG [org.jboss.management.j2ee.J2EEDeployedObject] File: file:/opt/jboss-3.2.7/server/default/tmp/deploy/tmp14409momShop.jar, descriptor: META-INF/jaws.xml
      2005-05-22 02:38:11,339 DEBUG [org.jboss.management.j2ee.J2EEDeployedObject] File: file:/opt/jboss-3.2.7/server/default/tmp/deploy/tmp14409momShop.jar, descriptor: META-INF/jbosscmp-jdbc.xml
      2005-05-22 02:38:11,350 DEBUG [org.jboss.mx.modelmbean.ModelMBeanInvoker] No persistence-manager descriptor found, null persistence will be used
      2005-05-22 02:38:11,350 DEBUG [org.jboss.management.j2ee.EJBModule] postRegister(), parent: jboss.management.local:name=Local,j2eeType=J2EEServer
      2005-05-22 02:38:11,351 DEBUG [org.jboss.management.j2ee.EJBModule] Created JSR-77 EJBModule: jboss.management.local:j2eeType=EJBModule,J2EEServer=Local,J2EEApplication=null,name=momShop.jar
      2005-05-22 02:38:11,351 DEBUG [org.jboss.management.j2ee.factory.EJBModuleFactory] Created module: jboss.management.local:j2eeType=EJBModule,J2EEServer=Local,J2EEApplication=null,name=momShop.jar
      2005-05-22 02:38:11,354 DEBUG [org.jboss.mx.modelmbean.ModelMBeanInvoker] No persistence-manager descriptor found, null persistence will be used
      2005-05-22 02:38:11,354 DEBUG [org.jboss.management.j2ee.EntityBean] postRegister(), parent: jboss.management.local:j2eeType=EJBModule,J2EEServer=Local,J2EEApplication=null,name=momShop.jar
      2005-05-22 02:38:11,355 DEBUG [org.jboss.management.j2ee.EJB] Created JSR-77 EJB: jboss.management.local:name=momShop/KundeLocal,J2EEServer=Local,EJBModule=momShop.jar,J2EEApplication=null,j2eeType=EntityBean
      2005-05-22 02:38:11,355 DEBUG [org.jboss.management.j2ee.factory.EJBModuleFactory] Create container: jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB, module: jboss.management.local:name=momShop/KundeLocal,J2EEServer=Local,EJBModule=momShop.jar,J2EEApplication=null,j2eeType=EntityBean
      2005-05-22 02:38:11,357 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: momShop.jar
      2005-05-22 02:38:11,358 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:11,359 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar -> file:/opt/jboss-3.2.7/server/default/deploy/momShop.jar
      2005-05-22 02:38:11,369 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
      Incompletely deployed packages:
      org.jboss.deployment.DeploymentInfo@e6cf2687 { url=file:/opt/jboss-3.2.7/server/default/deploy/ejb.jar }
      deployer: org.jboss.ejb.EJBDeployer@1486306
      status: Deployment FAILED reason: Verification of Enterprise Beans failed, see above for error messages.
      state: FAILED
      watch: file:/opt/jboss-3.2.7/server/default/deploy/ejb.jar
      lastDeployed: 1116719874337
      lastModified: 1116719874000
      mbeans:

      MBeans waiting for other MBeans:
      ObjectName: jboss.j2ee:service=EJB,plugin=pool,jndiName=momShop/KundeLocal
      state: CREATED
      I Depend On:
      Depends On Me:
      ObjectName: jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: javax.management.RuntimeMBeanException: java.lang.ClassCastException: $Proxy58

      MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
      ObjectName: jboss.j2ee:jndiName=momShop/KundeLocal,service=EJB
      state: FAILED
      I Depend On:
      Depends On Me: javax.management.RuntimeMBeanException: java.lang.ClassCastException: $Proxy58
      ObjectName: jboss.j2ee:service=EJB,plugin=pool,jndiName=momShop/KundeLocal
      state: CREATED
      I Depend On:
      Depends On Me:


      The Bean Class looks like that:

      package de.peters.ejb.entity;
      
      
      import javax.ejb.CreateException;
      import javax.ejb.EJBException;
      import javax.ejb.EntityBean;
      /*
       * Created on Apr 13, 2005
       *
       */
      
      /**
       * @ejb.bean
       * name="KundeBean"
       * local-jndi-name="momShop/KundeLocal"
       * view-type="local"
       * type="CMP"
       * cmp-version="2.x"
       * primkey-field="id"
       * schema="mom"
       *
       * @ejb.pk
       * class="java.lang.Integer"
       *
       * @ejb.value-object
       * name="KundeEdit"
       * match="*"
       *
       * @ejb.persistence
       * table-name="kunde"
       *
       * @jboss.persistence
       * table-name="kunde"
       * datasource="momShop/KundeLocal"
       * datasource-mapping="PostgreSQL"
       *
       * @ejb.finder
       * signature="Collection findAll()"
       * unchecked="true"
       * query="SELECT OBJECT(a) FROM Kunde a"
       * result-type-mapping="Local"
       *
       * @author empy
       *
       */
      public abstract class KundeBean implements EntityBean{
      
       /**
       * @ejb.create-method
       *
       */
       public Integer ejbCreate() throws CreateException{
       return null;
       }
      
       /**
       * @ejb.interface-method
       * view-type="local"
       *
       * @ejb.value-object
       *
       * @ejb.pk-field
       *
       *
       * @ejb.persistence
       * column-name="id"
       * sql-type="int4"
       *
       * @jboss.column-name
       * name="id"
       *
       */
       public abstract Integer getId();
      
      
       /**
       * @ejb.interface-method
       * view-type="local"
       *
       * @param id
       */
       public abstract void setId(Integer id);
      
       /**
       *
       * @ejb.interface-method
       * view-type="local"
       *
       * @ejb.value-object
       *
       * @ejb.persistence
       * column-name="name"
       * sql-type="VARCHAR"
       *
       * @jboss.column-name
       * name="name"
       *
       */
       public abstract String getName();
      
       /**
       * @ejb.interface-method
       * view-type="local"
       *
       * @param name
       */
       public abstract void setName(String name);
      
       /**
       * @ejb.interface-method
       * view-type="local"
       *
       * @ejb.value-object
       *
       * @ejb.persistence
       * column-name="firstname"
       * sql-type="VARCHAR"
       *
       * @jboss.column-name
       * name="firstname"
       */
       public abstract String getFirstName();
      
       /**
       * @ejb.interface-method
       * view-type="local"
       * @param firstName
       */
       public abstract void setFirstName(String firstName);
      
       /**
       * @ejb.interface-method
       * view-type="local"
       * @return
       */
       public abstract de.peters.ejb.entity.KundeEditValue getKundeEditValue();
      
       /**
       * @ejb.interface-method
       * view-type="local"
       *
       * @param value
       */
       public abstract void setKundeEditValue(de.peters.ejb.entity.KundeEditValue value);
      
      }