I am trying to deploy the same application twice on a JBoss/Catalina. The only difference between them is where do the entity beans' database is. For this I have a jaws.xml per bean and each app has a different datasource.
Now when I deploy the second one I get InstanceAlreadyExistsException. Can't I get each of the apps' beans to be different in some way (besides naming them differently)?
Try removing your EJB JAR file from the Class-path manifest for your WAR file. I think JBoss classloading mechanisms registers EJB jar files in the EAR by default and make them available to other components in the EAR. Hence you don't need the manifest attribute.