I wasn't sure which forum to submit this to, since it covers a variety of topics -- hibernate, JNDI, clustering, etc. So I'm picking this forum; if you can suggest a better one, I'll repost there.
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. 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]
...