users@jersey.java.net

[Jersey] Extended WADL error after upgrading to 1.5

From: Olson, Dan (LNG-CSP) <"Olson,>
Date: Thu, 10 Mar 2011 23:24:04 +0000

Hello:

My project has been working with an extended WADL implementation. Today I upgraded to Jersey 1.5 and am receiving the following exception when requesting application.wadl. The WadlGeneratorConfig matches the samples (remember it worked before the upgrade).

Please help!

HTTP ERROR 500
Problem accessing application.wadl. Reason:
    com.sun.jersey.api.wadl.config.WadlGeneratorConfig$WadlGeneratorConfigDescriptionBuilder.prop(Ljava/lang/String;Ljava/lang/Object;)Lcom/sun/jersey/api/wadl/config/WadlGeneratorConfig$WadlGeneratorConfigDescriptionBuilder;
Caused by:
java.lang.NoSuchMethodError: com.sun.jersey.api.wadl.config.WadlGeneratorConfig$WadlGeneratorConfigDescriptionBuilder.prop(Ljava/lang/String;Ljava/lang/Object;)Lcom/sun/jersey/api/wadl/config/WadlGeneratorConfig$WadlGeneratorConfigDescriptionBuilder;
        at myWadlGeneratorConfig.configure(myWadlGeneratorConfig.java:27)
        at com.sun.jersey.api.wadl.config.WadlGeneratorConfig.getWadlGenerator(WadlGeneratorConfig.java:184)
        at com.sun.jersey.api.wadl.config.WadlGeneratorConfigLoader.loadWadlGeneratorsFromConfig(WadlGeneratorConfigLoader.java:106)
        at com.sun.jersey.server.impl.wadl.WadlFactory.<init>(WadlFactory.java:73)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:664)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:420)
        at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:377)
        at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:242)
        at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:466)
        at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:182)
        at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:281)
        at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:442)
        at javax.servlet.GenericServlet.init(GenericServlet.java:241)
        at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:421)
        at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:316)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:507)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:427)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
        at org.eclipse.jetty.server.Server.handle(Server.java:334)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:992)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:541)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:203)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
        at java.lang.Thread.run(Unknown Source)