2 Replies Latest reply on Dec 6, 2001 12:22 PM by 041946

    Applet to EJB communication

    041946

      I am currently running JBoss-2.4.2_Tomcat-3.2.3. I have tried repeatedly to execute the sample applet to ejb code in your documentation written by Sacha Labourey. Unfortunately, I am encountering the same problem I've always encountered when using JBoss for applet to ejb development. The error I get is:

      noClassDefFound for org.jnp.interfaces.NamingContextFactory.

      This class is located in jnp-client.jar which is correctly placed inside Jboss. I'm sure it's security related because the exact same code runs fine from a servlet.

      Applet to EJB development is a viable approach for Intranet development and I don't quite understand why forum discussion on this issue seem to dodge it consistently by telling the inquirer to use servlets. A number of other app servers have conquered this issue. Weblogic, for example, poses no problems at all with applet to ejb development.

      Is the problem solved at JBoss or isn't it? If it is, why am I getting this problem?

      Thanks for any help

      Bernard

        • 1. Re: Applet to EJB communication
          markd

          jnp-client.jar is required for the client not the server. Therefore, you need to make this jar available to the applet. Unfortunately, I don't recall the exact syntax of the applet tag.

          • 2. Re: Applet to EJB communication
            041946

            Mark:

            Thanks for the quick reply on my posting. I'm running both the client and server on my local machine. jnp-client.jar is my classpath. Still no luck. I am also using my computer name as the url domain name -
            http://V28PK:8080/TestAppletHTML.html

            It's a very irritating problem since I want to use JBoss to service a very large retail application that requires applet to ejb. This application will be distributed to over 400 separate stores. Each store needs their own app server and JBoss seems to be the perfect fit, except for this one problem.

            Any other ideas?