How to access default scoped method of one jar from another jar in EAP 6?
Issue
- There are 2 EJB module in an EAR. In one module, there is a class
ejb.one.TestPojo.java
with a methodvoid helloWorld(String str){}
and in the second module, there is a classejb.one.Pojo.java
, which will invoke aTestPojo.helloWorld(String)
and the<ear-subdeployments-isolated>
attribute of the EAR is already set tofalse
. But still JBoss is throwing the following ERROR from the classejb.one.Pojo.java
while accessing the methodhelloWorld(String)
of classejb.one.TestPojo.java
:
Caused by: java.lang.IllegalAccessError: tried to access method ejb.one.TestPojo.helloWorld(Ljava/lang/String;)Ljava/lang/String; from class ejb.one.Pojo
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.