Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008123Openbravo ERPA. Platformpublic2009-03-13 18:122020-10-19 12:23
shuehner 
platform 
normalminorhave not tried
closedout of date 
5
pi 
 
Core
No
0008123: ant diagnostics does ignore and not show tomcat errors when doing tomcat checks
ant diagnostics does check some settings from inside tomcat. However when tomcat reports an error 'ant diagnostics' does not show this error to the user, so it is not easy to find out what is not working correctly.

Example:

- use debian provided tomcat5.5 package and do not disable the security manager (as is decribed on the wiki)
- in this case the ant diagnostics does fail and you can see this in the tomcat logfiles
- but in ant diagnostics output you just see either NumberFormatException or 'Server seems not to be tomcat'
Show a short description of the error message to the user and give some hints where to look for the reason.

Example:
[checkJVMversion] 0 INFO CheckJVMVersion - Checking Tomcat's JVM version...

[checkJVMversion] 6 ERROR ServerConnection - Server response: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8180/OpenbravoDiagnostics/Check.html?Command=jvm-version [^]

[checkJVMversion] 7 ERROR ServerConnection - Probable reason: java.security.AccessControlException: access denied (java.util.PropertyPermission java.runtime.version read)

[checkJVMversion] 8 ERROR ServerConnection - Please check the servers logfiles for the detailed error message or access the failing url in your browser to see the full error: http://localhost:8180/OpenbravoDiagnostics/Check.html?Command=jvm-version [^]
OB3-Reviewed
Issue History
2009-03-13 18:12shuehnerNew Issue
2009-03-13 18:12shuehnerAssigned To => shuehner
2009-03-13 18:12shuehnerRegression testing => No
2009-03-13 18:16shuehnerNote Added: 0014635
2009-03-13 19:21psarobeStatusnew => scheduled
2009-03-13 19:21psarobefix_in_branch => pi
2011-10-28 11:30psarobeTag Attached: OB3-Reviewed
2012-02-20 11:16shuehnerAssigned Toshuehner => alostale
2015-03-11 14:01alostaleStatusscheduled => acknowledged
2015-03-17 14:37alostaleAssigned Toalostale => platform
2020-10-19 12:23shuehnerStatusacknowledged => scheduled
2020-10-19 12:23shuehnerNote Added: 0123764
2020-10-19 12:23shuehnerStatusscheduled => closed
2020-10-19 12:23shuehnerResolutionopen => out of date

Notes
(0014635)
shuehner   
2009-03-13 18:16   
Related:
When ant dianostic does fails it does not remove the diagnostic code (webapp) from tomcat.
When then running ant dianostic again i cannot add the diagnostic code to tomcat and fails.
Fix can easily be included in this fix for this issue.
(0123764)
shuehner   
2020-10-19 12:23   
ant diagnostics is planned to removed in this issue 45242.
Closing this very old usability issue as out of date.