This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes RSA and JBOSS issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "RSA and JBOSS issue" Watch "RSA and JBOSS issue" New topic
Author

RSA and JBOSS issue

Sander Evanfield
Greenhorn

Joined: Oct 15, 2004
Posts: 13
Hi,

We use RSA (RAD) for development and use a seperate test build to deploy our tests on the JBOSS server. Both servers are on the same machine (Windows XP). The main app.ear is deployed on RSA and JBOSS(as part of cargo maven cactus). app.ear makes a call to a thirdparty (made by some other project group) jar which is deployed on RSA. The thirdparty jar cannot be deployed on JBOSS.
On the RSA admin console we have the namespace binding for the server and port for populating Context.PROVIDER_URL

service_ejb is in the thirdparty jar

Binding Identifier
thirdparty_service_ejb_provider_url

Name in name space
a/b/c/service_ejb_jndi_url

String value
iiop://localhost:2812

The app.ear on RSA is successful in making call to thirdparty jar and works fine.

For the JUnit side

The ServerJNDI.xml in JBOSS has a entry
<JNDIEntry
name="thirdparty_service_ejb_provider_url"
jndiName="a/b/c/service_ejb_jndi_url" stringToBind="iiop::I.Paddr(same machine as RSA):2812"
/>

On the coding side we have JUnit which talks to API in the app.ear deployed on JBOSS which has the
following code to talk to the ejb service in the thirdparty jar (deployed only on RSA)

InitialContext initContext = new InitialContext();
String toBePutInContextPROVIDERURL = (String)jndiContext.lookup("a/b/c/service_ejb_jndi_url");

javax.naming.NameNotFoundException: a not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:351)

I dont understand but looks like something fundamentally is wrong.

xxx
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: RSA and JBOSS issue
 
Similar Threads
JNDI Name binding in JBOSS 5.1.0 Beta.
RAD(Websphere RSA) and JBOSS conflict
Issue Whie Deploying EJB on JBoss AS 5.1.0...
Session bean not bound
JNDI: java:comp/env bound and unbound at the same time?