Bug 1197125 - maven builds failing on F22 with java.lang.CNFE: org.objectweb.asm.ClassVisitor
Summary: maven builds failing on F22 with java.lang.CNFE: org.objectweb.asm.ClassVisitor
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xmvn
Version: 22
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Michal Srb
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1197132
TreeView+ depends on / blocked
 
Reported: 2015-02-27 14:43 UTC by Mat Booth
Modified: 2015-03-13 17:16 UTC (History)
5 users (show)

Fixed In Version: xmvn-2.2.1-4.fc22
Clone Of:
Environment:
Last Closed: 2015-03-13 17:16:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mat Booth 2015-02-27 14:43:12 UTC
Maven builds were failing for me on F22 with the following error, presumably related to the unbundling of asm from sisu:

Exception in thread "main" java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
        at org.eclipse.sisu.space.SpaceModule.<clinit>(SpaceModule.java:45)
        at org.eclipse.sisu.plexus.PlexusAnnotatedBeanModule.<init>(PlexusAnnotatedBeanModule.java:76)
        at org.codehaus.plexus.DefaultPlexusContainer.<init>(DefaultPlexusContainer.java:202)
        at org.apache.maven.cli.MavenCli.container(MavenCli.java:400)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:210)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
        ... 14 more

Installed:
xmvn-2.2.1-1.fc22.noarch
sisu-inject-0.3.0-1.fc22.noarch.rpm

I was able work around the problem by executing the following command inside the buildroot:

(cd /usr/share/xmvn/lib && sudo ln -s /usr/share/java/objectweb-asm/asm.jar)

Then my build was able to run to completion.

Comment 1 Mat Booth 2015-02-27 16:43:27 UTC
This blocks building eclipse for F22

Comment 2 Fedora Update System 2015-02-27 20:01:19 UTC
xmvn-2.2.1-4.fc22,maven-3.2.5-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/xmvn-2.2.1-4.fc22,maven-3.2.5-2.fc22

Comment 3 Fedora Update System 2015-02-28 16:41:58 UTC
Package xmvn-2.2.1-4.fc22, maven-3.2.5-2.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xmvn-2.2.1-4.fc22 maven-3.2.5-2.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-2881/xmvn-2.2.1-4.fc22,maven-3.2.5-2.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-03-13 17:16:24 UTC
xmvn-2.2.1-4.fc22, maven-3.2.5-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.