Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run DriveQuickstart in a Spring Boot project #106

Open
jfrac opened this issue Jun 23, 2020 · 0 comments
Open

Can't run DriveQuickstart in a Spring Boot project #106

jfrac opened this issue Jun 23, 2020 · 0 comments

Comments

@jfrac
Copy link

jfrac commented Jun 23, 2020

Can't run DriveQuickstart in a Spring project

Expected Behavior

DriveQuickstart executed successfully

Actual Behavior

Got the next error:

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call the method javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String; but it does not exist. Its class, javax.servlet.ServletContext, is available from the following locations:

    jar:file:[...].m2/repository/org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.jar!/javax/servlet/ServletContext.class
    jar:file:[...].m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.5.39/tomcat-embed-core-8.5.39.jar!/javax/servlet/ServletContext.class

It was loaded from the following location:

    file:[...].m2/repository/org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of javax.servlet.ServletContext

Specifications

  • Java: version 10
  • OS: Mac
  • Spring Boot: 2.0.9.RELEASE
@jfrac jfrac changed the title Can't run DriveQuickstart in a Spring project Can't run DriveQuickstart in a Spring Boot project Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant