Hi Jerome, My latest nohup.out is http://rafb.net/p/seMDUu17.html. I've dumped the classloader of my app as well as the system classloader. It appears that I have a RealmClassloader loading my classes and it has everything it needs.
However, http://rafb.net/p/qC12GT63.html captures my execution from within Eclipse. Here we see that all of the dependencies are in the system classloader. Perhaps Spring is looking to the (mostly empty) system classloader in the case where it fails? Any insights would be appreciated. Thanks! James > On 4/3/07, James CE Johnson <[EMAIL PROTECTED]> wrote: >> I'm writting a MoJo that uses a utility Iwhich, in turn, uses Spring. >> When I invoke the utility (with the correct classpath) from the command >> line everything works fine. When I invoke the MoJo from Eclipse >> everything still works fine. However, when I invoke the MoJo from mvn it >> tells me: >> >> org.springframework.beans.factory.BeanDefinitionStoreException: >> Unexpected exception parsing XML document from class path resource >> [com/myco/foo/util/myUtility/engine.xml]; nested exception is >> java.lang.IllegalArgumentException: Class >> [org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler] >> does not implement the NamespaceHandler interface >> Caused by: java.lang.IllegalArgumentException: Class >> [org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler] >> does not implement the NamespaceHandler interface >> >> A capture of the mvn invocation is at http://rafb.net/p/fOEW5I52.html >> >> It smells like a classloader issue but I'm too new to m2 to know which >> way to jump. Any ideas? > > Sounds like a classpath issue. If you can, try to see what classpath the > following code sees: > > at com.myco.foo.util.myUtility.ContextLoader.load(ContextLoader.java:14) > at com.myco.foo.util.myUtility.Main.execute(Main.java:47) > > You may need to override the classpath given by maven to achieve your > needs. > > See also http://forum.springframework.org/showthread.php?t=35232 > > J > > --------------------------------------------------------------------- To > unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]