Reputation: 357
let's suppose we have two web applications under "webapps" folder; "abc" and "xyz". Is there a way to define a different classpath folder per application? In Tomcat something like "abc.classpath=Directory_A; xyz.classpath=Directory_B" would be greate.
Thanks in advance...
Upvotes: 1
Views: 1404
Reputation: 357
i found a way...
my expoloded web application' s name is "abc". I created "$CATALINA_BASE/conf/Catalina/localhost/abc.xml" file and defined
<Context className="org.apache.catalina.core.StandardContext">
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
virtualClasspath="/externalClasspath/*.jar"/>
</Context>
Are there any ideas about this problem? Because it didn't work.
Upvotes: 0
Reputation: 57274
Your applications will all load the TOMCAT_HOME/lib contents. Other than that each of your webapps will load whatever's in their own WEB-INF/lib & WEB-INF/classes folders.
Upvotes: 3