При запуске веб-службы Iam получаю ошибку, используя сервер Apache CXF и IDE Spring Tool Suite 4 - PullRequest
0 голосов
/ 19 апреля 2020

. ____ _ __ _ _ / \ / ' __ _ () _ __ __ _ \ \ \ \ (() _ |' _ | ' | | ' / `| \ \ \ \ \ / ) | | ) | | | | | || ( | |)))) '| ____ | . | | | | | | __, | / / / / ========= | _ | ============== | ___ / = / / / _ / :: Spring Boot: : (v2.2.6.RELEASE)

2020-04-19 21: 37: 31.513 INFO 2644 --- [main] com.bhanu.restws.RestwsApplication: запуск приложения RestwsApplication на DESKTOP-P52KP7P с PID 2644 ( D: \ Program Files \ workspace-spring-tool-suite-4-4.6.0.RELEASE \ restws \ target \ classes, запущенные win10 в D: \ Program Files \ workspace-spring-tool-suite-4-4.6.0 .RELEASE \ restws) 2020-04-19 21: 37: 31.515 INFO 2644 --- [main] com.bhanu.restws.RestwsApplication: активный профиль не задан, возвращаются к профилям по умолчанию: по умолчанию 2020-04-19 21: 37: 31.976 ОШИБКА 2644 --- [main] osboot.SpringApplication: сбой запуска приложения

java .lang.IllegalArgumentException: не удалось найти класс [org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutofiguration] org.springframework.util.ClassUtils.resolveClassName (ClassUtils. java: 335) ~ [spring-core-5.2.5.RELEASE.jar: 5.2.5.RELEASE] в org.springframework.core.annotation.TypeMappedA nnotation.adapt (TypeMappedAnnotation. java: 481) ~ [spring-core-5.2.5.RELEASE.jar: 5.2.5.RELEASE] в org.springframework.core.annotation.TypeMappedAnnotation.getValue (TypeMappedAnnotation. java : 401) ~ [spring-core-5.2.5.RELEASE.jar: 5.2.5.RELEASE] в org.springframework.core.annotation.TypeMappedAnnotation.asMap (TypeMappedAnnotation. java: 286) ~ [spring-core- 5.2.5.RELEASE.jar: 5.2.5.RELEASE] at org.springframework.core.annotation.AbstractMergedAnnotation.asAnnotationAttributes (AbstractMergedAnnotation. java: 193) ~ [spring-core-5.2.5.RELEASE.jar: 5.2 .5.RELEASE] at org.springframework.core.type.AnnotatedTypeMetadata.getAnnotationAttributes (AnnotatedTypeMetadata. java: 106) ~ [spring-core-5.2.5.RELEASE.jar: 5.2.5.RELEASE] в org.s .context.annotation.AnnotationConfigUtils.attributesFor (AnnotationConfigUtils. java: 285) ~ [spring-context-5.2.5.RELEASE.jar: 5.2.5. AnnotationBean NameGenerator. java: 98) ~ [spring-context-5.2.5.RELEASE.jar: 5.2.5.RELEASE] в org.springframework.context.annotation.AnnotationBeanNameGenerator.generateBeanName (AnnotationBeanNameGenerator. java: 77) [spring-context-5.2.5.RELEASE.jar: 5.2.5.RELEASE] в org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.registerBeanDefinitionForImportedConfigurationClass (ConfigurationClassBeanDefinitionReader. * 1043. RELEASE.jar: 5.2.5.RELEASE] в org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass (ConfigurationClassBeanDefinitionReader. java: 141) ~ [spring-context-5.2EE 5.2R. ] at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions (ConfigurationClassBeanDefinitionReader. java: 120) ~ [spring-context-5.2.5.RELEASE.jar: 5.2.5.RELEASE] в org.snometationra .ConfigurationClassPostProcessor.processConfigBea nDefinitions (ConfigurationClassPostProcessor. java: 331) ~ [spring-context-5.2.5.RELEASE.jar: 5.2.5.RELEASE] в org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry (ConfigurationClass: 10ProPro ) ~ [spring-context-5.2.5.RELEASE.jar: 5.2.5.RELEASE] в org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors (PostProcessorRegistrationDelegate. java -5-27 -5). 5.RELEASE.jar: 5.2.5.RELEASE] по адресу org.springframework.context.support. PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors (PostProcessorRegistrationDelegate. java: 95) ~ [spring-context-5.2.5.RELEASE.jar: 5.2.5.RELEASE] в org.springframework.context.support.Access : 706) ~ [spring-context-5.2.5.RELEASE.jar: 5.2.5.RELEASE] в org.springframework.context.support.AbstractApplicationContext.refre sh (AbstractApplicationContext. java: 532) ~ [spring -context-5.2.5.RELEASE.jar: 5.2.5.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refre sh (ServletWebServerApplicationContext. java: 141) -2.2.6.RELEASE.jar: 2.2.6.RELEASE] at org.springframework.boot.SpringApplication.refre sh (SpringApplication. java: 747) [spring-boot-2.2.6.RELEASE.jar: 2.2.6.RELEASE] в org.springframework.boot.SpringApplication.refreshContext (SpringApplication. java: 397) [spring-boot-2.2.6.RELEASE.jar: 2.2.6.RELEASE] в org.springframework.bo ot.SpringApplication.run (SpringApplication. java: 315) [spring-boot-2.2.6.RELEASE.jar: 2.2.6.RELEASE] в org.springframework.boot.SpringApplication.run (SpringApplication. java: 1226) [spring-boot-2.2.6.RELEASE.jar: 2.2.6.RELEASE] в org.springframework.boot.SpringApplication.run (SpringApplication. java: 1215) [spring-boot-2.2.6.RELEASE .jar: 2.2.6.RELEASE] at com.bhanu.restws.RestwsApplication.main (RestwsApplication. java: 10) [classes /: na] Причина: java .lang.ClassNotFoundException: org.springframework.boot .autoconfigure.web.EmbeddedServletContainerAutoConfiguration в java. net .URLClassLoader.findClass (URLClassLoader. java: 382) ~ [na: 1.8.0_201] в java .lang.ClassLoader.loadClass (ClassLoader. *: 424) ~ [na: 1.8.0_201] at sun.mis c .Launcher $ AppClassLoader.loadClass (Launcher. java: 349) ~ [na: 1.8.0_201] в java .lang.ClassLoader .loadClass (ClassLoader. java: 357) ~ [na: 1.8.0_201] в java .lang.Class.forName0 (собственный метод) ~ [na: 1.8.0_201] в java .lang.Class. forName (Класс. * 107 4 *: 348) ~ [na: 1.8.0_201] в org.springframework.util.ClassUtils.forName (ClassUtils. java: 285) ~ [spring-core-5.2.5.RELEASE.jar: 5.2.5. RELEASE] at org.springframework.util.ClassUtils.resolveClassName (ClassUtils. java: 325) ~ [spring-core-5.2.5.RELEASE.jar: 5.2.5.RELEASE] ... 24 общих кадра опущено

Это мой файл pom

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.2.6.RELEASE</version>
    <relativePath /> 
</parent>
<groupId>com.bhanu.restws</groupId>
<artifactId>restws</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>restws</name>
<description>Patient REST Services</description>

<properties>
    <java.version>1.8</java.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
    </dependency>
    <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
        <version>3.1.11</version>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <groupId>org.junit.vintage</groupId>
                <artifactId>junit-vintage-engine</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

// Пожалуйста, помогите, спасибо:)

...