You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by tim tam <tm...@gmail.com> on 2011/04/13 23:33:59 UTC
Linkage error trouble shooting
I moved my javax packages from system package to boot delegation and
am getting this error. what does this mean ? I suspect it has
something to do with versions... but not sure how or why
Caused by: java.lang.LinkageError: loader constraint violation: when
resolving method
"org.apache.sling.scripting.jsp.taglib.DefineObjectsTag.setPageContext(Ljavax/servlet/jsp/PageContext;)V"
the class loader (instance of
org/apache/sling/jcr/classloader/internal/DynamicRepositoryClassLoader)
of the current class,
org/apache/jsp/libs/cq/ui/components/widget/html_jsp, and the class
loader (instance of
org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) for
resolved class,
org/apache/sling/scripting/jsp/taglib/DefineObjectsTag, have different
Class objects for the type javax/servlet/jsp/PageContext used in the
signature
at org.apache.jsp.libs.cq.ui.components.widget.html_jsp._jspService(html_jsp.java:84)
at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
... 128 more
Thx
Tim
Re: Linkage error trouble shooting
Posted by Felix Meschberger <fm...@adobe.com>.
Hi,
Am Mittwoch, den 13.04.2011, 22:33 +0100 schrieb tim tam:
> I moved my javax packages from system package to boot delegation and
> am getting this error. what does this mean ? I suspect it has
> something to do with versions... but not sure how or why
What problem are you trying to solve by changing this ? I suggest you
leave the javax.servlet.jsp.* packages as system packages but ensure
that the version number matches what the servlet container provides if
you really want to share these packages. Actually the version should be
at least 2.1.0 for them to be used in preference to the exports provided
by the JSP Scripting bundle.
Regards
Felix
>
> Caused by: java.lang.LinkageError: loader constraint violation: when
> resolving method
> "org.apache.sling.scripting.jsp.taglib.DefineObjectsTag.setPageContext(Ljavax/servlet/jsp/PageContext;)V"
> the class loader (instance of
> org/apache/sling/jcr/classloader/internal/DynamicRepositoryClassLoader)
> of the current class,
> org/apache/jsp/libs/cq/ui/components/widget/html_jsp, and the class
> loader (instance of
> org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) for
> resolved class,
> org/apache/sling/scripting/jsp/taglib/DefineObjectsTag, have different
> Class objects for the type javax/servlet/jsp/PageContext used in the
> signature
> at org.apache.jsp.libs.cq.ui.components.widget.html_jsp._jspService(html_jsp.java:84)
> at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
> ... 128 more
>
> Thx
> Tim