You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by dfr <de...@yandex.ru> on 2012/08/24 09:58:34 UTC

Runnning jersey under openEJB: No provider available

Hello, trying to deploy my app to "TomEE Web Profile 1.0.0" and getting
following error:

org.apache.openejb.OpenEJBException: No provider available for resource-ref
'null' of type 'com.sun.jersey.spi.template.TemplateContext' for
'localhost/neopod_admin.Comp'.
	at
org.apache.openejb.config.AutoConfig.autoCreateResource(AutoConfig.java:1665)
	at org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1658)

I have following web.xml entry:

    <servlet>
        <servlet-name>Jersey Web Application</servlet-name>
       
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
        <init-param>
            <param-name>com.sun.jersey.config.property.packages</param-name>
            <param-value>com.neopod.rest</param-value>
        </init-param>
        <init-param>
           
<param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>Jersey Web Application</servlet-name>
        <url-pattern>/api/*</url-pattern>
    </servlet-mapping>
..

Any suggestions ?




--
View this message in context: http://openejb.979440.n4.nabble.com/Runnning-jersey-under-openEJB-No-provider-available-tp4657058.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Runnning jersey under openEJB: No provider available

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

it is fixed on trunk

for 1.0.0 you should exclude the jarsey jars from scanning (upgrading to
the snapshot is easier IMO)

*Romain Manni-Bucau*
*Twitter: @rmannibucau*
*Blog: http://rmannibucau.wordpress.com*