I am using a 3rd party API called JBilling, which used EjB2.x and runs over Jboss 3.x, they have provided a Jar file to called JBilling API to access the JBilling Server, I have written a sample code to interact with same which includes the JBilling client jar, this code perfectly in standalone mode and in a servlets deployed on JBoss 4.0.5. But when the same code is called from within EJB 3 deployed on JBoss 4.0.5, i get the following exception.
java.lang.ClassCastException: org.jboss.remoting.InvokerLocator cannot be cast to org.jboss.remoting.InvokerLocator
Can anyone provide some pointers on how do i proceed from here? This is the first time I am seeing such an issue.