Skip to main content

JSF First timer: Deployment fails

3 replies [Last post]
krishnakumarc
Offline
Joined: 2006-03-27
Points: 0

Hi,
I created a sample JSF/Facelets application as mentioned in "Facelets - JavaServer Faces View Definition Framework" https://facelets.dev.java.net/files/documents/3448/36086/facelets-1.1.9.zip

Unfortunately I am not able to deploy it using NetBeans as well using AutoDeploy using Sun Application Server.
Error is
In-place deployment at E:\Downloads\New Folder\NetBeans\NetBeansProjs\MyFirstFacelet\build\web
Start registering the project's server resources
Finished registering server resources
moduleID=MyFirstFacelet
deployment started : 0%
Deploying application in domain failed; Error loading deployment descriptors for MyFirstFacelet -- null
; requested operation cannot be completed
E:\Downloads\New Folder\NetBeans\NetBeansProjs\MyFirstFacelet\nbproject\build-impl.xml:452: Deployment error:
The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 7 seconds)

Any help how to solve this is very much appreciated because I am very much excited about JSF/Facelets, I want to make this work somehow :)
cheers
krishna

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi Krishna,

Are you just trying to run the demos for Facelets or are you trying to use facelets and jMaki?

This forum if focused on jMaki specific issues. You may want to try the Glassfish forum (http://forums.java.net/jive/forum.jspa?forumID=56) for more on facelets and Glassfish deployment problems.

krishnakumarc
Offline
Joined: 2006-03-27
Points: 0

Thank you!

krishnakumarc
Offline
Joined: 2006-03-27
Points: 0

Hi,
I enabled the the logging to deployment="FINE" This is the error message from server.log. I am not able to understand the err :(

[#|2006-11-23T11:41:07.286+0530|FINE|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=11;|in class com.sun.enterprise.deployment.WebComponentDescriptor method setCanonicalName with Faces Servlet|#]

[#|2006-11-23T11:41:07.286+0530|FINE|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=11;|in class com.sun.enterprise.deployment.WebComponentDescriptor method setLoadOnStartUp with 1|#]

[#|2006-11-23T11:41:07.286+0530|FINE|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=11;|Adding web component
<== No attribute ==>WebComponentDescriptor

initializationParameters null
urlPatterns null
canonicalName Faces Servlet
loadOnStartUp 1
securityRoleReferences null
servlet className javax.faces.webapp.FacesServlet|#]

[#|2006-11-23T11:41:07.286+0530|FINE|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=11;|Removing top node com.sun.enterprise.deployment.node.web.ServletNode@1365e01|#]

[#|2006-11-23T11:41:07.286+0530|FINE|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=11;|Asking for new handler for servlet-mapping to com.sun.enterprise.deployment.node.web.WebBundleNode@1da801b|#]

[#|2006-11-23T11:41:07.286+0530|FINE|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=11;|Got com.sun.enterprise.deployment.node.web.ServletMappingNode@c9153e|#]

[#|2006-11-23T11:41:07.411+0530|FINE|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=11;|Deleted module Directory: E:\Sun\AppServer\domains\domain1\applications\j2ee-modules\MyFirstFacelet|#]

[#|2006-11-23T11:41:07.411+0530|FINE|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=11;|Deployment Error
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for MyFirstFacelet -- null
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:325)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:170)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:138)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:148)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:639)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:185)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:519)
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.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:305)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:360)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:504)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployModule(AutoDeployer.java:485)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployWarModule(AutoDeployer.java:433)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployWarModule(AutoDeployer.java:426)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:246)
at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:345)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.NullPointerException
at com.sun.enterprise.deployment.node.web.ServletMappingNode.setElementValue(ServletMappingNode.java:55)
at com.sun.enterprise.deployment.node.SaxParserHandler.endElement(SaxParserHandler.java:355)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:256)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:186)
at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:230)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:195)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:131)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:673)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:654)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:278)
... 31 more
|#]

[#|2006-11-23T11:41:07.411+0530|INFO|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=11;|Total Deployment Time: 281 msec, Total EJB Compiler Module Time: 0 msec, Portion spent EJB Compiling: 0%|#]

[#|2006-11-23T11:41:07.411+0530|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.tools.deployment|_ThreadID=11;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for MyFirstFacelet -- null
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:325)
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:170)
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:138)
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:148)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:639)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:185)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:519)
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.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:305)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:360)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:504)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployModule(AutoDeployer.java:485)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployWarModule(AutoDeployer.java:433)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployWarModule(AutoDeployer.java:426)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:246)
at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:345)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.NullPointerException
at com.sun.enterprise.deployment.node.web.ServletMappingNode.setElementValue(ServletMappingNode.java:55)
at com.sun.enterprise.deployment.node.SaxParserHandler.endElement(SaxParserHandler.java:355)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:256)
at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:186)
at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:230)
at com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:195)
at com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:131)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:673)
at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:654)
at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:278)
... 31 more

Any idea ?
krishna