0 Replies Latest reply on Jun 22, 2004 6:32 AM by ernieball

    EJB-PHP

    ernieball Newbie

      I'm newbie in EJB. I'll try to access EJB with PHP but i'm occured an exception.

      All EJB Client jar's are in my CLASSPATH.

      Warning: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: forum.ForumHome (no security manager: RMI class loader disabled)] in C:\Program Files\Apache Group\Apache2\htdocs\java.php on line 23

      Here is my code :

      <?php

      $obj = new Java('Client');
      $ctx = $obj->getContext();

      $enum = $ctx->list('/');

      while ($enum->hasMoreElements()) {

      $objet = $enum->nextElement();
      print "";
      print $objet->getName();
      }

      $objet=$ctx->lookup('ejb/Forum');

      ?>

      Any idea ???

      Thanks