Announcement Announcement Module
Collapse
No announcement yet.
component-scan failed in both JBoss and GlassFish after package to jar Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • component-scan failed in both JBoss and GlassFish after package to jar

    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
Working...
X