3 Replies Latest reply on Aug 7, 2002 5:25 AM by adrian.brock

    Why HelloWorldClient.bat not function?

    xjtt2000

      I deployed HelloWorldApp.ear in j2ee server.When i run helloWorldClient.bat, there are "Hello world!" appeared.
      But once i deployed HelloWorldApp.ear into Jboss-2.4.5 without tomcat,helloWorldClient has some errors:
      Javax.naming.CommunicationException:Can't find SerialContextProvider
      at com.sun.enterprise.naming.SerialContext.getProvider(serialContext.java:60)
      at com.sun.enterprise.naming.SerialContext.(SerialContext.java:79)
      ...
      at javax.naming,InitialContext.init(InitialContextr.java:222)
      at javax.naming.InitialConext.(InitialContext.java:178)
      at HelloWorldClient.main(HelloWorldClient.java;12)

      it is not functional.
      Does it need more configuration files. In HelloWorldClinet.main 12 row and 13 row are:
      Context initial = new InitialContext();
      Object objref = initial.lookup("MyHelloWorld");

      I found many EJB couldn't deploy in Jboss directly.