Closed GoogleCodeExporter closed 9 years ago
Hi,
i'm facing the same problem and therefore i decided to create a patch.
Unfortunately release versions are not tagged in svn, so i started from svn
revision r141 which seems to be the last revision for latest stable version
0.9.6. This is a quick and dirty solution as it depends on jboss-vfs.jar, but
it works for me.
Original comment by marcus.l...@googlemail.com
on 24 Apr 2012 at 2:24
Attachments:
thanks for the patched
fixed on 0.9.7-RC1 and trunk. comments?
Original comment by ronm...@gmail.com
on 2 May 2012 at 3:53
Hi, with 0.9.7 - RC1 it works on jetty it fails on Tomcat 7
Reflections ref = new Reflections(new ConfigurationBuilder()
.setUrls(ClasspathHelper.forWebInfClasses(sc)));
Set<Class<? extends RemoteService>> classes =
ref.getSubTypesOf(RemoteService.class);
Error:
2012-05-15 11:20:07 Reflections [ERROR] could not create Vfs.Dir from url.
ignoring the exception and continuing
org.reflections.ReflectionsException: could not create Vfs.Dir from url, no
matching UrlType was found
[jndi:/localhost/GroupWidget-0.0.1/WEB-INF/lib/guice-3.0.jar]
either use fromURL(final URL url, final List<UrlType> urlTypes) or use the
static setDefaultURLTypes(final List<UrlType> urlTypes) or
addDefaultURLTypes(UrlType urlType) with your specialized UrlType.
at org.reflections.vfs.Vfs.fromURL(Vfs.java:109)
at org.reflections.vfs.Vfs.fromURL(Vfs.java:91)
at org.reflections.Reflections.scan(Reflections.java:215)
at org.reflections.Reflections.<init>(Reflections.java:107)
...
Original comment by rsallar
on 15 May 2012 at 9:27
rsallar: it does not fail, it just says it could not handle jndi: protocol.
implement that vfs type or ignore. you probably don't really want to scan that
jar.
I don't get how forWebInfClasses return urls from web-inf/lib...
Original comment by ronm...@gmail.com
on 15 May 2012 at 12:35
fixed 0.9.7
Original comment by ronm...@gmail.com
on 22 May 2012 at 7:47
Hi ronm,
today i stumbled upon this issue again. Sorry that i did not answered your
post, i've missed it somehow. However i did some research and found that the
0.9.7 release supports vfs_jboss7 as where latest release 0.9.8 seems not. Is
this correct and if so why this was removed with latest release?
Original comment by marcus.l...@googlemail.com
on 16 Oct 2012 at 9:30
marcus: check out this wiki for information
http://code.google.com/p/reflections/wiki/JBossIntegration
hope that helps
Original comment by ronm...@gmail.com
on 16 Oct 2012 at 11:10
ronm: thanks for the hint. so now i'm able to update to latest release 0.9.8
here. good job!
Original comment by marcus.l...@googlemail.com
on 16 Oct 2012 at 12:08
Original issue reported on code.google.com by
peter.po...@gmail.com
on 5 Dec 2011 at 10:17