Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6298

3.5.2: ClassNotFoundException: javax.annotation.security.RolesAllowed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.5.2
    • Fix Version/s: 3.5.3
    • Component/s: Class Loading
    • Labels:
      None
    • Environment:
      Mac OS X 10.12.6, Ubuntu 15.10 64 bit, and Windows is presumed.

      Description

      Maven 3.5.2 appears to have introduces some kind of a class loading error, manifesting itself like this:

      Caused by: java.lang.ClassNotFoundException: javax.annotation.security.RolesAllowed
      	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)
      	... 184 more
      

      Previous versions of Maven do not manifest this.

      To reproduce this:

      • Clone the Enunciate sample project.
      • Build the project (mvn clean package) with 3.5.0 and note the success.
      • Build the project with 3.5.2 and note the failure.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                khmarbaise Karl Heinz Marbaise
                Reporter:
                stoicflame Ryan Heaton
              • Votes:
                4 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: