users@glassfish.java.net

Re: ASURLClassLoader exception while deploying ear

From: Jürgen Link <juergen.link_at_freenet.de>
Date: Tue, 22 Dec 2009 14:58:53 +0100

Sahoo,
I boiled down the issue to a test case and submitted it as #11353
(https://glassfish.dev.java.net/issues/show_bug.cgi?id=11353)
The attachment contains
- a tgz with three maven projects (resulting in an ear which fails to be
deployed)
- the ready-to-deploy ear

For further questions, please contact me directly via e-mail.

Regards
Jürgen

Sahoo schrieb:
> Jürgen,
>
> I don't think we can get to the bottom of this issue without a test
> case. Would you mind filing a bug with a reproducible test case in
> classloader subcat in GlassFish issue tracker?
>
> Thanks,
> Sahoo
>
> Jürgen Link wrote:
>> Hi all,
>> I'm facing a strange problem when deploying an enterprise application
>> into glassfish v3.
>> Tha application comprises of two web apps (contained as war), both using
>> hibernate and spring.
>> On application start, the following exception is thrown:
>>
>> Caused by: java.io.IOException: Cannot open a foreign URL;
>> this.url=jar:file:/opt/glassfishv3/glassfish/domains/yoochoose-pmr/applications/pmr-app-0.9-SNAPSHOT/lib/recom
>>
>> mender-core-api-0.0.1-SNAPSHOT.jar!/com/yoochoose/core/api/;
>> foreign.url=jar:file:/opt/glassfishv3/glassfish/domains/yoochoose-pmr/applications/pmr-app-0.9-SNAPSHOT/lib/
>>
>> rc-core-api-0.0.1-SNAPSHOT.jar!/com/yoochoose/core/api/objects/AbstractProfileType.class
>>
>> at
>> com.sun.enterprise.loader.ASURLClassLoader$InternalURLStreamHandler.openConnection(ASURLClassLoader.java:1281)
>>
>> at java.net.URL.openConnection(URL.java:945)
>> at
>> org.springframework.core.io.UrlResource.getInputStream(UrlResource.java:121)
>>
>> at
>> org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:74)
>>
>> at
>> org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:68)
>>
>> at
>> org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean.scanPackages(AnnotationSessionFactoryBean.java:191)
>>
>> ... 120 more
>>
>> The ASURLClassLoader is running into trouble (from source code comment,
>> this is _very_ unexpected) and the application cannot start due to
>> subsequent hibernate mapping errors.
>>
>> Any help appreciated!
>>
>> Regards
>> Jürgen
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>