Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6504

Hot redeploy fails on existing VirtualFile root

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • JBossAS-5.0.1.GA
    • JBossAS-5.0.0.GA
    • VFS
    • None

      Failing re-deploy on existing VirtualFile root ref.

      e.g.

      • comment deployers\seam.deployer\META-INF\seam-deployers-jboss-beans.xml 2nd bean (the one that makes deployment as a temp)
      • jboss-seam-booking.ear --> unpack

      You have the structure:

      • jboss-seam-booking.ear (unpacked)
        • lib (dir)
        • META-INF (dir)
        • jboss-seam.jar (packed)
        • jboss-seam-booking.jar (packed)
        • jboss-seam-booking.war (packed)

      jboss-seam-booking.war has WEB-INF/lib:

      • few nested lib jars

      The war gets VFSUtils::unjar-ed in AbstractWebDeployer - the need for partly exploded strucutre --> tmp/<guid-dir>/jboss-seam-booking.war

      1st deploy – all is fine

      Change some .xml in .ear/META-INF --> re-deploy --> clears up temps

      ==> failure:

      Caused by: com.sun.faces.config.ConfigurationException:
      Source Document: jndi:/localhost/seam-booking/WEB-INF/faces-config.xml
      Cause: Unable to find class 'com.sun.facelets.FaceletViewHandler'
      at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:248)
      at com.sun.faces.config.processor.ApplicationConfigProcessor.setViewHandler(ApplicationConfigProcessor.java:382)
      at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:231)
      at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
      at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:119)
      at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
      at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
      at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:203)

      Looks like the temps are properly restored,
      but the existing ZipEntryHandler/Context is not re-populated / initialized.

              ajustin@redhat.com Ales Justin
              ajustin@redhat.com Ales Justin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: