dev@glassfish.java.net

Re: What is the correct way to start admin console?

From: Jason Lee <jasondlee_at_sun.com>
Date: Thu, 30 Apr 2009 12:14:19 -0500

The web container won't know if it's a valid page until the app is
deployed. Once it's deployed, an invalid URL should return a 404 very
quickly. IIRC, there's some talk about making this a bit more
intuitive, for what it's worth.

On Apr 30, 2009, at 12:06 PM, Vivek Pandey wrote:

> I see, so I should not be accessing the admin context.
>
> Anyway http://localhost:4848/admin does not just give 404, it shows
> a loading page. You wait for few seconds and then it gives 404.
>
> -vivek.
>
> Jason Lee wrote:
>> The correct URL for the admin console is http://localhost:4848.
>> The first request to the port, regardless of the requested page,
>> will result in the admin console being installed. That's why you
>> see the loading page. Once the app has been deployed, requests for
>> pages are then processed by the web container. There is no
>> resource in the admin console at "admin/" so you get the 404. In
>> short, http://localhost:4848/admin is not a valid URL and there is
>> no bug in the console.
>>
>> On Apr 30, 2009, at 8:34 AM, Vivek Pandey wrote:
>>
>>> On b47, I start the server and then access:
>>>
>>> http://localhost:4848/admin
>>>
>>> It shows the page loading, keeps doing it and then gives 404.
>>>
>>> Accessing http://localhost:4848/ shows me the admin console
>>> correctly.
>>>
>>> am I not supposed to access http://localhost:4848/admin? Whats the
>>> difference from http://localhost:4848/? Different contexts for
>>> admin console?
>>>
>>> Getting 404 after showing wait screen is a bug regardless.
>>>
>>> -vivek.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> <http://www.java.com> * Jason Lee *
>> Senior Java Developer
>> GlassFish Administration Console
>>
>> *Sun Microsystems, Inc.*
>> Phone x31197/+1 405-343-1964
>> Email jasondlee_at_sun.com <mailto:jasondlee_at_sun.com>
>> Blog http://blogs.sun.com/jasondlee
>> Blog http://blogs.steeplesoft.com
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

         Jason Lee
Senior Java Developer
GlassFish Administration Console

Sun Microsystems, Inc.
Phone x31197/+1 405-343-1964
Email jasondlee_at_sun.com
Blog http://blogs.sun.com/jasondlee
Blog http://blogs.steeplesoft.com