[jboss-jira] [JBoss JIRA] (WFLY-12886) WELD-000119: Not generating any bean definitions from..class loading error: Type java.net.http.HttpClient
Matěj Novotný (Jira)
issues at jboss.org
Thu Dec 19 04:30:31 EST 2019
[ https://issues.redhat.com/browse/WFLY-12886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13937840#comment-13937840 ]
Matěj Novotný commented on WFLY-12886:
--------------------------------------
Hi [~nimo22]
Weld give you this error whenever it tries (and fails) to load a class with missing dependencies. E.g. when your class references a class Y and Y is not found on classpath.
I think the module is actually there, if it weren't, you wouldn't be able to start the server. Looks like it's not "visible" to your application for some reason.
Does adding it yourself help anyhow?
Also, if you have a reproducer, I could take a look at it.
> WELD-000119: Not generating any bean definitions from..class loading error: Type java.net.http.HttpClient
> ---------------------------------------------------------------------------------------------------------
>
> Key: WFLY-12886
> URL: https://issues.redhat.com/browse/WFLY-12886
> Project: WildFly
> Issue Type: Enhancement
> Components: CDI / Weld
> Affects Versions: 17.0.1.Final
> Reporter: nimo stephan
> Assignee: Matěj Novotný
> Priority: Minor
>
> I get this info when starting wildfly server:
> {code:java}
> 01:33:09,168 INFO [org.jboss.weld.Bootstrap] WELD-000119: Not generating any bean definitions from com.utils.WebUtils because of underlying class loading error: Type java.net.http.HttpClient from [Module "deployment.myapp.war" from Service Module Loader] not found.
> {code}
> My WebUtils.class imports:
> {code:java}
> import java.net.URI;
> import java.net.http.HttpClient;
> import java.net.http.HttpRequest;
> import java.net.http.HttpResponse.BodyHandlers;
> {code}
> Should I include java se module by myself in wildfly to remove this log?
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list