Wildlfy module.xml Configuration for one java class
julianfperez Dec 30, 2015 5:05 AMI am testing an java application and getting this error:
org.jboss.naming.remote.protocol.NamingIOException: Failed to rebind [Root exception is java.io.IOException: java.lang.ClassNotFoundException: de.brockhaus.userMgmt.control.process.SomeProcess from [Module "org.jboss.remote-naming:main" from local module loader @ed17bee (finder: local module finder @2a33fae0 (roots: C:\Program Files\jboss\wildfly\modules,C:\Program Files\jboss\wildfly\modules\system\layers\base))]]
...
Caused by: java.io.IOException: java.lang.ClassNotFoundException: de.brockhaus.userMgmt.control.process.SomeProcess from [Module "org.jboss.remote-naming:main" from local module loader @ed17bee (finder: local module finder @2a33fae0 (roots: C:\Program Files\jboss\wildfly\modules,C:\Program Files\jboss\wildfly\modules\system\layers\base))]
This is a part of my pom.xml maven file where I have added the following dependency:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<archive>
<manifestEntries>
<Dependencies>org.jboss.remote-naming</Dependencies>
</manifestEntries>
</archive>
</configuration>
</plugin>
So my purpose is modifying the module.xml file of
C:\Program Files\jboss\wildfly\modules\system\layers\base\org\jboss\remote-naming\main
<module xmlns="urn:jboss:module:1.3" name="org.jboss.remote-naming">
<resources>
<resource-root path="jboss-remote-naming-2.0.4.Final.jar"/>
<resource-root path="de/brockhaus/userMgmt/control/process"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="org.jboss.ejb-client" optional="true"/>
<module name="org.jboss.remoting"/>
<module name="org.jboss.logging"/>
<module name="org.jboss.marshalling"/>
<module name="org.jboss.marshalling.river"/>
<module name="de.brockhaus.userMgmt.control.process"/>
</dependencies>
</module>
But this also gives errors. I would like to know how to change this above xml file in order to achieve the things working right.