users@glassfish.java.net

Re: How to set jvmRoute for AJP/mod_jk load balancing

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 23 Oct 2007 16:52:47 -0400

Hi,

glassfish_at_javadesktop.org wrote:
> I am also tasked with load-balancing glassfish through apache (to gradually replace tomcat)

Cool :-)

>
> I tried adding to domain.xml:
> <jvm-options>jvmRoute=glassfish1</jvm-options>
> But I get the following error when starting the domain:
> Exception in thread "main" java.lang.NoClassDefFoundError: jvmRoute=glassfish1
>
> I also tried the following in domain.xml:
> <jvm-options>-jvmRoute=glassfish1</jvm-options>
> But I get an error with that as well:
> Unrecognized option: -jvmRoute=glassfish1

I've made a typo:

<jvm-options>-DjvmRoute=glassfish1</jvm-options>

(add -D )

Thanks

-- Jeanfrancois

>
> Do you have any other suggestions?
> [Message sent by forum member 'jakemann' (jakemann)]
>
> http://forums.java.net/jive/thread.jspa?messageID=241748
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>