1. 程式人生 > 其它 >weblogic12c部署專案報錯

weblogic12c部署專案報錯

技術標籤:weblogicweb.xmloracle

weblogic12c部署專案報錯

// 具體日誌如下
[[email protected] logs]$ java weblogic.appmerge -verbose /u01/oracle/weblogic/user_projects/domains/base_domain/servers/AdminServer/upload/ccb-dlis-notice-business-0.0.1-SNAPSHOT.war
<Jan 4, 2021 1:38:59 PM GMT> <Info> <J2EE> <
BEA-160230> <Created working directory: /tmp/.appmergegen_1609767539411_ccb-dlis-notice-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) [[email protected] 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.ccb.dlis.notice.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>


在這裡入圖片描述