• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RSA and JBOSS issue

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic