[ 
http://jira.codehaus.org/browse/MOJO-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_104642
 ] 

David Lopez edited comment on MOJO-883 at 8/12/07 4:18 AM:
-----------------------------------------------------------

Really I don't know what's happening, but in dashboard pom the asm library is 
marked as excluded:

{code:xml}
<dependency>
  <groupId>cobertura</groupId>
  <artifactId>cobertura</artifactId>
  <version>1.7</version>
  <exclusions>
    [..]
    <exclusion>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
    </exclusion>
    [..]
  </exclusion>
</dependency>
{code}

If I remove that exclusion, the error changes, from 
{{java.lang.NoClassDefFoundError: org/objectweb/asm/Type}} to 
{{java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor}}. Looking 
inside the downloaded asm library jar (version 2.1) we can see the class 
{{org/objectweb/asm/Type}}, but {{org/objectweb/asm/CodeVisitor}} doesn't 
exists.

Adding the following dependency inside dashboard pom seems to fix this issue:

{code:xml}
<dependency>
    <groupId>asm</groupId>
    <artifactId>asm</artifactId>
    <version>1.5.3</version>
</dependency>
{code}

It's very strange, because this dependency already exists in hibernate. I think 
this is an issue regarding maven dependency resolver. I'm using maven 2.0.4


 was:
Really I don't know what's happening, but in dashboard pom the asm library is 
marked as excluded:

{code:xml}
<dependency>
  <groupId>cobertura</groupId>
  <artifactId>cobertura</artifactId>
  <version>1.7</version>
  <exclusions>
    [..]
    <exclusion>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
    </exclusion>
    [..]
  </exclusion>
</dependency>
{code}

If I remove that exclusion, the error changes, from 
{{java.lang.NoClassDefFoundError: org/objectweb/asm/Type}} to 
{{java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor}}. Looking 
inside the downloaded asm library jar (version 2.1) we can see the class 
{{org/objectweb/asm/Type}}, but {{org/objectweb/asm/CodeVisitor}} doesn't 
exists.

Adding the following dependency inside dashboard pom seems to fix this issue:

{code:xml}
<dependency>
    <groupId>cglib</groupId>
    <artifactId>cglib-nodep</artifactId>
    <version>2.1_3</version>
</dependency>
{code}

BTW, if we add a dependcy to cglib-asm (which has the class {{CodeVisitor}}) 
instead to cglib-nodep, dashboard plugin also fails with the following error: 

{code}
java.lang.IllegalAccessError
        at net.sf.cglib.core.ClassEmitter.setTarget(ClassEmitter.java:45)
{code}

> Dashboard missing dependencies
> ------------------------------
>
>                 Key: MOJO-883
>                 URL: http://jira.codehaus.org/browse/MOJO-883
>             Project: Mojo
>          Issue Type: Bug
>          Components: dashboard
>            Reporter: David Lopez
>            Assignee: David Vicente
>
> Seems that latests snapshots are failing due to a missing dependency. I think 
> that probably this bug appears with the inclusion of  historic support.
> As workaround I added the following dependency in "build" section:
>     <build>
>                   <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                  <artifactId>dashboard-maven-plugin</artifactId>
>                  <dependencies>
>                      <dependency>
>                          <groupId>cglib</groupId>
>                          <artifactId>cglib-nodep</artifactId>
>                          <version>2.1_3</version>
>                      </dependency>
>                  </dependencies>
>              </plugin>
>          </plugins>
>      </build>
> A stack trace when executing from command line "mvn site"
> [INFO] MultiReportMojo project language = java
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] org/objectweb/asm/Type
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NoClassDefFoundError: org/objectweb/asm/Type
>       at net.sf.cglib.core.TypeUtils.parseType(TypeUtils.java:180)
>       at net.sf.cglib.core.KeyFactory.(KeyFactory.java:66)
>       at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)
>       at 
> com.thoughtworks.xstream.converters.reflection.CGLIBEnhancedConverter.canConvert(CGLIBEnhancedConverter.java:59)
>       at 
> com.thoughtworks.xstream.core.DefaultConverterLookup.registerConverter(DefaultConverterLookup.java:58)
>       at com.thoughtworks.xstream.XStream.registerConverter(XStream.java:975)
>       at 
> com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(XStream.java:646)
>       at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:629)
>       at com.thoughtworks.xstream.XStream.(XStream.java:371)
>       at com.thoughtworks.xstream.XStream.(XStream.java:316)
>       at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.saveXMLDashBoardReport(DashBoardUtils.java:897)
>       at 
> org.codehaus.mojo.dashboard.report.plugin.DashBoardReportMojo.executeReport(DashBoardReportMojo.java:257)

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to