Hello My application using JBoss for java server. I use a jndi.properties file for lookup as the following:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces java.naming.provider.url=192.168.101.1 When I put this file into my application file (jar file), it runs very well. However, when I delete this file in the jar file and put it in the classpath, there is error: "Naming exception Need to specify class name in environment of system property or as an applet paramenter, or in an application resource file: java.naming.factory.initial" I think that my application cannot find out this file in the classpath. I also put the file jnp-client.jar in classpath. But it did not help. my JBoss is 3... What I am missing here, could you please help Thank you S.Hoa View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886709#3886709 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886709 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
