Hello
I have problem getting WADL:
Command:
curl -X GET '
http://localhost:8080/product/app1/application.wadl'
Server logs:
Feb 12, 2013 3:31:45 PM com.sun.jersey.spi.container.ContainerResponse
logException
SEVERE: Mapped exception to response: 500 (Internal Server Error)
javax.ws.rs.WebApplicationException:
com.sun.jersey.api.MessageException: A message body writer for Java
class com.sun.jersey.server.wadl.ApplicationDescription, and Java type
class com.sun.jersey.server.wadl.ApplicationDescription, and MIME
media type application/vnd.sun.wadl+xml was not found
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:285)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1437)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
...
Command:
curl -X OPTIONS '
http://localhost:8080/product/app1/application.wadl'
Server logs:
Feb 12, 2013 3:30:55 PM
com.sun.jersey.server.impl.wadl.WadlMethodFactory$WadlOptionsMethodDispatcher
dispatch
WARNING: Could not marshal wadl Application.
java.lang.NullPointerException
at com.sun.jersey.server.impl.wadl.WadlMethodFactory$WadlOptionsMethodDispatcher.dispatch(WadlMethodFactory.java:113)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
Any hints?
Thanks in advance
Best regards
--
Ing. Martin Ždila
tel:+421-908-363-848
mailto:martin_at_zdila.sk
http://www.zdila.sk/