You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ian Brandt (JIRA)" <ji...@codehaus.org> on 2012/08/14 22:22:21 UTC

[jira] (MSITE-648) NoClassDefFoundError upgrading to Maven Site Plugin 3.1

Ian Brandt created MSITE-648:
--------------------------------

             Summary: NoClassDefFoundError upgrading to Maven Site Plugin 3.1
                 Key: MSITE-648
                 URL: https://jira.codehaus.org/browse/MSITE-648
             Project: Maven 2.x and 3.x Site Plugin
          Issue Type: Bug
    Affects Versions: 3.1
            Reporter: Ian Brandt


When I update from 3.0 to 3.1 I get the error below.  I've reproduced it on a couple projects, but here is a relatively simple POM that manifests the issue when updated:

https://github.com/themadcreator/rabinfingerprint/blob/447cd065825b97e62a9b100f080ba217ba821de7/pom.xml

{noformat}
[INFO] --- maven-site-plugin:3.1:site (default-site) @ rabinfingerprint ---
Aug 12, 2012 12:35:05 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
WARNING: Error injecting: org.apache.maven.doxia.siterenderer.DefaultSiteRenderer
java.lang.NoClassDefFoundError: org/apache/maven/doxia/logging/Log
	at java.lang.Class.getDeclaredConstructors0(Native Method)
[...]
Caused by: java.lang.ClassNotFoundException: org.apache.maven.doxia.logging.Log
	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
	... 89 more
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-648) NoClassDefFoundError upgrading to Maven Site Plugin 3.1

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306196#comment-306196 ] 

Lukas Theussl commented on MSITE-648:
-------------------------------------

I cannot reproduce that (tested on linux and Mac), see my attached build log for comparison. 
                
> NoClassDefFoundError upgrading to Maven Site Plugin 3.1
> -------------------------------------------------------
>
>                 Key: MSITE-648
>                 URL: https://jira.codehaus.org/browse/MSITE-648
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Ian Brandt
>         Attachments: MSITE-648.out
>
>
> When I update from 3.0 to 3.1 I get the error below.  I've reproduced it on a couple projects, but here is a relatively simple POM that manifests the issue when updated:
> https://github.com/themadcreator/rabinfingerprint/blob/447cd065825b97e62a9b100f080ba217ba821de7/pom.xml
> {noformat}
> [INFO] --- maven-site-plugin:3.1:site (default-site) @ rabinfingerprint ---
> Aug 12, 2012 12:35:05 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
> WARNING: Error injecting: org.apache.maven.doxia.siterenderer.DefaultSiteRenderer
> java.lang.NoClassDefFoundError: org/apache/maven/doxia/logging/Log
> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
> [...]
> Caused by: java.lang.ClassNotFoundException: org.apache.maven.doxia.logging.Log
> 	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
> 	... 89 more
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-648) NoClassDefFoundError upgrading to Maven Site Plugin 3.1

Posted by "Ian Brandt (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Brandt closed MSITE-648.
----------------------------

    Resolution: Cannot Reproduce

Closing as this seems unrelated to the site plugin.
                
> NoClassDefFoundError upgrading to Maven Site Plugin 3.1
> -------------------------------------------------------
>
>                 Key: MSITE-648
>                 URL: https://jira.codehaus.org/browse/MSITE-648
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Ian Brandt
>         Attachments: build.log, MSITE-648.out
>
>
> When I update from 3.0 to 3.1 I get the error below.  I've reproduced it on a couple projects, but here is a relatively simple POM that manifests the issue when updated:
> https://github.com/themadcreator/rabinfingerprint/blob/447cd065825b97e62a9b100f080ba217ba821de7/pom.xml
> {noformat}
> [INFO] --- maven-site-plugin:3.1:site (default-site) @ rabinfingerprint ---
> Aug 12, 2012 12:35:05 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
> WARNING: Error injecting: org.apache.maven.doxia.siterenderer.DefaultSiteRenderer
> java.lang.NoClassDefFoundError: org/apache/maven/doxia/logging/Log
> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
> [...]
> Caused by: java.lang.ClassNotFoundException: org.apache.maven.doxia.logging.Log
> 	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
> 	... 89 more
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-648) NoClassDefFoundError upgrading to Maven Site Plugin 3.1

Posted by "Ian Brandt (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306213#comment-306213 ] 

Ian Brandt commented on MSITE-648:
----------------------------------

I tried building with a fresh local repo via {{mvn -Dmaven.repo.local=./.m2/repository site}}, and sure enough it works for me now as well.  It would seem I've picked up a bad dependency somehow:

{noformat}
$ sha1sum /Users/ibrandt/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.3/doxia-logging-api-1.3.jar
38cb0021345de82b4b5463b90576318d4fe7e5fb  /Users/ibrandt/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.3/doxia-logging-api-1.3.jar
$ sha1sum ./.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.3/doxia-logging-api-1.3.jar
bc61324cc8ff649d0e50e4194e07bf6ed29b4531  ./.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.3/doxia-logging-api-1.3.jar
{noformat}

