Hi: I am new in EJB and JBoss. I am reading the documentation and following examples step by step. In the chapter "First Steps - Coding and compiling the test client". All steps work OK ecept the last one which is testing InterestClient. I got error which is shown below. I didn't change any code and jndi.properties file. I use JBoss2.2 that bundled with Tomcat. Please tell me what I should do to make this example work? Thanks, Dennis Huang =============================================================== C:\TEMP\examples\build>ant intro-interest-client Buildfile: build.xml validate: fail_if_not_valid: init: [echo] Using JBoss directory=C:\jboss-tomcat-2.2\jboss-2.2 [echo] Using base classpath=C:\jboss-tomcat-2.2\jboss-2.2\client\ejb.jar;C:\jboss-tomcat-2 .2\jboss-2.2\client\jaas.jar;C:\jboss-tomcat-2.2\jboss-2.2\client\jbosss x-client.jar;C:\jboss-tomcat-2.2\jboss-2.2\client\jboss-client.jar;C:\jb oss-tomcat-2.2\jboss-2.2\client\jnp-client.jar;C:\jboss-tomcat-2.2\tomca t\lib\servlet.jar [echo] Using Source directory=C:\TEMP\examples [echo] Using Build directory=C:\TEMP\examples/build-examples intro-interest-client: compile: interest-client: [java] Got context [java] javax.naming.ServiceUnavailableException: jnp [Root exception is java.net.UnknownHostException: jnp] BUILD SUCCESSFUL Total time: 3 seconds ======================================================= This is the error I got when I run it in different way: C:\TEMP\examples\build-examples\interest\classes>java org/jboss/docs/interest/InterestClient Got context javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial ________________________________________________________________________ ____________________________________ TRACEY BRUNSTROM & HAMMOND PTY LTD ACN 008 444 700 ABN 73 008 444 700 PROJECT and STRATEGIC MANAGEMENT SERVICES 12TH FLOOR, 15 BLUE STREET NORTH SYDNEY, N.S.W. 2060 Telephone:+61 (2) 9922 2511 - 146 Facsimile: +61 (2) 9959 4338 EMAIL TRANSMITTAL CONFIDENTIALITY The information contained in these documents is confidential and is intended for the exclusive use of the addressee named above. It may also be subject to legal professional privilege. If you are not the addressee, any disclosure, reproduction, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please contact us immediately by telephone [+61 (2) 9922 2511]. VIRUSES The Company does not represent or warrant that files attached to this email are free from computer viruses or other defects. These files are provided, and may only be used, on the basis that the user assumes all responsibility for any loss or damage arising out of the use of the files. DISCLAIMER You may only rely on electronically transmitted advice or documents when the advice or document is confirmed by letter signed by a Director of the Company or his / her nominee. _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user