EJB‎ > ‎Error‎ > ‎

IllegalArgumentException

ERROR [STDERR] Caused by: java.lang.IllegalArgumentException: Wrong target. class info.compute.example.myBean for public void info.compute.example.myBean.testMethod(info.compute.example.myEntity)

This could happen when you have the same class in two different JARs in an EAR. So check your build script and make sure you class paths are correct.
Comments