The last line of your above post does not look right.
If you deploy two war say "App.war" then it can always have a dependency on other deployed JARs or WARs. Those dependencies can be added using "deployment." prefix. (like: deployment.ucenter.war or deployment.util.jar)
So yes, it is possible to have a class loader dependency between deployed applications. Also a deployed JAR or WAR can be having a classloader dependency to some other deployed WAR.
Have you tested this problem actually ? Using maven project? war dependence war !
Attached is my example, war dependence war, maven project. Compile not pass.
jboss-test.zip 73.3 K
The attached testcase "jboss-test.zip" is not usable, It has few classes with all Junk characters in it please check:
jboss-test/ejb-in-war-v1/src/main/java/org/jboss/as/quickstarts/ejbinwar_v1/controller/Greeter.java (same with the "ejb-in-war" project)
Can war module dependence another war module ? Thanks.
I tried building your project and tested at my end it works.
As mentioned earlier Yes, the classes present inside One WAR deployed on the same JBoss can be seen by another WAR using $WebApp/META-INF//MANIFEST.MF or using "WEB-INF/jboss-deployment-structure.xml"
I am attaching the compiled WAR here to test the same. Looks like your Maven "pom.xml" is not correct as it is not generating the entries properly inside the "jboss-ejb-in-war-v1.war/META-INF/MANIFEST.MF" file.
Just deploy the application on the same JBoss and then access the following URLs and enter name in the text field.
war dependency war ? maven defaul not support.
'jboss-ejb-in-war-v1.war' does not use Maven Pack?
A jar (Dynamic module) you can rely on a war?
1 of 1 people found this helpful
war dependency war ? maven defaul support. Example:
jboss-ejb-in-war.war' pom.xml add:
可以即生成war and jar包: