users@glassfish.java.net

Re: problem accessing remote ejb and a strange fact

From: <glassfish_at_javadesktop.org>
Date: Wed, 20 Jun 2007 09:49:55 PDT

The code/xml snippets look ok. Is it possible that the sun-web.xml was not packaged properly
with the web app when it was deployed in the separate app server instance? The error message
indicates that the Remote EJB dependency was not resolved. One thing you can try to first
test that the cross-appserver lookup is working correctly is to hardcode the mapping within the
@EJB itself :

@EJB(name="ejb/MyStatelessBeanRef", mappedName="corbaname:iiop:...")
private MyStatelessRemote myStatelessBean;

In that case, there is no need to use sun-web.xml. Once that works, try removing mappedName
and try the sun-web.xml approach again. You can also try running the "verifier" command on your
application to see if it picks up any packaging or descriptor issues.
[Message sent by forum member 'ksak' (ksak)]

http://forums.java.net/jive/thread.jspa?messageID=223112