6 Replies Latest reply on Sep 19, 2006 11:15 AM by Shelly Ren

    javax.naming.NameNotFoundException: ws1 not bound

    Micho Edershvili Newbie


      I hava a stateful sessionbean

      public class SessionTestBean implements Session

      calling the bean form the client brings
      javax.naming.NameNotFoundException: ws1 not bound

      the clientcode is
      public class client
      public static void main(String[] args) {
      Session ses =null;
      try {
       InitialContext ctx = new InitialContext();
       ses = (Session) ctx.lookup(
       } catch (Exception e) { e.printStackTrace (); System.exit(-1); }
      System.out.println("ses erster Zähler: "+ses.getZaehler());
      System.out.println("ses zweiter Zähler: "+ses.getZaehler());

      the application.xml is

      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
       xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">