users@glassfish.java.net

Re: ASURLClassLoader exception while deploying ear

From: Sahoo <Sahoo_at_Sun.COM>
Date: Tue, 22 Dec 2009 07:01:28 +0530

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
>