*
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
Author

jboss and EJB client

sushil bajracharya
Greenhorn

Joined: Jan 20, 2001
Posts: 12
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..

java is great
mach
Greenhorn

Joined: Aug 29, 2002
Posts: 1
add bellow java command option
----------------------------------------
-Djava.security.manager
-Djava.security.policy=server.policy
----------------------------------------
add bellow file; server.policy
filename: server.policy-----------------
grant{
// Allow everything for now permission java.security.AllPermission;
};
----------------------------------------
server.policy is at the same directory as
InterestClient.class
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jboss and EJB client
 
Similar Threads
Intial Context Problem on Jboss
JBoss Remote Lookup
unable to get Naming Context
jboss, datasource naming and lookup error
Unable to get Transaction Manager