4 Replies Latest reply on Mar 8, 2012 6:49 PM by Belai Beshah

    Having problems in deploying jBPM 5.2 to JBoss AS 7.1.0-Final-Snapshot

    Vimal Kansal Newbie

      I am trying to deploy the jBPM 5.2 components to an instance of JBoss AS 7.1.0 -Final -Snapshot. While drools-guvnor.war and jbpm-gwt-console.war do get deployed, other 2 don't and I am seeing the following error :

       

      17:07:09,375 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011402: Starting Persistence Unit Service 'jbpm-gwt-console-server.war#org.jbpm.persistence.jpa'

      17:07:09,377 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-4) HHH000204: Processing PersistenceUnitInfo [

              name: org.jbpm.persistence.jpa

              ...]

      17:07:09,473 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.persistenceunit."jbpm-gwt-console-server.war#org.jbpm.persistence.jpa": org.jboss.msc.s

      ervice.StartException in service jboss.persistenceunit."jbpm-gwt-console-server.war#org.jbpm.persistence.jpa": Failed to start service

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

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

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

              at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]

      Caused by: org.hibernate.InvalidMappingException: Unable to read XML

              at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:106)

              at org.hibernate.ejb.Ejb3Configuration.addXMLEntities(Ejb3Configuration.java:734)

              at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:603)

              at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)

              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)

              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              ... 3 more

      Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

              at org.dom4j.io.SAXReader.read(SAXReader.java:484)

              at org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:76)

              ... 10 more

       

       

      I am not sure, if this is a bug in AS 7.1.0, as the same components deploy just fine on AS 7.0.2.

       

      Thx

        • 1. Re: Having problems in deploying jBPM 5.2 to JBoss AS 7.1.0-Final-Snapshot
          Scott Marlow Master

          Could you list the contents of jbpm-gwt-console-server.war here (you can use command "jar tf jbpm-gwt-console-server.war").  You probably need to remove the dom4j jar from your deployment.

          • 2. Re: Having problems in deploying jBPM 5.2 to JBoss AS 7.1.0-Final-Snapshot
            Vimal Kansal Newbie

            Here is what I see :

             

            META-INF/

            META-INF/maven/

            META-INF/maven/org.jboss.bpm/

            META-INF/maven/org.jboss.bpm/gwt-console-server/

            META-INF/maven/org.jbpm/

            META-INF/maven/org.jbpm/jbpm-gwt-console-server/

            WEB-INF/

            WEB-INF/classes/

            WEB-INF/classes/META-INF/

            WEB-INF/classes/org/

            WEB-INF/classes/org/jboss/

            WEB-INF/classes/org/jboss/bpm/

            WEB-INF/classes/org/jboss/bpm/console/

            WEB-INF/classes/org/jboss/bpm/console/server/

            WEB-INF/classes/org/jboss/bpm/console/server/gson/

            WEB-INF/classes/org/jboss/bpm/console/server/util/

            WEB-INF/lib/

            WEB-INF/output/

            WEB-INF/reports/

            META-INF/MANIFEST.MF

            META-INF/maven/org.jboss.bpm/gwt-console-server/pom.properties

            META-INF/maven/org.jboss.bpm/gwt-console-server/pom.xml

            META-INF/maven/org.jbpm/jbpm-gwt-console-server/pom.properties

            META-INF/maven/org.jbpm/jbpm-gwt-console-server/pom.xml

            WEB-INF/classes/META-INF/CustomWorkItemHandlers.conf

            WEB-INF/classes/META-INF/JBPMorm.xml

            WEB-INF/classes/META-INF/drools.session.conf

            WEB-INF/classes/META-INF/hibernate.cfg.xml

            WEB-INF/classes/META-INF/persistence.xml

            WEB-INF/classes/definition_report.rptconfig

            WEB-INF/classes/definition_report.rptdesign

            WEB-INF/classes/hibernate.cfg.xml

            WEB-INF/classes/instance_report.rptconfig

            WEB-INF/classes/instance_report.rptdesign

            WEB-INF/classes/jbpm.console.properties

            WEB-INF/classes/org/jboss/bpm/console/server/ConsoleServerApplication.class

            WEB-INF/classes/org/jboss/bpm/console/server/EngineFacade.class

            WEB-INF/classes/org/jboss/bpm/console/server/FormProcessingFacade$1.class

            WEB-INF/classes/org/jboss/bpm/console/server/FormProcessingFacade$FieldMapping.class

            WEB-INF/classes/org/jboss/bpm/console/server/FormProcessingFacade.class

            WEB-INF/classes/org/jboss/bpm/console/server/InfoFacade.class

            WEB-INF/classes/org/jboss/bpm/console/server/ProcessHistoryFacade.class

            WEB-INF/classes/org/jboss/bpm/console/server/ProcessMgmtFacade.class

            WEB-INF/classes/org/jboss/bpm/console/server/TaskListFacade.class

            WEB-INF/classes/org/jboss/bpm/console/server/TaskMgmtFacade.class

            WEB-INF/classes/org/jboss/bpm/console/server/UserMgmtFacade.class

            WEB-INF/classes/org/jboss/bpm/console/server/gson/GsonFactory.class

            WEB-INF/classes/org/jboss/bpm/console/server/gson/SQLDateTypeAdapter.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/BufferedResponseWrapper.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/DOMUtils$1.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/DOMUtils.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/FilterServletOutputStream.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/GWTJsonFilter.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/Payload2XML.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/PayloadCollection.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/PayloadEntry.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/ProjectName.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/RsComment.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/RsDocBuilder$1.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/RsDocBuilder$Representation.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/RsDocBuilder.class

            WEB-INF/classes/org/jboss/bpm/console/server/util/RsDocGenerator.class

            WEB-INF/classes/process.jpdl.xml

            WEB-INF/classes/process_activity.rptdesign

            WEB-INF/classes/roles.properties

            WEB-INF/classes/task_report.rptdesign

            WEB-INF/classes/users.properties

            WEB-INF/jboss-web.xml

            WEB-INF/lib/.gitignore

            WEB-INF/lib/Tidy.jar

            WEB-INF/lib/activation-1.1.jar

            WEB-INF/lib/activity-monitor-model-1.0.0-Beta2.jar

            WEB-INF/lib/antlr-2.7.7.jar

            WEB-INF/lib/antlr-3.3.jar

            WEB-INF/lib/antlr-runtime-3.3.jar

            WEB-INF/lib/apache-mime4j-0.6.jar

            WEB-INF/lib/bsh-2.0b4.jar

            WEB-INF/lib/com.google.code.guice-guice-2.0.jar

            WEB-INF/lib/com.ibm.icu_4.4.2.v20110208.jar

            WEB-INF/lib/com.lowagie.text_2.1.7.v201004222200.jar

            WEB-INF/lib/commons-cli-1.0.jar

            WEB-INF/lib/commons-codec-1.5.jar

            WEB-INF/lib/commons-collections-3.1.jar

            WEB-INF/lib/commons-compress-1.0.jar

            WEB-INF/lib/commons-exec-1.0.1.jar

            WEB-INF/lib/commons-fileupload-1.2.1.jar

            WEB-INF/lib/commons-io-1.4.jar

            WEB-INF/lib/commons-logging-1.1.1.jar

            WEB-INF/lib/commons-net-2.0.jar

            WEB-INF/lib/derby.jar

            WEB-INF/lib/dom4j-1.6.1.jar

            WEB-INF/lib/dom4j-1.6.jar

            WEB-INF/lib/drools-compiler-5.3.1.Final.jar

            WEB-INF/lib/drools-core-5.3.1.Final.jar

            WEB-INF/lib/drools-persistence-jpa-5.3.1.Final.jar

            WEB-INF/lib/ecj-3.5.1.jar

            WEB-INF/lib/ejb3-persistence-1.0.2.GA.jar

            WEB-INF/lib/el-api-1.2.jar

            WEB-INF/lib/errai-bus-1.1-Final.jar

            WEB-INF/lib/errai-common-1.1-Final.jar

            WEB-INF/lib/flute.jar

            WEB-INF/lib/freemarker-2.3.15.jar

            WEB-INF/lib/freemarker-2.3.8.jar

            WEB-INF/lib/google-collections-1.0.jar

            WEB-INF/lib/gson-1.2.2.jar

            WEB-INF/lib/guice-2.0-aopalliance.jar

            WEB-INF/lib/guice-2.0.jar

            WEB-INF/lib/guice-servlet-2.0.jar

            WEB-INF/lib/gwt-console-rpc-2.3.2.Final.jar

            WEB-INF/lib/gwt-console-server-integration-2.3.2.Final.jar

            WEB-INF/lib/gwt-servlet-2.0.4.jar

            WEB-INF/lib/h2.jar

            WEB-INF/lib/hibernate-annotations-3.4.0.GA.jar

            WEB-INF/lib/hibernate-commons-annotations-3.1.0.GA.jar

            WEB-INF/lib/hibernate-core-3.3.2.GA.jar

            WEB-INF/lib/hibernate-entitymanager-3.4.0.GA.jar

            WEB-INF/lib/hibernate-tools-3.2.3.GA.jar

            WEB-INF/lib/hornetq-core-2.0.0.GA.jar

            WEB-INF/lib/httpclient-4.0.3.jar

            WEB-INF/lib/httpcore-4.0.1.jar

            WEB-INF/lib/javassist-3.14.0-GA.jar

            WEB-INF/lib/javax.wsdl_1.5.1.v201012040544.jar

            WEB-INF/lib/jaxrs-api-2.2.1.GA.jar

            WEB-INF/lib/jboss-el-1.0_02.CR5.jar

            WEB-INF/lib/jboss-seam-2.2.2.Final.jar

            WEB-INF/lib/jbpm-bam-5.2.0.Final.jar

            WEB-INF/lib/jbpm-bpmn2-5.2.0.Final.jar

            WEB-INF/lib/jbpm-flow-5.2.0.Final.jar

            WEB-INF/lib/jbpm-flow-builder-5.2.0.Final.jar

            WEB-INF/lib/jbpm-gwt-core-5.2.0.Final.jar

            WEB-INF/lib/jbpm-gwt-form-5.2.0.Final.jar

            WEB-INF/lib/jbpm-gwt-graph-5.2.0.Final.jar

            WEB-INF/lib/jbpm-gwt-shared-5.2.0.Final.jar

            WEB-INF/lib/jbpm-human-task-5.2.0.Final.jar

            WEB-INF/lib/jbpm-persistence-jpa-5.2.0.Final.jar

            WEB-INF/lib/jbpm-tm.jar

            WEB-INF/lib/jbpm-workitems-5.2.0.Final.jar

            WEB-INF/lib/jcip-annotations-1.0.jar

            WEB-INF/lib/jcl-over-slf4j-1.6.0.jar

            WEB-INF/lib/jdom-1.0.jar

            WEB-INF/lib/js.jar

            WEB-INF/lib/jsr173-1.0.jar

            WEB-INF/lib/jsr250-api-1.0.jar

            WEB-INF/lib/jtidy-r8-20060801.jar

            WEB-INF/lib/knowledge-api-5.3.1.Final.jar

            WEB-INF/lib/log4j-1.2.14.jar

            WEB-INF/lib/mail-1.4.jar

            WEB-INF/lib/mina-core-2.0.1.jar

            WEB-INF/lib/mvel2-2.1.0.drools4.jar

            WEB-INF/lib/org.apache.batik.bridge_1.6.0.v201011041432.jar

            WEB-INF/lib/org.apache.batik.css_1.6.0.v201011041432.jar

            WEB-INF/lib/org.apache.batik.dom.svg_1.6.0.v201011041432.jar

            WEB-INF/lib/org.apache.batik.dom_1.6.0.v201011041432.jar

            WEB-INF/lib/org.apache.batik.ext.awt_1.6.0.v201011041432.jar

            WEB-INF/lib/org.apache.batik.parser_1.6.0.v201011041432.jar

            WEB-INF/lib/org.apache.batik.pdf_1.6.0.v201105071520.jar

            WEB-INF/lib/org.apache.batik.svggen_1.6.0.v201011041432.jar

            WEB-INF/lib/org.apache.batik.transcoder_1.6.0.v201011041432.jar

            WEB-INF/lib/org.apache.batik.util.gui_1.6.0.v201011041432.jar

            WEB-INF/lib/org.apache.batik.util_1.6.0.v201011041432.jar

            WEB-INF/lib/org.apache.batik.xml_1.6.0.v201011041432.jar

            WEB-INF/lib/org.apache.commons.codec_1.3.0.v201101211617.jar

            WEB-INF/lib/org.apache.xerces_2.9.0.v201101211617.jar

            WEB-INF/lib/org.apache.xml.resolver_1.2.0.v201005080400.jar

            WEB-INF/lib/org.apache.xml.serializer_2.7.1.v201005080400.jar

            WEB-INF/lib/org.eclipse.birt.runtime_3.7.0.v20110615-1818.jar

            WEB-INF/lib/org.eclipse.core.contenttype_3.4.100.v20110423-0524.jar

            WEB-INF/lib/org.eclipse.core.expressions_3.4.300.v20110228.jar

            WEB-INF/lib/org.eclipse.core.filesystem_1.3.100.v20110423-0524.jar

            WEB-INF/lib/org.eclipse.core.jobs_3.5.100.v20110404.jar

            WEB-INF/lib/org.eclipse.core.resources_3.7.100.v20110510-0712.jar

            WEB-INF/lib/org.eclipse.core.runtime_3.7.0.v20110110.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity.apache.derby.dbdefinition_1.0.2.v200906161815.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity.apache.derby_1.0.101.v201104090305.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity.console.profile_1.0.0.v200906020553.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity.db.generic_1.0.1.v200908130547.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity.dbdefinition.genericJDBC_1.0.1.v200906161815.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity.oda.consumer_3.2.4.v201105200848.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity.oda.design_3.3.3.v201105191315.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity.oda.flatfile_3.1.1.v201104191557.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity.oda.profile_3.2.5.v201104090305.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity.oda_3.3.2.v201105200920.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity.sqm.core_1.2.2.v201104090305.jar

            WEB-INF/lib/org.eclipse.datatools.connectivity_1.2.2.v201105270956.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.hsqldb.dbdefinition_1.0.0.v200906161800.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.hsqldb_1.0.0.v200906020900.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.ibm.db2.luw.dbdefinition_1.0.4.v201005211215.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.ibm.db2.luw_1.0.2.v201005211230.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.ibm.informix.dbdefinition_1.0.4.v201005211230.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.ibm.informix_1.0.1.v201005211230.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.msft.sqlserver.dbdefinition_1.0.0.v201004211630.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.msft.sqlserver_1.0.1.v201001180222.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.mysql.dbdefinition_1.0.4.v200906161800.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.mysql_1.0.2.v201002041100.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.oda.ws_1.2.2.v201011041216.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.oda.xml_1.2.1.v201104121500.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.oracle.dbdefinition_1.0.102.v201101120745.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.oracle_1.0.0.v200908130544.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.postgresql.dbdefinition_1.0.1.v200906161800.jar

            WEB-INF/lib/org.eclipse.datatools.enablement.postgresql_1.0.1.v200906020900.jar

            WEB-INF/lib/org.eclipse.datatools.modelbase.dbdefinition_1.0.2.v201002130228.jar

            WEB-INF/lib/org.eclipse.datatools.modelbase.derby_1.0.0.v201002161452.jar

            WEB-INF/lib/org.eclipse.datatools.modelbase.sql.query_1.1.1.v201008100700.jar

            WEB-INF/lib/org.eclipse.datatools.modelbase.sql_1.0.4.v201002250945.jar

            WEB-INF/lib/org.eclipse.emf.common_2.7.0.v20110527-1609.jar

            WEB-INF/lib/org.eclipse.emf.ecore.change_2.7.0.v20110408-2116.jar

            WEB-INF/lib/org.eclipse.emf.ecore.xmi_2.7.0.v20110520-1406.jar

            WEB-INF/lib/org.eclipse.emf.ecore_2.7.0.v20110527-1609.jar

            WEB-INF/lib/org.eclipse.emf_2.6.0.v20110530-1010.jar

            WEB-INF/lib/org.eclipse.equinox.app_1.3.100.v20110321.jar

            WEB-INF/lib/org.eclipse.equinox.common_3.6.0.v20110523.jar

            WEB-INF/lib/org.eclipse.equinox.preferences_3.4.0.v20110502.jar

            WEB-INF/lib/org.eclipse.equinox.registry_3.5.100.v20110502.jar

            WEB-INF/lib/org.eclipse.osgi.services_3.3.0.v20110513.jar

            WEB-INF/lib/org.eclipse.osgi_3.7.0.v20110613.jar

            WEB-INF/lib/org.eclipse.update.configurator_3.3.100.v20100512.jar

            WEB-INF/lib/org.w3c.css.sac_1.3.0.v200805290154.jar

            WEB-INF/lib/org.w3c.dom.smil_1.0.0.v200806040011.jar

            WEB-INF/lib/org.w3c.dom.svg_1.1.0.v201011041433.jar

            WEB-INF/lib/reflections-0.9.5-RC2_jboss-SP1.jar

            WEB-INF/lib/report-core-1.4.2.Final.jar

            WEB-INF/lib/report-shared-1.4.2.Final.jar

            WEB-INF/lib/resteasy-jaxb-provider-2.2.1.GA.jar

            WEB-INF/lib/resteasy-jaxrs-2.2.1.GA.jar

            WEB-INF/lib/resteasy-multipart-provider-2.2.1.GA.jar

            WEB-INF/lib/rome-0.9.jar

            WEB-INF/lib/scannotation-1.0.3.jar

            WEB-INF/lib/sjsxp-1.0.1.jar

            WEB-INF/lib/slf4j-api-1.6.0.jar

            WEB-INF/lib/slf4j-log4j12-1.6.0.jar

            WEB-INF/lib/smack-3.0.4.jar

            WEB-INF/lib/stax-api-1.0-2.jar

            WEB-INF/lib/stringtemplate-3.2.1.jar

            WEB-INF/lib/xml-apis-1.3.04.jar

            WEB-INF/lib/xmlpull-1.1.3.1.jar

            WEB-INF/lib/xpp3_min-1.1.3.4.O.jar

            WEB-INF/lib/xstream-1.4.1.jar

            WEB-INF/reports/overall_activity.rptdesign

            WEB-INF/web.xml

            index.html

            login.html

            login_failed.html

            • 3. Re: Having problems in deploying jBPM 5.2 to JBoss AS 7.1.0-Final-Snapshot
              cmcmillen1 Newbie

              I had the same issue on AS 7.1.0.Beta1b.  I think I just removed one of the two dom4j jars.

              • 4. Re: Having problems in deploying jBPM 5.2 to JBoss AS 7.1.0-Final-Snapshot
                Belai Beshah Newbie

                or remove all your dependencies(if u use maven add dom4j into your <exclusions> list of your transitive dependency)  and use the dom4j module in JBoss AS by adding a dependency in your manifest as explained in https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7

                <Dependencies>org.dom4j</Dependencies>