Problem with JNDI
ataud Nov 19, 2002 12:36 PMWhile installing JBoss I have problem in step:
"Coding and compiling the test client" at page http://www.jboss.org/online-manual/HTML/ch01.html
When I run the command:
ant intro-interest-client
I have this :
------------------------------------------------------
Buildfile: build.xml
validate-servlet:
validate-jboss:
fail_if_not_valid:
init:
[echo] Using JBoss directory=E:\jboss-3.0.4_tomcat-4.1.12
[echo] Using base classpath=E:\jboss-3.0.4_tomcat-4.1.12\client\jboss-j2ee.jar;E:\jboss-3.0.4_tomcat-4.1.12\client\jaas.jar;E:\jboss-3.0.4_tomcat-4.1.12\client\jbosssx-client.jar;E:\jboss-3.0.4_tomcat-4.1.12\client\jboss-client.jar;E:\jboss-3.0.4_tomcat-4.1.12\client\jnp-client.jar;E:\jboss-3.0.4_tomcat-4.1.12\examples\COULD_NOT_FIND_SERVLET_JAR
[echo] Using Source directory=E:\jboss-3.0.4_tomcat-4.1.12\examples
[echo] Using Build directory=E:\jboss-3.0.4_tomcat-4.1.12\examples/build-examples
intro-interest-client:
compile:
interest-client:
[java] java.lang.NoClassDefFoundError: javax/net/SocketFactory
[java] at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingContextFactory.java:42)
[java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
[java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
[java] at javax.naming.InitialContext.init(InitialContext.java:222)
[java] at javax.naming.InitialContext.(InitialContext.java:178)
[java] at org.jboss.docs.interest.InterestClient.main(InterestClient.java:27)
[java] Exception in thread "main"
BUILD SUCCESSFUL
Total time: 3 seconds
----------------------------------------------------
Instead of having
------------------------------------------------------
....
interest-client:
[echo] Using client classpath: /tmp/JBoss-2.2.2/client/ejb.jar:/tmp/JBoss-2.2.2/client/jaas.jar:/tmp/JBoss-2.2.2/client/jbosssx-client.jar:/tmp/JBoss-2.2.2/client/jboss-client.jar:/tmp/JBoss-2.2.2/client/jnp-client.jar:/tmp/tomcat/lib/servlet.jar:/tmp/examples/build-examples/interest/classes:/tmp/examples/resources
[java] Got context
[java] Got reference
[java] Interest on 1000 units, at 10% per period, compounded over 2 periods is:
[java] 210.00000000000023
BUILD SUCCESSFUL
---------------------------------------------------------
It seams to be a problem with using client classpath, but I do not now how to solve it.
Thank U for Your help.