javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-1900

Annotation scanning, injection and PostConstruct/PreDestroy problem on weblogic due to refactored AnnotationScanning

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: managed bean
    • Labels:
      None
    • Environment:

      Weblogic server 10.3b

    • Status Whiteboard:
      Hide

      size_large importance_large

      Show
      size_large importance_large

      Description

      With the changes related to http://java.net/jira/browse/JAVASERVERFACES-1835 running on Weblogic server when not installing com.bea.faces.WeblogicInjectionProvider, none of the managed beans configured using @ManagedBean annotations are installed.

      After adding WebligicInjectionprovider copied from shared library for JSF 1.2 - the AnnotationScanning works again since it will use JavaClassScanningAnnotationScanner as com.bea.faces.WeblogicInjectionProvider does not implement AnnotationScanner interface. But now no PostConstruct/PreDestroy annotated methods are called. That I think is a problem of com.bea.faces.WeblogicInjectionProvider - but it's delegating to WebComponentCreator.inject(..) which i did not further investigate.

      Before the change for http://java.net/jira/browse/JAVASERVERFACES-1835, com.sun.faces.vendor.WebContainerInjectionProvider did not implement AnnotationScanner interface and Annotation scanning and invocation of PostConstruct/PreDestroy worked well on Weblogic without installing com.bea.faces.WeblogicInjectionProvider.

      Is there a way Oracle provides a com.bea.faces.WeblogicInjectionProvider to work with JSF 2.1.0 too?
      Or how are we supposed to get that working on Weblogic?

      After I changed WebContainerInjectionProvider (for my custom build) to not implement AnnotationScanner annotation scanning and PostConstruct/PreDestroy worked well again in Weblogic.

        Activity

        Hide
        Manfred Riem added a comment -

        Can you supply a patch?

        Show
        Manfred Riem added a comment - Can you supply a patch?
        Hide
        Manfred Riem added a comment -

        Can you verify if this is still an issue on the latest 2.1 release?

        Show
        Manfred Riem added a comment - Can you verify if this is still an issue on the latest 2.1 release?
        Hide
        Manfred Riem added a comment -

        Lowering priority because of no response

        Show
        Manfred Riem added a comment - Lowering priority because of no response
        Hide
        Manfred Riem added a comment -

        Lowering priority because of no response

        Show
        Manfred Riem added a comment - Lowering priority because of no response
        Hide
        Manfred Riem added a comment -

        Closing because of inactivity

        Show
        Manfred Riem added a comment - Closing because of inactivity

          People

          • Assignee:
            Unassigned
            Reporter:
            Hanspeter Duennenberger
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: