Paul Sandoz wrote:
>
>
>
> Sorry, some code got snipped, try:
>
> WadlGenerator wadlGenerator =
>
> WadlGeneratorConfigLoader.loadWadlGeneratorsFromConfig(resourceConfig);
> JAXBContext.newInstance(wadlGenerator.getRequiredJaxbContextPath());
>
>
> So maybe you could try:
>
> JAXBContext.newInstance("com.sun.research.ws.wadl");
>
> ?
>
>
Tried that fixed code snippet with result:
WARNING: Could not marshal wadl Application as HTML.
javax.xml.bind.JAXBException: "com.sun.research.ws.wadl" doesnt contain
ObjectFactory.class or jaxb.index
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:128)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:290)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
at
com.nokia.tools.repository.server.communication.webservice.wadl.WadlHtmlResource.getWadl(WadlHtmlResource.java:68)
Tried with that "com.sun.research.ws.wadl" string as well with same result.
--
View this message in context: http://n2.nabble.com/WadlResource-stylesheets-for-Wadl-documents-custom-marshalling-tp2454900p3775226.html
Sent from the Jersey mailing list archive at Nabble.com.