0 Replies Latest reply on Apr 19, 2006 4:11 AM by tamri

    JBOSS EJB3 Context Problem

    tamri

      I have EJB3 project, deployed with jboss-4.0.4.CR2 , his projects .jar file is in jboss_home/server/default/deploy catalog. and I have a client java file where I call ejb's remote inteface
      Hashtable properties = new Hashtable();
      properties.put("java.naming.factory.initial",
      "org.jnp.interfaces.NamingContextFactory");
      properties.put("java.naming.factory.url.pkgs",
      "=org.jboss.naming:org.jnp.interfaces");
      properties.put("java.naming.provider.url", "localhost:1099");
      Context context = new InitialContext(properties);

      SessionEJBRemote obj=(SessionEJBRemote)context.lookup(SessionEJBRemote.class.getSimpleName() + "/remote");
      obj.calculate(1,2,3d,5d);

      this code throws exception :

      javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)]
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)

      how can I correct this, what can I do?