weblogic12c部署项目报错

weblogic12c部署项目报错

// 具体日志如下
[oracle@a8c675e1b938 logs]$ java weblogic.appmerge -verbose /u01/oracle/weblogic/user_projects/domains/base_domain/servers/AdminServer/upload/xx-xxxx-xxxx-business-0.0.1-SNAPSHOT.war
<Jan 4, 2021 1:38:59 PM GMT> <Info> <J2EE> <BEA-160230> <Created working directory: /tmp/.appmergegen_1609767539411_xx-xx-xxxx-business-0.0.1-SNAPSHOT.war> 
<Jan 4, 2021 1:39:00 PM GMT> <Error> <J2EE> <BEA-160228> <AppMerge failed to merge your application. If you are running AppMerge on the command-line, merge again with the -verbose option for more details. See the error message(s) below.> 
Exception in thread "main" weblogic.utils.compiler.ToolFailureException
	at weblogic.ejb.tools.EJBToolsModuleExtensionFactory.create(EJBToolsModuleExtensionFactory.java:27)
	at weblogic.application.compiler.ModuleState.initExtensions(ModuleState.java:206)
	at weblogic.application.compiler.flow.SingleModuleMergeFlow.proecessModule(SingleModuleMergeFlow.java:30)
	at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:63)
	at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:70)
	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
	at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37)
	at weblogic.application.compiler.BaseMerger.merge(BaseMerger.java:20)
	at weblogic.application.compiler.flow.AppMergerFlow.mergeInput(AppMergerFlow.java:75)
	at weblogic.application.compiler.flow.AppMergerFlow.compile(AppMergerFlow.java:40)
	at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:70)
	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
	at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:37)
	at weblogic.application.compiler.AppMerge.runBody(AppMerge.java:144)
	at weblogic.utils.compiler.Tool.run(Tool.java:158)
	at weblogic.utils.compiler.Tool.run(Tool.java:115)
	at weblogic.application.compiler.AppMerge.main(AppMerge.java:175)
	at weblogic.appmerge.main(appmerge.java:13)
[oracle@a8c675e1b938 logs]$ 

配置文件如下

<?xml version='1.0' encoding='UTF-8'?>
<weblogic-web-app xmlns="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.3/weblogic-web-app.xsd">

    <container-descriptor>
        <prefer-web-inf-classes>true</prefer-web-inf-classes>
<!--        <prefer-application-packages>-->
<!--            <package-name>org.slf4j</package-name>-->
<!--            <package-name>javax.validation.*</package-name>-->
<!--            <package-name>org.hibernate.*</package-name>-->
<!--            <package-name>javax.el.*</package-name>-->
<!--            <package-name>org.springframework.*</package-name>-->
<!--        </prefer-application-packages>-->
    </container-descriptor>
    <context-root>/</context-root>
</weblogic-web-app>

---------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>com.xxx.dlis.xxxx.ApplicationNotice</param-value>
    </context-param>

    <listener>
        <listener-class>org.springframework.boot.legacy.context.web.SpringBootContextLoaderListener</listener-class>
    </listener>

    <filter>
        <filter-name>metricFilter</filter-name>
        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>metricFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <servlet>
        <servlet-name>appServlet</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextAttribute</param-name>
            <param-value>org.springframework.web.context.WebApplicationContext.ROOT</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <servlet-mapping>
        <servlet-name>appServlet</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

</web-app>


在这里入图片描述

  • 0
    点赞
  • 1
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值