Ok ... after playing around with this I figured out why one works and the
other doesn't
Deploying on JBOSS 5.1
Having a jersey class in a jar, contained in the lib of a war, that is in an
ear => working
Having a jersey class thats in a classes dir of a war, that is in an ear =>
not working (file not found exception)
Having a jersey class thats in a classes dir of a war => working
I'll open an issue with a maven built example tomorrow if you like ... right
now gotta go home ...
Paul Sandoz wrote:
>
> 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
>>
>
>
> ---------------------------------------------------------------------
> 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-tp4050169p4251735.html
Sent from the Jersey mailing list archive at Nabble.com.