details:   /erp/devel/pi/rev/ef1675b0d23c
changeset: 6483:ef1675b0d23c
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Wed Feb 24 16:35:56 2010 +0100
summary:   fixed bug 12432
  Now it works if the Tomcat manager is not in the /manager context

diffstat:

 src-diagnostics/src/org/openbravo/utils/ServerConnection.java |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r b7f2cd7f9e22 -r ef1675b0d23c 
src-diagnostics/src/org/openbravo/utils/ServerConnection.java
--- a/src-diagnostics/src/org/openbravo/utils/ServerConnection.java     Wed Feb 
24 17:44:22 2010 +0530
+++ b/src-diagnostics/src/org/openbravo/utils/ServerConnection.java     Wed Feb 
24 16:35:56 2010 +0100
@@ -31,6 +31,9 @@
 public class ServerConnection {
 
   private URL getUrl(String action, String additionalParameters) throws 
MalformedURLException {
+    String serverUrl=new 
PropertiesManager("config/Openbravo.properties").getProperty(
+    "tomcat.manager.url");
+    serverUrl = serverUrl.substring(0,serverUrl.lastIndexOf('/'));
     return new URL(new 
PropertiesManager("config/Openbravo.properties").getProperty(
         "tomcat.manager.url").replace("/manager", "")
         + "/OpenbravoDiagnostics/Check.html?Command=" + action + 
additionalParameters);

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to