I deployed one A.ear in my windows machine and also deoployed B.ear in another 
linux machine; 

from utility class that is in A.ear i am trying to lookup EJB located in B.ear 
i am getting this error 

Error : javax.naming.CommunicationException [Root exception is 
java.lang.ClassNotFoundException: com.blah.blah.CalRHome 

contextProperty.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory"); 
contextProperty.put(Context.SECURITY_PRINCIPAL, "admin") ; 
contextProperty.put(Context.SECURITY_CREDENTIALS, "welcome"); 
contextProperty.put(Context.PROVIDER_URL, "jnp://211.80.70.1:1099"); 

InitialContext taxEngineContext = new InitialContext(contextProperty); 
Object objhome = taxEngineContext.lookup("CalR"); 
CalRHome home = (CalRHome) PortableRemoteObject.narrow(objhome,CalRHome.class); 

1. why should i specify remote and home interfaces in A.ear its already there 
in B.ear? 

2.one thing i dont understand, without adding those two interfaces in A.ear 
works well in oc4j server,here in jboss-4.0.2 its giving above exception. 

3.Is it must to add those two interfaces in A.ear?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912929#3912929

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912929


-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to