1 Reply Latest reply on Aug 2, 2009 4:36 AM by Ales Justin

    Injecting spring bean in jsf controller,  ibm jre 1.6.0 and

    rashad saif Newbie

      I'm deploying this managed bean with Spring bean injected.
      This web application works fine on Sun-JRE 1.6.6 and Jboss 5.0.1.
      Unable to inject the bean when deploying with IBM-JRE 1.6.0 and Jboss 5.0.1 on same windows OS.
      This is the requirement from the client.
      I would appreciate any help or any lead on this.

      This my jsf managed-bean configration


      <managed-bean>
       <managed-bean-name>exampleController</managed-bean-name>
       <managed-bean-class>app.ExampleController</managed-bean-class>
       <managed-bean-scope>session</managed-bean-scope>
       <managed-property>
       <property-name>exampleDAO</property-name>
       <property-class>app.dao.ExampleDAO</property-class>
       <value>#{exampleDAO}</value>
       </managed-property>
      </managed-bean>


      and this my spring confiration for DAO

      <bean id="exampleDAO" class="app.dao.ExampleJpaDAO"/>


      This is dao interface code

      public interface ExampleDAO extends GenericDAO<ExampleDO, Long> {
      
      }


      This exception from the log:

      ERROR [managedbean] JSF will be unable to create managed bean exampleController when it is requested. The following problems where found:
       - Unable to Introspect managed bean exampleController
      09:42:48,531 WARN [lifecycle] Unable to create managed bean exampleController. The following problems were found:
       - Unable to Introspect managed bean exampleController
      com.sun.faces.mgbean.ManagedBeanCreationException: Unable to create managed bean exampleController. The following problems were found:
       - Unable to Introspect managed bean exampleController
       at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:204)
       at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:86)
       at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
       at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
       at com.sun.faces.el.ChainAwareVariableResolver.resolveVariable(ChainAwareVariableResolver.java:108)
       at org.springframework.web.jsf.DelegatingVariableResolver.resolveOriginal(DelegatingVariableResolver.java:122)
       at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:107)
       at org.springframework.web.jsf.DelegatingVariableResolver.resolveOriginal(DelegatingVariableResolver.java:122)
       at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:107)
       at com.sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolverChainWrapper.java:107)
       at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
       at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
       at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:61)
       at org.apache.el.parser.AstValue.getTarget(AstValue.java:63)
       at org.apache.el.parser.AstValue.invoke(AstValue.java:166)
       at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
       at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
       at javax.faces.component.UICommand.broadcast(UICommand.java:387)
       at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
       at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
       at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
       at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
       at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
       at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
       at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
       at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
       at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
       at org.springframework.security.util.FilterChainProxy$Vi