2 Replies Latest reply on Jun 7, 2011 4:20 AM by baradon

    Web Service deployment failed after JSF update

    baradon

      Hi,

       

      I have a problem with deployment of EJB3 web service after upgrading JSF.  IMHO, these two things should not be linked to each other, but reality has a different opinion .

       

      I'm running JBoss AS 5.1.0 GA and updated JSF to 2.0 (Mojarra 2.0.3).  Deploying any WAR works perfect, but when I deploy a JAR package containing a web sevice, I get the following error:

       

      Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener

      com.sun.faces.config.ConfigurationException: no web.xml present

       

      Well, thats right.  There is no web.xml, as there must not be a web.xml in a JAR file.  Unfortunately, it prevents my complete EJB-package from beeing deployed and started.  I tried to add an empty web.xml file.  As a result, I didn't get any error message, but the application is still not started, web service not initialized, ...

       

      Is there any workaround possible?

       

      Best regards,

       

      Heiner

        • 1. Web Service deployment failed after JSF update
          abhishekhp

          Did you get to resolve this. I am running into the exact same problem. Since there is no web.xml with a jar that exposes EJB3 based web service I cannot seem to add  the following to override the default impl provided with JBoss

           

               <context-param>

                <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

                <param-value>true</param-value>

               </context-param>

           

          Any workarounds  ?

          • 2. Re: Web Service deployment failed after JSF update
            baradon

            Hi,

             

            I gave it a try again this weekend, but could find any solution yet.  As soon as I install the JSF-2.0 stuff, no EJB3 webservice is possible anymore.

             

            Does anybody have an idea?

             

            Thanks in advance,

             

             

            Heiner