wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes EJB 2.1 migration from WebSphere to JBoss 5.1 Deployment issue - ClassCastException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "EJB 2.1 migration from WebSphere to JBoss 5.1 Deployment issue - ClassCastException" Watch "EJB 2.1 migration from WebSphere to JBoss 5.1 Deployment issue - ClassCastException" New topic
Author

EJB 2.1 migration from WebSphere to JBoss 5.1 Deployment issue - ClassCastException

Chandrasekhar Aadhanapattu
Greenhorn

Joined: Feb 29, 2012
Posts: 16
We have migrated a have application from Websphere to Jboss 5.1 where we have eJB 2.1.

Application is deployed with the following message"


15:32:26,623 INFO [LogNotificationListener] Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@d37b87[ defaultDomain='jboss' ]
15:32:33,067 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/C:/JBoss51/jboss-eap-5.1/jboss-as/server/DEV_server0/deploy/biz-app-1.0-SNAPSHOT.ear/ state=PreParse mode=Manual requiredState=Parse
org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/JBoss51/jboss-eap-5.1/jboss-as/server/DEV_server0/deploy/biz-app-1.0-SNAPSHOT.ear/lib/common.jar/spring-hibernate.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1225)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1225)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException
at java.lang.Class.cast(Class.java:2990)
at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:194)
at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)
at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:304)
at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:269)
at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:355)
... 35 more
17:52:32,362 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@27882901{vfszip:/C:/JBoss51/jboss-eap-5.1/jboss-as/server/DEV_server0/deploy/session.ear/hello_world_ejb.jar/}
17:52:32,362 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@27882901{vfszip:/C:/JBoss51/jboss-eap-5.1/jboss-as/server/DEV_server0/deploy/session.ear/hello_world_ejb.jar/}
17:52:32,362 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@27882901{vfszip:/C:/JBoss51/jboss-eap-5.1/jboss-as/server/DEV_server0/deploy/session.ear/hello_world_ejb.jar/}
17:52:32,362 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@6724740{vfszip:/C:/JBoss51/jboss-eap-5.1/jboss-as/server/DEV_server0/deploy/session.ear/hello_world_local_ejb.jar/}
17:52:32,363 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@6724740{vfszip:/C:/JBoss51/jboss-eap-5.1/jboss-as/server/DEV_server0/deploy/session.ear/hello_world_local_ejb.jar/}
17:52:32,363 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@6724740{vfszip:/C:/JBoss51/jboss-eap-5.1/jboss-as/server/DEV_server0/deploy/session.ear/hello_world_local_ejb.jar/}
17:52:32,363 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@11381407{vfszip:/C:/JBoss51/jboss-eap-5.1/jboss-as/server/DEV_server0/deploy/session.ear/jdbc_test_ejb.jar/}
17:52:32,363 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@11381407{vfszip:/C:/JBoss51/jboss-eap-5.1/jboss-as/server/DEV_server0/deploy/session.ear/jdbc_test_ejb.jar/}
17:52:32,363 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@11381407{vfszip:/C:/JBoss51/jboss-eap-5.1/jboss-as/server/DEV_server0/deploy/session.ear/jdbc_test_ejb.jar/}

Is it related to any API from jars conflict or any schemea conflict?

But the same file from common.jar/spring-hibernate is working for remaining applications being in common" project.



Is it related to any API from jars conflict or any schemea conflict?

But the same file from common.jar/spring-hibernate is working for remaining applications being in "common" project.



This is schema I have in jboss.xml for EJB 2.1. this jboss.xml is in EJBproject/META-INF folder



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

<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_5_0.dtd">



When I enable <version>6</version> in ear project pom.xml, I used to get the following exception:

Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 160:49 src-resolve: Cannot resolve the name 'javaee:descriptionGroup' to a(n) 'group' component.

at org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)


So I commented that version configuration in ear project pom.xml. Now I am getting the top exception.

Is persistence.xml is mandatory for EJB 2.1 on JBoss 5.1?

Please help me regarding this:

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB 2.1 migration from WebSphere to JBoss 5.1 Deployment issue - ClassCastException