Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017080Openbravo ERPA. Platformpublic2011-05-09 22:422011-08-12 12:10
gbisheimer 
alostale 
normalmajoralways
closedfixed 
106.1.7600
3.0RC6.1 
3.0MP23.0MP2 
Core
No
0017080: Tomcat fails excecuting ANT tasks during diagnostic build
when building OB using command:
ant diagnostic

I obtain the error:
BUILD FAILED
D:\Openbravo Dev\OpenbravoERP-3.0RC6.1\build.xml:939: The following error occurred while executing this line:
D:\Openbravo Dev\OpenbravoERP-3.0RC6.1\src-util\diagnostic\build.xml:58: The following error occurred while executing this line:
D:\Openbravo Dev\OpenbravoERP-3.0RC6.1\src-util\diagnostic\build.xml:118: The following error occurred while executing this line:
D:\Openbravo Dev\OpenbravoERP-3.0RC6.1\src-util\diagnostic\build.xml:178: Tomcat cannot execute simple ant tasks:

After looking at the exception data I found this:

Server returned HTTP response code: 505 for URL: http://localhost:8080/OpenbravoDiagnostics/Check.html?Command=ant&file=D:/Openbravo [^] Dev/OpenbravoERP-3.0RC6.1/src-util/diagnostic/build.xml&task=test1
excecute: "ant diagnostics" using a repository that contains blanks somewhere in the path.
Modify file /src-util/diagnostics/src/org/openbravo/task/CheckTomcatAntExcecution.java line 35 from:

final String fileName = f.getAbsolutePath().replace("\\", "/");

to

final String fileName = f.getAbsolutePath().replace("\\", "/").replace(" ", "%20");
No tags attached.
related to defect 00170753.0MP2 closed alostale Install from sources fails when using Tomcat 7 onwards 
related to defect 00179273.0MP3 closed alostale ant diagnostic task doew not work 
Issue History
2011-05-09 22:42gbisheimerNew Issue
2011-05-09 22:42gbisheimerAssigned To => alostale
2011-05-09 22:42gbisheimerModules => Core
2011-05-16 10:03alostaleRelationship addedhas duplicate 0017075
2011-05-16 10:03alostaleStatusnew => scheduled
2011-05-16 10:03alostalefix_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 0017075
2011-07-12 14:30alostaleRelationship addedrelated to 0017927
2011-07-26 12:05hgbotCheckin
2011-07-26 12:05hgbotNote Added: 0039356
2011-07-26 12:05hgbotStatusscheduled => resolved
2011-07-26 12:05hgbotResolutionopen => fixed
2011-07-26 12:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/48422fb8bbf4d08ab6f1fa32e9a0f4e4bb7e60a9 [^]
2011-08-01 14:21hudsonbotCheckin
2011-08-01 14:21hudsonbotNote Added: 0039676
2011-08-12 11:08jecharriNote Added: 0040146
2011-08-12 11:08jecharriStatusresolved => closed
2011-08-12 11:08jecharriFixed in Version => 3.0MP2
2011-08-12 12:10jecharriNote Added: 0040151

Notes
(0039356)
hgbot   
2011-07-26 12:05   
Repository: erp/devel/pi
Changeset: 48422fb8bbf4d08ab6f1fa32e9a0f4e4bb7e60a9
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Jul 26 12:05:33 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/48422fb8bbf4d08ab6f1fa32e9a0f4e4bb7e60a9 [^]

fixed bug 17080: ant diagnostic fails when source path contains blanks

---
M src-util/diagnostic/src/org/openbravo/task/CheckTomcatAntExecution.java
---
(0039676)
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
(0040146)
jecharri   
2011-08-12 11:08   
tested
(0040151)
jecharri   
2011-08-12 12:10   
tested