Exit Print View

Sun GlassFish Enterprise Server v3 Troubleshooting Guide

  This Document Entire Library
Print View

Document Information

Preface

1.  Overview of Enterprise Server Troubleshooting

2.  Specific Issues

Cannot Access Local Server (http://localhost:8080)

Did the Server Start?

Description

Was the Server Started at the Expected Port?

Description

Is a Personal Firewall Enabled?

Cannot Access Remote Server

Is the Server Available Locally?

Description

Solution

Is the Proxy Setting Causing a Problem?

Description

Solution

Cannot Access the Administration Console

Is the Application Server Running?

Description

Solution

Is the Administration Console Running on the Expected Port?

Description

Solution

Cannot Access a Server Application

Is the Application Server Running?

Description

Solution

Was Application Deployment Successful?

Description

Solution

Administrator User Name or Password Not Known

Experience Issues Related to the JDK

Description

Solution

Server Will Not Start on Windows (Port Conflict)

Is Another Application Running on the Server's Port?

Has an Ungraceful Shutdown Occurred on a Previously Running Server?

Two Server Instances Bind to Same Port on Windows

Description

Solution

Cannot Produce a JVM Thread Dump After Server Crash

Description

Solution

To Obtain a Server Thread Dump

Issues Related to Applications

Cannot Undeploy or Redeploy Application With Open Streams to jar Files (Windows)

Description

Solution

Issues Related to asadmin

asadmin start-domain Command Fails

Description

Solution

Cannot Stop Domain Using asadmin stop-domain

Description

Solution

Issues Related to Installation

Installation Hangs During Update Tool Configuration

Description

Solution

Enterprise Server Components Not Removed During Uninstallation

Description

Solution

Issues Related to Security

java.security.AccessControlException: Access Denied Error

Description

Solution

Mutual Authentication Not Working With the Application Client

Description

Solution

3.  Frequently Asked Questions

Index

Issues Related to Applications

Cannot Undeploy or Redeploy Application With Open Streams to jar Files (Windows)

Description

On Windows systems, after running an application, subsequent attempts to undeploy it or redeploy it throw exceptions about the server being unable to delete a file or rename a directory.

On Windows systems, an application may use getClass().getResource or getResourceAsStream methods to locate a resource inside the application, particularly in jar files that are in the application or accessible to it. If the streams remain open, subsequent attempts to redeploy or undeploy the application can fail. In addition, the Java runtime by default caches streams to jar files for performance reasons.

Solution

Be sure to close streams opened by your applications. Also, if an application needs to be redeployed or undeployed repeatedly, and also needs to obtain a resource from a jar file using getResource or getResourceAsStream, consider using getClass().getResource, which returns a URL object, then invoke the url.setUseCaches method to turn off caching for that jar file, and use url.getInputStream() to obtain the stream.

Although turning off caching for access to the jar file can slow performance, this approach does allow the application to be undeployed or redeployed. Note also that if the getClass().getResourceAsStream method is used instead, then the jar file in which the resource is located is cached (this is the default Java runtime setting) and remains open until the server is stopped.