-
1. Re: Module's classloader is not visible to JEE components
jaikiran Jun 8, 2011 3:21 AM (in response to dimonv)Dmitri Voronov wrote:
Hello all,
I wrote a module for JBoss AS 7, it's deployed and registered in NS on start-up.
What's NS?
Dmitri Voronov wrote:
My test application can look up it but cannot load the type class; an exception is thrown:
java.lang.ClassNotFoundException: org.divo.jbossas.component.test.IHRService from [Module "deployment.jee-demo-web.war:main" from Service Module Loader]
Now I'm trying to find the way to make this class visible to the deployed application (/deployments).
If you want your deployment to use/depend on a module then you'll have to add the following to your META-INF/MANIFEST.MF of your deployment (.war or .ear):
Dependencies: foo.bar, blah.blah
Dependencies is the attribute which is a comma separate set of module names. In this example, foo.bar and blah.blah are the module names on which the deployment dependens.
More details can be found here https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
-
2. Re: Module's classloader is not visible to JEE components
dimonv Jun 8, 2011 5:15 AM (in response to jaikiran)Thanks a lot for reply!
Sorry, NS = naming service.
I will try your suggestion regarding MANIFEST.
Regards
-
3. Re: Module's classloader is not visible to JEE components
dimonv Jun 8, 2011 11:18 AM (in response to jaikiran)I tried it out and yeah! it works!
It's a helpful documentation site; didn't see it before.
Thanks a lot!
-
4. Re: Module's classloader is not visible to JEE components
jaikiran Jun 8, 2011 11:43 AM (in response to dimonv)1 of 1 people found this helpfulDmitri Voronov wrote:
It's a helpful documentation site; didn't see it before.
Just a FYI - Our AS7 FAQ also has references to other such helpful material http://community.jboss.org/wiki/JBossAS7FAQ