Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Most of the issues you may find when running Geronimo will be at start up time; and most likely driven by some conflicting resources from the environment where Geronimo is set up.

...

JVM arguments

Apache Geronimo v2.2 is Java EE certified. With that said, it will likely run on different JVM versions however the results may be unpredictable. Whenever possible use jdk 1.5 or above.

...

You can choose one of following options to use JVM arguments depending on how you're starting Geronimo

...

  1. startup.sh or geronimo.sh run
    • set JAVA_OPTS environment variable:

...

    • solid jeffchi@Local:~/geronimo-tomcat6-javaee5-2.2-SNAPSHOT$ export JAVA_OPTS="-Xmx256m

...

    • -XX:MaxPermSize=128m

...

    • -XX:+HeapDumpOnOutOfMemoryError"

...

    • jeffchi@Local:~/geronimo-tomcat6-javaee5-2.2-SNAPSHOT$./bin/geronimo.sh

...

    • run

...

    • and/or

...

    • append the following code to <Geronimo_Home>/bin/

...

    • setjavaenv.sh(

...

    • bat) file

...

    • :

...

    • if

...

    • [

...

    • -z

...

    • "$JAVA_OPTS"

...

    • ];

...

    • then

...

    • JAVA_OPTS="-Xmx256m

...

    • -XX:MaxPermSize=128m

...

    • -XX:+HeapDumpOnOutOfMemoryError"

...

    • fi

...

  1. start-server or gsh geronimo/start-server
    • edit <Geronimo_Home>/etc/rc.d/start-server,default.groovy

...

    • file: //

...

    • Append

...

    • some

...

    • reasonable

...

    • java

...

    • flags

...

    • if

...

    • none

...

    • were

...

    • configured

...

    • already

...

    • if

...

    • (command.javaFlags.empty)

...

    • {

...

    • command.javaFlags

...

    • <<

...

    • '-Xmx256m'

...

    • command.javaFlags

...

    • <<

...

    • '-XX:MaxPermSize=128m'

...

    • command.javaFlags

...

    • <<

...

    • '-XX:+HeapDumpOnOutOfMemoryError'

...

    • }

...

    • or use -J flag:

...

BorderStyleSolid

...

    • Solid jeffchi@Local:~/geronimo-tomcat6-javaee5-2.2-SNAPSHOT$./bin/gsh

...

    • geronimo/start-server

...

    • -J

...

    • "-Xmx256m

...

    • -XX:MaxPermSize=128m

...

    • -

...

    • XX:+HeapDumpOnOutOfMemoryError"

...

Port conflicts

The second most common startup issue is associated to port conflicts, check no other application is using or blocking Geronimo's default ports:

...

If you identify port conflicts you can use the <GERONIMO_HOME>/var/config/config-substitutions.properties to change any of these ports. From this configuration file you can also set a port offset and have all these increased by that amount.

...

If your application contains its own version of Spring you might see some problems deploying or running the application on the Jetty assembly. The Jetty assembly is by default configured with Apache CXF as the JAX-WS provider. Apache CXF uses Spring to configure itself. Sometimes, the Spring version used by CXF conflicts with the Spring version supplied with your application. To prevent these conflicts add the following <hidden-classes> entry to the Geronimo deployment descriptor:

...

...

java.lang.UnsatisfiedLinkError: lic (Library is already loaded in another ClassLoader)

...

To avoid the problem, you may try Adding JARs to the Geronimo repository and define the dependency in your deployment plan.
See Also : https://issues.apache.org/jira/browse/GERONIMO-4629Image Removed

Enable multicasting for IPv4 network

...

java.io.IOException of remote EJB on Windows

...

One possibility is that the available user port numbers are being exhausted. On Windows, when a socket is closed, it goes into a TIME_WAIT state and isn't actually closed until some delay time. By default, the max user port address is 5000 and the TIME_WAIT delay is 4 minutes. So, it's not too difficult to exhaust all possible user port addresses.

You have to update the Windows Registry to change these values. Here's a Windows 2000 doc on the registry settings – http://technet.microsoft.com/en-us/library/bb726981.aspx

  • MaxUserPorts controls the upper range for user ports.
  • TcpTimedWaitDelay controls the TIME_WAIT delay.

Increasing MaxUserPorts (e.g. 65534) and decreasing TcpTimedWaitDelay (e.g. 30) may fix the problem.

Parse XML error when deploying an EJB security jar

When you deploy an EJB application with security constraint on Geronimo server, A parsing exception will show if you use a default namespace in the deployment plan. The problem is caused by a known JAXB issue. To workaround this problem, you have to add explicit named namespaces to every element or redefine the default namespace in each element in open-ejb.xml file.

Server failed to start due to ActiveMQ module failure

Most likely Geronimo server was not shut down cleanly, which results in ActiveMQ log files to have an unexpected entry. You can avoid this by editing var/activemq/conf/activemq.xml and adding schedulerSupport="false" if you don't require JobScheduler support:

...