Hi All,

 

We deployed myfaces nightly build sample application in JBoss 403sp1

 With attribute <attribute name="UseJBossWebLoader">true</attribute> set to true in “jboss-4.0.3SP1\server\default\deploy\jbossweb-tomcat55.sar\META-INF\ jboss-service.xml”

And we got this exception when we try to access these URL’s:

http://localhost:8080/myfaces-example-simple/collapsiblePanel.jsf

http://localhost:8080/myfaces-example-simple/tree2.jsf

http://localhost:8080/myfaces-example-simple/tabbedPane.jsf

 

 

12:08:18,783 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception

java.lang.NoSuchMethodError: org.apache.myfaces.renderkit.html.HtmlRendererUtils.renderHiddenInputField(Ljavax/faces/context/ResponseWriter;Ljava/lang/Object;Ljava/lang/Object;)V

        at org.apache.myfaces.custom.collapsiblepanel.HtmlCollapsiblePanelRenderer.encodeChildren(HtmlCollapsiblePanelRenderer.java:80)

        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319)

        at org.apache.myfaces.custom.collapsiblepanel.HtmlCollapsiblePanel.encodeChildren(HtmlCollapsiblePanel.java:148)

        at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:343)

 

When we set the attribute to false <attribute name="UseJBossWebLoader">false</attribute>

Everything works fine.

 

This is there only when we use nightly build. If we use myfacesall.jar production version it works fine with this parameter set to true.

 

Anyone having any clue what’s happening here. Coz. we are facing same problem in our application and we cannot set this parameter to false in our application, if we do so we face other problems in our application.

 

The details of attribute in jboss-service.xml in tomcat service folder is given below.

 

Please suggest.

 

Best Regards,

________________

Saurabh Raisinghaney

 

 

The parameter details as given in service.xml

 

      <!-- A flag indicating if the JBoss Loader should be used. This loader

           uses a unified class loader as the class loader rather than the tomcat

           specific class loader.

           The default is false to ensure that wars have isolated class loading

           for duplicate jars and jsp files.

      -->

      <attribute name="UseJBossWebLoader">false</attribute>

              <!--Default

                                    attribute name="UseJBossWebLoader">false</attribute-->

      <!-- The list of package prefixes that should not be loaded without

         delegating to the parent class loader before trying the web app

         class loader. The packages listed here are those tha are used by

         the web container implementation and cannot be overriden. The format

         is a comma separated list of the package names. There cannot be any

         whitespace between the package prefixes.

         This setting only applies when UseJBossWebLoader=false.

      -->

      <attribute name="FilteredPackages">javax.servlet,org.apache.commons.logging</attribute>

Reply via email to