Hello All,
I am trying to deploy an EJB which uses an external Java class to perform the business logic. I packed the EJB, along with the deployment descriptors and the external Java class into a jar file and tried deploying the EJB bean.
I am always getting a "NoClassFoundError" on the external class when deploying the EJB. Somehow the application server i.e., JBoss 3.2.1 is unable to load the external Java class.
I tried packing the external jar file and copied the jar file into the "server/default/lib" but in vain. I also tried "CLASSPATH" point to the jar file but the error still persisted.
Do we have to edit the ejb-jar.xml file and can we use <resource-ref> for external Java classes or is it reserved for external EJB's?
Can anyone help me?