ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wohlgemuth <>
Subject weird class problem the second - can't find org.jnp.interfaces.NamingContextFactory
Date Wed, 09 Aug 2006 11:59:37 GMT
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
 [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.<init>(Unknown Source)
 [register] at edu.ucdavis.genomics.metabolomics.binbase.cluster.ejb.delegate.ClusterReportConfigServiceUtil.lookupHome(
 [register] at edu.ucdavis.genomics.metabolomics.binbase.cluster.ejb.delegate.ClusterReportConfigServiceUtil.getHome(
 [register] at edu.ucdavis.genomics.metabolomics.binbase.cluster.util.RocksClusterImplementation.registerReport(
 [register] at edu.ucdavis.genomics.metabolomics.binbase.cluster.ant.RegisterReport.execute(
 [register] at
 [register] at
 [register] at
 [register] at
 [register] at
 [register] at
 [register] at
 [register] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(
 [register] at
 [register] at
 [register] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(
 [register] Caused by: java.lang.ClassNotFoundException:
 [register] at$ Source)
 [register] at Method)
 [register] at 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 <java> 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,



phone:   530 754 7113

phone:    530 220 3728

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message