简体   繁体   English

JBoss 7.1.1中weblogic的Application.xml文件

[英]Application.xml file of weblogic in JBoss 7.1.1

I am using windup tools to migrate applications from weblogic to JBoss. 我正在使用清理工具将应用程序从weblogic迁移到JBoss。 Windup report says changes are needed in the application.xml file (weblogic) shown below. 结束报告显示,需要在下面显示的application.xml文件(weblogic)中进行更改。 If so, what are necessary changes I should make to make it compatible to JBoss? 如果是这样,我应该进行哪些必要的更改以使其与JBoss兼容? Please help me here. 请在这里帮助我。

application.xml application.xml中

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
        "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
        "http://java.sun.com/dtd/application_1_3.dtd">
    <application>
        <display-name>nabs-adaptor-app</display-name>
        <module>
            <ejb>nabs-adaptor-ejb-1_28_1.jar</ejb>
        </module>
        <module>
            <web>
                <web-uri>nabs-adaptor-war-1_28_1.war</web-uri>
                <context-root>/nabs-adaptor-war</context-root>
            </web>
        </module>
        <module>
            <web>
                <web-uri>APP-INF/lib/PlatformServices-2008.09.26.war</web-uri>
                <context-root>Krump_PlatformServices</context-root>
            </web>
        </module>
    </application>

Try the following: 请尝试以下操作:

 <?xml version="1.0" encoding="UTF-8"?>
<application 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/application_6.xsd"
    version="6">
    <display-name>nabs-adaptor-app</display-name>
    <module>
        <ejb>nabs-adaptor-ejb-1_28_1.jar</ejb>
    </module>
    <module>
        <web>
            <web-uri>nabs-adaptor-war-1_28_1.war</web-uri>
            <context-root>nabs-adaptor-war</context-root>
        </web>
    </module>
    <module>
        <web>
            <web-uri>PlatformServices-2008.09.26.war</web-uri>
            <context-root>Krump_PlatformServices</context-root>
        </web>
    </module>
    <library-directory>lib</library-directory>
</application>

Note that I moved your war from APP-INF/lib to the root of the ear (jboss doesn't use APP-INF). 请注意,我将您的战争从APP-INF / lib转移到了耳朵的根部(jboss不使用APP-INF)。 Also, I declared a lib folder where you can place your shared jars. 另外,我声明了一个lib文件夹,您可以在其中放置共享的jar。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Weblogic 配置文件 - weblogic-application.xml、weblogic.xml、application.xml、web.xml - Weblogic Config Files - weblogic-application.xml, weblogic.xml, application.xml, web.xml 尝试发布WebLogic 12.2.1应用程序时解析application.xml时出错 - Error parsing application.xml when trying to publish a WebLogic 12.2.1 application 生成EAR文件时如何在代码中创建application.xml? - How to create application.xml in code when generate EAR file? META-INF / application.xml中的文件过早结束 - Premature end of file in META-INF/application.xml 无法生成 application.xml - Failed to generate application.xml 在jar.xml中将jar添加到应用程序? - Adding jars to an application in application.xml? JBoss部署错误:由以下原因引起:java.lang.RuntimeException:..xml中不存在application.xml中列出的.war模块 - JBoss Deployment error: Caused by: java.lang.RuntimeException: .war module listed in application.xml does not exist within .ear 资源application.xml的spring boot失败 - spring boot with resource application.xml fails application.xml中必需的尾部斜杠 - Required trailing slashes in application.xml Spring boot 应用程序失败,因为它尝试加载 application.xml 文件 - Spring boot application fails because it tries to load application.xml file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM