Sun Microsystems 820682310 Cannot Stop Domain Using asadmin stop-domain, Description, Solution

Page 32
Error: Could Not Start Domain

Issues Related to asadmin

Error: Could Not Start Domain

Description

This message comes from Sun Java System Application Server 8. The full message looks like either:

Could not start the domain.

There are no domains.

or

Could not start the domain.

No default domain. Need to enter a domain.

This error occurs when Sun Java System Application Server 8 is installed on the same system, and its asadmin command (at /usr/sbin) is found on the PATH before the asadmin command for Sun Java System Application Server 8 at as-install/bin. The situation is especially likely to occur on Solaris and Linux systems when . is not specified as part of the PATH variable. Without

.in the PATH, the asadmin command in /usr/sbin is found first, even when the current directory is as-install/bin.

Solution

Make sure as-install/bin is in the PATH ahead of /usr/sbin, or that . is in the PATH ahead of /usr/sbin if you access asadmin by changing directories to as-install/bin. Alternatively, if you do change to as-install/bin to run asadmin, be sure to include./ in the command name; for example:

cd as-install/bin

./asadmin

Cannot Stop Domain Using asadmin stop-domain

Description

You cannot stop the domain using the asadmin stop-domain command.

Solution

Search the server.log file for error messages related to your inability to stop the domain. To kill a process when stop-domain is not working, try $JAVA_HOME/bin/jps and look for the process with ASMain.

32

Sun GlassFish Enterprise Server v3 Prelude Troubleshooting Guide • November 2008

Image 32
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? “Symbol Conventions” on page “Default Paths and File Names” on page PrefaceEnterprise Server Documentation Set “Enterprise Server Documentation Set” on pageTABLE P-1 Books in the Enterprise Server Documentation Set Continuedhttp//developers.sun.com/javadb Related DocumentationTypographic Conventions Symbol Conventions Default Paths and File NamesThe following table explains symbols that might be used in this book Symbol ConventionsThird-Party Web Site References Documentation, Support, and TrainingSearching Sun Product Documentation Sun Welcomes Your Comments Identifying the Problem “Identifying the Problem” on page “Troubleshooting Tools” on page“Where to Go for More Information” on page First StepsVerify System Requirements and Configuration Review Known IssuesSearch the Product Documentation Search the GlassFish Mailing Lists and ForumsWhen Does the Problem Occur? What Is Your Environment?Gathering Information Search the SunSolve KnowledgebaseExamining Log Files What Is Your System Configuration?What Is Different? Troubleshooting Tools Monitoring the SystemOperating System Utilities “Operating System Utilities” on pageType the following command Stack Traces and Thread DumpsVisualVM To Obtain a Server Thread DumpWhere to Go for More Information Page Specific Issues Cannot Access Local Server http//localhost8080“Cannot Access Local Server http//localhost8080” on page “Cannot Access Remote Server” on pageTo Determine Which Port Number the Server Is Actually Using Did the Server Start?Was the Server Started at the Expected Port? DescriptionCannot Access Remote Server Is the Proxy Setting Causing a Problem?Solution “Is the Proxy Setting Causing a Problem?” on pageCannot Access the Administration Console “Is the Administration Console Running on the Expected Port?” on page“Is the Security Manager Disabled?” on page Is the Application Server Running?Cannot Access a Server Application Is the Administration Console Running on the Expected Port?Is the Security Manager Disabled? “Administrator User Name or Password Not Known” on pageAdministrator User Name or Password Not Known To Remove the User Name and Password CompletelyWas Application Deployment Successful? 1 Stop the server, if it is currently running8 Restart the server for the new user name-password to take effect Server Will Not Start on Windows Port Conflict4 Start the server 7 Uncomment the security-constraint element in the web.xml fileSolution Two Server Instances Bind to Same Port on WindowsHas an Ungraceful Shutdown Occurred on a Previously Running Server? 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/deploymentinglassfishv3preludeIssues Related to asadmin asadmin start-domain Command FailsError CLI143 There is more than one domain 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 Issues Related to JavaMail Issues Related to JNDICannot Configure JavaMail Resources Cannot Deploy a Mail Session as a JNDI ResourceIssues Related to MySQL Issues Related to SecurityException When Creating MySQL Connection Pool java.security.AccessControlException AccessMutual Authentication Not Working With the Application Client Page Frequently Asked Questions Administration FAQsWhich asadmin Commands are Supported? “Administration FAQs” on page “Application FAQs” on pageApplication FAQs Eclipse FAQsHow Do I Debug Applications? How Do I Change Application Permissions?Extensibility FAQs How Do I Extend the Administration Console?How Do I Develop Add-On Components? How Do I Add Containers?Java Persistence FAQs JDBC FAQsJersey FAQs What Java Persistence Support Is Available?OpenESB FAQs Rails and JRuby FAQsIf I Deploy an Application Using the glassfishrails 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 Security FAQs Update Tool FAQsWhat Happens When No Server Side Realm Is Configured? 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