users@glassfish.java.net

Re: Can't log into GF console with nightly build

From: Anissa Lam <anissa.lam_at_oracle.com>
Date: Fri, 24 Sep 2010 09:03:50 -0700

Hi Noah,

Thanks for reporting this and providing a solution. Your suggestion
really make sense.
I have file
https://glassfish.dev.java.net/issues/show_bug.cgi?id=13613 and will
followup.
Appreciate your time on this.

Anissa.

On 9/24/10 8:29 AM, NBW wrote:
> So it looks like the problem is that the restAuthURL property, which I
> found in the domain.xml file, still had the old default admin port
> 4848 set in the URL of its value like so:
>
> <property name="restAuthURL"
> value="http://localhost:3838/management/sessions"></property>
>
> After much digging in the admin console (which I was able to access
> after updating the domain.xml by hand) I found this property in
> Configuration -> server-config -> Security -> Message Security ->Http
> Servlet then click on the Providers tab, then click on the Provider
> ID named GFConsoleAuthModule then look in the Additional Properties
> section. Wow talk about buried.
>
> Anyhow, it seems to me that it would make sense to not have the port
> value for this property hard coded but to have it key off of the port
> value set by the Port value set in Network Config -> Network Listeners
> -> admin-listener. I think that 99% of the time those two values will
> be the same and 99% of the time people will expect that changing the
> Network Listener port for the admin-listener is all they need to do to
> be able to access the admin console on a non-default port but as I
> found out that's not the case.
>
> -Noah
>
> On Fri, Sep 24, 2010 at 11:12 AM, NBW <emailnbw_at_gmail.com
> <mailto:emailnbw_at_gmail.com>> wrote:
>
> Took the nightly build from yesterday (9/23/2010) and started it
> up. Then used the GF admin console to change the following ports:
> admin listener,http1 and http2 listener ports, debug port, JMS
> port for the default_JMS_host, ORB IIOP SSL Listener port,
> orb-listener-1 port, ORB IIOP SSL_MUTUALAUTH port and Admin
> Service ports and saved the changes, and stopped the server. Then
> I started the server and tried to access the admin console using
> the new port like so http://localhost:3838/login.jsf . The Oracle
> branded loading screen appeared and then the URL bar changed (was
> redirected) to http://localhost:3838/j_security_check. At that
> point the following exception was thrown to the sever log and the
> browser screen remained blank, unable to access the login screen
> of the admin console.
>
> [#|2010-09-24T11:00:48.859-0400|SEVERE|glassfish3.1|org.apache.catalina.connector.CoyoteAdapter|_ThreadID=16;_ThreadName=Thread-1;|PWC3989:
> An exception or error occurred in the container during the request
> processing
> com.sun.jersey.api.client.ClientHandlerException:
> java.net.ConnectException: Connection refused: connect
> at
> com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:131)
> at com.sun.jersey.api.client.Client.handle(Client.java:616)
> at
> com.sun.jersey.api.client.filter.HTTPBasicAuthFilter.handle(HTTPBasicAuthFilter.java:81)
> at com.sun.jersey.api.client.WebResource.handle(WebResource.java:559)
> at
> com.sun.jersey.api.client.WebResource.access$200(WebResource.java:72)
> at
> com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:494)
> at
> org.glassfish.admingui.common.security.AdminConsoleAuthModule.validateRequest(AdminConsoleAuthModule.java:187)
> at
> com.sun.enterprise.security.jmac.config.GFServerConfigProvider$GFServerAuthContext.validateRequest(GFServerConfigProvider.java:1171)
> at com.sun.web.security.RealmAdapter.validate(RealmAdapter.java:1302)
> at
> com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1184)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:591)
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:623)
> at
> org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:600)
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:228)
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:824)
> at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:721)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1014)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:220)
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:530)
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:511)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> at java.net.Socket.connect(Socket.java:529)
> at java.net.Socket.connect(Socket.java:478)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
> at
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
> at
> com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:218)
> at
> com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:129)
> ... 32 more
> |#]
>
>
>
>
>
> --
> "Computers are fast. They just take longer."