开发者

can i run two copies of the same war in different context paths on tomcat?

开发者 https://www.devze.com 2023-02-08 22:50 出处:网络
I have my war running on tomcat in a context path - say /path1. I\'ve made some more changes to my codebase, added more classes, jars etc, and now without disturbing the first war that is running on

I have my war running on tomcat in a context path - say /path1.

I've made some more changes to my codebase, added more classes, jars etc, and now without disturbing the first war that is running on /path1, i want to add开发者_如何转开发 this war to /path2.

Can this be done?

Because when I tried this the second war is failing to start when spring loads -

SEVERE: Error listenerStart
Feb 7, 2011 4:46:44 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/path2] startup failed due to previous errors

And there is no stack trace or anything though i've set log level to debug.

I think there is no problem with the code because when I run this on my local machine and on a server where the first one is not running it works fine. When i try to run this on the server with /path1 active then it fails.

Thanks!


The 'listenerStart' bit suggests that the error is in a ServletContextListener, so if you have any of those in your code, take a hard look, and see what they're doing; are they accessing any resources that the other instance might then try to share?

0

精彩评论

暂无评论...
验证码 换一张
取 消