It's not a secret anymore!
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
JavaRanch » Java Forums » Products » Websphere
Bookmark "RSA and JBOSS issue" Watch "RSA and JBOSS issue" New topic

RSA and JBOSS issue

Sander Evanfield

Joined: Oct 15, 2004
Posts: 14

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

Name in name space

String value

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
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(
at org.jnp.server.NamingServer.getBinding(
at org.jnp.server.NamingServer.getObject(
at org.jnp.server.NamingServer.lookup(
at org.jnp.interfaces.NamingContext.lookup(
at org.jnp.interfaces.NamingContext.lookup(
at javax.naming.InitialContext.lookup(

I dont understand but looks like something fundamentally is wrong.

I agree. Here's the link:
subject: RSA and JBOSS issue
jQuery in Action, 3rd edition