users@glassfish.java.net

Re: problem when trying to apply loadbalancer setting to sun java web server from glasfish console

From: Pankaj Jairath <Pankaj.Jairath_at_Sun.COM>
Date: Wed, 18 Apr 2007 19:06:48 +0530

Legolas Woodland wrote:

> please read inline comment
>
>
>
> On 4/18/07, *Pankaj Jairath* <Pankaj.Jairath_at_sun.com
> <mailto:Pankaj.Jairath_at_sun.com>> wrote:
>
> Hello Legolas,
>
> Do refer to the following post on the blog -
> http://blogs.sun.com/pjjairath/entry/ssl_setup_for_webserver_7. Also
> ensure while editing the WebServer config files with Load Balancer
> specific configuration directives, the lines are well formed (no white
> spaces at the start of the line, no breakage of a single directive
> onto
> multiple lines).
>
>
> Load balancer works fine because it can direct requests to my
> glassfish instances.
> and also in log file i can see that all instance are healthy or one
> instance is not healthy or ...

The reason the above point was highlighted was that the steps mentioned
in the post require changes to the webserver instance config. Refer to
the post under section /"Configuration changes to WebServer 7.0" /and
step /"1 Append the following directives to obj.conf file :"/

>
> Problem is that I can not connect to web server from glasfish admin
> console in order to save the new configuration that i create for my
> cluster into web server loadbalancer.

This is because, as apparent from your details, DAS is not able to
connect to SSL port of the webserver instance on which the Load Balancer
is installed and configured.

>
> You imagine that i have created new load balancer in DAS and i want to
> save the configuration that i create into load balancer.
>

Could you confirm to me whether you have followed the steps detailed in
the mentioned post. This would help to understand where you are
encountering the problem.

> can you pelase tell me how i can find instance ssl port?

By default (default installation of webserver 7.0) would not have the
SSL enabled HTTP (HTTPS) listener created. You need to create one. Since
I refer to the default installation of webserver 7.0 in my post, I would
ask you to create one for the <DEFAULT_CONFIG_NAME> which refers to
default webserver instance created upon WS 7.0 installation.

To create the SSL HTTP listener, connect to the Admin Console of WS 7.0
and upon login, the page presented is the "Common Tasks". Follow the
following navigation from this page to create the HTTP listener and
enable it for SSL -

common tasks -> edit configuration ( <DEFAULT_CONFIG_NAME>)-> HTTP
Listeners -> click on New.. -> provide the details required by the
wizard, check the SSL box and from the drop down box for "Certificate"
select the default server certificate available with WS 7.0 upon
installation (refer to step 1 under the post of blog). This would be
something like "cert-<DEFAULT_CONFIG_NAME>"
Once done with HTTPS listener creation do apply these changes to the
webserver instance -on top ritgh corner of the console you would get a
message :"Deployment Pending Deployment Pending".
<https://jlab81.india.sun.com:8990/admingui/admingui/configHttpListeners?configHttpListeners.deploymentPendingHref=&jato.pageSession=AKztAAVzcgARamF2YS51dGlsLkhhc2hNYXAFB9rBwxZg0QMAAkYACmxvYWRGYWN0b3JJAAl0aHJlc2hvbGR4cD9AAAAAAAAMdwgAAAAQAAAAAXQAMGNvbmZpZ0h0dHBMaXN0ZW5lcnMuaHR0cExpc3RlbmVyc1RhYmxlLnN0YXRlRGF0YXNxAH4AAD9AAAAAAAAMdwgAAAAQAAAAC3QACG1heFBhZ2Vzc3IAEWphdmEubGFuZy5JbnRlZ2VyEuKgpPeBhzgCAAFJAAV2YWx1ZXhyABBqYXZhLmxhbmcuTnVtYmVyhqyVHQuU4IsCAAB4cAAAAAF0ABFhZHZhbmNlZFNvcnRPcmRlcnB0AA9wcmltYXJ5U29ydE5hbWV0AARuYW1ldAAXYWR2YW5jZWRGaWx0ZXJBdmFpbGFibGVzcgARamF2YS5sYW5nLkJvb2xlYW7NIHKA1Zz67gIAAVoABXZhbHVleHAAdAARc2Vjb25kYXJ5U29ydE5hbWVwdAANc2VsZWN0aW9uVHlwZXQACG11bHRpcGxldAAWc2hvd1BhZ2luYXRpb25Db250cm9sc3NxAH4ADAF0AARwYWdlc3EAfgAFAAAAAXQAEGFkdmFuY2VkU29ydE5hbWVwdAASc2Vjb25kYXJ5U29ydE9yZGVycHQAEHByaW1hcnlTb3J0T3JkZXJ0AAlhc2NlbmRpbmd4eA$$>__
<https://jlab81.india.sun.com:8990/admingui/admingui/configHttpListeners?configHttpListeners.deploymentPendingHref=&jato.pageSession=AKztAAVzcgARamF2YS51dGlsLkhhc2hNYXAFB9rBwxZg0QMAAkYACmxvYWRGYWN0b3JJAAl0aHJlc2hvbGR4cD9AAAAAAAAMdwgAAAAQAAAAAXQAMGNvbmZpZ0h0dHBMaXN0ZW5lcnMuaHR0cExpc3RlbmVyc1RhYmxlLnN0YXRlRGF0YXNxAH4AAD9AAAAAAAAMdwgAAAAQAAAAC3QACG1heFBhZ2Vzc3IAEWphdmEubGFuZy5JbnRlZ2VyEuKgpPeBhzgCAAFJAAV2YWx1ZXhyABBqYXZhLmxhbmcuTnVtYmVyhqyVHQuU4IsCAAB4cAAAAAF0ABFhZHZhbmNlZFNvcnRPcmRlcnB0AA9wcmltYXJ5U29ydE5hbWV0AARuYW1ldAAXYWR2YW5jZWRGaWx0ZXJBdmFpbGFibGVzcgARamF2YS5sYW5nLkJvb2xlYW7NIHKA1Zz67gIAAVoABXZhbHVleHAAdAARc2Vjb25kYXJ5U29ydE5hbWVwdAANc2VsZWN0aW9uVHlwZXQACG11bHRpcGxldAAWc2hvd1BhZ2luYXRpb25Db250cm9sc3NxAH4ADAF0AARwYWdlc3EAfgAFAAAAAXQAEGFkdmFuY2VkU29ydE5hbWVwdAASc2Vjb25kYXJ5U29ydE9yZGVycHQAEHByaW1hcnlTb3J0T3JkZXJ0AAlhc2NlbmRpbmd4eA$$>
Click on this to let the console take care of doing this for you. Once
done with this now refer back to the post on the blog
http://blogs.sun.com/pjjairath/entry/ssl_setup_for_webserver_7

