Openbravo Issue Tracking System - Openbravo ERP | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0006764 | Openbravo ERP | A. Platform | public | 2008-12-31 13:15 | 2009-04-21 11:09 |
| Reporter | iperdomo | ||||
| Assigned To | iperdomo | ||||
| Priority | urgent | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | 20 | OS Version | rPath Linux | |
| Product Version | 2.50alpha-r5 | ||||
| Target Version | pi | Fixed in Version | |||
| Merge Request Status | |||||
| Review Assigned To | |||||
| OBNetwork customer | No | ||||
| Web browser | |||||
| Modules | Core | ||||
| Support ticket | |||||
| Regression level | |||||
| Regression date | |||||
| Regression introduced in release | |||||
| Regression introduced by commit | |||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0006764: tomcat.restart.do doesn't work on virtual appliance because CATALINA_BASE and CATALINA_HOME are different folders | ||||
| Description | The configuration in the virtual appliance is different then the default one, CATALINA_HOME and CATALINA_BASE are not the same folder. --- Environment --- [root@localhost AppsOpenbravo]# env | grep CATALINA CATALINA_HOME=/usr/share/tomcat CATALINA_BASE=/var/lib/tomcat CATALINA_OPTS=-server -Xms128M -Xmx384M -XX:MaxPermSize=128M -Djava.library.path=/usr/lib | ||||
| Steps To Reproduce | In alpha-r5 with updated sources at rev.11616 try to execute: ant tomcat.restart.do You'll get something similar to: [openbravo@localhost AppsOpenbravo]$ ant tomcat.restart.do Buildfile: build.xml tomcat.restart.do: [echo] Restarting Tomcat at /usr/share/tomcat [java] Dec 31, 2008 8:48:05 AM org.apache.catalina.startup.Catalina stopServer [java] SEVERE: Catalina.stop: [java] java.io.FileNotFoundException: /usr/share/tomcat/conf/server.xml (No such file or directory) [java] at java.io.FileInputStream.open(Native Method) [java] at java.io.FileInputStream.<init>(FileInputStream.java:106) [java] at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:407) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337) [java] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415) [java] Java Result: 1 [java] Dec 31, 2008 8:48:25 AM org.apache.catalina.startup.Embedded initDirs [java] SEVERE: Cannot find specified temporary folder at /usr/share/tomcat/temp [java] Dec 31, 2008 8:48:25 AM org.apache.catalina.startup.Catalina load [java] WARNING: Can't load server.xml from /usr/share/tomcat/conf/server.xml [java] Dec 31, 2008 8:48:25 AM org.apache.catalina.startup.Embedded initDirs [java] SEVERE: Cannot find specified temporary folder at /usr/share/tomcat/temp [java] Dec 31, 2008 8:48:25 AM org.apache.catalina.startup.Catalina load [java] WARNING: Can't load server.xml from /usr/share/tomcat/conf/server.xml [java] Dec 31, 2008 8:48:25 AM org.apache.catalina.startup.Catalina start [java] INFO: Server startup in 0 ms [java] java.lang.reflect.InvocationTargetException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) [java] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) [java] Caused by: java.lang.NullPointerException [java] at org.apache.catalina.startup.Catalina.await(Catalina.java:642) [java] at org.apache.catalina.startup.Catalina.start(Catalina.java:602) [java] ... 6 more BUILD SUCCESSFUL Total time: 24 seconds | ||||
| Proposed Solution | Use the CATALINA_BASE and CATALINA_HOME as different folders in the tomcat.restart.do ant tast | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2008-12-31 13:15 | iperdomo | New Issue | |||
| 2008-12-31 13:15 | iperdomo | Assigned To | => iperdomo | ||
| 2008-12-31 13:15 | iperdomo | sf_bug_id | 0 => 2478780 | ||
| 2008-12-31 13:15 | iperdomo | OBNetwork customer | => No | ||
| 2008-12-31 13:15 | iperdomo | Regression testing | => No | ||
| 2008-12-31 13:16 | iperdomo | Status | new => scheduled | ||
| 2008-12-31 13:16 | iperdomo | fix_in_branch | => trunk | ||
| 2008-12-31 13:20 | svnbot | Checkin | |||
| 2008-12-31 13:20 | svnbot | Note Added: 0011790 | |||
| 2008-12-31 13:20 | svnbot | Status | scheduled => resolved | ||
| 2008-12-31 13:20 | svnbot | Resolution | open => fixed | ||
| 2008-12-31 13:20 | svnbot | svn_revision | => 11625 | ||
| 2009-04-21 11:09 | psarobe | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||