users@jersey.java.net

Re: [Jersey] Scanning-based deployment issues fixed for WebLogic and JBoss

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 29 Dec 2009 10:11:38 +0100

Hi Mike,

Can you log an issue with a simple test case?

The support for scanning for JBoss "vfs" schema is a little fragile.

Paul.

On Dec 18, 2009, at 8:54 PM, mike_mac wrote:

>
>
> Emm ... I have a problem with multiple WARs inside an EAR,
>
> I have an EAR with two WARs. I have a Jersey annotated class in one
> war, and
> it works perfectly, when the second starts, I get a
> FileNotFoundException
> when component scanning. I don't think it matters but the
> FileNotFoundException happens first (i.e. the war thats loaded
> first). The
> second war thats loaded works ok.
>
> If I deploy the war outside of the EAR, it works perfectly ... any
> ideas ?
>
> (Oh and happy holidays :-) )
>
> java.io.FileNotFoundException:
> C:\dev\jboss\jboss-5.1.0.GA\server\default\deploy\testear.ear
> \testwar-1.0.0.war
> at
> org
> .jboss
> .net.protocol.file.FileURLConnection.connect(FileURLConnection.java:
> 105)
> at
> org
> .jboss
> .net
> .protocol
> .file.FileURLConnection.getInputStream(FileURLConnection.java:112)
> at java.net.URL.openStream(URL.java:1010)
> at
> com
> .sun
> .jersey
> .core.spi.scanning.uri.VfsSchemeScanner.scan(VfsSchemeScanner.java:75)
> at
> com
> .sun
> .jersey
> .core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:
> 135)
> at
> com
> .sun
> .jersey
> .core.spi.scanning.PackageNamesScanner.scan(PackageNamesScanner.java:
> 121)
>
>
>
> gerard davison wrote:
>>
>>
>>
>> On 02/12/2009 13:14, Paul Sandoz wrote:
>>> Great! thanks or testing. Do you want to have the "honor" of marking
>>> the issue as verified?
>>>
>>
>> Done, :-)
>>
>> Gerard
>>
>> --
>> Gerard Davison | Senior Principal Software Engineer | +44 118 924
>> 5095
>> Oracle JDeveloper Web Service, Spring, Weblogic SCA Tooling
>> Development
>> Oracle Corporation UK Ltd is a company incorporated in England&
>> Wales.
>> Company Reg. No. 1782505.
>> Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA.
>>
>> Blog http://kingsfleet.blogspot.com
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>>
>>
>
> --
> View this message in context: http://n2.nabble.com/Scanning-based-deployment-issues-fixed-for-WebLogic-and-JBoss-tp4050169p4188522.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>