[英]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.