[
https://issues.redhat.com/browse/WFLY-13641?page=com.atlassian.jira.plugi...
]
Matěj Novotný commented on WFLY-13641:
--------------------------------------
Would you be willing to cobble together a minimal reproducer project for this?
Meanwhile, looking at WFLY docs, I only found little about
[{{jboss-deploymet-structure}}|https://docs.wildfly.org/16/Developer_Guide.html#jboss-deployment-structure-file].
And from that text it's not obvious how it should behave. But in theory, the issue is
either not being able to found existing jandex for given URL (because I thought all
deployments on WFLY will be indexed?) or not being able to index it on the fly.
[~brian.stansberry] do you happen to know or point me to whoever is the jandex guru within
WFLY? :-)
The reason why discovery mode {{all}} gives you access to all beans and no error is
because we can fully avoid trying to access the index (we needn't check if every class
meets the criteria of having bean defining annotation which is what we use jandex for in
this case).
WFLYWELD0055: Could not index class [Someclass] from an external bean
archive: vfs:/somepath/myear.ear/myejb-0.0.1.jar/META-INF/beans.xml
-----------------------------------------------------------------------------------------------------------------------------------------
Key: WFLY-13641
URL:
https://issues.redhat.com/browse/WFLY-13641
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 20.0.0.Final
Reporter: Jens Viebig
Assignee: Matěj Novotný
Priority: Major
When referencing a jar with CDI scan mode "annotaded" inside an ear from an
external war via jboss-deployment-structure.xml a warning will be printed for every
class:
WFLYWELD0055: Could not index class [Someclass] from an external bean archive:
vfs:/somepath/myear.ear/myejb-0.0.1.jar/META-INF/beans.xml
Seems VFS cannot get hold of the classes.
The warning is logged in ExternalBeanArchiveProcessor which catches an EOFException from
the inputstream loading the class. (Line 284). Seems the input stream is not able to load
a single byte from the class
--
This message was sent by Atlassian Jira
(v7.13.8#713008)