Jetty
  1. Jetty
  2. JETTY-1512

War Project with dependency to jetty-websocket with scope provided throws ClassNotFoundException on jetty:run

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Maven
    • Labels:
      None
    • Environment:
      Maven 3.0.2, Eclipse 3.7.2 64bit, Windows 7, Jetty-plugin and dependencies: 8.1.3.v20120416
    • Number of attachments :
      0

      Description

      I wrote a maven war project that contains a jetty websocket implementation. I've defined the dependency to jetty-websocket as 'provided', to keep it (and its transient dependencies) out of the resulting war file. But doing so makes it impossible to test this with the jetty:run goal, as the webapp throws an ClassNotFoundException for the jetty websocket classes. Setting the useProvidedScope in the plugin configuration to 'true' did't improve the situation, as the plugin filters system jars from the provided dependencies. before adding anything, and jetty-websocket is in the system jars.

        Activity

        Jan Bartel made changes -
        Field Original Value New Value
        Assignee Jan Bartel [ janb ]
        Hide
        Jan Bartel added a comment -

        Fixed for 7.6.4. Added jetty-websocket to list of dependencies for jetty-maven-plugin.

        Show
        Jan Bartel added a comment - Fixed for 7.6.4. Added jetty-websocket to list of dependencies for jetty-maven-plugin.
        Jan Bartel made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Jan Bartel
            Reporter:
            Kai Hackemesser
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: