Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 22386 invoked from network); 9 Aug 2006 12:00:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2006 12:00:04 -0000 Received: (qmail 92346 invoked by uid 500); 9 Aug 2006 12:00:00 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 92308 invoked by uid 500); 9 Aug 2006 12:00:00 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 92297 invoked by uid 99); 9 Aug 2006 12:00:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 05:00:00 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of berlinguyinca@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 04:59:59 -0700 Received: by nf-out-0910.google.com with SMTP id h2so131271nfe for ; Wed, 09 Aug 2006 04:59:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=poYVe+5fTxMlGA5dTVFjLGiOmoW5NC7IRDuOHMS7RDfJMHkji7zvKuaTMpa24iZcbhih/9Rxp8NEXyqKMtiE2CXuQ9GEG/Xjv4e8+1JxCILejZuQ90lx8OvYoNcz96WPIyECo6LeYKiAy4jfDyFxNBer9uDsiwCwNXf5QaJwcuI= Received: by 10.78.193.19 with SMTP id q19mr286643huf; Wed, 09 Aug 2006 04:59:37 -0700 (PDT) Received: by 10.78.31.3 with HTTP; Wed, 9 Aug 2006 04:59:37 -0700 (PDT) Message-ID: Date: Wed, 9 Aug 2006 04:59:37 -0700 From: wohlgemuth Reply-To: wohlgemuth@ucdavis.edu To: "Ant Users List" Subject: weird class problem the second - can't find org.jnp.interfaces.NamingContextFactory MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hi I try to call an ejb from an ant task and get always: [register] (util.RocksClusterFactoryImpl 50 ) create new implementation of the cluster util [register] javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] [register] at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) [register] at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) [register] at javax.naming.InitialContext.init(Unknown Source) [register] at javax.naming.InitialContext.(Unknown Source) [register] at edu.ucdavis.genomics.metabolomics.binbase.cluster.ejb.delegate.ClusterReportConfigServiceUtil.lookupHome(ClusterReportConfigServiceUtil.java:20) [register] at edu.ucdavis.genomics.metabolomics.binbase.cluster.ejb.delegate.ClusterReportConfigServiceUtil.getHome(ClusterReportConfigServiceUtil.java:42) [register] at edu.ucdavis.genomics.metabolomics.binbase.cluster.util.RocksClusterImplementation.registerReport(RocksClusterImplementation.java:486) [register] at edu.ucdavis.genomics.metabolomics.binbase.cluster.ant.RegisterReport.execute(RegisterReport.java:29) [register] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [register] at org.apache.tools.ant.Task.perform(Task.java:364) [register] at org.apache.tools.ant.Target.execute(Target.java:341) [register] at org.apache.tools.ant.Target.performTasks(Target.java:369) [register] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [register] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [register] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) [register] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) [register] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [register] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) [register] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) [register] Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory [register] at java.net.URLClassLoader$1.run(Unknown Source) [register] at java.security.AccessController.doPrivileged(Native Method) [register] at java.net.URLClassLoader.findClass(Unknown Source) [register] at java.lang.ClassLoader.loadClass(Unknown Source) [register] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) [register] at java.lang.ClassLoader.loadClass(Unknown Source) [register] at java.lang.ClassLoader.loadClassInternal(Unknown Source) [register] at java.lang.Class.forName0(Native Method) [register] at java.lang.Class.forName(Unknown Source) [register] at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source) [register] ... 19 more I know that my classes are in the path ( cause if I call with this refid it works) so I think there is something weird with my class loading in the task. when I get a refrence to the path element in my task, It tells me the path is empty, so I think there is the problem. Somehow ant doenst export my defined path to my task. I also looked how the java task is implemented, but this didn't help me very much :( thx for your help, /gert -- -------------------------------------------------------------------- http://fiehnlab.ucdavis.edu/staff/wohlgemuth work: wohlgemuth@ucdavis.edu phone: 530 754 7113 private: wohlgemuth@mindcrime-ilab.de phone: 530 220 3728 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org