Title: RE: [JBoss-user] Can't find SerialContextProvider
Well, I'm running JBoss-2.4.3_Tomcat-4.0 and it seems jboss has set these for me already to the hostname ...
 
# System properties
# These will be loaded and set by jBoss
java.rmi.server.useLocalHostName=true
java.rmi.server.hostname=cassia
java.rmi.server.codebase=http://cassia:8080/
 
I also added to my client node in the c:\WINNT\system32\drivers\etc\hosts file the ip and name of my server.
 
Any help/ideas appreciated.
 
----- Original Message -----
From: JD Brennan
Sent: Friday, March 15, 2002 11:19 AM
Subject: RE: [JBoss-user] Can't find SerialContextProvider

JBoss 2.4.4 default configuration returns localhost for
all lookups.  Modify the jboss.properties file.
There's some commented out stuff at the top.

I set java.rmi.server.hostname to my hostname and then
could access the server remotely.

JD

-----Original Message-----
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 5:50 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Can't find SerialContextProvider


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