Sun GlassFish Enterprise Server v2.1.1 Release Notes

Web Server

This section describes known web server issues and associated solutions.

Jroute cookie missing when you set "rewrite-cookies" value to false in the loadbalancer.xml (6978685, 6980807)

Description

When Enterprise Server v2.1.1 is configured for load balancing with Web Server 7.0, Jroute cookies are no longer generated. The problem is that the default loadbalancer.xml file sets the rewrite-cookies property to false.


<property name="rewrite-cookies" value="false"/>

Solution

Remove the rewrite-cookies property from loadbalancer.xml; that is, remove the line that reads:


<property name="rewrite-cookies" value="false"/>

You may also find it necessary to modify the relaxVersionSemantics property in sun-web.xml. For more information, see Memory Replication & Multi-threaded Concurrent Access to HttpSessions.

Restart the Web Server after making either of these changes.

AS 9.1 b50e.Linux. Can not start WS after AS LB installation: libjvm.so:cannot open shared (6572654)

Description

This issue only applies you are using the Sun GlassFish Web Server with Enterprise Server and Load Balancer on a Linux system. In such a case, after installing Enterprise Server and a load balancer, the Web Server may fail to start because libicui18n.so.2 and libicuuc.so.2 are in conflict. These libraries are present in both /opt/sun/private/lib and /opt/sun/appserver/lib.

Solution

The correct libraries to use are the ones in /opt/sun/appserver/lib because lbplugin is built against those libraries. Once you remove the two libraries from /opt/sun/private/lib, Web Server should start without error.

Alternatively, if you do not want to delete the libraries from /opt/sun/private/lib, you can instead put /opt/sun/appserver/lib before /opt/sun/private/lib in LD_LIBRARY_PATH in the Web Server startserv script; that is, replace:

# Add instance-specific information to LD_LIBRARY_PATH for Solaris and Linux
LD_LIBRARY_PATH="${SERVER_LIB_PATH}:${SERVER_JVM_LIBPATH}:${LD_LIBRARY_PATH}:
/opt/sun/appserver/lib:/opt/sun/appserver/lbplugin/lib"; export LD_LIBRARY_PATH 

with:

# Add instance-specific information to LD_LIBRARY_PATH for Solaris and Linux
LD_LIBRARY_PATH="/opt/sun/appserver/lib:/opt/sun/appserver/lbplugin/lib:
${SERVER_LIB_PATH}:${SERVER_JVM_LIBPATH}:${LD_LIBRARY_PATH}"; export LD_LIBRARY_PATH