Can't run examples as a WAR with Jetty 6.1.1
--------------------------------------------

                 Key: WICKET-424
                 URL: https://issues.apache.org/jira/browse/WICKET-424
             Project: Wicket
          Issue Type: Bug
          Components: wicket-examples
    Affects Versions: 1.3
            Reporter: Jean-Baptiste Quenot


{noformat}
java.lang.LinkageError: Class javax/management/MBeanServer violates loader 
constraints
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at 
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:354)
        at 
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:325)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at wicket.jmx.Initializer.init(Initializer.java:152)
        at wicket.Application.callInitializers(Application.java:781)
        at wicket.Application.initializeComponents(Application.java:665)
        at wicket.protocol.http.WicketFilter.init(WicketFilter.java:398)
        ...
{noformat}

If I unpack the war and remove
wicket-examples/WEB-INF/lib/mx4j-3.0.1.jar the application
launches alright.

This error happens because Jetty already provides:

* jetty/lib/management/mx4j-3.0.1.jar
* jetty/lib/management/mx4j-tools-3.0.1.jar

So we should maybe avoid to package those jars in WEB-INF/lib when building the 
wicket-examples WAR

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to