views:

216

answers:

0

I have installed JSF 2 support on Weblogic 10.3.3 version using these instructions:

When I run a sample application which basically calls a bean action like

#{someBean.someMethod}

and that bean is declared SomeBean.java with annotation @ManagedBean and @SessionScoped

(I am sure its not some capitalization error - I am aware the SomeBean.java can be used as someBean (with lowercase 's') in the xhtml page when I simply use @ManagedBean annotation)

AT runtime I get the error

javax.el.PropertyNotFoundException:abc.xhtml
@25,55 action="#{someBean.someMethod}": Target Unreachable, identifier 'someBean' resolved to null

I can run this sample webapp without any problems (using annotations) on tomcat 6.0 web server.

I have packaged the following jars in the WEB-INF/lib folder to resolve compile-time dependencies.

  • jsf-api.jar
  • jsf-impl.jar
  • jstl-api-1.2.jar
  • jstl-impl-1.2.jar

PLEASE NOTE: This sample webapp works fine on weblogic 10.3.3 - if I remove those annotations and declare the managed beans using traditional JSF 1.2.x way in faces-config.xml - and only fails when I bring back the annotations in the managed bean code (and remove the xml declaration from faces-config.xml)

which makes me believe that the annotations are not working.