<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: JNDI-Exception in NamingContextFactory
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/dzibus">Adam Lasek</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/590793#590793">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi.</p><p>No, this didn' t help.</p><p>I have also ant build script, when I run it, I got exactly the same exception.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; &lt;path id="jboss.client"&gt; </p><p>&#160;&#160;&#160;&#160;&#160;&#160; &lt;fileset dir="${jboss.home}/client" includes="*.jar" /&gt;</p><p>&#160;&#160;&#160;&#160; &lt;/path&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; </p><p>&#160;&#160;&#160; &lt;target name ="run-client"&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;echo&gt;running with classpath ${toString:jboss.client}&lt;/echo&gt; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;java&#160; classpath="${build.dir}" jar="${build.dir}/Client.jar" fork="true" classpathref="jboss.client"/&gt;</p><p>&#160;&#160;&#160; &lt;/target&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>run-client:</p><p>&#160;&#160;&#160;&#160; [echo] running with classpath /opt/jboss/client/FastInfoset.jar:/opt/jboss/client/activation.jar:/opt/jboss/client/antlr.jar:/opt/jboss/client/avalon-framework.jar:/opt/jboss/client/commons-logging.jar:/opt/jboss/client/concurrent.jar:/opt/jboss/client/ejb3-persistence.jar:/opt/jboss/client/getopt.jar:/opt/jboss/client/hibernate-annotations.jar:/opt/jboss/client/jacorb.jar:/opt/jboss/client/javassist.jar:/opt/jboss/client/jaxb-api.jar:/opt/jboss/client/jaxb-impl.jar:/opt/jboss/client/jaxb-xjc.jar:/opt/jboss/client/jaxws-rt.jar:/opt/jboss/client/jaxws-tools.jar:/opt/jboss/client/jboss-aop-client.jar:/opt/jboss/client/jboss-appclient.jar:/opt/jboss/client/jboss-aspect-jdk50-client.jar:/opt/jboss/client/jboss-client.jar:/opt/jboss/client/jboss-common-core.jar:/opt/jboss/client/jboss-deployers-client-spi.jar:/opt/jboss/client/jboss-deployers-client.jar:/opt/jboss/client/jboss-deployers-core-spi.jar:/opt/jboss/client/jboss-deployers-core.jar:/opt/jboss/client/jboss-deployers-vfs-spi.jar:/opt/jboss/client/jboss-deployers-vfs.jar:/opt/jboss/client/jboss-deployment.jar:/opt/jboss/client/jboss-ejb3-common-client.jar:/opt/jboss/client/jboss-ejb3-core-client.jar:/opt/jboss/client/jboss-ejb3-ext-api-impl.jar:/opt/jboss/client/jboss-ejb3-ext-api.jar:/opt/jboss/client/jboss-ejb3-proxy-clustered-client.jar:/opt/jboss/client/jboss-ejb3-proxy-impl-client.jar:/opt/jboss/client/jboss-ejb3-proxy-spi-client.jar:/opt/jboss/client/jboss-ejb3-security-client.jar:/opt/jboss/client/jboss-ha-client.jar:/opt/jboss/client/jboss-ha-legacy-client.jar:/opt/jboss/client/jboss-iiop-client.jar:/opt/jboss/client/jboss-integration.jar:/opt/jboss/client/jboss-j2se.jar:/opt/jboss/client/jboss-jaspi-api.jar:/opt/jboss/client/jboss-javaee.jar:/opt/jboss/client/jboss-jsr77-client.jar:/opt/jboss/client/jboss-logging-jdk.jar:/opt/jboss/client/jboss-logging-log4j.jar:/opt/jboss/client/jboss-logging-spi.jar:/opt/jboss/client/jboss-main-client.jar:/opt/jboss/client/jboss-mdr.jar:/opt/jboss/client/jboss-messaging-client.jar:/opt/jboss/client/jboss-metadata.jar:/opt/jboss/client/jboss-remoting.jar:/opt/jboss/client/jboss-security-spi.jar:/opt/jboss/client/jboss-serialization.jar:/opt/jboss/client/jboss-srp-client.jar:/opt/jboss/client/jboss-system-client.jar:/opt/jboss/client/jboss-system-jmx-client.jar:/opt/jboss/client/jboss-xml-binding.jar:/opt/jboss/client/jbossall-client.jar:/opt/jboss/client/jbosscx-client.jar:/opt/jboss/client/jbossjmx-ant.jar:/opt/jboss/client/jbossjts-integration.jar:/opt/jboss/client/jbossjts.jar:/opt/jboss/client/jbosssx-as-client.jar:/opt/jboss/client/jbosssx-client.jar:/opt/jboss/client/jbossws-common.jar:/opt/jboss/client/jbossws-framework.jar:/opt/jboss/client/jbossws-jboss50.jar:/opt/jboss/client/jbossws-native-client.jar:/opt/jboss/client/jbossws-native-core.jar:/opt/jboss/client/jbossws-native-jaxrpc.jar:/opt/jboss/client/jbossws-native-jaxws-ext.jar:/opt/jboss/client/jbossws-native-jaxws.jar:/opt/jboss/client/jbossws-native-saaj.jar:/opt/jboss/client/jbossws-spi.jar:/opt/jboss/client/jettison.jar:/opt/jboss/client/jmx-client.jar:/opt/jboss/client/jmx-invoker-adaptor-client.jar:/opt/jboss/client/jnp-client.jar:/opt/jboss/client/log4j.jar:/opt/jboss/client/logkit.jar:/opt/jboss/client/mail.jar:/opt/jboss/client/policy.jar:/opt/jboss/client/scout.jar:/opt/jboss/client/slf4j-api.jar:/opt/jboss/client/slf4j-jboss-logging.jar:/opt/jboss/client/stax-api.jar:/opt/jboss/client/stax-ex.jar:/opt/jboss/client/streambuffer.jar:/opt/jboss/client/trove.jar:/opt/jboss/client/wsdl4j.jar:/opt/jboss/client/wstx.jar:/opt/jboss/client/xmlsec.jar</p><p>&#160;&#160;&#160;&#160; [java] Exception in thread "main" javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]</p><p>&#160;&#160;&#160;&#160; [java]&#160;&#160;&#160;&#160; at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)</p><p>&#160;&#160;&#160;&#160; [java]&#160;&#160;&#160;&#160; at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)</p><p>&#160;&#160;&#160;&#160; [java]&#160;&#160;&#160;&#160; at javax.naming.InitialContext.init(InitialContext.java:223)</p><p>&#160;&#160;&#160;&#160; [java]&#160;&#160;&#160;&#160; at javax.naming.InitialContext.&lt;init&gt;(InitialContext.java:175)</p><p>&#160;&#160;&#160;&#160; [java]&#160;&#160;&#160;&#160; at pz.ejb3.client.Client.main(Unknown Source)</p><p>&#160;&#160;&#160;&#160; [java] Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory</p><p>.....</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Adam</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/590793#590793">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>