Did you put jnpserver.jar  or jnp-client.jar in CLASSPATH? I think that
is the problem : -)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of pyliu8621
Sent: Friday, September 14, 2001 3:24 AM
To: [EMAIL PROTECTED]
Subject: re:[JBoss-user] How can i see JNDI tree?


Now


I have added these lines:

                System.setProperty("java.naming.factory.initial",
                        "org.jnp.interfaces.NamingContextFactory");
                System.setProperty("java.naming.provider.url",
                        "localhost:1099");

the error is :

" Cannot instantiate class: org.jnp.interfaces.NamingContextFactory"

why?

thanks for any hints!

pylio


---------------------------
thanks for Scott's help

Now I have seen "estore/ReportForm" in jndi tree.
I can confirm it.

-------------

+- estore
  |   +- PLU
  |   +- Payment
  |   +- RTNReport
  |   +- DlvDtl
  |   +- Cheval
  |   +- RtnHead
  |   +- ReportForm    *********************************************
  |   +- CashStock
  |   +- Adj
  |   +- Mrk
  |   +- DlvHead
  |   +- PosulReport
  |   +- Store
  |   

but why I can't get it in my another apllication (A)  by
ic.lookup("estore/ReportForm")?

ic:
InitialContext ic = new InitialContext();

perhaps ic is wrong?  **********


now jboss and my application A is in same one PC.

thanks.$2(r)¨C¨C$2(r)?o~z??i????l2??q?¨¨?¡ìz????ltX??)?¡ê??¡é?.$2?(r)f
¨C)¨C+$2?(r)X??o¡¤~?zw??3???2?q?(r)z???tX?)¡ê?¡é?

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to