users@glassfish.java.net

Re: Newly deployed web application can be accessed from another virtual server if without restart glassfish.

From: <Jan.Luehe_at_Sun.COM>
Date: Fri, 01 Jun 2007 13:43:31 -0700

Hi Tom,

Tom Shi wrote:

> Hi Jan;
>
> The asadmin script sequences as you described works as expected.


Great!

>
> But Admin GUI deployment still have the same issue as I mentioned.


In this case, I would suggest filing a bug against the admin-gui.


Jan


>
>
> */Jan.Luehe_at_Sun.COM/* wrote:
>
> Tom,
>
> Tom Shi wrote:
>
> > I created another virtual server, for example mytest6, with port
> > number of 18080. Deployed the hello.war only to the mytest6.
> >
> > The hello web application can be accessed from both 18080 and 8080.
> > Hello app should not be accessed from port 8080.
> >
> > After reboot the glassfish, now from 8080 could not access the
> hello
> > application.
> >
> > During deploy the hello.war, Admin GUI did not warn to restart
> the server.
>
>
> No restart should be required for this.
>
> I'm unable to reproduce any issue when using the CLI (haven't
> tried the
> admin gui yet).
>
> After issuing these commands:
>
> asadmin create-virtual-server --hosts myhost myvs
> asadmin create-http-listener --listenerport 12345 --defaultvs myvs
> --listeneraddress 0.0.0.0 mylistener
> asadmin deploy --virtualservers myvs test.war
>
> I can access the webapp at the listener associated with myvs:
>
> telnet localhost 12345
> GET /test/test.txt HTTP/1.0
>
> When trying to access the webapp at my domain's http-listener-1:
>
> telnet localhost 1024
> GET /test/test.txt HTTP/1.0
>
> I get a 404, as expected.
>
> Can you try the above steps and confirm they work for you?
>
>
>
> Jan
>
>
> >
> >
> > Thanks
> > Tom
> >
> >
> ------------------------------------------------------------------------
> > Get your own web address.
> >
> > Have a HUGE year through Yahoo! Small Business.
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>
>
> Thanks
> Tom
>
> ------------------------------------------------------------------------
> Boardwalk for $500? In 2007? Ha!
> Play Monopoly Here and Now
> <http://us.rd.yahoo.com/evt=48223/*http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow>
> (it's updated for today's economy) at Yahoo! Games.