1 Reply Latest reply on Oct 8, 2007 6:45 AM by jaikiran

    remote client exception

    tarek7elmy

      i have deploy session bean on jboss application server (jboss-4.0.3SP1)
      and when i'am trying to debug it remotely(from jdeveloper 10.1.2.2.0) it give Exception when trying to invoke create method

      like this :

      Hashtable env = new Hashtable();
      env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
      env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces" );
      env.put("jnp.disableDiscovery", "true");

      Context context = new InitialContext(env);

      ArithmeticHome arithmeticHome = (ArithmeticHome)PortableRemoteObject.narrow(context.lookup("java:/Arithmetic"), ArithmeticHome.class);
      Arithmetic arithmetic;

      arithmetic = arithmeticHome.create();


      the error message is
      error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/jboss-4.0.3SP1/server/default/tmp/deploy/tmp12288testdeploy.ear-contents/testdeploy-exp.war/WEB-INF/classes/

      please, can any one help me

        • 1. Re: remote client exception
          jaikiran

           

          error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/jboss-4.0.3SP1/server/default/tmp/deploy/tmp12288testdeploy.ear-contents/testdeploy-exp.war/WEB-INF/classes/


          By any chance, have you installed JBoss in a folder containing space in its path (maybe C:/Program Files/jboss-4.0.3SP1). If so, try moving it to a folder without spaces in its path (Ex: C:/jboss-4.0.3SP1). Then try out your application.