Skip to content

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

@lopesfblopes

Description

@lopesfblopes

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions