I've seen other posts about this topic, but they all suggest adding the
proper jar to the classpath. I've got a client which runs fine locally to
jboss, but now that I'm testing it over on a separate machine, I get the
following.

I've followed as best I can to the section on 'coding and compiling the test
client'.

Any help much appreciated.

--- jndi.properties ---
# note ... 192.168.0.10 is where my jboss server is running.

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://192.168.0.10:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
# Do NOT uncomment this line as it causes in VM calls to go over
# RMI!
#java.naming.provider.url=localhost

--- I have the following files in my clients classpath ---

jaas.jar
jboss-client.jar
jboss.jar
jbosssx-client.jar
jnp-client.jar
oswego-concurrent.jar

--- output ---

javax.naming.CommunicationException: Can't find SerialContextProvider
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:63)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at com.neuroquest.cais.clients.builder.Builder.createSubscription(Builde
r.java:95)
at com.neuroquest.cais.clients.builder.Builder.main(Builder.java:173)

--- more info ----------------

The client runs fine when it's on the same box as the server, but once moved
to another box ... there seems to be a jndi problem of some sort.

On my server it's as follows ...
---
mybox(ACAIS):~/acais$ java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

And on my client machine ...
---
C:\TEMP>java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to