Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0006764 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] A. Platform | major | always | 2008-12-31 13:15 | 2009-04-21 11:09 | |||
| Reporter | iperdomo | View Status | public | |||||
| Assigned To | iperdomo | |||||||
| Priority | urgent | Resolution | fixed | Fixed in Version | ||||
| Status | closed | Fix in branch | pi | Fixed in SCM revision | 11625 | |||
| Projection | none | ETA | none | Target Version | pi | |||
| OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_11 | |||
| OS Version | rPath Linux | Database version | 8.3.5 | Ant version | 1.7.1 | |||
| Product Version | 2.50alpha-r5 | SCM revision | ||||||
| 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 | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|
Notes |
|
|
(0011790) svnbot (viewer) 2008-12-31 13:20 |
Repository: openbravo Revision: 11625 Author: iperdomo Date: 2008-12-31 13:20:42 +0100 (Wed, 31 Dec 2008) Fixes issue 6764: Now restart.tomcat.do is using catalina.base and catalina.home, increased the wait to stop tomcat --- U trunk/build.xml --- https://dev.openbravo.com/websvn/openbravo/?rev=11625&sc=1 [^] |
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 |
| Copyright © 2000 - 2009 MantisBT Group |