first example doesn't work
luigifonti Sep 1, 2002 4:32 PMSystem: Windows 2000
ant: installed and working properly
Jboss: 3.0 with Tomcat running (seems properly)
Downloaded and unpacked: documentation-example.zip
first example bean compiled and deployed
(apparently all ok):
ant intro-interest-jar
ant intro-interest-deploy
the following is the output of deploy:
----------------------------------------------------------
Buildfile: build.xml
validate-servlet:
validate-jboss:
fail_if_not_valid:
init:
[echo] Using JBoss directory=c:\jboss3
[echo] Using base classpath=C:\jboss3\client\jboss-j2ee.jar;C:\jboss3\client\jaas.jar;C:\jboss3\client\jbosssx-client.jar;C:\jboss3\client\jboss-client.jar;C:\jboss3\client\jnp-client.jar;C:\catalina\common\lib\servlet.jar
[echo] Using Source directory=C:\examples
[echo] Using Build directory=C:\examples/build-examples
intro-interest-deploy:
compile:
ejb-jar:
[delete] Deleting directory C:\examples\build-examples\interest\META-INF
[mkdir] Created dir: C:\examples\build-examples\interest\META-INF
[copy] Copying 1 file to C:\examples\build-examples\interest\META-INF
[copy] Copying 1 file to C:\examples\build-examples\interest\META-INF
[jar] Building jar: C:\examples\build-examples\interest\interest.jar
deploy-ejb-jar:
[copy] Copying 1 file to C:\jboss3\deploy
BUILD SUCCESSFUL
Total time: 2 seconds
---------------------------------------------------------
but if I try to compile and launch the test client:
ant intro-interest-client,
it seems the bean is not deployed.
the following is the output:
---------------------------------------------------------
Buildfile: build.xml
validate-servlet:
validate-jboss:
fail_if_not_valid:
init:
[echo] Using JBoss directory=c:\jboss3
[echo] Using base classpath=C:\jboss3\client\jboss-j2ee.jar;C:\jboss3\client\jaas.jar;C:\jboss3\client\jbosssx-client.jar;C:\jboss3\client\jboss-client.jar;C:\jboss3\client\jnp-client.jar;C:\catalina\common\lib\servlet.jar
[echo] Using Source directory=C:\examples
[echo] Using Build directory=C:\examples/build-examples
intro-interest-client:
compile:
[javac] Compiling 1 source file to C:\examples\build-examples\interest\classes
interest-client:
[java] Got context
[java] javax.naming.NameNotFoundException: interest not bound
BUILD SUCCESSFUL
Total time: 9 seconds
---------------------------------------------------------
How can I check if a bean is correctly deployed ?
help me, please !
Luigi Fonti