1 Reply Latest reply on Oct 27, 2011 12:03 AM by Steve Button-Oracle

    weblogic and JSF 2.0 ?

      Hi We have Weblogic 10.3.5 even though we are extending our domain with jdeveloper 11.1.2 runtime but we still are unable to find the jsf 2.0 being deployed. I deployed the jsf-2.0 libraries after uninstalling the jsf-1.2 , jsf#1.2@

      After this managed server for adf doesn't come up. and following error is thrown :

      Default (self-tuning)'> <<WLS Kernel>> <> <2297f9d2c9a41f96:28746190:132fa606cc9:-8000-00000000000023cc> <1318467739123> <BEA-101162> <User defined listener com.sun.faces.config.ConfigureListener failed: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sun/facelets/tag/TagDecorator.
      java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sun/facelets/tag/TagDecorator
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:290)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
      at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1874)

      Followed by

      Caused By: java.lang.NoClassDefFoundError: com/sun/facelets/tag/TagDecorator
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
      at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
      at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
      at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)

      Without JSF 2.0, as expected the deployment fails complaining :

      Caused By: weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext@352230844[app:HLKiosk_V1 module:HLKiosk path:/HLKiosk spec-version:2.5]", defined in weblogic.xml [Extension-Name: jsf, Specification-Version: 2, exact-match: false]

      Are there any additional steps in the process that we need to take care of ?
      I learnt that jsf2.0 is supported with weblogic 10.3.5 (11g latest release).

      Edited by: user1015897 on Oct 13, 2011 10:25 AM
        • 1. Re: weblogic and JSF 2.0 ?
          Steve Button-Oracle
          To use JSF 2.0, all you need to do is deploy the MW_HOME/wlserver/common/deployable-libraries/jsf-2.0.war as an application library, then reference it in the relevant weblogic descriptor. It looks like you have done both those two steps.

          I wonder if the ADF domain extension is not having some effect here -- IIRC an ADF domain is a pretty customized environment which loads libraries directly from the CLASSPATH, in which case, perhaps there is a conflict arising from that in terms of classloader visibility.

          Can you try your app on a standard WLS domain, or are you specifically needing to use an ADF domain?