You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jerome Lacoste (JIRA)" <ji...@codehaus.org> on 2006/07/06 15:14:21 UTC

[jira] Created: (MNG-2421) [plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"

[plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"
------------------------------------------------------------------------------------------------------------------------------------------------------------

         Key: MNG-2421
         URL: http://jira.codehaus.org/browse/MNG-2421
     Project: Maven 2
        Type: Bug

  Components: Sandbox  
 Environment: maven 2.0.4
    Reporter: Jerome Lacoste
 Attachments: mvn.log

This happens when I try running it on the under the mojo/webstart-maven-plugin/plugin directory

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MNG-2421) [plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2421?page=comments#action_69262 ] 

Dennis Lundberg commented on MNG-2421:
--------------------------------------

I've done some digging and using commons-logging-1.0.4 produces this more usable message:
  "Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed."

This seems to indicate a problem with the class loader hierarchy. Updating to commons-logging-1.1 solves this. That release of commons-logging had many fixes to class loading issues. Unless anyone thinks it is bad to add a dependency on commons-logging-1.1 I will commit the changes I have. Will leave it open for comments first.

> [plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2421
>          URL: http://jira.codehaus.org/browse/MNG-2421
>      Project: Maven 2
>         Type: Bug

>   Components: Sandbox
>  Environment: maven 2.0.4
>     Reporter: Jerome Lacoste
>  Attachments: mvn.log
>
>
> This happens when I try running it on the under the mojo/webstart-maven-plugin/plugin directory

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MNG-2421) [plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2421?page=comments#action_70291 ] 
            
Dennis Lundberg commented on MNG-2421:
--------------------------------------

Jerome, I have committed my proposed fix for this issue. It works for me now. Can you check out the latest from SVN, build the plugin and test that it works for you.

> [plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-2421
>                 URL: http://jira.codehaus.org/browse/MNG-2421
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Sandbox
>         Environment: maven 2.0.4
>            Reporter: Jerome Lacoste
>         Attachments: mvn.log
>
>
> This happens when I try running it on the under the mojo/webstart-maven-plugin/plugin directory

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (MDOCCK-1) [plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDOCCK-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103391 ] 

Dennis Lundberg edited comment on MDOCCK-1 at 7/26/07 1:33 PM:
---------------------------------------------------------------

This was fixed in beta-1.


 was:
This was fix in beta-1.

> [plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MDOCCK-1
>                 URL: http://jira.codehaus.org/browse/MDOCCK-1
>             Project: Maven 2.x DOCCK Plugin
>          Issue Type: Bug
>         Environment: maven 2.0.4
>            Reporter: Jerome Lacoste
>            Assignee: Dennis Lundberg
>             Fix For: 1.0-beta-1
>
>         Attachments: mvn.log
>
>
> This happens when I try running it on the under the mojo/webstart-maven-plugin/plugin directory

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MDOCCK-1) [plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDOCCK-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg closed MDOCCK-1.
--------------------------------

         Assignee: Dennis Lundberg
       Resolution: Fixed
    Fix Version/s: 1.0-beta-1

This was fix in beta-1.

> [plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MDOCCK-1
>                 URL: http://jira.codehaus.org/browse/MDOCCK-1
>             Project: Maven 2.x DOCCK Plugin
>          Issue Type: Bug
>         Environment: maven 2.0.4
>            Reporter: Jerome Lacoste
>            Assignee: Dennis Lundberg
>             Fix For: 1.0-beta-1
>
>         Attachments: mvn.log
>
>
> This happens when I try running it on the under the mojo/webstart-maven-plugin/plugin directory

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-2421) [plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2421?page=comments#action_69256 ] 

Dennis Lundberg commented on MNG-2421:
--------------------------------------

This is because docck uses commons-httpclient which in turn uses commons-logging. When commons-logging tries to configure itself it does not find any configuration at all. But it does find log4j in the classpath so it tries to use it. There is no configuration for log4j so it (log4j) opts to shut down completely.

I added a dependency in docck on commons-logging 1.1 which has some nice diagnostics to use in cases like this. Then I ran Maven on the webstart-plugin again like this:

mvn docck:plugin -Dorg.apache.commons.logging.diagnostics.dest=STDOUT

This tells commons-logging to output its diagnostics to STDOUT. The diagnostics shoes the classloading and configuration chain. This might be good in other cases as well. Doing this actually showed the results for docck, so it can be used as a workaround for the time being.

I will try to see if I can tweak docck to work better.

> [plugins/docck] fail to run "org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log"
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2421
>          URL: http://jira.codehaus.org/browse/MNG-2421
>      Project: Maven 2
>         Type: Bug

>   Components: Sandbox
>  Environment: maven 2.0.4
>     Reporter: Jerome Lacoste
>  Attachments: mvn.log
>
>
> This happens when I try running it on the under the mojo/webstart-maven-plugin/plugin directory

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira