autoMgr = (AutomobileMgr)ctx.lookup(AutomobileMgr.class.getName());
Is AutomobileMgr a @Remote interface or a @Local one? Are you sure you don't want:
autoMgr = (AutomobileMgr)ctx.lookup(AutomobileMgrRemote.class.getName());
That error msg (about Reference) is what happens when you lookup a local interface from a remote client.
That was a good idea.
I'm pretty sure the Mgr is Remote. I see @Remote specified in my Mgr interface, but once the code is compiled and deployed, I'm not certian where to look to verify for certain that the Mgr is Remote (even though not named with MgrRemote).
I read this off theserverside at address
It seems there is a bug with JBoss 4.0.2. I deployed the same example ear file to version 4.0 and 4.0.2 but version 4.0.2 failed. When I lookuped the home of a bean deployed from a web servlet using InitialContext JBoss Server 4.0.2 always appended additional "Home" to the end of bound JNDI subcontext, which caused ClassCastException. The funny thing is, if you use stand-alone client there are no such exception at all.
I'm using jboss-4.0.1sp1 and see this problem
Is this comment correct?