I've the same problem but i've fixed it. 
i'm working with JBOSS 4.0. 
personaly in my pc IIS services was running, and that was the problem, so i've 
stopped it : start -> configuration pannel -> administration tools -> services 
-> stop IIS 
after that it works!! when I started the client 

my client code : 

public static void main(String[] args) {
  | String str = "This is the string being counted in the EJB.";
  | Hashtable environment = new Hashtable();
  |     
  | 
environment.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
  |         
  | 
environment.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
  |         
  | environment.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099");
  |         
  | Ccount cc = null;
  |     try {
  |             CcountHome home = CcountUtil.getHome(environment);
  |             cc = home.create();
  |             System.out.println(str);
  |             System.out.println("    Upper case: " + cc.upper(str));
  |             System.out.println("    Lower case: " + cc.lower(str));
  |             System.out.println("    Spaces: " + cc.spaces(str));
  |             System.out.println("    Total: " + cc.characters(str));
  |          
  |  } catch (Exception e) {
  | 
  |             e.printStackTrace();
  | 
  |           }
  | 
  | 
  | 
  | 
  |     }       

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231781#4231781

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231781
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to