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]