1 2 Previous Next 19 Replies Latest reply on Mar 4, 2013 8:20 AM by shaikhdahood

    Property Editor not registered with the PropertyEditorManager

    shaikhdahood

      Hi Friends,

       

      I am trying to deploy one of my application that is developed using JSF framework. While running the application on JBoss AS 7.1 server I get the below error.

       

       

      Error Message:   Unable to convert string "#{myController.bannerKeys}" to class "javax.el.ValueExpression" for attribute "value": Property Editor not registered with the PropertyEditorManager

       

       

      And the same application runs fine on other application server's like Weblogic.

      Can anyone please tell me where I am going wrong ?

        • 1. Re: Property Editor not registered with the PropertyEditorManager
          nickarls

          Hard to say, show a jar -tf of the war and list the libs (make sure you don't include extra jsf/el api/impls)

          • 2. Re: Property Editor not registered with the PropertyEditorManager
            shaikhdahood

            Hi Nicklas, Below is the complete error log;


            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407) [jbossweb-7.0.10.Final.jar:]

            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

            at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:364) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

            at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:154) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

            at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:194) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

            at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

            at com.mycompany.MYAPP.jsf.misc.MYAPPViewHandler.renderView(MYAPPViewHandler.java:161) [classes:]

            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

            at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.0.0.Final.jar:2.0.0.Final]

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.10.Final.jar:]

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.10.Final.jar:]

            at com.mycompany.MYAPP.security.SecurityFilter.doFilter(SecurityFilter.java:163) [classes:]

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.10.Final.jar:]

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.10.Final.jar:]

            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.10.Final.jar:]

            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.10.Final.jar:]

            at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154) [jboss-as-web-7.1.0.Final.jar:7.1.0.Final]

            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.10.Final.jar:]

            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.10.Final.jar:]

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.10.Final.jar:]

            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.10.Final.jar:]

            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.10.Final.jar:]

            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.10.Final.jar:]

            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.10.Final.jar:]

            at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_14]

             

             

            06:33:03,972 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) Error Message = Unable to convert string "#{{myController.bannerKeys}" to class "javax.el.ValueExpression" for attribute "value": Property Editor not registered with the PropertyEditorManager

             

            I am trying to depploy an EAR file that has a web module which already has jsf-Impl.jar and jsf-api.jar also in my build path i added the Jboss runtime library for the application,

            is this causing the issue if you see the log, that shows the jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT ?

            • 3. Re: Property Editor not registered with the PropertyEditorManager
              nickarls

              You should avoid bundling any jars with your application that can already be found on the AS (e.g. JSF libs)

              • 4. Re: Property Editor not registered with the PropertyEditorManager
                shaikhdahood

                Can you please tell me the exact reason for the error?

                Is it due to the two different versions of JSF jars in my application that are causing the issue ?

                Sorry , but i am not getting the issue resolved...

                • 5. Re: Property Editor not registered with the PropertyEditorManager
                  nickarls

                  No I can't.

                   

                  But if you show what jar files you include in your application then perhaps I (or someone else) can have a better chance at guessing the cause.

                  • 6. Re: Property Editor not registered with the PropertyEditorManager
                    shaikhdahood

                    ok

                    myappweb has following jars in it..

                     

                    lib-->

                         commons-beanutils.jar

                         commons-collections.jar

                         commons-digester.jar

                         commons-logging.jar

                         jsf-api.jar

                         jsf-impl.jar

                         jstl_el.jar

                         jstl.jar

                         standard.jar

                    and added the server runtime library of Jboss AS 7.

                    • 7. Re: Property Editor not registered with the PropertyEditorManager
                      nickarls

                      Try taking out all j*.jar files from the lib

                       

                      What is the "server runtime library"? In the IDE?

                      • 8. Re: Property Editor not registered with the PropertyEditorManager
                        shaikhdahood

                        removing the j*.jar files from the lib application  error out the Classes as it uses those j*.jar files.

                        and yes server runtime library is in the IDE.

                        • 9. Re: Property Editor not registered with the PropertyEditorManager
                          nickarls

                          You can have them as compile-time dependencies but surely you don't need in them in the final WAR, right?

                          • 10. Re: Property Editor not registered with the PropertyEditorManager
                            shaikhdahood

                            Now what i did is removed the "server runtime library" from my build path of the application. Now I guess its fine with having the j*.jar files in lib folder right?

                             

                            But even doing that i face the same issue...:-(

                            • 11. Re: Property Editor not registered with the PropertyEditorManager
                              nickarls

                              No. Take. Them. Out

                               

                              The only thing that counts from the point of the AS is what is left in the WAR lib when it is deployed.

                              • 12. Re: Property Editor not registered with the PropertyEditorManager
                                shaikhdahood

                                Ok Nick I now removed the jars from my lib folder of the web application, and the application errors out for the Classes used from the j*.jars, where should i put the jars and make them as compile time dependencies?

                                • 13. Re: Property Editor not registered with the PropertyEditorManager
                                  nickarls

                                  Depends on how you are building the war. Maven? Eclipse?

                                  • 14. Re: Property Editor not registered with the PropertyEditorManager
                                    shaikhdahood

                                    Eclipse juno

                                    1 2 Previous Next