[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: URGENT! java.lang.IllegalStateException: Failed to find
tmac42
do-not-reply at jboss.com
Mon May 18 18:07:03 EDT 2009
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=4231735#4231735
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231735
More information about the jboss-user
mailing list