users@jersey.java.net

RE: [Jersey] com.sun.jersey.core.spi.scanning.ScannerException: T he URI scheme bundle of the URI bundle://88.0:1/org/apache/camel/web is n ot supported. Package scanning deployment is not supported for such URIs.

From: cmoulliard <cmoulliard_at_xpectis.com>
Date: Tue, 12 Jan 2010 00:42:40 -0800 (PST)

Hi Paul,

 

I have created a PAX-EXAM unit test to show you the error that we have.

 

https://jersey.dev.java.net/issues/show_bug.cgi?id=457

 

I hope that this unit test will help you to address this problem.

 

Regards,

Charles Moulliard
Senior Enterprise Architect / Project Delivery Manager

Xpectis
12, route d'Esch
L-1470 Luxembourg

Phone +352 25 10 70 470
Mobile +352 621 45 36 22
Fax +352 25 10 70 295

e-mail cmoulliard_at_xpectis.com
web site www.xpectis.com

  _____

From: Paul Sandoz [via Jersey]
[mailto:ml-node+4272281-1626489850_at_n2.nabble.com]
Sent: vendredi 8 janvier 2010 14:10
To: cmoulliard
Subject: Re: [Jersey] com.sun.jersey.core.spi.scanning.ScannerException: The
URI scheme bundle of the URI bundle://88.0:1/org/apache/camel/web is not
supported. Package scanning deployment is not supported for such URIs.

 

Hi Charles,

Jersey does not currently work properly in an OSGi container.

Jakub is working on this, in a branch:

   https://jersey.dev.java.net/svn/jersey/branches/jersey-servicemix
<https://jersey.dev.java.net/svn/jersey/branches/jersey-servicemix>

We need some help verify and testing this. If you have time would you
like to check out and build the branch and use the artifacts generated
from that?

Note that the class scanning to detect root resource and provider
classes is still an open issue with OSGi so you will need to
explicitly register those classes.

Paul.

On Jan 8, 2010, at 1:57 PM, cmoulliard wrote:


>
> When deploying Jersey project 1.1.5 in OSGI server running HTTP
> SErvice and
> jeety, I have the following error :
>
> 13:50:55,828 | INFO | l Console Thread |
> WebApplicationImpl |
> l.application.WebApplicationImpl 602 | Initiating Jersey application,
> version 'Jersey: 1.1.5-ea-SNAPSHOT 01/07/2010 02:57 PM'
> 13:50:55,859 | INFO | l Console Thread |
> PackagesResourceConfig |
> .api.core.PackagesResourceConfig 107 | Scanning for root resource and
> provider classes in the packages:
> org.apache.camel.web
> 13:50:55,875 | ERROR | l Console Thread |
> ProviderFactory |
> re.spi.component.ProviderFactory 190 | The provider class, class
> org.apache.camel.web.util.CamelResourceConfig, could not be
> instantiated.
> Processing will continue but the class will not be utilized
> com.sun.jersey.core.spi.scanning.ScannerException: The URI scheme
> bundle of
> the URI bundle://88.0:1/org/apache/camel/web is not supported. Package
> scanning deployment is not supported for such URIs.
> Try using a different deployment mechanism such as explicitly
> declaring root
> resource and provider classes using an extension of
> javax.ws.rs.core.Application
> at
> com
> .sun
> .jersey
> .core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:
> 137)
> at
> com
> .sun
> .jersey
> .core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:
> 121)
> at
> com
> .sun
> .jersey
> .api.core.ScanningResourceConfig.init(ScanningResourceConfig.java:69)
> at
> com
> .sun
> .jersey
> .api.core.PackagesResourceConfig.init(PackagesResourceConfig.java:110)
> at
> com
> .sun
> .jersey
> .api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:
> 76)
> at
> com
> .sun
> .jersey
> .api.core.PackagesResourceConfig.<init>(PackagesResourceConfig.java:
> 87)
> at
> org
> .apache
> .camel.web.util.CamelResourceConfig.<init>(CamelResourceConfig.java:
> 37)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at
> sun
> .reflect
> .NativeConstructorAccessorImpl
> .newInstance(NativeConstructorAccessorImpl.java:39)
> at
> sun
> .reflect
> .DelegatingConstructorAccessorImpl
> .newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at java.lang.Class.newInstance0(Class.java:355)
> at java.lang.Class.newInstance(Class.java:308)
>
> Any idea How to avoid this ?
>
> Regards,
>
> Charles
> --
> View this message in context:
http://n2.nabble.com/com-sun-jersey-core-spi-scanning-ScannerException-The-U
RI-scheme-bundle-of-the-URI-bundle-88-0-1-org-tp4272221p4272221.html
<http://n2.nabble.com/com-sun-jersey-core-spi-scanning-ScannerException-The-
URI-scheme-bundle-of-the-URI-bundle-88-0-1-org-tp4272221p4272221.html>
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4272281&i=0>
> For additional commands, e-mail: [hidden email]
<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4272281&i=1>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4272281&i=2>
For additional commands, e-mail: [hidden email]
<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=4272281&i=3>




  _____

View message @
http://n2.nabble.com/com-sun-jersey-core-spi-scanning-ScannerException-The-U
RI-scheme-bundle-of-the-URI-bundle-88-0-1-org-tp4272221p4272281.html
<http://n2.nabble.com/com-sun-jersey-core-spi-scanning-ScannerException-The-
URI-scheme-bundle-of-the-URI-bundle-88-0-1-org-tp4272221p4272281.html>
To unsubscribe from com.sun.jersey.core.spi.scanning.ScannerException: The
URI scheme bundle of the URI bundle://88.0:1/org/apache/camel/web is not
supported. Package scanning deployment is not supported for such URIs.,
click
< (link removed)
jdGlzLmNvbXw0MjcyMjIxfDYyNTk3NTMzMQ==> here.

 


**********************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept for the presence of computer viruses.
XPECTIS - Streamlined Solutions & Services S.A.
**********************************************************************


-- 
View this message in context: http://n2.nabble.com/com-sun-jersey-core-spi-scanning-ScannerException-The-URI-scheme-bundle-of-the-URI-bundle-88-0-1-org-tp4272221p4290385.html
Sent from the Jersey mailing list archive at Nabble.com.