As the error is about a ClassNotFound, I assume that you do not have in the classpath the jar that contains the org.jnp.interfaces.MarshalledValuePair class. And also you don't have a security manager, that's why loading this class via RMI from the server is not permitted. Verify the classpath again.
how do i have to check the classpath?
if there is no such file, where do i get it from?
thanks in advance,
I suppose you're trying to make the lookup from a client application. In this case, verify the classpath of the JVM (Java Virtual Machine) that the client application is running in, so that it contains the "jnp-client.jar" file (that contains the class that is not found) from the %JBOSS_DIST%\client directory (in a Windows style env and directory syntax). In fact you will probably need other jars from that directory too, so to keep it safe, put all jars from that directory in the classpath.
Or, as I said, use a security manager and specify a policy file with all permissions granted, and the class will be (down)loaded via RMI from the server, without it having to be present on the client side. But this is a small hack just to test you app quickly. If you need a reliable solution, use the first one!
I think it´s important to note that this class is present in JBoss 3.0 but not in JBoss 2.4 (inside "jnp-client.jar"). So, if the code was first used with an old version of JBoss, it´s necessary to update the jar.