On Thursday, May 10, 2001, at 07:49  AM, Doyle, Steven wrote:

> Hi All,
>
> I have developed JBoss client application which works perfectly when I
> execute it from the command line i.e.
>
> java -classpath
> "c:\jboss-2.2.1\client\jboss-
> client.jar;c:\jboss-2.2.1\client\jbosssx-client
> .jar;c:\JBuilder3 5\lib\jbcl3.1.jar;c:\projects\classes"
> com.wa.apps.flightmanager.FlightManagerClient
>
> However when I create an executable jar (I use JBuilder deployment tool)
> including all the relevant classes and jars I get the following 
> exception
> generated.
>
> C:\projects\classes>java -jar fm.jar > debug.txt
> javax.naming.NoInitialContextException: Cannot instantiate class:
> org.jnp.interfaces.NamingContextFactory.  Root exception is
> java.lang.ClassNotFoundException: 
> org.jnp.interfaces.NamingContextFactory
>
>
>
> in the client code I use:
>
> 
>System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"
> );
> System.setProperty("java.naming.provider.url","localhost");

The line immediately above should be:

System.setProperty("java.naming.provider.url","localhost:1099");


--
Mike Simpson ([EMAIL PROTECTED])
15621 Fifth Avenue NE, Shoreline WA 98155-6234
206-367-8267 (h) / 206-374-2923 (f)

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

Reply via email to