core icon indicating copy to clipboard operation
core copied to clipboard

[Rest Annotations] PackageScanner URI scheme is not "file"

Open lopesfblopes opened this issue 5 years ago • 0 comments

Using PackageScanner.scanPackage("com.restservice"); deploying in wildfly I got the error:

Caused by: java.lang.IllegalArgumentException: URI scheme is not "file" at java.io.File.(File.java:421) at org.wicketstuff.rest.utils.mounting.PackageScanner.getClasses(PackageScanner.java:159) at org.wicketstuff.rest.utils.mounting.PackageScanner.scanPackage(PackageScanner.java:71) ... 94 more

PackageScanner.java:159 dirs.add(new File(resource.toURI()));

"com.restservice" in wildfly is resolving to "vfs:/C:/Alocpro/wildfly-servlet-9.0.2.Final/standalone/deployments/**"

Probably should be: new File(resource.getFile())

<dependency> <groupId>org.wicketstuff</groupId> <artifactId>wicketstuff-restannotations</artifactId> <version>8.8.0</version> </dependency>

lopesfblopes avatar Jul 15 '20 00:07 lopesfblopes