I am trying to deploy a datasource inside an EAR file in JBoss 5.0.1 GA. I understand I have to include the *-ds.xml file within the EAR file and point to it in the jboss-app.xml. So far that is working perfectly.
However, I need to have the datasource use a JAR file I have inside the EAR file as well. I cannot seem to get the classloader issues resolved. How should this be done?
Obviously, I can always deploy the JAR file separately, and then JBoss will use the unified classloader (I assume, haven't read up on possible classloader differences) and manage things. But that obviates the whole purpose, which was to deploy only one file. Is there a solution to this?
Thanks in advance, David Sills
The -ds.xml uses a .rar which is likely outside your ear so the rar's classes
won't be able to see the jar inside the ear?
See the JBoss JCA FAQ for other common classloading scoping questions.