如何在Web應用程序的上下文中設置crossContext指令,以便任何WTP發佈/部署都將此設置更正爲生成的應用程序context.xml(conf/Catalina/localhost /appname.xml)如何在Eclipse WTP中自動設置crossContext Tomcat
我試圖在Servers context.xml中將其設置爲「default」,但也在Web應用程序的WEB-INF/context.xml中生成了一個存根context.xml,但似乎沒有在這裏幫助;/
的WEB-INF/context.xml中:
<?xml version="1.0" encoding="UTF-8"?>
<Context crossContext="true">
</Context>
注:
相關How to get a tomcat project path from different project in same tomcat by using java
- http://olafsblog.sysbsb.de/tomcat-5-und-crosscontext-konfiguration/
- http://www.eclipse.org/forums/index.php/t/51881/
- http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
- http://www.eclipse.org/forums/index.php/t/50640/