I try to write JUnit . I wrote this test:

 @Test public void getEJBDataCS() { Object obj = ConfigApplication.getRemouteObject("localhost", "2809", "jndi-имя"); } 

the getRemouteObject method getRemouteObject :

 Properties jndiProperties = new Properties(); InitialContext jndiCtx; if (host != null && port != null) { jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, WsnInitialContextFactory.class.getName()); jndiProperties.put("java.naming.provider.url", "iiop://" + host + ":" + port); jndiCtx = new InitialContext(jndiProperties); return jndiCtx.lookup(jndiName); 

I get an error

java.lang.NoClassDefFoundError: com.ibm.ws.bootstrap.RASWsLoggerFactory

I use gradle 2.3 , websphere 7.0 . The gradle-build script has a line

  compile 'com.ibm:com.ibm.ws.runtime:7.0' 

Please tell me how to correct the error.

  • one
    Can you get more information on the error log please - Ker Laeda

0