File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes jboss and EJB client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "jboss and EJB client" Watch "jboss and EJB client" New topic

jboss and EJB client

sushil bajracharya

Joined: Jan 20, 2001
Posts: 12
i tried to compile and test the 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>java -classpath ".;c:\jboss\client\ejb.jar;c:\jboss\client\
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
Got context
Got reference
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/security/Se
at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(Gener
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(
at $Proxy0.create(Unknown Source)
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= -Djava.naming.factory.url.pkgs=org.jboss.naming rg.jnp.interfaces
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..

java is great

Joined: Aug 29, 2002
Posts: 1
add bellow java command option
add bellow file; server.policy
filename: server.policy-----------------
// Allow everything for now permission;
server.policy is at the same directory as
I agree. Here's the link:
subject: jboss and EJB client
It's not a secret anymore!