To migrate or not to migrate

This is not a guide, nor intended to help, it’s a steam valve for my efforts to migrate an application to jboss 7 as each exception can take minutes or hours to solve without altering the original code.

Caused by: org.jboss.jca.common.metadata.ParserException: IJ010061: Unexpected element: local-tx-datasource
        at org.jboss.jca.common.metadata.ds.DsParser.parseDataSources(DsParser.java:183)
        at org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:119)
        at org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:82)
        at org.jboss.as.connector.deployers.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:80)

        at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotation
Information(MethodAnnotationAggregator.java:58)
        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.ha
ndleAnnotations(InterceptorAnnotationProcessor.java:85)
        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.pr
ocessComponentConfig(InterceptorAnnotationProcessor.java:70)
        at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.de
ploy(InterceptorAnnotationProcessor.java:55)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
        ... 5 more
Caused by: java.lang.NoClassDefFoundError: org/hibernate/HibernateException
        at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_23]
        at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [rt.jar:1.6.0_23]
        at java.lang.Class.getDeclaredFields(Class.java:1743) [rt.jar:1.6.0_23]
        at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]
Caused by: java.lang.ClassNotFoundException: org.jboss.as.jmx.PluggableMBeanServerBuilder from [Module "deployment.diapason.ear.diapason-web.war:main" from Service Module Loader]

(MSC service thread 1-6) Exception sending context initialize
d event to listener instance of class org.jbpm.web.JobExecutorLauncher: org.jbpm
.JbpmException: couldn't parse jbpm configuration from resource 'jbpm.cfg.xml'
        at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:292) [j
bpm-jpdl.jar:3.2.3 (date:18-Jun-2008 00:51)]
        at org.jbpm.web.JobExecutorLauncher.contextInitialized(JobExecutorLaunch
er.java:55) [jbpm-jpdl.jar:3.2.3 (date:18-Jun-2008 00:51)]
        at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]
        at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

host].[/dix]] (MSC service thread 1-4) StandardWrapper.Throwable: java.lang.NoClassDefFoundError: org/mozilla/javascript/WrappedException
        at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_23]
        at java.lang.Class.forName(Class.java:169) [rt.jar:1.6.0_23]

ava.lang.IllegalAccessError: tried to access class 
org.hibernate.cfg.Configuration$1 from class org.hibernate.cfg.Configuration
08:21:17,924 ERROR [stderr] (JbpmJobExecutor:127.0.1.1:1)       at org.hibernate
.cfg.Configuration.buildMapping(Configuration.java:2923)
08:21:17,925 ERROR [stderr] (JbpmJobExecutor:127.0.1.1:1)       at org.hibernate
.cfg.Configuration.(Configuration.java:269)
08:21:17,925 ERROR [stderr] (JbpmJobExecutor:127.0.1.1:1)       at org.hibernate
.cfg.Configuration.(Configuration.java:302)
08:21:17,925 ERROR [stderr] (JbpmJobExecutor:127.0.1.1:1)       at org.jbpm.db.h
ibernate.HibernateHelper.createConfiguration(HibernateHelper.java:74)

from Service Module Loader: java.lang.LinkageError:

Caused by: java.lang.NoClassDefFoundError: org/jboss/as/clustering/infinispan/subsystem/CacheConfigurationService
        at org.jboss.as.jpa.hibernate3.HibernatePersistenceProviderAdaptor.addProviderDependencies(HibernatePersistenceProviderAdaptor.java:104)
        at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:345)
        at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258)
        at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleEarDeployment(PersistenceUnitDeploymentProcessor.java:216)
        at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:119)

And so on…

Leave a Reply

*