dev@glassfish.java.net

Re: Failed to undeploy the petstore from glassfish Build 41c

From: Tom Shi <tmshi_at_yahoo.com>
Date: Sat, 21 Apr 2007 15:27:51 -0700 (PDT)

Hi Hong;

There are only several jar files under the lib under the WEB-INF in petstore folder.
It looks like the first attempt to undeploy the petstore is not completed successfully.

After the deploying the petstore by ant, I tried to setup NetBeans project and deploy petstore but it failed.
Then I got the errors when trying to undeploy it.
 
I don't have the steps to reproduce this problem.

Thanks








Hong Zhang <Hong.Zhang_at_Sun.COM> wrote: Hi, Tom
    This error seems come from the underlying XML parser that the glassfish code is calling. I am not sure why the parser did not like this particular xml file. During server start up, the sun-web.xml is loaded from the generated/xml directory. Could you please check under your Glassfish installation GF_INSTALL/domains/domain/generated/xml/j2ee-apps/petstore/../WEB-INF/sun-web.xml see if it looks like a valid file?
     If you could find a set of the steps which could reproduce the problem consistently, I will try from my end and see what I can find.
 
     Thanks,
 
 - Hong
     
 Tom Shi wrote:
 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 out new cars at Yahoo! Autos.
 


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