You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem? 1.Use Tomact 7, and provide a Local context file in "conf/Catalina/localhost/.xml"
2. Update the existing Application What is the expected result? That the context.xml will not be changed. What happens instead? The context will be removed by the Tomact. Because Probe does an undeploy the context before the deploy.
For further Information see: https://issues.apache.org/bugzilla/show_bug.cgi?id=56248 What version of Probe are you using? 2.3.3
What environment (browser version, Tomcat version, JVM version, server OS)? Tomcat 7.0.53, Oracle JDK 8, Ubuntu 14.04 Please provide any additional information below. Please see attached patch, this resolves the issue for me. But I have not tested it on other Servlet Containers than Tomcat 7
I also need to mention the fix does not work under all circumstances.
Eg. The Tomcat server.xml has following host configuration: <Host ... unpackWARs="true" autoDeploy="false">
Because deleting the War is not enough at this point, we also need to delete the exploded WAR content. Otherwise it will always use the code from the exploded directory.
I attached a new patch, that add also the delete of this directory.
It works in my circumstances, but I'm pretty sure that i have missed some points. Eg. an non-default war-explode-directory?
Seems like it would make more sense to preserve the context.xml file, perform a regular undeploy/redeploy, and restore the context.xml file. I think articulating this in the UI would be easier too: "Preserve existing context.xml file."
From [email protected] on May 02, 2014 13:22:22
What steps will reproduce the problem? 1.Use Tomact 7, and provide a Local context file in "conf/Catalina/localhost/.xml"
2. Update the existing Application What is the expected result? That the context.xml will not be changed. What happens instead? The context will be removed by the Tomact. Because Probe does an undeploy the context before the deploy.
For further Information see: https://issues.apache.org/bugzilla/show_bug.cgi?id=56248 What version of Probe are you using? 2.3.3
What environment (browser version, Tomcat version, JVM version, server OS)? Tomcat 7.0.53, Oracle JDK 8, Ubuntu 14.04 Please provide any additional information below. Please see attached patch, this resolves the issue for me. But I have not tested it on other Servlet Containers than Tomcat 7
Attachment: fix.patch
Original issue: http://code.google.com/p/psi-probe/issues/detail?id=406
The text was updated successfully, but these errors were encountered: