Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.1.3
-
None
-
None
Description
We have discussed this in the maling list. Scannotation adopted by OWB can't handle VFS. As result OWB is useless in JBoss 5.x and higher. I suggest to use Reflections framework (advanced variant of scannotation) - http://code.google.com/p/reflections/ Reflections can handle VFS. OWB could use this workaround at least http://code.google.com/p/reflections/issues/detail?id=76 Unfortunately, but even Reflections has trouble with JBoss' VFS. There is a reported issue http://code.google.com/p/reflections/issues/detail?id=93 But I think we can use this workaround for "content" then http://stackoverflow.com/questions/4899371/why-cant-i-open-a-jboss-vfs-url
By the way, the check
private String isJarUrl(String urlPath)
in AnnotationDB is not correct in my opinion. AFAIK JBoss' JAR URLs don't end with "!/" in common case. They look e.g. as follows: vfszip:/E:/Servers/jboss-5.0.1.GA/server/web/deployers/ejb3.deployer/jboss-ejb3-deployer.jar/ The same is for WARs. I saw in debugger that my WAR file was handled as a single file and not as an archive.
Thanks in advance.
Oleg.