You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by co...@runbox.com on 2003/12/19 21:14:13 UTC
Error Creating Project
Hi, I was attempting to create a project and I received the following error:
BEGIN:
$ maven -Dpackage=com.ussearch.darwin genapp
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm
ons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.C
lass;@1d9dc39 for org.apache.commons.logging.impl.Log4JLogger
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:532)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:272)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:246)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
at org.apache.maven.cli.App.<init>(App.java:218)
at org.apache.maven.cli.App.main(App.java:1108)
... 6 more
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@1d9dc39 for org.apache.commons.logging.impl.Log4
JLogger
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
actoryImpl.java:432)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:525)
... 11 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
at java.lang.Class.getConstructor0(Class.java:1922)
at java.lang.Class.getConstructor(Class.java:1019)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
actoryImpl.java:429)
... 12 more
END:
I have the commons-logging.jar in my installed extensions directory. Thus, I really don't understand why I'm getting this error message. If anyone has any ideas, please post to the group and/or send me an e-mail.
Thanks in advance,
-Conrad
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Error Creating Project
Posted by Ben Walding <be...@walding.com>.
It may be that you are getting classloader issues (i.e. multiple
commons-logging versions installed).
I'd try removing commons-logging from your extensions directory.
conradwt@runbox.com wrote:
>Hi, I was attempting to create a project and I received the following error:
>
>BEGIN:
>
>$ maven -Dpackage=com.ussearch.darwin genapp
>java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at com.werken.forehead.Forehead.run(Forehead.java:551)
> at com.werken.forehead.Forehead.main(Forehead.java:581)
>Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm
>ons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.C
>lass;@1d9dc39 for org.apache.commons.logging.impl.Log4JLogger
> at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
>Impl.java:532)
> at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
>Impl.java:272)
> at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
>Impl.java:246)
> at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
> at org.apache.maven.cli.App.<init>(App.java:218)
> at org.apache.maven.cli.App.main(App.java:1108)
> ... 6 more
>Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log
> constructor [Ljava.lang.Class;@1d9dc39 for org.apache.commons.logging.impl.Log4
>JLogger
> at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
>actoryImpl.java:432)
> at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
>Impl.java:525)
> ... 11 more
>Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
> at java.lang.Class.getConstructor0(Class.java:1922)
> at java.lang.Class.getConstructor(Class.java:1019)
> at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogF
>actoryImpl.java:429)
> ... 12 more
>
>END:
>
>I have the commons-logging.jar in my installed extensions directory. Thus, I really don't understand why I'm getting this error message. If anyone has any ideas, please post to the group and/or send me an e-mail.
>
>Thanks in advance,
>
>-Conrad
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org