Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lopesfblopes opened this issue Jul 15, 2020 · 0 comments
Open

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

lopesfblopes opened this issue Jul 15, 2020 · 0 comments

Comments

@lopesfblopes
Copy link

lopesfblopes commented Jul 15, 2020

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant