Hi guys,

I used spring in a library project with component-scan, then packaged to a jar file and copied into Ear's lib path. It works fine under WebLogic, but deploy failed on both JBoss 5 and GlassFish 3. I know it does not work on JBoss is cause by the new VFS, but why GlassFish failed too?

I saw some guys said select the "add directory entries" when export jar from Eclipse can solve this issue, but I'm not using Eclipse to make a build, however, even I tried in this way, it also failed. Can anyone give me some help about this issue? It happened on both Windows and Linux. Here is the error info on GlassFish, similar to JBoss:

Caused by: java.io.IOException: Cannot open a foreign URL; this.url=jar:file:/home/clay/Program/glassfishv3/glassfish/domains/domain1/applications/Benchmark/lib/benchmark_util.jar!/com/training/util