I have an ear file that contains a number of ejb-jars and a number of war-files - the file validates and runs on SunOne application server but not on Jboss.
Servlets that access ejbs using the global JNDI context, ie. c.lookup("UserServices") work fine, however those that use the java:comp/env context seem unable to see ejb supporting classes (for example exceptions and return values). I have a jboss-web.xml file that validates against the DTD.
I need to be using the java:comp/env contexts to manage differences between deployments, and I don't want to keep a copy of my ejb client classes in my WEB-INF/lib folder.