{noformat}
$ unzip -t /Users/ibrandt/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.3/doxia-logging-api-1.3.jar
Archive:  /Users/ibrandt/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.3/doxia-logging-api-1.3.jar
file #1:  bad zipfile offset (local header sig):  0
file #2:  bad zipfile offset (local header sig):  39
file #3:  bad zipfile offset (local header sig):  298
file #4:  bad zipfile offset (local header sig):  332
file #5:  bad zipfile offset (local header sig):  373
file #6:  bad zipfile offset (local header sig):  420
file #7:  bad zipfile offset (local header sig):  473
file #8:  bad zipfile offset (local header sig):  534
file #9:  bad zipfile offset (local header sig):  907
    testing: META-INF/NOTICE          OK
    testing: org/apache/maven/doxia/logging/Log.class   OK
    testing: org/apache/maven/doxia/logging/LogEnabled.class   OK
    testing: org/apache/maven/doxia/logging/PlexusLoggerWrapper.class   OK
    testing: org/apache/maven/doxia/logging/SystemStreamLog.class   OK
    testing: META-INF/maven/          OK
    testing: META-INF/maven/org.apache.maven.doxia/   OK
    testing: META-INF/maven/org.apache.maven.doxia/doxia-logging-api/   OK
    testing: META-INF/maven/org.apache.maven.doxia/doxia-logging-api/pom.xml   OK
    testing: META-INF/maven/org.apache.maven.doxia/doxia-logging-api/pom.properties   OK
At least one error was detected in /Users/ibrandt/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.3/doxia-logging-api-1.3.jar.
$ unzip -t ./.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.3/doxia-logging-api-1.3.jar
Archive:  ./.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.3/doxia-logging-api-1.3.jar
    testing: META-INF/                OK
    testing: META-INF/MANIFEST.MF     OK
    testing: org/                     OK
    testing: org/apache/              OK
    testing: org/apache/maven/        OK
    testing: org/apache/maven/doxia/   OK
    testing: org/apache/maven/doxia/logging/   OK
    testing: META-INF/DEPENDENCIES    OK
    testing: META-INF/LICENSE         OK
    testing: META-INF/NOTICE          OK
    testing: org/apache/maven/doxia/logging/Log.class   OK
    testing: org/apache/maven/doxia/logging/LogEnabled.class   OK
    testing: org/apache/maven/doxia/logging/PlexusLoggerWrapper.class   OK
    testing: org/apache/maven/doxia/logging/SystemStreamLog.class   OK
    testing: META-INF/maven/          OK
    testing: META-INF/maven/org.apache.maven.doxia/   OK
    testing: META-INF/maven/org.apache.maven.doxia/doxia-logging-api/   OK
    testing: META-INF/maven/org.apache.maven.doxia/doxia-logging-api/pom.xml   OK
    testing: META-INF/maven/org.apache.maven.doxia/doxia-logging-api/pom.properties   OK
No errors detected in compressed data of ./.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.3/doxia-logging-api-1.3.jar.
{noformat}

                
> NoClassDefFoundError upgrading to Maven Site Plugin 3.1
> -------------------------------------------------------
>
>                 Key: MSITE-648
>                 URL: https://jira.codehaus.org/browse/MSITE-648
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Ian Brandt
>         Attachments: build.log, MSITE-648.out
>
>
> When I update from 3.0 to 3.1 I get the error below.  I've reproduced it on a couple projects, but here is a relatively simple POM that manifests the issue when updated:
> https://github.com/themadcreator/rabinfingerprint/blob/447cd065825b97e62a9b100f080ba217ba821de7/pom.xml
> {noformat}
> [INFO] --- maven-site-plugin:3.1:site (default-site) @ rabinfingerprint ---
> Aug 12, 2012 12:35:05 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
> WARNING: Error injecting: org.apache.maven.doxia.siterenderer.DefaultSiteRenderer
> java.lang.NoClassDefFoundError: org/apache/maven/doxia/logging/Log
> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
> [...]
> Caused by: java.lang.ClassNotFoundException: org.apache.maven.doxia.logging.Log
> 	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
> 	... 89 more
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-648) NoClassDefFoundError upgrading to Maven Site Plugin 3.1

Posted by "Lukas Theussl (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukas Theussl updated MSITE-648:
--------------------------------

    Attachment: build.log

Log of successful build.
                
> NoClassDefFoundError upgrading to Maven Site Plugin 3.1
> -------------------------------------------------------
>
>                 Key: MSITE-648
>                 URL: https://jira.codehaus.org/browse/MSITE-648
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Ian Brandt
>         Attachments: build.log, MSITE-648.out
>
>
> When I update from 3.0 to 3.1 I get the error below.  I've reproduced it on a couple projects, but here is a relatively simple POM that manifests the issue when updated:
> https://github.com/themadcreator/rabinfingerprint/blob/447cd065825b97e62a9b100f080ba217ba821de7/pom.xml
> {noformat}
> [INFO] --- maven-site-plugin:3.1:site (default-site) @ rabinfingerprint ---
> Aug 12, 2012 12:35:05 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
> WARNING: Error injecting: org.apache.maven.doxia.siterenderer.DefaultSiteRenderer
> java.lang.NoClassDefFoundError: org/apache/maven/doxia/logging/Log
> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
> [...]
> Caused by: java.lang.ClassNotFoundException: org.apache.maven.doxia.logging.Log
> 	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
> 	... 89 more
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-648) NoClassDefFoundError upgrading to Maven Site Plugin 3.1

