• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jboss and EJB client

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic