0 Replies Latest reply on May 18, 2015 5:06 PM by richiez

    OSGi enablement in JBoss 6.4 errors

    richiez
      • Installed jboss-eap-6.4.0.zip. installed in c:\jboss\jboss-eap-6.4.
      • Then installer jboss-osgi-2.1.0 pointing to this root jboss-eap directory.
      • ran: C:\jboss\jboss-eap-6.4>bin\standalone.bat -c standalone-osgi.xml. the following error occurred:

       

      C:\jboss\jboss-eap-6.4>bin\standalone.bat -c standalone-osgi.xml

      Calling "C:\jboss\jboss-eap-6.4\bin\standalone.conf.bat"

      Setting JAVA property to "C:\Program Files\Java\jdk1.7.0_75\bin\java"
      ===============================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: "C:\jboss\jboss-eap-6.4"

      JAVA: "C:\Program Files\Java\jdk1.7.0_75\bin\java"

      JAVA_OPTS: "-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -XX:+UseCompressedOops -Dprogram.name=standalone.bat -Xms1G -Xmx1G -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.policy-permissions=true -Djboss.modules.system.pkgs=org.jboss.byteman"

      ===============================================================================

      21:54:18,677 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.6.Final-redhat-1
      21:54:19,129 INFO [org.jboss.msc] (main) JBoss MSC version 1.1.5.Final-redhat-1
      21:54:19,261 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: JBoss EAP 6.4.0.GA (AS 7.5.0.Final-redhat-21) starting
      21:54:19,871 ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
      at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
      at org.jboss.as.server.ServerService.boot(ServerService.java:330) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
      at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:263) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_75]
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,1]
      Message: Unexpected element '{urn:jboss:domain:2.0}server'
      at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:108) [staxmapper-1.1.0.Final-redhat-3.jar:1.1.0.Final-redhat-3]
      at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final-redhat-3.jar:1.1.0.Final-redhat-3]
      at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
      ... 3 more

      21:54:19,881 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      21:54:19,903 INFO [org.jboss.as] (MSC service thread 1-5) JBAS015950: JBoss EAP 6.4.0.GA (AS 7.5.0.Final-redhat-21) stopped in 15ms
      Press any key to continue . . .

      We will be deploying our bundles to JBoss 6 and are doing a POC, but this error has been a show show blocker. Can we enable OSGi in EAP 6.x? Am I using the wrong version of OSGi for EAP 6? I have tweaked my standalone-osgi.xml  - it is set to "eager" Any feeback will be appreciated! ! !