Posted by "Guimiot Isabelle (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315843#comment-315843 ] 

Guimiot Isabelle commented on MSITE-648:
----------------------------------------

I had exactly the same problem : I resolved it by deleting the org/apache/maven/doxia directory from my local maven repository, then it worked fine again !
                
> NoClassDefFoundError upgrading to Maven Site Plugin 3.1
> -------------------------------------------------------
>
>                 Key: MSITE-648
>                 URL: https://jira.codehaus.org/browse/MSITE-648
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Ian Brandt
>         Attachments: build.log, MSITE-648.out
>
>
> When I update from 3.0 to 3.1 I get the error below.  I've reproduced it on a couple projects, but here is a relatively simple POM that manifests the issue when updated:
> https://github.com/themadcreator/rabinfingerprint/blob/447cd065825b97e62a9b100f080ba217ba821de7/pom.xml
> {noformat}
> [INFO] --- maven-site-plugin:3.1:site (default-site) @ rabinfingerprint ---
> Aug 12, 2012 12:35:05 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
> WARNING: Error injecting: org.apache.maven.doxia.siterenderer.DefaultSiteRenderer
> java.lang.NoClassDefFoundError: org/apache/maven/doxia/logging/Log
> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
> [...]
> Caused by: java.lang.ClassNotFoundException: org.apache.maven.doxia.logging.Log
> 	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
> 	... 89 more
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-648) NoClassDefFoundError upgrading to Maven Site Plugin 3.1

Posted by "Ian Brandt (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=306210#comment-306210 ] 

Ian Brandt commented on MSITE-648:
----------------------------------

Just for completeness here is my diff to the above POM:

{noformat}
 $ git diff
diff --git a/pom.xml b/pom.xml
index cfb3041..20e805a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -124,7 +124,7 @@
                                </plugin>
                                <plugin>
                                        <artifactId>maven-site-plugin</artifactId>
-                                       <version>3.0</version>
+                                       <version>3.1</version>
                                </plugin>
                                <plugin>
                                        <artifactId>maven-source-plugin</artifactId>
{noformat}
                
> NoClassDefFoundError upgrading to Maven Site Plugin 3.1
> -------------------------------------------------------
>
>                 Key: MSITE-648
>                 URL: https://jira.codehaus.org/browse/MSITE-648
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Ian Brandt
>         Attachments: build.log, MSITE-648.out
>
>
> When I update from 3.0 to 3.1 I get the error below.  I've reproduced it on a couple projects, but here is a relatively simple POM that manifests the issue when updated:
> https://github.com/themadcreator/rabinfingerprint/blob/447cd065825b97e62a9b100f080ba217ba821de7/pom.xml
> {noformat}
> [INFO] --- maven-site-plugin:3.1:site (default-site) @ rabinfingerprint ---
> Aug 12, 2012 12:35:05 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
> WARNING: Error injecting: org.apache.maven.doxia.siterenderer.DefaultSiteRenderer
> java.lang.NoClassDefFoundError: org/apache/maven/doxia/logging/Log
> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
> [...]
> Caused by: java.lang.ClassNotFoundException: org.apache.maven.doxia.logging.Log
> 	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
> 	... 89 more
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-648) NoClassDefFoundError upgrading to Maven Site Plugin 3.1

Posted by "Ian Brandt (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Brandt updated MSITE-648:
-----------------------------

    Attachment: MSITE-648.out

Attaching full debug output.
                
> NoClassDefFoundError upgrading to Maven Site Plugin 3.1
> -------------------------------------------------------
>
>                 Key: MSITE-648
>                 URL: https://jira.codehaus.org/browse/MSITE-648
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 3.1
>            Reporter: Ian Brandt
>         Attachments: MSITE-648.out
>
>
> When I update from 3.0 to 3.1 I get the error below.  I've reproduced it on a couple projects, but here is a relatively simple POM that manifests the issue when updated:
> https://github.com/themadcreator/rabinfingerprint/blob/447cd065825b97e62a9b100f080ba217ba821de7/pom.xml
> {noformat}
> [INFO] --- maven-site-plugin:3.1:site (default-site) @ rabinfingerprint ---
> Aug 12, 2012 12:35:05 PM org.sonatype.guice.bean.reflect.Logs$JULSink warn
> WARNING: Error injecting: org.apache.maven.doxia.siterenderer.DefaultSiteRenderer
> java.lang.NoClassDefFoundError: org/apache/maven/doxia/logging/Log
> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
> [...]
> Caused by: java.lang.ClassNotFoundException: org.apache.maven.doxia.logging.Log
> 	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
> 	... 89 more
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira