quality@glassfish.java.net

Re: configure proxy on gfv3 ?

From: Anissa Lam <Anissa.Lam_at_Sun.COM>
Date: Mon, 16 Mar 2009 10:01:48 -0700
Hi Elena,

I don't have promoted build 40, so i didn't try that.
However,  I have tried b37 and the nightly build,  jvm-options command works fine for me on my Mac.

~/Awork/V3/v3/glassfish/bin 178)  asadmin create-jvm-options "-Dhttp.proxyHost=myproxy.mydomain"
created 1 option(s)

Command create-jvm-options executed successfully.
~/Awork/V3/v3/glassfish/bin 179)  asadmin create-jvm-options "-Dhttp.proxyPort=8080"
created 1 option(s)

Command create-jvm-options executed successfully.
~/Awork/V3/v3/glassfish/bin 180)  asadmin list-jvm-options
-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf
-XX: LogVMOutput
-Dhttp.proxyPort=8080
-XX: UnlockDiagnosticVMOptions
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks
-XX:NewRatio=2
-Dhttp.proxyHost=myproxy.mydomain
-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks
-client
-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext${path.separator}${com.sun.aas.derbyRoot}/lib
-Xmx512m
-Dhtml.adaptor.port=4444
-XX:MaxPermSize=192m
-XX:LogFile=${com.sun.aas.instanceRoot}/logs/jvm.log
-Djava.endorsed.dirs=${com.sun.aas.installRoot}/lib/endorsed

Command list-jvm-options executed successfully.



What format does Sailfin use ?  I am surprise that Sailfin will have a different format than GF.
You may want to file an issue against  "doc"  to give more useful hints.

thanks
Anissa.

Elena Asarina wrote:

I just want to say that I've tried to add/remove  JVM options,  using V3 b40.  I've tried to use CLI,   in Admin GUI JVM options page was absent.  But CLI commands failed. CLI help did not give any useful hints, it is hard to understand  in what format JVM options have to be presented in the command (and, for example,  format that I've used for Sailfin - doesn't work). When I've presented JVM options in the format that was shown in the help example, the options were not created.  Finally I've just edited domain.xml.
Thank you,

Elena
Judy Tang wrote:

Hi Survivant, Yes, as Anissa mentioned this issue is reported in bug# 7280 show up since promoted build 37.  Sill want to appreciate your effort. Thanks !

Hi Anissa and Kedar, Thanks for your help to provide the workaround in the weekend :-)

Judy

Survivant 00 wrote:

I just want to add that I try with b34 on Windows XP, and when I click on JVM Settings/JVM Options  the page is blank.  the problem occur before b37.  if that can help you.

2009/3/14 Kedar Mhaswade <Kedar.Mhaswade@sun.com <mailto:Kedar.Mhaswade@sun.com>>



    Anissa Lam wrote:

        Hi Survivant,

        To set the JVM options,  you can select  Application Server tree
        node, then on the right hand side, select JVM Options under JVM
        Settings.
        However,  as reported in bug# 7280 the JVM Options page doesn't
        show up since promoted build 37.     We are looking into that.
        Sorry to say that for the time being,  you may have to modify
         glassfish/domains/domain1/config/domain.xml  yourself in adding
        this JVM options.
        I tried to see if you can use the CLI command to set that,  but
        i wasn't able to have asadmin to list/get/set  any of the jvm
        options.


    Use asadmin create/delete/list-jvm-options command. Let me know if that
    does not for you. It should.

    -Kedar


        The issue only exists in v3,   should be fine if you are using
        v3 prelude.

        thanks
        Anissa

        Survivant 00 wrote:

            I didn't find the tab where to configure the proxy.  not for
            the update tool.. but for GF itself.
            I saw that we can configure proxy at the installation with
            the installer.. but after the installation is completed or
            with a zip file.. how can I do that ?


            2009/3/14 Jason Lee <jasondlee@sun.com
            <mailto:jasondlee@sun.com> <mailto:jasondlee@sun.com
            <mailto:jasondlee@sun.com>>>


               On Mar 14, 2009, at 2:26 PM, Survivant 00 wrote:

                   is this is the solution ?

                                  http://blogs.sun.com/jimfaut/entry/portal_setting_the_jvm_proxy

                   I want hoping something in the admin gui to allow that.


               It looks like that's explaining how to do that in the
            GUI.  Am I
               missing something?

               <http://www.java.com>       * Jason Lee *

               Senior Java Developer
               GlassFish Administration Console

               *Sun Microsystems, Inc.*
               Phone x31197/+1 405-343-1964
               Email jasondlee@sun.com <mailto:jasondlee@sun.com>
            <mailto:jasondlee@sun.com <mailto:jasondlee@sun.com>>

               Blog http://blogs.sun.com/jasondlee
               Blog http://blogs.steeplesoft.com



        ---------------------------------------------------------------------
        To unsubscribe, e-mail:
        quality-unsubscribe@glassfish.dev.java.net
        <mailto:quality-unsubscribe@glassfish.dev.java.net> For
        additional commands, e-mail: quality-help@glassfish.dev.java.net
        <mailto:quality-help@glassfish.dev.java.net>


    ---------------------------------------------------------------------

    To unsubscribe, e-mail: quality-unsubscribe@glassfish.dev.java.net
    <mailto:quality-unsubscribe@glassfish.dev.java.net>
    For additional commands, e-mail: quality-help@glassfish.dev.java.net
    <mailto:quality-help@glassfish.dev.java.net>



---------------------------------------------------------------------
To unsubscribe, e-mail: quality-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: quality-help@glassfish.dev.java.net



---------------------------------------------------------------------
To unsubscribe, e-mail: quality-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: quality-help@glassfish.dev.java.net