I initially posted this issue to the JNDI forum, then to the Clustering forum, but I can't get anyone to bite. Since the Hibernate people probably have run into this problem before, I'm resubmitting here in hopes that they have, or that they know the people who handle these issues.
Here's the situation. We've had a web app that's been running fine on JBoss 4.0.5.GA, as the server-side for a Flex app. All developers are running JBoss AS's on their local machines and sharing a common MSSQL database. I built an MDB, added it to the deploy dir, and it worked somewhat with our web app, but the MDB couldn't find the FlexSession stuff. So we thought we'd build an .ear, to include the .war of the web app and the .jar of the MDB.
The problem I'm getting on start-up is
...
17:59:02 INFO [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{}
17:59:02 FATAL [org.hibernate.connection.DatasourceConnectionProvider] Could not find datasource: jdbc/PlanITDataSource
javax.naming.CommunicationException: Failed to retrieve stub from server 192.168.1.18:1100 [Root exception is java.io.StreamCorruptedException: unexpected block data]
...