How to prevent class path of JBoss inter web application?

I have two web applications deployed in JBoss on the same server. I noticed that the classpath is shared between the two web applications.

So, how can I interfere with the classpath method between applications. I mean that any jar classes and files available in one application should not be displayed in another application on the same server in jboss.

+2
source share
2 answers

For most versions of jBoss AS, you need to update the jboss-web.xml file:

<jboss-web>
   <class-loading> 
      <loader-repository>com.example:archive=unique-archive-name</loader-repository> 
   </class-loading>
</jboss-web>

For more information, see the following link:

+1
source

JBoss wiki states:

jboss-3.2.3 jbossweb-tomcat41.sar - . UseJBossWebLoader jbossweb-tomcat41.sar/META-INF/jboss-service.xml. , WEB-INF/classes WEB-INF/lib . , , 2.3 / -. false.

, 4.0.2, , 4.0.1.

0

Source: https://habr.com/ru/post/1788403/


All Articles