Topic
  • 4 replies
  • Latest Post - ‏2012-01-06T12:18:42Z by PW1R_Ponkumaran_Annadurai
PW1R_Ponkumaran_Annadurai
6 Posts

Pinned topic Encountering Distribution of modules failed while trying to run JSf app

‏2012-01-02T17:15:23Z |
I am using Eclipse indigo, wasce 2.1 and db2 9.7 for my project. when I try to execute a JSF project, I am encountering the following error. Please help me resolve this.
Distribution of module failed. See log for details.
Could not parse alleged faces-config.xml at jar:file:/tmp/geronimo-deploymentUtil7494191288427979093.war!/WEB-INF/faces-config.xml
org.apache.geronimo.common.DeploymentException: Could not parse alleged faces-config.xml at jar:file:/tmp/geronimo-deploymentUtil7494191288427979093.war!/WEB-INF/faces-config.xml
at org.apache.geronimo.myfaces.deployment.MyFacesModuleBuilderExtension.parseConfigFile(MyFacesModuleBuilderExtension.java:291)
at org.apache.geronimo.myfaces.deployment.MyFacesModuleBuilderExtension.getFacesClasses(MyFacesModuleBuilderExtension.java:234)
at org.apache.geronimo.myfaces.deployment.MyFacesModuleBuilderExtension.createMyFacesClassFinder(MyFacesModuleBuilderExtension.java:189)
at org.apache.geronimo.myfaces.deployment.MyFacesModuleBuilderExtension.addGBeans(MyFacesModuleBuilderExtension.java:156)
at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:497)
at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:645)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
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:597)
at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
at sun.reflect.GeneratedMethodAccessor137.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
at java.security.AccessController.doPrivileged(Native Method)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:

jar:file:/tmp/geronimo-deploymentUtil7494191288427979093.war!/WEB-INF/faces-config.xml:3:1: error: cvc-enumeration-valid: string value '2.0' is not a valid enumeration value for faces-config-versionType in namespace http://java.sun.com/xml/ns/javaee

Descriptor:
<faces-config xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<managed-bean>
<managed-bean-name>temperatureConvertor</managed-bean-name>
<managed-bean-class>testJsf.TemperatureConvertor</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>

at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD(XmlBeansUtil.java:187)
at org.apache.geronimo.myfaces.deployment.MyFacesModuleBuilderExtension.convertToFacesConfigSchema(MyFacesModuleBuilderExtension.java:320)
at org.apache.geronimo.myfaces.deployment.MyFacesModuleBuilderExtension.parseConfigFile(MyFacesModuleBuilderExtension.java:272)
... 46 more
Updated on 2012-01-06T12:18:42Z at 2012-01-06T12:18:42Z by PW1R_Ponkumaran_Annadurai
  • JohnYiXiao
    JohnYiXiao
    5 Posts

    Re: Encountering Distribution of modules failed while trying to run JSf app

    ‏2012-01-04T02:00:05Z  
    Hi
    Could you please provide your sample-project? thanks.
  • PW1R_Ponkumaran_Annadurai
    6 Posts

    Re: Encountering Distribution of modules failed while trying to run JSf app

    ‏2012-01-04T12:16:48Z  
    Hi
    Could you please provide your sample-project? thanks.
    Hi,

    Thanks for the reply...I have attached my project with this. Thank you.
  • JohnYiXiao
    JohnYiXiao
    5 Posts

    Re: Encountering Distribution of modules failed while trying to run JSf app

    ‏2012-01-06T09:18:57Z  
    Hi,

    Thanks for the reply...I have attached my project with this. Thank you.
    Hi,
    Sorry for response so late.
    the wasce2.1 only support jsf1.2, so you need to change the schemaLocation in faces-config.xml from:
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
    version="2.0"
    to
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2"

    then, it could work fine.
    if you insist on using jsf2.0, you could migrate your applications into wasce3.0.0.0.
  • PW1R_Ponkumaran_Annadurai
    6 Posts

    Re: Encountering Distribution of modules failed while trying to run JSf app

    ‏2012-01-06T12:18:42Z  
    Hi,
    Sorry for response so late.
    the wasce2.1 only support jsf1.2, so you need to change the schemaLocation in faces-config.xml from:
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
    version="2.0"
    to
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2"

    then, it could work fine.
    if you insist on using jsf2.0, you could migrate your applications into wasce3.0.0.0.
    Hi,

    Thank you so much for your help. It worked.