Title: Newbie having problems with Interest sample
   Got me here... I didn't expect this.
   However. Try to add jbossmx-client.jar also. The
org.jboss.security.SecurityAssociation class is there.
 
   Let me know what happens OK?
 
   Lachezar.
Wow! I didn't expect such a detailed and accurate reply so soon.
 
This (nearly) worked. The call to
 
         Interest interest = home.create();
failed with
 
java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation
 at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.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:40)
I guess its a configuration problem again?
 
Thanks for your help Lachezar, I really appreciate it.
 
MArtin

 -----Original Message-----
From: Lachezar Dobrev [mailto:[EMAIL PROTECTED]]
Sent: 06 July 2001 16:45
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Newbie having problems with Interest sample

   You have to get the JBoss client jars in your client.
   How about:
   Create a library in JBuilder (Let's say JBoss_Library). Add the following jars to that library:
    $JBOSS_HOME/client/ejb.jar             -> REQUIRED
    $JBOSS_HOME/client/jaas.jar            -> In case you have security
    $JBOSS_HOME/client/jboss-client.jar    -> REQUIRED
    $JBOSS_HOME/client/jbossmq-client.jar  -> In case you work with JMS
    $JBOSS_HOME/client/jbossmx-client.jar  -> In case you want to use JMX
    $JBOSS_HOME/client/jndi.jar            -> REQUIRED
    $JBOSS_HOME/client/jnp-client.jar      -> REQUIRED
    $JBOSS_HOME/client/jta-spec1_0_1.jar   -> In case you want user transactions.
 
   Then add this library to your project (Project Properties).
   Then create a jndi.properties file in your src directory. Put in it:
 
     java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
     java.naming.provider.url=jnp://localhost:1099/
 
   Try again.
 
   Lachezar
 

Hi,

Hopefully this is an easy one!

I've just installed JBoss-2.2.2_Tomcat-3.2.2.

I've deployed the Interest EJB into JBoss without any problems by following the tutorial in the online html help.

I've tried to run the client in JBuilder 4 but it coughs on the very first line:

         InitialContext jndiContext = new InitialContext();

The exception I get is:

javax.naming.CommunicationException: Can't find SerialContextProvider

Could someone give me a pointer?

Thanks.

Martin

Reply via email to