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...
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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.