title: Where does WebSphere put the EAR file when RAD does a "Run On Server"? And how to run createEJBStubs on it?
body: <p>I have a JavaEE-based web app with IBM RAD 7.5 (Eclipse) and WebSphere 7.  The app has EJBs with remote interfaces.  It runs fine.</p>
  
  <p>I created a new project for JUnit tests, and I'm trying to do a JNDI lookup of the EJB to test it, but I get the following error:</p>
  
  <p>"ClassCastException: org.omg.stub.java.rmi._Remote_Stub incompatible with com.myapp.UserServiceRemote"</p>
  
  <p>To solve this problem, my understanding is I have to run the WebSphere createEJBStubs command to generate remote stubs, so the JUnit app (which is running as a separate application) can look up the EJB.</p>
  
  <p>My question is:</p>
  
  <p>When I run my app from within WebSphere by rightclicking the myappEAR project and selecting "Run As > Run On Server", where does WebSphere put the EAR file that's being run?  That is, what folder is it in?</p>
  
  <p>I ask because my understanding is I'm supposed to run the createEJBStubs command on it, which will generated the stubs and put those stubs in the EAR.</p>
  
  <p>Any advice is greatly appreciated, thanks!</p>
  
  <p>Rob</p>