You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Marcin Waldowski <mw...@sulechow.net> on 2007/09/05 12:06:03 UTC
Class access configuration problem
Hello.
My webapp has jsp page with custom tags. One of a tag uses library
placed in WEB-INF/lib. I like to ask for a small advice: what should I
configure in geronimo-web.xml to avoid exception below?
11:48:35,062 ERROR [log] /PPR/index.jsp
java.lang.IllegalAccessError: tried to access class
org.apache.commons.lang.time.DurationFormatUtils from class
pl.com.max.ppr.servlets.console.StatTag
at pl.com.max.ppr.servlets.console.StatTag.printUptime(StatTag.java:186)
at pl.com.max.ppr.servlets.console.StatTag.doStartTag(StatTag.java:63)
at
org.apache.jsp.index_jsp._jspx_meth_rep_005fstat_005f2(index_jsp.java:383)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:104)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
...
Regards,
Marcin
Re: Class access configuration problem
Posted by Marcin Waldowski <mw...@sulechow.net>.
Hello Apache community.
The solution is adding
<hidden-classes>
<filter>org.apache.commons.lang.</filter>
</hidden-classes>
to geronimo-web.xml.
Always look carefully what is in hidden in /repository. In this case
that was conflict with
\repository\commons-lang\commons-lang\2.0\commons-lang-2.0.jar.
HTH for someone else.
Marcin
Marcin Waldowski wrote:
> Hello.
>
> My webapp has jsp page with custom tags. One of a tag uses library
> placed in WEB-INF/lib. I like to ask for a small advice: what should I
> configure in geronimo-web.xml to avoid exception below?
> 11:48:35,062 ERROR [log] /PPR/index.jsp
> java.lang.IllegalAccessError: tried to access class
> org.apache.commons.lang.time.DurationFormatUtils from class
> pl.com.max.ppr.servlets.console.StatTag
> at
> pl.com.max.ppr.servlets.console.StatTag.printUptime(StatTag.java:186)
> at pl.com.max.ppr.servlets.console.StatTag.doStartTag(StatTag.java:63)
> at
> org.apache.jsp.index_jsp._jspx_meth_rep_005fstat_005f2(index_jsp.java:383)
>
> at org.apache.jsp.index_jsp._jspService(index_jsp.java:104)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
>
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> ...
>
> Regards,
> Marcin
>
>