I want to make jar packaged applications that call EJB... I use JDK1.3.1_01a, but jdk1.4 beta behave the same.
however the JNDI layer complains: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory. Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:195) at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:45) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) at javax.naming.InitialContext.init(InitialContext.java:222) at javax.naming.InitialContext.<init>(InitialContext.java:178) at dta.lilafinance.console.Loader.main(Loader.java:19) [Loaded java.lang.Shutdown$Lock from d:\jdk1.3.1_01a\jre\lib\rt.jar] D:\ApacheDev\JBoss-2.4.3_Tomcat-4.0\dev\lilafinance> With ant1.4 I produce jar with a Manifest.mf file that contains Manifest-Version: 1.0 Created-By: ${ant.project.name} Main-Class: ${lilafinance.loader.class} Class-Path: lib/ Class-Path: . Class-Path: lib/jnp-client.jar Class-Path: lib/jndi.jar Class-Path: lib/${ejb.client.jar} Class-Path: lib/jboss-j2ee.jar lib/jaas.jar lib/jbosssx-client.jar lib/jboss-client.jar I have also integrated the cited jars in a lib/ directory in the jar... (I can see them in winzip) note that I have also tested with all jar in the base directory of the jar. I have also tested with an explicit classpath directive that reference jnp-client.jar the jar tool seems to mangle my proposed manifest according to the jar sopecification, (note that line are wrapped and that space are added at the begining of each wrapped line... AFAIK that is the spec) Manifest-Version: 1.0 Main-Class: dta.lilafinance.console.Loader Created-By: J2EE project Build Script Class-Path: lib/jnp-client.jar lib/jndi.jar lib/lilafinance-ejb-client .jar lib/jboss-j2ee.jar lib/jaas.jar lib/jbosssx-client.jar lib/jboss -client.jar the class org.jnp.interfaces.NamingContextFactory is contained in jnp-client.jar and should be found... I've seen that a Class-Path: directive in jnp-client.jar manifest reference "jndi.jar" and should also be found (I have tested with jndi.jar in the base directory of the jar...) It looks like the classloader ignore the jar directive... is it a specific feature of jboss ? -- Alain Coetmeur _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user