Could not obtain connection to any of these urls localhost 1099

Version 2

    I use CXF Local Transport for testing the JAX-RS methods who have code like this:

    javax.naming.Context initialContext = new InitialContext(); 
    TMM tmm
    = (TMM) initialContext.lookup("java:app/cos/TMM");
    = tmm.calculateConnectedPorts(userId, componentInstance, portId);

    Despite the fact that I have a jndi properties file:


    I cannot run my test successfully getting the following error:


    javax.naming.CommunicationException: Could not obtain connection to any of these urls: jnp://localhost:1099 and discovery failed with error: javax.naming.CommunicationException


    My client test method is via pipe: