Sun Microsystems 820682310 manual Was Application Deployment Successful?, Solution, Description

Page 26
Was Application Deployment Successful?

Cannot Access a Server Application

Solution

Review the information in “Did the Server Start?” on page 22 to determine if the server is running. The server must be running before a server application can be accessed.

Was Application Deployment Successful?

Description

An application must be successfully deployed before it can be accessed.

Solution

Check the server's log file:

as-install/domains/domain1/server.log

Administrator User Name or Password Not Known

If you have forgotten the administrator user name, you can find it by inspecting the as-install/domains/domain-name/config/keyfile file, wheredomain-nameis the name of the domain. In the default domain, domain1, the file to inspect is as-install/domains/domain1/config/keyfile. For a different domain, substitute its name in the path.

If you have forgotten the administrator password, you must create a new user name-password pair by removing the user name and password, creating new ones, and restarting the server. (You will not be able to read the password, because it is encrypted in the keyfile.)

To Remove the User Name and Password Completely

1Stop the server, if it is currently running.

2Change to the appropriate WEB-INFdirectory; for example: as-install/lib/install/applications/adminapp/adminapp_war/WEB-INF

3Comment out the entire <security-constraint>element in the web.xml file.

Do not delete the element, as you will be reenabling it later. This action disables security for command-line operations.

26

Sun GlassFish Enterprise Server v3 Prelude Troubleshooting Guide • November 2008

Image 26
Contents Sun Microsystems, Inc 4150 Network Circle Santa Clara, CA U.S.A v3 Prelude Troubleshooting GuideSun GlassFish Enterprise Server This distribution may include materials developed by third parties Contents 1 Overview of Enterprise Server TroubleshootingWas Application Deployment Successful? Administration FAQs Index Update Tool FAQsHow Do I Use Update Tool to Extend My Enterprise Server Installation? Enterprise Server Documentation Set “Symbol Conventions” on page “Default Paths and File Names” on pagePreface “Enterprise Server Documentation Set” on pageTABLE P-1 Books in the Enterprise Server Documentation Set Continuedhttp//developers.sun.com/javadb Related DocumentationTypographic Conventions The following table explains symbols that might be used in this book Symbol ConventionsDefault Paths and File Names Symbol ConventionsThird-Party Web Site References Documentation, Support, and TrainingSearching Sun Product Documentation Sun Welcomes Your Comments “Where to Go for More Information” on page Identifying the Problem“Identifying the Problem” on page “Troubleshooting Tools” on page First StepsSearch the Product Documentation Verify System Requirements and ConfigurationReview Known Issues Search the GlassFish Mailing Lists and ForumsGathering Information When Does the Problem Occur?What Is Your Environment? Search the SunSolve KnowledgebaseExamining Log Files What Is Your System Configuration?What Is Different? Operating System Utilities Troubleshooting ToolsMonitoring the System “Operating System Utilities” on pageVisualVM Type the following commandStack Traces and Thread Dumps To Obtain a Server Thread DumpWhere to Go for More Information Page “Cannot Access Local Server http//localhost8080” on page Specific IssuesCannot Access Local Server http//localhost8080 “Cannot Access Remote Server” on pageWas the Server Started at the Expected Port? To Determine Which Port Number the Server Is Actually UsingDid the Server Start? DescriptionSolution Cannot Access Remote ServerIs the Proxy Setting Causing a Problem? “Is the Proxy Setting Causing a Problem?” on page“Is the Security Manager Disabled?” on page Cannot Access the Administration Console“Is the Administration Console Running on the Expected Port?” on page Is the Application Server Running?Is the Security Manager Disabled? Cannot Access a Server ApplicationIs the Administration Console Running on the Expected Port? “Administrator User Name or Password Not Known” on pageWas Application Deployment Successful? Administrator User Name or Password Not KnownTo Remove the User Name and Password Completely 1 Stop the server, if it is currently running4 Start the server 8 Restart the server for the new user name-password to take effectServer Will Not Start on Windows Port Conflict 7 Uncomment the security-constraint element in the web.xml fileHas an Ungraceful Shutdown Occurred on a Previously Running Server? SolutionTwo Server Instances Bind to Same Port on Windows DescriptionCannot Produce a JVM Thread Dump After Server Crash Issues Related to ApplicationsError When Deploying EAR Cannot Find SunDeploymentManager http//blogs.sun.com/quinn/entry/deploymentinglassfishv3preludeError CLI143 There is more than one domain Issues Related to asadminasadmin start-domain Command Fails SolutionCannot Stop Domain Using asadmin stop-domain Error Could Not Start DomainIssues Related to Eclipse Using asadmin set Command Might Produce Unexpected ResultsCannot Upgrade Issues Related to Installation and UpgradeGeneral Installation Cannot Configure JavaMail Resources Issues Related to JavaMailIssues Related to JNDI Cannot Deploy a Mail Session as a JNDI ResourceException When Creating MySQL Connection Pool Issues Related to MySQLIssues Related to Security java.security.AccessControlException AccessMutual Authentication Not Working With the Application Client Page Which asadmin Commands are Supported? Frequently Asked QuestionsAdministration FAQs “Administration FAQs” on page “Application FAQs” on pageHow Do I Debug Applications? Application FAQsEclipse FAQs How Do I Change Application Permissions?How Do I Develop Add-On Components? Extensibility FAQsHow Do I Extend the Administration Console? How Do I Add Containers?Jersey FAQs Java Persistence FAQsJDBC FAQs What Java Persistence Support Is Available?If I Deploy an Application Using the glassfishrails OpenESB FAQsRails and JRuby FAQs That Application?Warbler information http//caldersphere.rubyforge.org/warbler What Options Are Available for Running JRuby With Enterprise Server?Gem documentation http//glassfishgem.rubyforge.org What Happens When No Server Side Realm Is Configured? Security FAQsUpdate Tool FAQs Can I Change the Keystore Password?After you start your Enterprise Server instance, the default location for the Administration Console is http//localhost4848/ at least one Enterprise Server domain must be started before you can launch the Administration Console. Unless you declined to check for updates during installation, you will be notified of available updates in the message area. Update Tool can also be accessed on the command line by running the updatetool command in the as-install/bin directory. Extensive online help is provided for both versions Index