Wednesday, June 10, 2009

Problems installing Glassfish on AIX with JDK1.5

If you are using an older version of JDK1.5 on AIX, you may encounter the following errors when starting up glassfish:

> asadmin start-domain
Starting Domain domain1, please wait.
Default Log location is /home/affinium7/mas/tmp/glassfish/domains/domain1/logs/server.log.
Redirecting output to /home/affinium7/mas/tmp/glassfish/domains/domain1/logs/server.log
JVMJ9VM007E Command-line option unrecognised: -client
Could not create the Java virtual machine.

Usage: java [-options] class [args...]
(to execute a class)
or java [-jar] [-options] jarfile [args...]
(to execute a jar file)

where options include:
-cp -classpath
set search path for application classes and resources
-D=
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version
-version:
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
include/exclude user private JREs in the version search
-agentlib:[=]
load native agent library , e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:[=]
load native agent library by full pathname
-javaagent:[=]
load Java programming language agent, see java.lang.instrument
-? -help print this help message
-X print help on non-standard options
-assert print help on assert options



Check your JDK Version using the command "java -fullversion":

> java -fullversion
java full version "J2RE 1.5.0 IBM AIX build pap64devifx-20060124"
>


The above is an old version, you will need to upgrade it (get the Sys Admin to do it)

Or, you can do the following:
1. In /domains/domain1/config/domain.xml , comment off:
-XX:MaxPermSize=192m
-client
-XX:NewRatio=2

2. In /lib/processLauncher.xml, comment off:




You should be able to do a start-domain now.

No comments:

Post a Comment