users@jersey.java.net

[Jersey] URI scheme is not "file" jersey / OSGI / War deployment

From: cmoulliard <cmoulliard_at_xpectis.com>
Date: Fri, 8 Jan 2010 04:50:58 -0800 (PST)

Hi,

I have deployed a WAR file containing jersey stuffs in an OSGI Felix server
running HTTP Service.

Unfortunately, when the servlet container starts the project, the foolowing
error is generated :

Caused by: java.lang.RuntimeException: Could not load wadl generators from
wadlGeneratorDescriptions.
        at
com.sun.jersey.api.wadl.config.WadlGeneratorConfig.getWadlGenerator(WadlGeneratorConfig.java:188)
        at
com.sun.jersey.api.wadl.config.WadlGeneratorConfigLoader.loadWadlGeneratorsFromConfig(WadlGeneratorConfigLoader.java:85)
        ... 66 more
Caused by: java.lang.IllegalArgumentException: URI scheme is not "file"
        at java.io.File.<init>(File.java:366)
        at
com.sun.jersey.api.wadl.config.WadlGeneratorLoader.setProperty(WadlGeneratorLoader.java:187)
        at
com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator(WadlGeneratorLoader.java:136)
        at
com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGeneratorDescriptions(WadlGeneratorLoader.java:111)
        at
com.sun.jersey.api.wadl.config.WadlGeneratorConfig.getWadlGenerator(WadlGeneratorConfig.java:186)

REMARK : My project works fine when launched from JETTY

What is the reason and how to avoid this ?

Regards,

Charles
-- 
View this message in context: http://n2.nabble.com/URI-scheme-is-not-file-jersey-OSGI-War-deployment-tp4272194p4272194.html
Sent from the Jersey mailing list archive at Nabble.com.