-
1. Re: How to describe the ear, war and jar dependencies between them
sfcoy Jul 24, 2013 5:24 AM (in response to liverpoolilove)That should not be necessary at all. What kind of problem are you having?
-
2. Re: How to describe the ear, war and jar dependencies between them
liverpoolilove Jul 24, 2013 6:18 AM (in response to sfcoy)Thank you for your reply!
myapp.ear/
META-INF/
application.xmlmyapp-ejb.jar
myapp-web.war/lib/
myapp-common.jarmy ear package is such a structure,for example:
myapp-common.jar contains com.pti.waf.WafConfig,
and myapp-ejb.jar reference com.pti.waf.WafConfig,
Now my project is loaded into the server throws an exception:
[Server:server-three] 16:07:41,670 INFO [stdout] (MSC service thread 1-1) errorjava.lang.ClassNotFoundException: com.pti.waf.WafConfig from [Module "deployment./root/Desktop/hosting/CDA.ear:main" from Service Module Loader]
How can I solve this problem?
-
3. Re: How to describe the ear, war and jar dependencies between them
lafr Jul 24, 2013 6:26 AM (in response to liverpoolilove)So myapp-ejb.jar needs something from myapp-common.jar.
Then it would be best to place myapp-common.jar into ear/lib not into ear/war/lib.
-
4. Re: How to describe the ear, war and jar dependencies between them
sfcoy Jul 24, 2013 7:11 AM (in response to liverpoolilove)...and make sure that your application.xml uses an up-to-date schema. The "lib" directory was not introduced until Java EE 5.