We have a .jar containing code shared between the wars and the ejb.jars. We have however problems accessing this from the wars but not from ejb.jar. The ejb.jar has a Class-Path entry that is supposedly picked up, but the same entry in a war still results in a ClassNotFoundException. We also tried removing the entry from the war, so that it may be pick up the ejb.jar classloader, but that did not work. The only way was to deploy the shared jar as a module in application.xml, but reading the spec we don't feel that that is a really nice solution.