Sep 14, 2018

One reason of Caused by: javax.ejb.EJBException: Illegal non-business method access on no-interface view

Sometimes we use IDE to generate codes for us. When for example NetBeans 7.3 Beta 2 creates a method for us, it defaults to default accessibility when the method is in the same package. If you don't pay attention to it, it could then throws

Caused by: javax.ejb.EJBException: Illegal non-business method access on no-interface view


from your @EJB injection of web service client.

You need to change to the method to public to avoid this exception.

for example, from


void updateProspect(String casenumber, String xml) {
// TODO implement it later.
}

To


public void updateProspect(String casenumber, String xml) {
// TODO implement it later.
}