Sun Microsystems 820682310 manual Cannot Find SunDeploymentManager, Description, Solution

Page 30
(http://blogs.sun.com/kensaks/entry/ejb_3_1_in_glassfish)

Issues Related to Applications

Forum threads: http://forums.java.net/jive/thread.jspa?messageID=301326 and http://forums.java.net/jive/thread.jspa?messageID=318879

Blog post: “EJB 3.1 in GlassFish v3 Prelude”

(http://blogs.sun.com/kensaks/entry/ejb_3_1_in_glassfish)

Blog post: “Deployment in GlassFish v3 Prelude”

(http://blogs.sun.com/quinn/entry/deployment_in_glassfish_v3_prelude)

Documentation: Chapter 3, “Extending Enterprise Server,” in Sun GlassFish Enterprise Server v3 Prelude Administration Guide

Cannot Find SunDeploymentManager

Description

You cannot find SunDeploymentFactory.java.

Solution

Enterprise Server v3 Prelude does not include the JSR-88 API (SunDeploymentManager is the implementation of the JSR 88 API). The JSR 88 specification provides a complete description of the APIs required by the Java EE platform to enable development of platform-independent deployment tools.

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

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

30

Sun GlassFish Enterprise Server v3 Prelude Troubleshooting Guide • November 2008

Image 30
Contents v3 Prelude Troubleshooting Guide Sun GlassFish Enterprise ServerSun Microsystems, Inc 4150 Network Circle Santa Clara, CA U.S.A This distribution may include materials developed by third parties Contents 1 Overview of Enterprise Server TroubleshootingWas Application Deployment Successful? Administration FAQs Update Tool FAQs How Do I Use Update Tool to Extend My Enterprise Server Installation?Index 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 ContinuedRelated Documentation Typographic Conventionshttp//developers.sun.com/javadb The following table explains symbols that might be used in this book Symbol ConventionsDefault Paths and File Names Symbol ConventionsDocumentation, Support, and Training Searching Sun Product DocumentationThird-Party Web Site References 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 KnowledgebaseWhat Is Your System Configuration? What Is Different?Examining Log Files 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 DescriptionIssues Related to Applications Error When Deploying EARCannot Produce a JVM Thread Dump After Server Crash 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 ResultsIssues Related to Installation and Upgrade General InstallationCannot Upgrade 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?What Options Are Available for Running JRuby With Enterprise Server? Gem documentation http//glassfishgem.rubyforge.orgWarbler information http//caldersphere.rubyforge.org/warbler 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