I cannot help you solve the problem, but if no one replies, as a
workaround, you don't have to use admin console, but you can use asadmin
online tool...
If you don't solve the problem.
If you want to solve the problem you can try fresh new installation of
glassfish.
Hope it is helpful,
Mladen
On Tue, Feb 10, 2015 at 8:19 PM, Chad Flowerday <cflowerday_at_umc.edu> wrote:
> Last week our glassfish application servers began receiving the
> connection refused error when launching the admin gui. The issue has also
> made asadmin useless in that the asadmin commands return domain 1 not
> running even though it is indeed running. Therefore the java process must
> be killed in order to stop it before the start command can be used in which
> case the connection refused loop begins anew. I am pasting the error from
> the server.log below. Any assistance on the matter would be greatly
> appreciated.
>
>
>
> Thanks,
>
>
>
> Chad
>
>
>
>
>
> [#|2015-02-10T13:06:28.193-0600|SEVERE|glassfish3.1.2|org.glassfish.admingui|_ThreadID=9;_ThreadName=Thread-11;|java.net.ConnectException:
> Connection refused;
>
> java.net.ConnectException: Connection refused;
>
> restRequest: endpoint=
> https://localhost:4848/management/domain/anonymous-user-enabled
>
> attrs={}
>
> method=GET|#]
>
>
>
> [#|2015-02-10T13:06:29.826-0600|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=10;_ThreadName=Thread-11;|PWC4011:
> Unable to set request character en
>
> coding to UTF-8 from context , because request parameters have already
> been read, or ServletRequest.getReader() has already been called|#]
>
>
>
> [#|2015-02-10T13:06:29.843-0600|SEVERE|glassfish3.1.2|org.glassfish.admingui|_ThreadID=10;_ThreadName=Thread-11;|java.net.ConnectException:
> Connection refused;
>
> java.net.ConnectException: Connection refused;
>
> restRequest: endpoint=
> https://localhost:4848/management/domain/anonymous-user-enabled
>
> attrs={}
>
> method=GET|#]
>
>
>
> [#|2015-02-10T13:06:38.230-0600|SEVERE|glassfish3.1.2|org.apache.catalina.connector.CoyoteAdapter|_ThreadID=11;_ThreadName=Thread-11;|PWC3989:
> An exception or error occurre
>
> d in the container during the request processing
>
> com.sun.jersey.api.client.ClientHandlerException:
> java.net.ConnectException: Connection refused
>
> at
> com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
>
> at
> com.sun.jersey.api.client.filter.CsrfProtectionFilter.handle(CsrfProtectionFilter.java:97)
>
> at com.sun.jersey.api.client.Client.handle(Client.java:648)
>
> at
> com.sun.jersey.api.client.filter.HTTPBasicAuthFilter.handle(HTTPBasicAuthFilter.java:81)
>
> at
> com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
>
> at
> com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
>
> at
> com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:563)
>
> at
> org.glassfish.admingui.common.security.AdminConsoleAuthModule.validateRequest(AdminConsoleAuthModule.java:256)
>
> at
> com.sun.enterprise.security.jmac.config.GFServerConfigProvider$GFServerAuthContext.validateRequest(GFServerConfigProvider.java:1171)
>
> at
> com.sun.web.security.RealmAdapter.validate(RealmAdapter.java:1452)
>
> at
> com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1330)
>
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:551)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:623)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
>
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
>
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
>
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
>
> at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
>
> at
> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
>
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
>
> at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
>
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
>
> at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
>
> at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
>
> at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
>
> at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
>
> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
>
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
>
> at
> com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
>
> at java.lang.Thread.run(Thread.java:761)
>
> Caused by: java.net.ConnectException: Connection refused
>
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:412)
>
> at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:271)
>
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:258)
>
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:376)
>
> at java.net.Socket.connect(Socket.java:546)
>
> at com.ibm.jsse2.SSLSocketImpl.connect(SSLSocketImpl.java:541)
>
> at com.ibm.jsse2.dd.connect(dd.java:60)
>
> at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
>
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:437)
>
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:551)
>
> at com.ibm.net.ssl.www2.protocol.https.c.<init>(c.java:149)
>
> at com.ibm.net.ssl.www2.protocol.https.c.a(c.java:7)
>
> at
> com.ibm.net.ssl.www2.protocol.https.d.getNewHttpClient(d.java:44)
>
> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:935)
>
> at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:49)
>
> at
> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1043)
>
> at com.ibm.net.ssl.www2.protocol.https.b.getOutputStream(b.java:7)
>
> at
> com.sun.jersey.client.urlconnection.URLConnectionClientHandler$1$1.getOutputStream(URLConnectionClientHandler.java:225)
>
> at
> com.sun.jersey.api.client.CommittingOutputStream.commitWrite(CommittingOutputStream.java:117)
>
> at
> com.sun.jersey.api.client.CommittingOutputStream.write(CommittingOutputStream.java:89)
>
> at
> sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:355)
>
> at
> sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:425)
>
> at
> sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:429)
>
> at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:175)
>
> at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:274)
>
> at java.io.BufferedWriter.flush(BufferedWriter.java:247)
>
> at
> com.sun.jersey.core.util.ReaderWriter.writeToAsString(ReaderWriter.java:191)
>
> at
> com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeToAsString(AbstractMessageReaderWriterProvider.java:128)
>
> at
> com.sun.jersey.core.impl.provider.entity.BaseFormProvider.writeTo(BaseFormProvider.java:109)
>
> at
> com.sun.jersey.core.impl.provider.entity.FormMultivaluedMapProvider.writeTo(FormMultivaluedMapProvider.java:99)
>
> at
> com.sun.jersey.core.impl.provider.entity.FormMultivaluedMapProvider.writeTo(FormMultivaluedMapProvider.java:59)
>
> at
> com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:300)
>
> at
> com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:204)
>
> at
> com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:147)
>
> ... 32 more
>
> |#]
>
>
> Individuals who have received this information in error or are not
> authorized to receive it must promptly return or dispose of the information
> and notify the sender. Those individuals are hereby notified that they are
> strictly prohibited from reviewing, forwarding, printing, copying,
> distributing or using this information in any way.
>