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

CDI Bean created (but fails) when interface has @Path annotation #3992

Closed
jGauravGupta opened this issue Nov 19, 2018 · 0 comments
Closed

CDI Bean created (but fails) when interface has @Path annotation #3992

jGauravGupta opened this issue Nov 19, 2018 · 0 comments
Labels
Milestone

Comments

@jGauravGupta
Copy link
Member

jGauravGupta commented Nov 19, 2018

When an interface has the @Path annotation, deployment fails when there is a beans.xml specified with bean-discovery-mode="annotated". The exception is

org.jboss.weld.exceptions.DefinitionException: WELD-001508: Cannot create an InjectionTarget from [EnhancedAnnotatedTypeImpl] public abstract interface  class be.rubus.rest_client.SomeService as it is an interface
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:5747)

Without the beans.xml, the deployment is OK.

@jansupol jansupol added the 2.29 label Feb 18, 2019
@senivam senivam added this to the 2.29 milestone Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants