Revision history [back]

click to hide/show revision 1
initial version

answered 2011-02-04 10:09:54 +0800

nmpallas gravatar image nmpallas

http://nmpallas.wordpress...

So here are the dependencies that are required for a project to be deployed successfully in JBoss.Please take into account that the weld-servlet.jar has a dependency to the StaticLoggerBinder.class which is also available in JBoss. In order to solve the problem the class loader isolation can be used in order to avoid errors.here is my pom.xml.Please also take into account that the definition of the weld servlet in JBoss 6 isn't need it for obvious reasons.The only thing that is necessary is the context.xml inside the META-INF folder with the binding of the BeanManager as described in the 2 tutorials available in ZK blog and smalltalk. I think the next thing is patching and recommitting zkcdi. The entire framework is using mostly a portion of the JSR-229 and focuses in the use of Annotation Qualifiers. Hope i will find some time to extend it with other features i have in mind. Hope this will help somebody. I use maven but since the zkcdi isn't available in some official repository i have imported locally.

build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
                <version>2.3.2</version>
            </plugin>
            <plugin>
                <groupId>org.codehaus.cargo</groupId>
                <artifactId>cargo-maven2-plugin</artifactId>
                <version>1.0.4</version>
                <extensions>true</extensions>
                <configuration>
                    <descriptor>merge.xml</descriptor>
                    <archive>
                        <addMavenDescriptor>false</addMavenDescriptor>
                        <manifest>
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                            <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <!-- Dependencies -->
    <dependencies>
        <dependency>
            <groupId>org.zkoss.zk</groupId>
            <artifactId>zk</artifactId>
            <version>5.0.5</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.zkoss.common</groupId>
            <artifactId>zcommon</artifactId>
            <version>5.0.5</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.zkoss.common</groupId>
            <artifactId>zweb</artifactId>
            <version>5.0.5</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zk</groupId>
            <artifactId>zul</artifactId>
            <version>5.0.5</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zk</groupId>
            <artifactId>zkcdi</artifactId>
            <version>1.0</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zkforge.el</groupId>
            <artifactId>zcommons-el</artifactId>
            <version>1.0.2</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.google</groupId>
            <artifactId>reflections</artifactId>
            <version>0.9.5-RC1</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <!-- dependency>
            <groupId>com.google.collections</groupId>
            <artifactId>google-collections</artifactId>
            <version>1.0-rc3</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
            <version>1</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.jboss.weld</groupId>
            <artifactId>weld-core</artifactId>
            <version>1.0.1-Final</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.jboss.interceptor</groupId>
            <artifactId>jboss-interceptor</artifactId>
            <version>CR11</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency-->
        <dependency>
            <groupId>javax.enterprise</groupId>
            <artifactId>cdi-api</artifactId>
            <version>1.0-SP1</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.jboss.weld.servlet</groupId>
            <artifactId>weld-servlet</artifactId>
            <version>1.0.1-Final</version>
            <type>jar</type>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.zkoss.zk</groupId>
            <artifactId>zkplus</artifactId>
            <version>5.0.5</version>
            <type>pom</type>
            <scope>compile</scope>
        </dependency>
    </dependencies>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More