tjg184 / urlrewritefilter

Automatically exported from code.google.com/p/urlrewritefilter
Other
0 stars 0 forks source link

java.lang.LinkageError #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Apache Tomcat 6.0.18
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)

2. filter in web.xml
    <filter>
        <filter-name>UrlRewriteFilter</filter-name>

<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>UrlRewriteFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
3. with / without urlrewrite.xml

What is the expected output? What do you see instead?

filter is not deploying (works grate in Jetty 6.1.9)

22 Sep, 2009 4:16:49 PM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
22 Sep, 2009 4:16:49 PM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
22 Sep, 2009 4:16:49 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'HTTPMonitorFilter'
22 Sep, 2009 4:16:49 PM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'UrlRewriteFilter'
22 Sep, 2009 4:16:49 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter UrlRewriteFilter
java.lang.LinkageError: loader constraint violation in interface itable
initialization: when resolving method
"org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(Ljavax/servlet/Serv
letRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V"
the class loader (instance of org/apache/catalina/loader/WebappClassLoader)
of the current class, org/tuckey/web/filters/urlrewrite/UrlRewriteFilter,
and the class loader (instance of
org/apache/catalina/loader/StandardClassLoader) for interface
javax/servlet/Filter have different Class objects for the type
javax/servlet/ServletRequest used in the signature
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
        at java.lang.Class.getConstructor0(Class.java:2699)
        at java.lang.Class.newInstance0(Class.java:326)
        at java.lang.Class.newInstance(Class.java:308)
        at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConf
ig.java:255)
        at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterC
onfig.java:397)
        at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.
java:108)
        at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
        at
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
        at
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:377)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.jav
a:196)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
33)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
91)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.jav
a:525)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pr
otocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)
22 Sep, 2009 4:16:49 PM org.apache.catalina.core.StandardContext filterStop
FINE: Stopping filters
22 Sep, 2009 4:16:49 PM org.apache.catalina.core.StandardContext filterStop
FINE:  Stopping filter 'HTTPMonitorFilter'

What version of the product are you using? On what operating system?
Ubuntu Jaunty
Url rewrite 3.2.0 
Java 1.6.0_13

Please provide any additional information below.

Original issue reported on code.google.com by sridher....@gmail.com on 22 Sep 2009 at 11:10

GoogleCodeExporter commented 9 years ago
Is this still an issue, sridher? If yes, can you post more details (your 
servlet-api
version etc)?

Original comment by avl...@gmail.com on 6 Jan 2010 at 7:22

GoogleCodeExporter commented 9 years ago
Details still missing... Marking this wont-fix for now. If this is reported 
again,
I'll reopen the ticket.

Original comment by avl...@gmail.com on 13 Feb 2010 at 8:49