Revision history [back]

click to hide/show revision 1
initial version

answered 2013-08-09 17:39:41 +0800

echinopsii gravatar image echinopsii

Hello,

this is a quick and dirty solution working on JBoss EAP 6.1.

1) create ZKOSS module directory and copy ZK into it:

    mkdir -p $JBOSS_HOME/modules/system/layers/base/org/zkoss/main
    cp zkee-bin-eval-6.5.2/dist/lib/*.jar modules/system/layers/base/org/zkoss/main/
    cp zkee-bin-eval-6.5.2/dist/lib/*/*.jar modules/system/layers/base/org/zkoss/main/
    touch $JBOSS_HOME/modules/system/layers/base/org/zkoss/main/module.xml

2) edit the ZKOSS module.xml file

<module xmlns="urn:jboss:module:1.1" name="org.zkoss">
<resources>
    <!-- ZK EE LIBS -->
    <resource-root path="zcommon.jar"/>
    <resource-root path="zel.jar"/>
    <resource-root path="zhtml.jar"/>
    <resource-root path="zkbind.jar"/>
    <resource-root path="zkex.jar"/>
    <resource-root path="zk.jar"/>
    <resource-root path="zkmax.jar"/>
    <resource-root path="zkplus.jar"/>
    <resource-root path="zml.jar"/>
    <resource-root path="zul.jar"/>
    <resource-root path="zweb.jar"/>
    <!-- ZK EXT LIBS - DIRTY PART : SHOULD DEFINE DISTINC MODULES AND DECLARE DEPENDENCIES -->
    <resource-root path="bsh.jar"/>
    <resource-root path="commons-collections.jar"/>
    <resource-root path="commons-fileupload.jar"/>
    <resource-root path="commons-io.jar"/>
    <resource-root path="commons-logging.jar"/>
    <resource-root path="Filters.jar"/>
    <resource-root path="itext.jar"/>
    <resource-root path="jasperreports.jar"/>
    <resource-root path="jcommon.jar"/>
    <resource-root path="jfreechart.jar"/>
    <resource-root path="jxl.jar"/>
    <resource-root path="poi.jar"/>
    <!-- ZK THEMES LIBS -->
    <resource-root path="sapphire.jar"/>    
    <resource-root path="silvertail.jar"/>
</resources>

<dependencies>
</dependencies></module>

3) edit the jboss standalone.conf conf to add ZK module into the JBoss OSGI layer

        <subsystem xmlns="urn:jboss:domain:osgi:1.2" activation="eager">
        <properties>
            <property name="org.osgi.framework.startlevel.beginning">
                10
            </property>
        </properties>
        <capabilities>
            <capability name="sun.jdk"/>
            <capability name="javax.jws.api"/>
            <capability name="javax.persistence.api"/>
            <capability name="javax.servlet.api"/>
            <capability name="javax.transaction.api"/>
            <capability name="javax.ws.rs.api"/>
            ............
            <capability name="org.zkoss" startlevel="1"/>
            ............

2) start JBOSS and check org.zkoss is well loaded as an OSGI bundle

Hello,

this is a quick and dirty solution working on JBoss EAP 6.1.

1) create ZKOSS module directory and copy ZK into it:

    mkdir -p $JBOSS_HOME/modules/system/layers/base/org/zkoss/main
    cp zkee-bin-eval-6.5.2/dist/lib/*.jar modules/system/layers/base/org/zkoss/main/
    cp zkee-bin-eval-6.5.2/dist/lib/*/*.jar modules/system/layers/base/org/zkoss/main/
    touch $JBOSS_HOME/modules/system/layers/base/org/zkoss/main/module.xml

2) edit the ZKOSS module.xml file

<module xmlns="urn:jboss:module:1.1" name="org.zkoss">
<resources>
    <!-- ZK EE LIBS -->
    <resource-root path="zcommon.jar"/>
    <resource-root path="zel.jar"/>
    <resource-root path="zhtml.jar"/>
    <resource-root path="zkbind.jar"/>
    <resource-root path="zkex.jar"/>
    <resource-root path="zk.jar"/>
    <resource-root path="zkmax.jar"/>
    <resource-root path="zkplus.jar"/>
    <resource-root path="zml.jar"/>
    <resource-root path="zul.jar"/>
    <resource-root path="zweb.jar"/>
    <!-- ZK EXT LIBS - DIRTY PART : SHOULD DEFINE DISTINC MODULES AND DECLARE DEPENDENCIES -->
    <resource-root path="bsh.jar"/>
    <resource-root path="commons-collections.jar"/>
    <resource-root path="commons-fileupload.jar"/>
    <resource-root path="commons-io.jar"/>
    <resource-root path="commons-logging.jar"/>
    <resource-root path="Filters.jar"/>
    <resource-root path="itext.jar"/>
    <resource-root path="jasperreports.jar"/>
    <resource-root path="jcommon.jar"/>
    <resource-root path="jfreechart.jar"/>
    <resource-root path="jxl.jar"/>
    <resource-root path="poi.jar"/>
    <!-- ZK THEMES LIBS -->
    <resource-root path="sapphire.jar"/>    
    <resource-root path="silvertail.jar"/>
