Jetty
  1. Jetty
  2. JETTY-420

jetty 6.1 & jdk 6: Linkage error

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6.1.16
    • Fix Version/s: None
    • Component/s: Maven, Servlet
    • Labels:
      None
    • Environment:
      Linux, 32-bit (Ubuntu 7.04)
    • Number of attachments :
      1

      Description

      I'm using the maven-jetty-plugin while developing a web service client (using JAX-WS/JAXB). Up till now I've been using jdk 5, but decided to try using it on jdk 6. What happens now is that as soon as JAX-WS attempts to access the WS I get the following exception:

      java.lang.LinkageError: loader constraint violation: when resolving overridden method "com.sun.xml.ws.message.jaxb.AttachmentMarshallerImpl.addMtomAttachment(Ljavax/activation/DataHandler;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;" the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) of the current class, com/sun/xml/ws/message/jaxb/AttachmentMarshallerImpl, and its superclass loader (instance of <bootloader>), have different Class objects for the type javax/activation/DataHandler used in the signature
      at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:292)
      at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:128)
      at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:94)
      at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:251)
      at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:130)
      at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:74)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
      at com.sun.xml.ws.client.Stub.process(Stub.java:235)
      at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:120)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:230)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
      at $Proxy51.getProbeNames(Unknown Source)
      at com.exiqon.flexselect.client.service.FlexDesignServiceImpl.processProbeNamesList(FlexDesignServiceImpl.java:59)
      at com.exiqon.flexselect.client.service.FlexDesignServiceImpl.<init>(FlexDesignServiceImpl.java:42)
      at com.exiqon.flexselect.client.service.FlexDesignServiceImpl.<clinit>(FlexDesignServiceImpl.java:30)
      at com.exiqon.flexselect.client.wicket.SelectionPage.<init>(SelectionPage.java:37)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at java.lang.Class.newInstance0(Class.java:355)
      at java.lang.Class.newInstance(Class.java:308)
      at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58)
      at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:256)
      at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:277)
      at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:205)
      at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:90)
      at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1031)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:257)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:127)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      at org.mortbay.jetty.Server.handle(Server.java:313)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:389)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

      Any help would be greatly appreciated.

      1. mvn.out
        65 kB
        Guūmundur Bjarni ”lafsson

        Activity

        Jan Bartel made changes -
        Field Original Value New Value
        Assignee Jan Bartel [ janb ]
        Guūmundur Bjarni ”lafsson made changes -
        Attachment mvn.out [ 29183 ]
        Greg Wilkins made changes -
        Fix Version/s 7.0.0pre3 [ 14417 ]
        Fix Version/s 6.1.12 [ 14380 ]
        Jesse McConnell made changes -
        Fix Version/s 7.0.0pre3 [ 14417 ]
        Fix Version/s 7.0.0pre4 [ 14494 ]
        Jesse McConnell made changes -
        Fix Version/s 7.0.0.pre6 [ 14687 ]
        Fix Version/s 7.0.0pre4 [ 14494 ]
        Greg Wilkins made changes -
        Fix Version/s 6.1.13 [ 14688 ]
        Fix Version/s 6.1.12 [ 14380 ]
        Greg Wilkins made changes -
        Fix Version/s 6.1.14 [ 14688 ]
        Fix Version/s 6.1.15.pre0 [ 14730 ]
        Jesse McConnell made changes -
        Fix Version/s 6.1.15.rc2 [ 14935 ]
        Fix Version/s 6.1.15.pre0 [ 14730 ]
        Jesse McConnell made changes -
        Fix Version/s 6.1.15.rc3 [ 14936 ]
        Fix Version/s 6.1.15.rc2 [ 14935 ]
        Jesse McConnell made changes -
        Fix Version/s 6.1.15 [ 14946 ]
        Fix Version/s 6.1.15.rc3 [ 14936 ]
        Jesse McConnell made changes -
        Fix Version/s 6.1.15 [ 14946 ]
        Fix Version/s 6.1.16 [ 14974 ]
        Fix Version/s 7.0.0.pre6 [ 14687 ]
        Jan Bartel made changes -
        Fix Version/s 4.x [ 13656 ]
        Fix Version/s 6.1.16 [ 14974 ]
        Jan Bartel made changes -
        Affects Version/s 6.1.16 [ 14974 ]
        Jan Bartel made changes -
        Fix Version/s 6.1.17.rc1 [ 15220 ]
        Jan Bartel made changes -
        Fix Version/s 4.x [ 13656 ]
        Fix Version/s 6.1.17.rc1 [ 15220 ]
        Jan Bartel made changes -
        Resolution Cannot Reproduce [ 5 ]
        Status Open [ 1 ] Closed [ 6 ]

          People

          • Assignee:
            Jan Bartel
            Reporter:
            Guūmundur Bjarni ”lafsson
          • Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: