users@glassfish.java.net

RE: RSVP -Premature end of file error

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Sat, 1 Jan 2011 22:35:27 +0000

Hi,
 
I checked the following thread -
 
http://forums.netbeans.org/ptopic31965.html
 
and validated my beans.xml. That was where the problem
was. Deleting lines in the file or deleting the file completely should get rid
of the problem. The file does not contain anything really so deleting it
shouldn't cause any further issues.
 
The files deploys fine now.
 
Thanks
 
eve
 


From: gorgeous65_at_msn.com
To: users_at_glassfish.dev.java.net
Subject: FW: RSVP -Premature end of file error
Date: Sat, 1 Jan 2011 21:18:50 +0000





 Hello,
 
I am resending this because, I have not had any response.
I am having errors of other applications with the same error.
Thanks
 
eve


 


Hi,
 
Has anyone come across this error running the rsvp that comes with the jee 6 tutorial?
 
From the command line -
 
-post-nbmodule-run-deploy:
-post-run-deploy:
run-deploy:
BUILD FAILED
C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\jaxrs\rsvp\nbproject\buil
d-impl.xml:681: Problem: failed to create task or type nbjpdaappreloaded
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

Total time: 3 seconds
C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\jaxrs\rsvp>
 
It seems to be complaining about the build
 
Below is the server log -
 
Caused by: org.jboss.weld.xml.WeldXmlException: WELD-001202 Error parsing org.xml.sax.SAXParseException: Premature end of file.
 at org.jboss.weld.xml.BeansXmlParser.getDocument(BeansXmlParser.java:103)
 at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:85)
 at org.jboss.weld.bootstrap.BeanDeployment.parseBeansXml(BeanDeployment.java:107)
 at org.jboss.weld.bootstrap.BeanDeployment.<init>(BeanDeployment.java:85)
 at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:204)
 at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:181)
 at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:302)
 at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:162)
 ... 30 more
|#]
[#|2010-12-25T00:44:00.543+0000|INFO|glassfish3.0.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=20;_ThreadName=Thread-1;|Portable JNDI names for EJB ConfigBean : [java:global/rsvp/ConfigBean, java:global/rsvp/ConfigBean!rsvp.ejb.ConfigBean]|#]
[#|2010-12-25T00:44:00.574+0000|INFO|glassfish3.0.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=20;_ThreadName=Thread-1;|Portable JNDI names for EJB StatusBean : [java:global/rsvp/StatusBean, java:global/rsvp/StatusBean!rsvp.ejb.StatusBean]|#]
[#|2010-12-25T00:44:00.590+0000|INFO|glassfish3.0.1|javax.enterprise.system.container.ejb.com.sun.ejb.containers|_ThreadID=20;_ThreadName=Thread-1;|Portable JNDI names for EJB ResponseBean : [java:global/rsvp/ResponseBean!rsvp.ejb.ResponseBean, java:global/rsvp/ResponseBean]|#]
[#|2010-12-25T00:44:00.652+0000|WARNING|glassfish3.0.1|javax.enterprise.system.tools.deployment.org.glassfish.persistence.common|_ThreadID=20;_ThreadName=Thread-1;|Cannot create tables for application rsvp. The expected DDL file rsvp_rsvpPU_createDDL.jdbc is not available.|#]
[#|2010-12-25T00:44:00.824+0000|INFO|glassfish3.0.1|org.hibernate.validator.engine.resolver.DefaultTraversableResolver|_ThreadID=20;_ThreadName=Thread-1;|Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.|#]
[#|2010-12-25T00:44:00.886+0000|SEVERE|glassfish3.0.1|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=20;_ThreadName=Thread-1;|[Fatal Error] :2:1: Premature end of file.
|#]
[#|2010-12-25T00:44:00.886+0000|SEVERE|glassfish3.0.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=20;_ThreadName=Thread-1;|Exception while loading the app
org.glassfish.deployment.common.DeploymentException: WELD-001202 Error parsing org.xml.sax.SAXParseException: Premature end of file.
 at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:167)
 at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125)
 at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:224)
 at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
 at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
 at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
 at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
 at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
 at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
 at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
 at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
 at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
 at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
 at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
 at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
 at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
 at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
 at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
 at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
 at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
 at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
 at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
 at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
 at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
 at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
 at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
 at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
 at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
 at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
 at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
 at java.lang.Thread.run(Thread.java:662)
Caused by: org.jboss.weld.xml.WeldXmlException: WELD-001202 Error parsing org.xml.sax.SAXParseException: Premature end of file.
 at org.jboss.weld.xml.BeansXmlParser.getDocument(BeansXmlParser.java:103)
 at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:85)
 at org.jboss.weld.bootstrap.BeanDeployment.parseBeansXml(BeanDeployment.java:107)
 at org.jboss.weld.bootstrap.BeanDeployment.<init>(BeanDeployment.java:85)
 at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:204)
 at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:181)
 at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:302)
 at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:162)
 ... 30 more
|#]
 
 
I have tried running it from both netbeans 6.9.1 and the command line using ant run. I can't use ant all,
it says it does not exist in build of the rsvp app. However, either way, the application is not being deploy.
 
Any suggestions?
 
 
Thanks
 
eve