Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017075Openbravo ERPA. Platformpublic2011-05-09 15:202011-08-11 15:18
gbisheimer 
alostale 
normalmajoralways
closedfixed 
10Versión 6.1.7600
3.0RC6.1 
3.0MP23.0MP2 
Openbravo 3.0
No
0017075: Install from sources fails when using Tomcat 7 onwards
The Manager application has been re-structured for Tomcat 7 onwards and some of URLs have changed. All URLs used to access the Manager application should now start with one of the following options:

    /manager/html for the HTML GUI
    /manager/text for the text interface
    /manager/jmxproxy for the JMX proxy
    /manager/status for the status pages

Changing line 87 in Openbravo.properties file from:
tomcat.manager.url=http://localhost:8080/manager [^]
to
tomcat.manager.url=http://localhost:8080/manager/text [^]

raises a new problems because of the new forward-slash in the URL (for isntance \src-util\diagnostic\src\org\openbravo\utils\ServerConnection.java : line 36 ).
Install Openbravo ERP from sources using tomcat version 7
Change line 87 in Openbravo.properties file from:
tomcat.manager.url=http://localhost:8080/manager [^]
to
tomcat.manager.url=http://localhost:8080/manager/text [^]

Update code in ServerConnection.java on line 36 (and other similar files that modifies tomcat manager URL) to a smarter way to parse the URL in order to recognize the format:

http://[server]:[port]/[manager-url] [^]

where [manager-url] may contain anything
No tags attached.
related to defect 00170803.0MP2 closed alostale Tomcat fails excecuting ANT tasks during diagnostic build 
Issue History
2011-05-09 15:20gbisheimerNew Issue
2011-05-09 15:20gbisheimerAssigned To => alostale
2011-05-09 15:20gbisheimerModules => Openbravo 3.0
2011-05-09 22:21gbisheimerNote Added: 0036589
2011-05-16 10:03alostaleRelationship addedduplicate of 0017080
2011-05-16 10:04alostaleStatusnew => scheduled
2011-05-16 10:04alostalefix_in_branch => pi
2011-05-16 10:04alostaleTarget Version => 3.0MP0
2011-05-16 10:04alostalefix_in_branchpi =>
2011-06-02 10:53dmitry_mezentsevTarget Version3.0MP0 => 3.0MP1
2011-06-22 19:57dmitry_mezentsevTarget Version3.0MP1 => 3.0MP2
2011-07-12 14:30alostaleRelationship replacedrelated to 0017080
2011-07-26 13:11alostaleNote Added: 0039371
2011-07-26 13:14hgbotCheckin
2011-07-26 13:14hgbotNote Added: 0039373
2011-07-26 13:14hgbotStatusscheduled => resolved
2011-07-26 13:14hgbotResolutionopen => fixed
2011-07-26 13:14hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fad122168625621e9acc7faa970e0db0a5740a7f [^]
2011-08-01 14:21hudsonbotCheckin
2011-08-01 14:21hudsonbotNote Added: 0039681
2011-08-11 15:18jonalegriaesarteNote Added: 0040129
2011-08-11 15:18jonalegriaesarteStatusresolved => closed
2011-08-11 15:18jonalegriaesarteFixed in Version => 3.0MP2

Notes
(0036589)
gbisheimer   
2011-05-09 22:21   
I used this patch in file \src-util\diagnostic\src\org\openbravo\utils\ServerConnection.java

  private URL getUrl(String action, String additionalParameters) throws MalformedURLException {
    String serverUrl=new PropertiesManager("config/Openbravo.properties").getProperty("tomcat.manager.url");
    String[] tokens = serverUrl.split("[/]+");
    serverUrl = tokens[0] + "//" + tokens[1];
    return new URL(serverUrl+ "/OpenbravoDiagnostics/Check.html?Command=" + action + additionalParameters);
  }
(0039371)
alostale   
2011-07-26 13:11   
Updated documentation
http://wiki.openbravo.com/wiki/Openbravo.properties#Tomcat_Manager [^]
(0039373)
hgbot   
2011-07-26 13:14   
Repository: erp/devel/pi
Changeset: fad122168625621e9acc7faa970e0db0a5740a7f
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Jul 26 13:13:53 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fad122168625621e9acc7faa970e0db0a5740a7f [^]

fixed bug 17075: Automatic deploy in tomcat 7

  -Updated Openbravo.properties to explain differences between Tomcat 6 and 7
  -Updated documentation: http://wiki.openbravo.com/wiki/Openbravo.properties [^]
  -ant dagnostic task now uses context.url to determine server url rather than tomcat.manager.url

---
M config/Openbravo.properties.template
M src-util/diagnostic/src/org/openbravo/utils/ServerConnection.java
---
(0039681)
hudsonbot   
2011-08-01 14:21   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/cf2afed6e8ef [^]

Maturity status: Test
(0040129)
jonalegriaesarte   
2011-08-11 15:18   
Verified