Skip to content

Java-ee: server-side annotated class should be separated from client-side #252

Description

@Raffine64

Problem

I would like to create a RESTEasy client that uses the belgif-rest-problem-java-ee library, and then reuse that library in other existing web service projects where belgif-rest-problem-java-ee is not currently used.

The issue is that the library does not contain only client-side classes — it also includes server-side annotated classes, which are automatically activated and cause conflicts.

Suggested fix

Split the library into two separate JARs, each containing the appropriate classes:

belgif-rest-problem-java-ee-client: contains only client-side classes
belgif-rest-problem-java-ee-server: contains only server-side classes

Environment

WildFly: 26.1.3.Final
Resteasy: 4.7.7.Final
Library: belgif-rest-problem-java-ee (latest release as of now)
Java: 17

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