(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

Page 30
Image 30
Sun Microsystems 820682310 manual Cannot Find SunDeploymentManager, Description, Solution