Hi,

I have a been in another EAR that has a webpage JSP client that connects to it.

If I copy the Bean files and webpage JSP client to another package I cannot access it 
as I get the below error. 

javax.ejb.EJBException: Invalid invocation, check your deployment packaging, 
method=public abstract com.upstreamsystems.
mip.clubs.ClubManager com.upstreamsystems.mip.clubs.ClubManagerHome.create() throws 
java.rmi.RemoteException,javax.ejb.CreateException
        at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:597)
 ...

The only difference in the EAR files is that I removed from the client EAR the info 
from the ejb-jar.xml and the jboss.xml so as not to implement the bean there. Is this 
correct?

I am using a different classloader for each EAR if this is of any significance.

I am using basic code to call from in the EAR and from the other EAR

Class clubMgrHomeClass = com.upstreamsystems.mip.clubs.ClubManagerHome.class;

// Create env.
   Hashtable env = new Hashtable();
   env.put("java.naming.factory.initial",
      "org.jnp.interfaces.NamingContextFactory");
   env.put("java.naming.factory.url.pkgs",
      "org.jboss.naming:org.jnp.interfaces");
   env.put("java.naming.provider.url",
      "localhost");

InitialContext jndiCtx=new InitialContext(env);
String clubMgrJndiName = "com/upstreamsystems/mip/clubs/ClubManager";
try {
   ClubManagerHome clubMgrHome = (ClubManagerHome) 
PortableRemoteObject.narrow(jndiCtx.lookup(clubMgrJndiName), clubMgrHomeClass);
   ClubManager clubMgr = clubMgrHome.create();
}
...

Anyone have any ideas why I cannot call the EJB from the other EAR?

Cheers,

Mark

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

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


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to