Issue Details (XML | Word | Printable)

Key: GDS-498
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Franck Wolff
Reporter: Francesco Faraone
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
GraniteDS

Remote Destinations Scanner broken with JBoss 5

Created: 18/Aug/09 01:06 PM   Updated: 24/Oct/09 09:44 PM   Resolved: 24/Oct/09 09:44 PM
Component/s: EJB3 Services
Affects Version/s: 2.0.0_GA
Fix Version/s: 2.1.0_RC1

Environment: JBoss 5.1.0_GA


 Description  « Hide
We have an issue regarding the remote destinations scan mechanism under JBoss5.

When Granite scans for services-config.properties the path returned from the URLClassLoader in JBoss4 is:

${jboss.server.home.dir}/deploy/tmp19383a9.ear-contents/a9.jar!/META-INF/services-config.properties

And in JBoss5 is:

${jboss.server.home.dir}/deploy/a9.ear/a9.jar/META-INF/services-config.properties

As you can see, in the second case when it tries to open the jar to search for classes annotated with @RemoteDestination
fails because the jar is contained in the .ear.

I attach you the stack error:

11:49:42,748 ERROR [ServicesConfig] Could not scan classpath for configuration
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:203)
at java.util.zip.ZipFile.<init>(ZipFile.java:234)
at org.granite.scan.Scanner.handleArchive(Scanner.java:136)
at org.granite.scan.Scanner.scan(Scanner.java:130)
at org.granite.config.flex.ServicesConfig.scanConfig(ServicesConfig.java:70)
at org.granite.config.flex.ServicesConfig.loadConfig(ServicesConfig.java:197)


Regards,

Francesco

William Draï added a comment - 21/Aug/09 03:26 PM
Seems Spring is also broken with the new vfs urls.
The thread http://www.jboss.org/?module=bb&op=viewtopic&t=159481 possibly gives hints on how to fix this.

Franck Wolff added a comment - 11/Sep/09 04:24 PM
Done (with Tide specific extensions).

William Draï added a comment - 24/Sep/09 04:55 PM
C'est pas la même !!