首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在weblogic 12.1.3上部署spring boot构建的ear文件

无法在weblogic 12.1.3上部署spring boot构建的ear文件
EN

Stack Overflow用户
提问于 2019-06-12 14:15:30
回答 1查看 186关注 0票数 0

当我尝试在weblogic中部署一个spring boot构建的EAR时,我得到了下面的异常。

pom文件:

代码语言:javascript
复制
<groupId>com.xyz.someComp</groupId>
<artifactId>someAPI</artifactId>
<version>0.0.3-SNAPSHOT</version>
<packaging>war</packaging>
<name>My Rest API </name>
<description>My API for testing </description>




<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.3.RELEASE</version>
    <relativePath /> <!-- lookup parent from repository -->
</parent>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <java.version>1.8</java.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-jdbc</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.h2database</groupId>
        <artifactId>h2</artifactId>
        <scope>runtime</scope>
    </dependency>

    <!-- Test Dependencies -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter-api</artifactId>
        <version>5.2.0</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter-engine</artifactId>
        <version>5.2.0</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter-params</artifactId>
        <version>5.2.0</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.dbunit</groupId>
        <artifactId>dbunit</artifactId>
        <version>2.5.4</version>
    </dependency>
    <dependency>
        <groupId>com.github.database-rider</groupId>
        <artifactId>rider-core</artifactId>
        <version>1.2.10</version>
    </dependency>
    <dependency>
        <groupId>com.github.database-rider</groupId>
        <artifactId>rider-junit5</artifactId>
        <version>1.2.10</version>
    </dependency>
    <dependency>
        <groupId>com.github.springtestdbunit</groupId>
        <artifactId>spring-test-dbunit</artifactId>
        <version>1.3.0</version>
        <scope>test</scope>
    </dependency>

</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.21.0</version>
            <dependencies>
                <dependency>
                    <groupId>org.junit.platform</groupId>
                    <artifactId>junit-platform-surefire-provider</artifactId>
                    <version>1.2.0</version>
                </dependency>
            </dependencies>
        </plugin>           
    </plugins>
</build>

例外情况是:

代码语言:javascript
复制
<12/06/2019 3:50:24 PM AEST> <Error> <Munger> <BEA-2156200> <Unable to load 
descriptor weblogic.utils.classloaders.GenericClassLoader@6e4b9e8e finder:
weblogic.utils.classloaders.CodeGenClassFinder@764267fe annotation: /WEB-
INF/lib/tomcat-embed-websocket-8.5.31.jar!/META-INF/web-fragment.xml of
module com.coles.merch-PromoAPI-0.0.3-SNAPSHOT.war. The error is 
weblogic.descriptor.DescriptorException: Unmarshaller failed

我在so:here上看了一些答案,但这并没有解决我这方面的问题。

这是我正在尝试部署的一个非常基本的普通spring rest服务。所以我不确定为什么会遇到这个错误,也不知道为什么我需要tomcat jar,因为我不需要使用spring boot附带的嵌入式服务器。

EN

回答 1

Stack Overflow用户

发布于 2019-06-12 14:47:39

在您的情况下,我会尝试在Spring Boot应用程序级别禁用Tomcat。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56555717

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档