[
https://issues.redhat.com/browse/WFLY-13641?page=com.atlassian.jira.plugi...
]
Jens Viebig commented on WFLY-13641:
------------------------------------
Your assumptions are mostly correct. But the jar inside the ear is an ejb-jar deployed in
the main directory, not in the lib subdirectory.
So if its true that this is not supported, should it even try to create an index ? If you
have lots of classes in the jar, you get lots of warnings.
I also like to learn what is the impact of these warnings ? What happens if there is no
index created ?
With bean-discovery-mode "all" the beans are detected and can be injected in the
WAR, but actually this caused problems with our EJBs and the entity manager and switching
to "annotated" helped, see for a detailed description:
[
https://groups.google.com/forum/#!topic/wildfly/tKBea3ylOJk]
It could be that this bug is somehow working in our favor in this case, so I would love to
learn what should be the expected behaviour
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)