1 Reply Latest reply on Aug 6, 2012 3:32 AM by jaikiran pai

    web fragments jsf ui components deploy failure

    jeff lowcock Newbie

      I started this journey trying to create a simple custom JSF UI Component, looked at so many almost right/complete examples and have something that should be correct.

       

      The current problem, web fragments fail to deploy has been discussed and seemingly resolved, except it hasn't in 7.1.1.FINAL.  So using one suggestion I create a normal utility project instead of a web fragment project and deployed this within a simple dynamic web project to 7.1.1.FINAL and I get the following stack trace.

       

      14:55:18,981 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Critical error during deployment: : com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/default-host/com.istana.examplar.session.wui/WEB-INF/classes/META-INF/glue.taglib.xml': null

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:673) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:323) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_22]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_22]

          at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_22]

      Caused by: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/default-host/com.istana.examplar.session.wui/WEB-INF/classes/META-INF/glue.taglib.xml': null

          at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source) [rt.jar:1.6.0_22]

          at java.util.concurrent.FutureTask.get(Unknown Source) [rt.jar:1.6.0_22]

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:671) [jsf-impl-2.1.7-jbossorg-2.jar:]

          ... 10 more

      Caused by: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/default-host/com.istana.examplar.session.wui/WEB-INF/classes/META-INF/glue.taglib.xml': null

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:921) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:866) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [rt.jar:1.6.0_22]

          at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.6.0_22]

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:657) [jsf-impl-2.1.7-jbossorg-2.jar:]

          ... 10 more

      Caused by: java.lang.NullPointerException

          at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:965) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:912) [jsf-impl-2.1.7-jbossorg-2.jar:]

          ... 14 more

       

      14:55:19,003 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.istana.examplar.session.wui]] (MSC service thread 1-3) Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener: java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/default-host/com.istana.examplar.session.wui/WEB-INF/classes/META-INF/glue.taglib.xml': null

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

          at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_22]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_22]

          at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_22]

      Caused by: com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/default-host/com.istana.examplar.session.wui/WEB-INF/classes/META-INF/glue.taglib.xml': null

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:673) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:323) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225) [jsf-impl-2.1.7-jbossorg-2.jar:]

          ... 8 more

      Caused by: java.util.concurrent.ExecutionException: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/default-host/com.istana.examplar.session.wui/WEB-INF/classes/META-INF/glue.taglib.xml': null

          at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source) [rt.jar:1.6.0_22]

          at java.util.concurrent.FutureTask.get(Unknown Source) [rt.jar:1.6.0_22]

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:671) [jsf-impl-2.1.7-jbossorg-2.jar:]

          ... 10 more

      Caused by: com.sun.faces.config.ConfigurationException: Unable to parse document 'jndi:/default-host/com.istana.examplar.session.wui/WEB-INF/classes/META-INF/glue.taglib.xml': null

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:921) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:866) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [rt.jar:1.6.0_22]

          at java.util.concurrent.FutureTask.run(Unknown Source) [rt.jar:1.6.0_22]

          at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:657) [jsf-impl-2.1.7-jbossorg-2.jar:]

          ... 10 more

      Caused by: java.lang.NullPointerException

          at com.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:965) [jsf-impl-2.1.7-jbossorg-2.jar:]

          at com.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:912) [jsf-impl-2.1.7-jbossorg-2.jar:]

          ... 14 more

       

      So my questions are 1) why the jndi:/default-host/ prefix to the path?  and 2) it seems JBoss can find the file and name correctly and yet it cannot parse the file which means of course I cannot deploy.  The 'null' as a message leaves me nowhere to go in terms of trying to trace what is really happening.

       

      Any suggestion about how to gather more information, or indeed any solutions are most welcome as i have spent a week on this and it has not been time well spent.  I am almost at the point of giving up on this project because I cannot seem to be able to achieve even simple tasks - everything I read touts the ease and simplicity of jsf, richfaces, etc and yet each step along this path has been extremely painful...heavy sigh.

        • 1. Re: web fragments jsf ui components deploy failure
          jaikiran pai Master

          jeff lowcock wrote:

           

          So my questions are 1) why the jndi:/default-host/ prefix to the path? 

          I'm curious about that too. I think it's not JBoss AS which is prefixing that with jndi: namespace, I guess it's the JSF implementation or some xml file which contains such a reference. Can you check the xml files in the application being deployed to make sure none of those have this reference?