Another issue found with SnapshotConfigXMLBuilder explicitly using GERONIMO_HOME
({org.apache.geronimo.home.dir}) and not the {basedir} named server instance
directory.
This time I made everything other than the named server instance directory
read-only (i.e. only GERONIMO_HOME/GERONIMO_SERVER is read-write), and received
this error message:
-
2011-09-28 11:06:24,484 ERROR [SnapshotConfigXMLBuilder] Could not make the
directory /opt/geronimo3/var/monitoring/
2011-09-28 11:06:24,485 ERROR [SnapshotConfigXMLBuilder]
/opt/geronimo3/var/monitoring/snapshot-config.xml (No such file or directory)
-
I found the corresponding source code.
Regarding the sources:
1.
trunk/plugins/monitoring/agent-ejb/src/main/java/org/apache/geronimo/monitoring/ejb/snapshot/SnapshotProcessor.java
-
/**
* Checks to see if the GERONIMO_HOME/var/monitoring/ directory was made.
* If not, the method creates it.
*/
public static void ensureMonitorDir() {
final String pathToDir =
System.getProperty("org.apache.geronimo.home.dir") +
"/var/monitoring/";
File dir = new File(pathToDir);
if(dir.exists() && dir.isDirectory()) {
// all good
return;
} else {
// make a directory
if(dir.mkdir()) {
// directory was successfully created
log.info("/var/monitoring directory created.");
return;
} else {
log.error("Could not make the directory " + pathToDir);
}
}
}
-
2.
trunk/plugins/monitoring/agent-jar/src/main/java/org/apache/geronimo/monitoring/snapshot/SnapshotConfigXMLBuilder.java
-
public class SnapshotConfigXMLBuilder {
...
private static final String pathToXML =
System.getProperty("org.apache.geronimo.home.dir") +
"/var/monitoring/snapshot-config.xml";
...
/**
* Checks to see if the GERONIMO_HOME/var/monitoring/ directory was made.
* If not, the method creates it.
*/
public static void ensureMonitorDir() {
final String pathToDir =
System.getProperty("org.apache.geronimo.home.dir") +
"/var/monitoring/";
File dir = new File(pathToDir);
if(dir.exists() && dir.isDirectory()) {
// all good
return;
} else {
// make a directory
if(dir.mkdir()) {
// directory was successfully created
log.info("/var/monitoring directory created.");
return;
} else {
log.error("Could not make the directory " + pathToDir);
}
}
}
-
On 09/26/2011 09:58 AM, Russell E Glaue wrote:
> Running multiple Geronimo instances
> https://cwiki.apache.org/confluence/display/GMOxDOC30/Running+multiple+Geronimo+instances
>
> Now with Rex's latest patch for ActiveMQ configuration, via GERONIMO-5987, I
> am
> able to startup multiple instances of the Geronimo javaee6 bundle.
> Follow the startup procedures from the Wiki page and GERONIMO-5987 (for a
> workaround to the ActiveMQ lock file)
>
>
> Can anyone tell me, if one deploys multiple instances of Geronimo javaee6
> (latest snapshot only) according to the wiki page, are there are any concerns
> about a successful and long term runtime operation of the multiple instances
> on
> a single runtime OS?
>
>
> -RG
>