一个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>xstudioEAR</display-name>
<module>
<ejb>xstudio.jar</ejb>
</module>
<module>
<web>
<web-uri>xstudio.war</web-uri>
<context-root>xstudio</context-root>
</web>
</module>
<module>
<web>
<web-uri>xstudio-test.war</web-uri>
<context-root>xstudio-test</context-root>
</web>
</module>
</application>然后就是把application.xml中提到几个文件和application.xml一起打包到ear文件中,最后把ear文件拷贝到JBoss下就可以了,当然首先你得确保你的JAR和WAR文件没有问题
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'><application>
<display-name>xstudioEAR</display-name>
<module>
<ejb>xstudio.jar</ejb>
</module>
<module>
<web>
<web-uri>xstudio.war</web-uri>
<context-root>xstudio</context-root>
</web>
</module>
<module>
<web>
<web-uri>xstudio-test.war</web-uri>
<context-root>xstudio-test</context-root>
</web>
</module>
</application>然后就是把application.xml中提到几个文件和application.xml一起打包到ear文件中,最后把ear文件拷贝到JBoss下就可以了,当然首先你得确保你的JAR和WAR文件没有问题
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货