That should not be necessary at all. What kind of problem are you having?
Thank you for your reply！
my 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？
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.
...and make sure that your application.xml uses an up-to-date schema. The "lib" directory was not introduced until Java EE 5.