spring-ws - Oracle Weblogi c 12c - PullRequest
       27

spring-ws - Oracle Weblogi c 12c

0 голосов
/ 03 апреля 2020

Я пытаюсь развернуть приложение на основе SOAP в моем Weblogi c 12 c, но у меня много проблем.

Я реализовал SpringBootServletInitializer:

public class AppSoapService extends SpringBootServletInitializer implements WebApplicationInitializer {

    public static void main(String[] args) {
        SpringApplication.run(AppSoapService.class, args);
    }

    /**
     * Configure the application. Normally all you would need to do is to add sources
     * (e.g. config classes) because other settings have sensible defaults. You might
     * choose (for instance) to add default command line arguments, or set an active
     * Spring profile.
     *
     * @param builder a builder for the application context
     * @return the application builder
     * @see SpringApplicationBuilder
     */
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(AppSoapService.class, WebServiceConfig.class);
    }

}

После Как запустить приложение Spring Boot на weblogi c 12 C? и Исключение Spring Boot: не удалось открыть ресурс ServletContext [/ WEB-INF / dispatcherServlet -servlet.xml] , я создал dispatcherServlet-servlet.xml, но теперь я получаю следующую ошибку:

org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/messageDispatcherServlet-servlet.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/messageDispatcherServlet-servlet.xml]

Это мой weblogic.xml

<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app       http://xmlns.oracle.com/weblogic/weblogic-web-app/1.9/weblogic-web-app.xsd">
    <wls:context-root>as-soap</wls:context-root>
    <wls:container-descriptor>
        <wls:prefer-web-inf-classes>false</wls:prefer-web-inf-classes>
        <wls:prefer-application-packages>
            <wls:package-name>org.slf4j</wls:package-name>
            <wls:package-name>org.springframework</wls:package-name>
            <wls:package-name>org.apache</wls:package-name>
            <wls:package-name>org.springdoc</wls:package-name>
            <wls:package-name>wsdl4j</wls:package-name>
            <wls:package-name>org.mapstruct</wls:package-name>
            <wls:package-name>com.fasterxml</wls:package-name>
        </wls:prefer-application-packages>
    </wls:container-descriptor>

    <wls:library-ref>
        <wls:library-name>as-arch</wls:library-name>
        <wls:specification-version>1.2</wls:specification-version>
        <wls:implementation-version>1.2.0</wls:implementation-version>
    </wls:library-ref>
    <wls:library-ref>
        <wls:library-name>as-service</wls:library-name>
        <wls:specification-version>1.3</wls:specification-version>
        <wls:implementation-version>1.3.0</wls:implementation-version>
    </wls:library-ref>
</wls:weblogic-web-app>

Может кто-нибудь поможет мне?

...