regards
Pankaj

>
> Thanks
>
> Also as mentioned earlier, in DAS the port you provide for DAS to
> connect to WS 7.0 needs to be the SSL port of instance on which
> you have
> installed the Load Balancer.
>
> Hope this helps.
>
> regards
> Pankaj
>
> Legolas Woodland wrote:
>
> > Hi
> > Thank you for reading my post.
> > I am trying to apply load balancer setting from glassfish
> applications
> > server console to sun java web server 7.
> > If i create the loadbalancer.xml file and use it myself it works
> fine.
> > But what i want to do is applying load balancing setting from
> > glassfish to web server.
> >
> > I trid to connect it to web server over several ports like 8989
> which
> > is administration console of sun java web server port, 8800,.... and
> > none of the works.
> >
> > It looks like that Application server can not find a web
> application
> > installed in the web server in order to forward the
> configuration, can
> > you please let me know what you think?
> >
> > If you think i should use another port, let me know where i should
> > find the port number and if it needs another settings or changes
> then
> > please let me know the tip.
> >
> > here is the error log of application server when i try to apply load
> > balancer configuration:
> >
> >
> >
> > it looks like that 8989 is the good port to use but it return the
> > error that i include here.
> > I do not know why it look for a lbconfigupdate application,
> because i
> > do not know whe i can find this web application to deploy it to
> my server.
> >
> >
> >
> >
> [#|2005-04-18T12:59:13.535+0330|WARNING|sun-appserver9.1|javax.ee.enterprise.system.tools.admin|_ThreadID=18;_ThreadName=httpWorkerThread-4848-2;_RequestID=c61c7438-3f62-45f5-88a9-72e146783aed;|Apply
> > changes could not be done for Load balancer [default-load-balancer]
> > due to [The web server which hosts the load balancer returned
> response
> > "404 Not found" to the apply change request URL
> > https://127.0.0.1:8989/lbconfigupdate
> <https://127.0.0.1:8989/lbconfigupdate>. Please check the
> configuration
> > and the SSL certificates.].|#]
> >
> >
> [#|2005-04-18T12:59:13.535+0330|WARNING|sun-appserver9.1|javax.ee.enterprise.system.tools.admin|_ThreadID=18;_ThreadName=httpWorkerThread-4848-2;_RequestID=c61c7438-3f62-45f5-88a9-72e146783aed;|EEADM0221:
>
> > Auto Apply changes could not be done. Exception detail is null|#]
> >
> >
> [#|2005-04-18T12:59:13.550+0330|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=30;_ThreadName=RMI
> > TCP Connection(327)- 192.168.100.6 <http://192.168.100.6>
> <http://192.168.100.6/>;|
> > RMIClient.getRMIClient: server|#]
> >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> <mailto:users-help_at_glassfish.dev.java.net>
>
>