users@glassfish.java.net

Problem with load balancer

From: <glassfish_at_javadesktop.org>
Date: Tue, 02 Sep 2008 08:56:51 PDT

Hello,

this my first post, sorry for inconveniences.

I have installed Sun Application Server 9.1 (based on Glassfish) and I have a cluster wuth two instances. They are running fine.

I have installed Sun Java Web server 7 too.

My file magnus.conf:


Init fn="load-modules" shlib="libj2eeplugin.so"
##BEGIN EE LB Plugin Parameters
Init fn="load-modules" shlib="/opt/sun/webserver7/plugins/lbplugin/bin/libpassthrough.so" funcs="init-passthrough,service-passthrough,name-trans-passthrough" Thread="no"
Init fn="init-passthrough"
##END EE LB Plugin Parameters
Init fn="load-modules" shlib="/opt/sun/webserver7/lib/libj2eeplugin.so" shlib_flags="(global|now)"


My file obj.conf

<Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="name-trans-passthrough" name="lbplugin" config-file="/opt/sun/webserver7/https-server1/config/loadbalancer.xml"
NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn="pfx2dir" from="/mc-icons" dir="/opt/sun/webserver7/lib/icons" name="es-internal"
PathCheck fn="uri-clean"
PathCheck fn="check-acl" acl="default"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index-j2ee"
PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
ObjectType fn="type-j2ee"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
Service method="TRACE" fn="service-trace"
Error fn="error-j2ee"
AddLog fn="flex-log"
</Object>

<Object name="j2ee">
Service fn="service-j2ee" method="*"
</Object>

<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>

<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi"
</Object>

<Object name="send-precompressed">
PathCheck fn="find-compressed"
</Object>

<Object name="compress-on-demand">
Output fn="insert-filter" filter="http-compression"
</Object>


<Object name="lbplugin">
ObjectType fn="force-type" type="magnus-internal/lbplugin"
PathCheck fn="deny-existence" path="*/WEB-INF/*"
Service type="magnus-internal/lbplugin" fn="service-passthrough"
Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html"
</Object>

<Object ppath="*lbconfigupdate*">
PathCheck fn="get-client-cert" dorequest="1" require="1"
</Object>

<Object ppath="*lbgetmonitordata*">
PathCheck fn="get-client-cert" dorequest="1" require="1"
</Object>


And this is my file loadbalancer.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE loadbalancer PUBLIC "-//Sun Microsystems Inc.//DTD Sun Java System Application Server 9.1//EN" "sun-loadbalancer_1_2.dtd">
<loadbalancer>
  <cluster name="cluster1" policy="round-robin">
    <instance disable-timeout-in-minutes="30" enabled="true" listeners="http://192.168.2.202:38082" name="instance1" weight="100"/>
    <instance disable-timeout-in-minutes="30" enabled="true" listeners="http://192.168.2.202:38083" name="instance2" weight="100"/>
    <web-module context-root="/clusterjsp" disable-timeout-in-minutes="30" enabled="true"/>
    <health-checker interval-in-seconds="30" timeout-in-seconds="10" url="/"/>
  </cluster>
  <property name="response-timeout-in-seconds" value="60"/>
  <property name="reload-poll-interval-in-seconds" value="60"/>
  <property name="https-routing" value="false"/>
  <property name="require-monitor-data" value="true"/>
  <property name="last-exported" value=""/>
  <property name="active-healthcheck-enabled" value="false"/>
  <property name="number-healthcheck-retries" value="3"/>
  <property name="rewrite-location" value="true"/>
</loadbalancer>


When I try to start the webserver I get these errors in web console and logs:

ADMIN3603: Error al iniciar el servidor:
config: trying to GET /, name-trans-passthrough reports: init-passthrough has not been called
config: trying to GET /WEB-INF/web.xml, name-trans-passthrough reports: init-passthrough has not been called
config: trying to GET /, name-trans-passthrough reports: init-passthrough has not been called
catastrophe: CORE3260: Server crash detected (signal SIGSEGV)
failure: server initialization failed

I have read some related post and websites as http://forums.java.net/jive/message.jspa?messageID=245383 but everything is OK.

Could you help me?


Thanks in advance, txetxu.
[Message sent by forum member 'txetxuvel' (txetxuvel)]

http://forums.java.net/jive/thread.jspa?messageID=296725