Thanks for the fast replies - I "fixed" my problems by throwing temporarly the second webapp into the ear too and will make sure that on customer side things are running, as intended, in separated VMs.
anonymous wrote : If you are communicating to a scoped ear, then the only safe way to communicate to it is with a remote interface. For this case, you'll have to enable CallByValue for JNDI in server/xxx/conf/jboss-service.xml. I tried that one too, but it doesn't seem to solve my problems (-> no difference if callbyvalue is enabled or not). Besides: this sound like to have a *big* performance impact. How about a devel/user related faq wiki-page? I guess this would be a frequent obstacle during development (especially for beginners like me): Q: I'am getting a ClassCastException when I try to cast a Session Bean to it's interface after I successfully obtained the Session Bean over InitialContext lookup. Whats going on? A: You are probably dealing with scoped Beans, remote interfaces and trying to run everything in the same VM while package multiple copies of your interface classes into the different parts of your application(s). Solve this by: * eliminate multiple copies of interfaces, package everything into the same ear * run your application in different VMs * if required to let different EARs interact with one another in the same VM: enable CallByValue for JNDI in server/xxx/conf/jboss-service.xml Unfortunately the last one either needs a bugfix or I am not using/understanding it correctly. anonymous wrote : Have a look at the classpath. I had similar problems when I used the wrong jars. In the installation docs it is mentioned : No, this is unrelated to my problem (I use the greatest and latest from CVS, no "old" stuff in my client or server). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920905#3920905 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920905 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user