6 Replies Latest reply on Feb 26, 2014 5:46 PM by lhelander

    ModeShape EAP kit for 6.2

    ssiddiqi

      When I try to use the ModeShape 3.7.1 EAP kit with JBoss EAP 6.2, the application server fails on startup with the following error:

       

      2014-02-12 17:57:54,215 ERROR [org.jboss.as.controller] (Controller Boot Thread) JBAS014601: Error booting the container: java.lang.NoSuchMethodError: org.jboss.as.controller.ListAttributeDefinition.<init>(Ljava/lang/String;ZLorg/jboss/as/controller/operations/validation/ParameterValidator;)V

          at org.modeshape.jboss.subsystem.MappedListAttributeDefinition.<init>(MappedListAttributeDefinition.java:65)

          at org.modeshape.jboss.subsystem.MappedListAttributeDefinition$Builder.build(MappedListAttributeDefinition.java:399)

          at org.modeshape.jboss.subsystem.ModelAttributes.<clinit>(ModelAttributes.java:150)

          at org.modeshape.jboss.subsystem.ModeShapeSubsystemXMLReader_1_0.parseRepository(ModeShapeSubsystemXMLReader_1_0.java:146)

          at org.modeshape.jboss.subsystem.ModeShapeSubsystemXMLReader_1_0.readElement(ModeShapeSubsystemXMLReader_1_0.java:71)

          at org.modeshape.jboss.subsystem.ModeShapeSubsystemXMLReader_1_0.readElement(ModeShapeSubsystemXMLReader_1_0.java:42)

          at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)

          at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)

          at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:1024)

          at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:458)

          at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:145)

          at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:107)

          at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)

          at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)

          at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133)

          at org.jboss.as.server.ServerService.boot(ServerService.java:324)

          at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:253)

          at java.lang.Thread.run(Thread.java:744)

       

      Is this error to be expectd, and if so are there plans to release an EAP kit for JBoss EAP 6.2?

        • 1. Re: ModeShape EAP kit for 6.2
          hchiorean

          The 3.7.1 kit is not compatible with EAP 6.2, only with EAP 6.1.x.

           

          Starting with ModeShape 4 we will be releasing Wildfly 8.x compatible kits in the community, not EAP ones.

          • 2. Re: ModeShape EAP kit for 6.2
            ssiddiqi

            Thank you for the quick response, Horia.

             

            For those of us who have moved on to EAP 6.2, is there a recommended way to install ModeShape?  Perhaps through the JCA adapter? 

            • 3. Re: ModeShape EAP kit for 6.2
              rhauch

              You have the same options that we offer for other containers: use the JCA adapter, embed ModeShape into your web application, or create a separate web application that manages the repository instances.

              • 4. Re: ModeShape EAP kit for 6.2
                lhelander

                In case I would use a JCA adapter, are there any instructions available that would work for deployment in EAP 6.2?

                When using JCA, can I configure connectors and sequencer as part of my RAR or would I have to build that into my applications?

                 

                Thanks

                 

                Lars

                • 5. Re: ModeShape EAP kit for 6.2
                  hchiorean

                  Deployment in EAP 6.2 shouldn't be any different from deployment in AS7 (there are lots of topics on how to do that - e.g. JBoss 7: how to deploy with JCA?)

                   

                  The default modeshape-jca.rar does not contain any sequencers & connectors pre-bundled. So I can think of a couple of things you can try:

                  1) re-package the RAR yourself and add the JARs that you need

                  2) if the EAP 6.2 instance contains the ModeShape kit (the ModeShape modules deployed as part of the kit), you can use a deployment descriptor in your application and add dependencies towards these modules.

                      For example jboss-deployment-structure.xml :

                        <dependencies>

                              <module name="org.modeshape.connector.git"/>

                         ........

                  • 6. Re: ModeShape EAP kit for 6.2
                    lhelander

                    Thanks for the info

                     

                    /Lars