hello,
i tried to compile and
test the InterestClient.java in the
Jboss documentation without using
ANT and using my own bat file.. The files were compiled successfully but the bat file in execution showed errors as:
========================================================
D:\tryouts\Converter>
D:\tryouts\Converter>
java -classpath ".;c:\jboss\client\ejb.jar;c:\jboss\client\
jboss-j2ee.jar;c:\jboss\client\jbossx-client.jar;c:\jboss\client\jaas.jar;c:\jbo
ss\client\jboss-client.jar;c:\jboss\client\jnp-client.jar" -Djava.naming.factory
.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.provider.url=192.
168.3.48:1099 -Djava.naming.factory.url.pkgs=org.jboss.naming
rg.jnp.interface
s org.jboss.docs.interest.InterestClient
Got context
Got reference
Exception in
thread "main" java.lang.NoClassDefFoundError: org/jboss/security/Se
curityAssociation
at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(Gener
icProxy.java:184)
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java
:231)
at $Proxy0.create(Unknown Source)
at org.jboss.docs.interest.InterestClient.main(InterestClient.java:39)
========================================================
the bat file i made looks like..
========================================================
set C2=%JBOSS_DIST%\client
set CPATH=.;%C2%\ejb.jar;%C2%\jboss-j2ee.jar;%C2%\jbossx-client.jar;%C2%\jaas.jar;%C2%\jboss-client.jar;%C2%\jnp-client.jar
java -classpath "%CPATH%" -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.provider.url=192.168.3.48:1099 -Djava.naming.factory.url.pkgs=org.jboss.naming
rg.jnp.interfaces org.jboss.docs.interest.InterestClient
========================================================
the errors says the class SecurityAssociation was not found but it is in the jar file jboss-j2ee.jar which i have included in the classpath..
the directory with the InterestClient.class has the compiled remote interface copied there too..
please help..