-
1. Re: Still have a pb with my hello world example...
adrian.brock Jan 16, 2003 6:35 AM (in response to nadia)First you need to create a jndi.properties
file and add it to the classpath.
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost
Second, you dont construct classpaths by naming the
classes.
You specify where the root of the package is located.
In your case
D:\jboss-3.0.4_tomcat-4.1.12\client\
Regards,
Adrian -
2. Re: Still have a pb with my hello world example...
nadia Jan 16, 2003 9:06 AM (in response to nadia)Hi warjort,
First : thanks for your help
>First you need to create a jndi.properties
file and add it to the classpath.
--> I've done it
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost
--> That exactly what I've got.
Second, you dont construct classpaths by naming the
classes.
You specify where the root of the package is located.
In your case
D:\jboss-3.0.4_tomcat-4.1.12\client\
--> OK.
I've also add j2ee.jar in my classpath
Then, I shut the server and restart. I got another error ...arggggggggggggggg!!! ....
This time, It is :
D:\jboss-3.0.4_tomcat-4.1.12\client>java test/HelloWorldClient
javax.naming.CommunicationException: Can't find SerialContextProvider at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:63)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at test.HelloWorldClient.main(HelloWorldClient.java:15)
D:\jboss-3.0.4_tomcat-4.1.12\client>
If you can help me ...
I give you my files in copy.
Thanks.
Regards
Nadia -
3. g
nadia Jan 16, 2003 9:21 AM (in response to nadia)hi warjort
First of all : thanks for your help.
Then,
>First you need to create a jndi.properties
file and add it to the classpath.
--> that's what I've done.
>java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
>java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
>java.naming.provider.url=localhost
--> That exactly what I've got. OK
>Second, you dont construct classpaths by naming the
classes.
>You specify where the root of the package is located.
>In your case
>D:\jboss-3.0.4_tomcat-4.1.12\client\
--> OK I do it.
I also add the j2ee.jar in my classpath.
I got another error..... arg !!!!!!!!!!!.....
snifff ! :-)
Here is my new error:
D:\jboss-3.0.4_tomcat-4.1.12\client>java test/HelloWorldClient
javax.naming.CommunicationException: Can't find SerialContextProvider at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:63)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at test.HelloWorldClient.main(HelloWorldClient.java:15)
I give you my directory in attached file.
Again, thanks for your help.
I hope you'll be able to help me another time.
Regards
Nadia -
4. Re: Still have a pb with my hello world example...
nadia Jan 16, 2003 9:52 AM (in response to nadia)that the 3 time I try to answer .... !!!
It's just a test ! -
5. Re: Still have a pb with my hello world example...
nadia Jan 16, 2003 10:46 AM (in response to nadia)That the 4th time I answer !!! I hope this one will be the good one !!!
hi warjort
First of all : thanks for your help.
Then,
>First you need to create a jndi.properties
file and add it to the classpath.
--> that's what I've done.
>java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
>java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
>java.naming.provider.url=localhost
--> That exactly what I've got. OK
>Second, you dont construct classpaths by naming the
classes.
>You specify where the root of the package is located.
>In your case
>D:\jboss-3.0.4_tomcat-4.1.12\client\
--> OK I do it.
I also add the j2ee.jar in my classpath.
I got another error..... arg !!!!!!!!!!!.....
snifff ! :-)
Here is my new error:
D:\jboss-3.0.4_tomcat-4.1.12\client>java test/HelloWorldClient
javax.naming.CommunicationException: Can't find SerialContextProvider at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:63)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at test.HelloWorldClient.main(HelloWorldClient.java:15)
I give you my directory in attached file.
Again, thanks for your help.
I hope you'll be able to help me another time.
Regards
Nadia -
6. Re: Still have a pb with my hello world example...
adrian.brock Jan 16, 2003 8:19 PM (in response to nadia)The jndi.properties should be in the root of the jar.
Don't deploy a jar with a jndi.properties file,
you will suffer performance problems.
Use jboss-j2ee.jar from client/
Regards,
Adrian -
7. Re: Still have a pb with my hello world example...
nadia Jan 17, 2003 11:31 AM (in response to nadia)Hi,
All is OK !
It's running.
Thank you very much.
Best regards and have fun
Nadia