dev@glassfish.java.net

Failed to undeploy the petstore from glassfish Build 41c

From: Tom Shi <tmshi_at_yahoo.com>
Date: Fri, 20 Apr 2007 10:41:42 -0700 (PDT)

I downloaded the java_ee_sdk-5_03-preview-blueprints.zip and deployed the it to glassfish Build 41C using ant. Right after deployment, the petstore worked fine, because I did not see any errors during navigating this application.
Today, there is the following error during start the glassfish:

[#|2007-04-20T13:14:55.815-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=10;_ThreadName=main;Premature end of file.;_RequestID=480042f4-728d-4dc8-80fd-0d377aa84963;|"DPL8005: Deployment Descriptor parsing failure : Premature end of file."|#]

[#|2007-04-20T13:14:55.825-0400|SEVERE|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;_RequestID=480042f4-728d-4dc8-80fd-0d377aa84963;|LDR5008: ConfigException :
com.sun.enterprise.config.ConfigException: Failed to load deployment descriptor for: petstore
cause: Deployment descriptor file WEB-INF/sun-web.xml in archive [petstore]. Premature end of file.
    at com.sun.enterprise.instance.WebModulesManager.getDescriptor(WebModulesManager.java:395)
    at com.sun.enterprise.instance.WebModulesManager.getDescriptor(WebModulesManager.java:337)
    at com.sun.enterprise.server.DummyWebModuleLoader.<init>(DummyWebModuleLoader.java:54)
    at com.sun.enterprise.server.DummyWebModuleManager.getLoader(DummyWebModuleManager.java:50)
    at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:188)
    at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:201)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:332)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:381)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:308)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:274)
Caused by: org.xml.sax.SAXParseException: Premature end of file.
    at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:285)
    at com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescriptor(Archivist.java:514)
    at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:773)
    at com.sun.enterprise.instance.WebModulesManager.getDescriptor(WebModulesManager.java:371)
    ... 14 more
|#]

[#|2007-04-20T13:14:55.825-0400|WARNING|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;_RequestID=480042f4-728d-4dc8-80fd-0d377aa84963;|Exception during handleApplicationEvent
java.lang.NullPointerException
    at com.sun.enterprise.appclient.jws.NamingConventions.getEligibleAppclientModuleDescriptors(NamingConventions.java:520)
    at com.sun.enterprise.appclient.jws.NamingConventions.getEligibleAppclientModuleDescriptors(NamingConventions.java:497)
    at com.sun.enterprise.appclient.jws.AppclientJWSSupportManager.handleApplicationEvent(AppclientJWSSupportManager.java:133)
    at com.sun.enterprise.server.event.ApplicationLoaderEventNotifier.notifyListeners(ApplicationLoaderEventNotifier.java:104)
    at com.sun.enterprise.server.AbstractLoader.notifyAppEvent(AbstractLoader.java:866)
    at com.sun.enterprise.server.DummyWebModuleLoader.doLoad(DummyWebModuleLoader.java:64)
    at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226)
    at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:212)
    at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:201)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:332)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:381)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:308)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:274)
|#]

[#|2007-04-20T13:14:55.835-0400|WARNING|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;_RequestID=480042f4-728d-4dc8-80fd-0d377aa84963;|Exception during handleApplicationEvent
java.lang.NullPointerException
    at com.sun.enterprise.webservice.ApplicationLoaderEventListenerImpl.handleApplicationEvent(ApplicationLoaderEventListenerImpl.java:56)
    at com.sun.enterprise.server.event.ApplicationLoaderEventNotifier.notifyListeners(ApplicationLoaderEventNotifier.java:104)
    at com.sun.enterprise.server.AbstractLoader.notifyAppEvent(AbstractLoader.java:866)
    at com.sun.enterprise.server.DummyWebModuleLoader.doLoad(DummyWebModuleLoader.java:64)
    at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226)
    at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:212)
    at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:201)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:332)
    at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:112)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:381)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:308)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.server.PELaunch.main(PELaunch.java:274)
|#]


The Admin UI could not display right with error of "HTTP STATUS 500" at left side of the screen.

The 'asadmin undeploy petstore' print the errors of :

CLI171 Command undeploy failed : While undeploying, trying to stop application in target server failed; com.sun.enterpr
ise.deployment.backend.IASDeploymentException: com.sun.enterprise.config.ConfigException: Failed to load deployment desc
riptor for: petstore
cause: Deployment descriptor file WEB-INF/sun-web.xml in archive [petstore]. Premature end of file.
com.sun.enterprise.config.ConfigException: Failed to load deployment descriptor for: petstore
cause: Deployment descriptor file WEB-INF/sun-web.xml in archive [petstore]. Premature end of file.

Thanks.



Thanks
Tom
       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.