You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Saurabh Rasinghaney <sa...@Wisdominfotech.com> on 2006/01/30 19:39:05 UTC
MyFaces nightly build and JBoss UseJBossWebLoader issue
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.renderHiddenInputFie
ld(Ljavax/faces/context/ResponseWriter;Ljava/lang/Object;Ljava/lang/Obje
ct;)V
at
org.apache.myfaces.custom.collapsiblepanel.HtmlCollapsiblePanelRenderer.
encodeChildren(HtmlCollapsiblePanelRenderer.java:80)
at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.jav
a:319)
at
org.apache.myfaces.custom.collapsiblepanel.HtmlCollapsiblePanel.encodeCh
ildren(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</attrib
ute>
Re: MyFaces nightly build and JBoss UseJBossWebLoader issue
Posted by Werner Punz <we...@gmx.at>.
Marco Mistroni schrieb:
> Hello,
> might not be same issue, but i found out that somehow, with jboss4,
> fi you have deployed 2 wars
> that contains different versions of same myfaces/jsf libraries, jboss
> gets confused and may load
> the wrong one...
>
Class loading hierarchy probably, you have set jboss to load the classes
bottom up not top down-
Re: MyFaces nightly build and JBoss UseJBossWebLoader issue
Posted by Marco Mistroni <mm...@gmail.com>.
Hello,
might not be same issue, but i found out that somehow, with jboss4, fi
you have deployed 2 wars
that contains different versions of same myfaces/jsf libraries, jboss gets
confused and may load
the wrong one...
HTH
marco
On 1/31/06, Werner Punz <we...@gmx.at> wrote:
>
> JBoss comes with its own myfaces jars, remove them out of the way
> and it should work, alternatively revert the class loader order.
>
>
>
> Saurabh Rasinghaney schrieb:
> > 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>
> >
>
>
Re: MyFaces nightly build and JBoss UseJBossWebLoader issue
Posted by Werner Punz <we...@gmx.at>.
JBoss comes with its own myfaces jars, remove them out of the way
and it should work, alternatively revert the class loader order.
Saurabh Rasinghaney schrieb:
> 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>
>