Maven classpath question

2010-01-07 Thread laredotornado

Hi,

I'm using an older version of Maven (1.1), but hopefully this question is
still relevant.  I have a test module that includes this dependency in its
project.xml file ...

dependency
  groupIdcom.caucho/groupId
  artifactIdresin/artifactId
  version3.0.9/version
/dependency

However, when I run my JUnit test, I get the ClassNotFoundException below. 
The reason it is strange is because that class exists within the dependency
above.  Can you think of some ways I can troubleshoot this problem further?  

Thanks, - Dave

javax.naming.NoInitialContextException: Cannot instantiate class:
com.caucho.naming.InitialContextFactoryImpl [Root exception is
java.lang.ClassNotFoundException:
com.caucho.naming.InitialContextFactoryImpl]
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.init(InitialContext.java:175)
at com.caucho.naming.Jndi.bindDeep(Jndi.java:57)
at
com.caucho.loader.EnvironmentClassLoader.initializeEnvironment(EnvironmentClassLoader.java:435)
at
com.caucho.loader.EnvironmentClassLoader.init(EnvironmentClassLoader.java:107)
at
com.caucho.java.InternalCompiler.executeInt(InternalCompiler.java:138)
at
com.caucho.java.InternalCompiler.compileInt(InternalCompiler.java:78)
at
com.caucho.java.AbstractJavaCompiler.run(AbstractJavaCompiler.java:101)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.ClassNotFoundException:
com.caucho.naming.InitialContextFactoryImpl
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:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
... 10 more



-- 
View this message in context: 
http://old.nabble.com/Maven-classpath-question-tp27066744p27066744.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven classpath question

2010-01-07 Thread Wayne Fay
 However, when I run my JUnit test, I get the ClassNotFoundException below.
 The reason it is strange is because that class exists within the dependency
 above.  Can you think of some ways I can troubleshoot this problem further?

Download the jar and verify this file is inside the Jar before doing
anything else.

I've seen similar things posted on this list more than once, and
several times it turned out the Jar simply did not contain the class
file(s) they thought it did...

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org