</resources>

<dependencies>
</dependencies></module>

3) edit the jboss standalone.conf conf to add ZK module into the JBoss OSGI layer

        <subsystem xmlns="urn:jboss:domain:osgi:1.2" activation="eager">
        <properties>
            <property name="org.osgi.framework.startlevel.beginning">
                10
            </property>
        </properties>
        <capabilities>
            <capability name="sun.jdk"/>
            <capability name="javax.jws.api"/>
            <capability name="javax.persistence.api"/>
            <capability name="javax.servlet.api"/>
            <capability name="javax.transaction.api"/>
            <capability name="javax.ws.rs.api"/>
            ............
            <capability name="org.zkoss" startlevel="1"/>
            ............

2) 4) start JBOSS and check org.zkoss is well loaded as an OSGI bundle

Hello,

this is a quick and dirty solution working on JBoss EAP 6.1.

1) create ZKOSS module directory and copy ZK into it:

    mkdir -p $JBOSS_HOME/modules/system/layers/base/org/zkoss/main
    cp zkee-bin-eval-6.5.2/dist/lib/*.jar modules/system/layers/base/org/zkoss/main/
    cp zkee-bin-eval-6.5.2/dist/lib/*/*.jar modules/system/layers/base/org/zkoss/main/
    touch $JBOSS_HOME/modules/system/layers/base/org/zkoss/main/module.xml

2) edit the ZKOSS module.xml file

<module xmlns="urn:jboss:module:1.1" name="org.zkoss">
<resources>
    <!-- ZK EE LIBS -->
    <resource-root path="zcommon.jar"/>
    <resource-root path="zel.jar"/>
    <resource-root path="zhtml.jar"/>
    <resource-root path="zkbind.jar"/>
    <resource-root path="zkex.jar"/>
    <resource-root path="zk.jar"/>
    <resource-root path="zkmax.jar"/>
    <resource-root path="zkplus.jar"/>
    <resource-root path="zml.jar"/>
    <resource-root path="zul.jar"/>
    <resource-root path="zweb.jar"/>
    <!-- ZK EXT LIBS - DIRTY PART : SHOULD DEFINE DISTINC MODULES AND DECLARE DEPENDENCIES -->
    <resource-root path="bsh.jar"/>
    <resource-root path="commons-collections.jar"/>
    <resource-root path="commons-fileupload.jar"/>
    <resource-root path="commons-io.jar"/>
    <resource-root path="commons-logging.jar"/>
    <resource-root path="Filters.jar"/>
    <resource-root path="itext.jar"/>
    <resource-root path="jasperreports.jar"/>
    <resource-root path="jcommon.jar"/>
    <resource-root path="jfreechart.jar"/>
    <resource-root path="jxl.jar"/>
    <resource-root path="poi.jar"/>
    <!-- ZK FORGE LIBS -->
    <resource-root path="flashchart.jar"/>
    <resource-root path="gmapsz.jar"/>
    <resource-root path="timelinez.jar"/>
    <resource-root path="timeplotz.jar"/>
    <resource-root path="zuljsp.jar"/>
    <!-- ZK THEMES LIBS -->
    <resource-root path="sapphire.jar"/>    
    <resource-root path="silvertail.jar"/>
</resources>

<dependencies>
</dependencies></module>

3) edit the jboss standalone.conf conf to add ZK module into the JBoss OSGI layer

        <subsystem xmlns="urn:jboss:domain:osgi:1.2" activation="eager">
        <properties>
            <property name="org.osgi.framework.startlevel.beginning">
                10
            </property>
        </properties>
        <capabilities>
            <capability name="sun.jdk"/>
            <capability name="javax.jws.api"/>
            <capability name="javax.persistence.api"/>
            <capability name="javax.servlet.api"/>
            <capability name="javax.transaction.api"/>
            <capability name="javax.ws.rs.api"/>
            ............
            <capability name="org.zkoss" startlevel="1"/>
            ............

4) start JBOSS and check org.zkoss is well loaded as an OSGI bundle

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More