0 Replies Latest reply on Mar 31, 2014 9:10 AM by maurya.100

    jsf 1.2 migration issue on jboss 7.1.1Final

    maurya.100

      I am migrating jsf application calling ejb3.0 and 2.0 , when i migrate this app  it gives the Error and deployment crashes

       

      16:13:53,840 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.subunit."wmi.ear"."ucsconfig.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."wmi.ear"."ucsconfig.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "ucsconfig.war" of deployment "wmi.ear"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]

      at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]

      Caused by: java.lang.VerifyError: (class: org/ajax4jsf/context/AjaxContextImpl, method: encodeAjaxBegin signature: (Ljavax/faces/context/FacesContext;)V) Incompatible argument to function

      at java.lang.Class.getDeclaredConstructors0(Native Method) [rt.jar:1.7.0_40]

      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2483) [rt.jar:1.7.0_40]

      at java.lang.Class.getConstructor0(Class.java:2793) [rt.jar:1.7.0_40]

      at java.lang.Class.getConstructor(Class.java:1708) [rt.jar:1.7.0_40]

      at org.jboss.as.web.deployment.jsf.JsfManagedBeanProcessor.deploy(JsfManagedBeanProcessor.java:108)

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

      ... 5 more

       

      my jboss-deployment-structure.xml is as follows

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-deployment-structure>
         <deployment>
          <exclusions>
      <module name="javax.faces.api" />
      <module name="com.sun.jsf-impl" />
          </exclusions>
         </deployment>
         <sub-deployment
      name="ucsconfig.war">
           <exclusions>
             <module name="javax.faces.api" />
             <module name="com.sun.jsf-impl" />
           </exclusions>
         </sub-deployment>
      </jboss-deployment-structure>
      I have put the old jar  jsf-api.jar ,jsf-impl as module and i call it in stanalone.xml and jsf-facelet.jar is in the lib folder of the application.
      Please help me as i am putting the jar at correct place or my jboss-deployment-structure.xml need extra jar to configre.