ClassNotFoundException: org.eclipse.jetty.util.component.AbstractLifeCycle running inside jetty

前端 未结 5 967
太阳男子
太阳男子 2020-12-10 05:49

I am having an issue running a servlet in jetty on Ubuntu 13.04. The server is installed using apt-get and started using sudo service jetty start.

5条回答
  •  Happy的楠姐
    2020-12-10 06:20

    I got this when combining wiremock and DynamoDBLocal which both includes different versions of jetty. Excluding these dependencies in each of these and then explicitly having these in the pom with a specific version. However, seems org.eclipse.jetty.util.component.AbstractLifeCycle is only used in up to version 8.2.0.v20160908 (hence it does not solve it to have a newer version)

    See example below:

    
        8.2.0.v20160908
    
    
        
            com.amazonaws
            DynamoDBLocal
            ${dynamodb-local.version}
            test
            
                
                  org.eclipse.jetty
                  jetty-util
                
               
                 org.eclipse.jetty
                 jetty-io
               
                
                 org.eclipse.jetty
                 jetty-security
               
               
                 org.eclipse.jetty
                 jetty-servlets
               
               
                 org.eclipse.jetty
                 jetty-webapp
               
               
                 org.eclipse.jetty
                 jetty-webapp
               
               
                 org.eclipse.jetty
                 jetty-xml
               
            
        
    
        
            com.github.tomakehurst
            wiremock
            
              
                com.google.guava
                guava
              
               
                 org.eclipse.jetty
                 jetty-util
               
               
                 org.eclipse.jetty
                 jetty-io
               
                
                 org.eclipse.jetty
                 jetty-security
               
               
                 org.eclipse.jetty
                 jetty-servlets
               
               
                 org.eclipse.jetty
                 jetty-webapp
               
               
                 org.eclipse.jetty
                 jetty-webapp
               
               
                 org.eclipse.jetty
                 jetty-xml
               
            
            ${wiremock.version}
            test
        
    
        
          org.eclipse.jetty
          jetty-util
          ${jetty.version}
          test
        
        
          org.eclipse.jetty
          jetty-io
          ${jetty.version}
          test
        
        
          org.eclipse.jetty
          jetty-security
          ${jetty.version}
          test
        
        
          org.eclipse.jetty
          jetty-servlets
          ${jetty.version}
          test
         
        
          org.eclipse.jetty
          jetty-webapp
          ${jetty.version}
          test
               
        
          org.eclipse.jetty
          jetty-xml
          ${jetty.version}
          test
        
    

提交回复
热议问题