shale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reind (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SHALE-305) Remove dependency on JSP from commonsValidator
Date Sun, 08 Oct 2006 15:58:15 GMT
     [ http://issues.apache.org/struts/browse/SHALE-305?page=all ]

Reind updated SHALE-305:
------------------------

        Summary: Remove dependency on JSP from commonsValidator   (was: Remove commonsValidator
dependency on JSP)
    Description: 
A NoClassDefFoundError is raised when using the commonsValidator component with a non-jsp2.1
container + JSF RI1.2 + Facelets.  This is caused by calls to UIComponentTag.isValueReference()
- deprecated in 1.2 and should only be used by JSP tags.

A similar issue was reported by Ryan Lubke for the MyFaces Tomahawk project:
https://issues.apache.org/jira/browse/TOMAHAWK-589

The attached patch contains the same method contributed by Ryan to Tomahawk. Similar changes
should be made to a few other places in shale-clay and shale-core where the aforementioned
method call is also used where it needn't be.

stacktrace follows:

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/JspIdConsumer
	java.lang.ClassLoader.defineClass1(Native Method)
	java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
	org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	java.lang.ClassLoader.defineClass1(Native Method)
	java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
	org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	org.apache.shale.validator.faces.ValidatorInputRenderer.encodeBegin(ValidatorInputRenderer.java:141)
	javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:810)
	javax.faces.component.UIComponent.encodeAll(UIComponent.java:881)
	javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
	javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
	javax.faces.component.UIComponent.encodeAll(UIComponent.java:883)
	javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
	com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)
	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
	org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


  was:
A NoClassDefFoundError is raised when using the commonsValidator component.  This is caused
by calls to UIComponentTag.isValueReference().

A similar issue was reported by Ryan Lubke for the MyFaces Tomahawk project:
https://issues.apache.org/jira/browse/TOMAHAWK-589

The attached patch contains the same method contributed by Ryan to Tomahawk. Similar changes
should be made throughout shale (to a few places in shale-clay and shale-core).

stacktrace follows:

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/JspIdConsumer
	java.lang.ClassLoader.defineClass1(Native Method)
	java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
	org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	java.lang.ClassLoader.defineClass1(Native Method)
	java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
	org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	org.apache.shale.validator.faces.ValidatorInputRenderer.encodeBegin(ValidatorInputRenderer.java:141)
	javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:810)
	javax.faces.component.UIComponent.encodeAll(UIComponent.java:881)
	javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
	javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
	javax.faces.component.UIComponent.encodeAll(UIComponent.java:883)
	javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
	com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)
	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
	org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)



> Remove dependency on JSP from commonsValidator 
> -----------------------------------------------
>
>                 Key: SHALE-305
>                 URL: http://issues.apache.org/struts/browse/SHALE-305
>             Project: Shale
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.5-SNAPSHOT
>         Environment: Facelets 1.1.11
> JBoss 4.0.4GA (Tomcat 5.5)
> Sun JSF 1.2_01
> Tomahawk 1.1.5-SNAPSHOT
>            Reporter: Reind
>         Attachments: site.patch
>
>
> A NoClassDefFoundError is raised when using the commonsValidator component with a non-jsp2.1
container + JSF RI1.2 + Facelets.  This is caused by calls to UIComponentTag.isValueReference()
- deprecated in 1.2 and should only be used by JSP tags.
> A similar issue was reported by Ryan Lubke for the MyFaces Tomahawk project:
> https://issues.apache.org/jira/browse/TOMAHAWK-589
> The attached patch contains the same method contributed by Ryan to Tomahawk. Similar
changes should be made to a few other places in shale-clay and shale-core where the aforementioned
method call is also used where it needn't be.
> stacktrace follows:
> java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/JspIdConsumer
> 	java.lang.ClassLoader.defineClass1(Native Method)
> 	java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> 	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> 	org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
> 	org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
> 	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
> 	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
> 	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 	java.lang.ClassLoader.defineClass1(Native Method)
> 	java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> 	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> 	org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
> 	org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
> 	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
> 	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
> 	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> 	org.apache.shale.validator.faces.ValidatorInputRenderer.encodeBegin(ValidatorInputRenderer.java:141)
> 	javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:810)
> 	javax.faces.component.UIComponent.encodeAll(UIComponent.java:881)
> 	javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
> 	javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
> 	javax.faces.component.UIComponent.encodeAll(UIComponent.java:883)
> 	javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
> 	com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
> 	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)
> 	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
> 	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
> 	org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
> 	org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:267)
> 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message