我們計劃要遷移的是在JBoss中工作4.2到JBoss 6.0服務器文件,從JBoss的4.2遷移到JBoss 6.0
的application.xml
的http:// java.sun.com/xml/ns/j2ee/application_1_4.xsd「>
ModuleMenuEar
<ejb>ModuleMenuBean.jar</ejb>
<web>
<web-uri>ModuleMenuWeb.war</web-uri>
<context-root>/ModuleMenuWeb</context-root>
</web>
到JBoss 4.2,如果不存在,它需要作爲上下文根,但如果我們部署相同在jboss 6.0中拋出它的拋出錯誤li柯需要上下文根,是任何XML confoguration這使JBoss的6.0工作像JBoss 4.0
在ejb-jar.xml
<session>
<display-name>ModuleRightsSB</display-name>
<ejb-name>ModuleRightsBean</ejb-name>
<local-home>lrp.settings.modulerights.shared.ModuleRightsLocalHome</local-home>
<local>lrp.settings.modulerights.shared.ModuleRightsLocal</local>
<ejb-class>lrp.settings.modulerights.bean.ModuleRightsBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<resource-ref>
<res-ref-name>jdbc/ReportDB</res-ref-name>
<jndi-name>java:/REPORTDS</jndi-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
<res-ref-name>jdbc/ClientDB</res-ref-name>
<jndi-name>java:/MSSQLDS</jndi-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</session>
</enterprise-beans>
在一些EJB- jar.xml文件,我們用在ejb -jar.xml文件本身,它在jboss 4.2中正常工作,如果我們在jboss 6.0中部署相同的文件,它的拋出錯誤像所需的res-type,但它已經在ejb- jar.xml文件,
是否有任何XML配置可以去除,使得它的工作原理沒有throeing任何錯誤,
敬請參閱附件瞭解更多詳情
好心幫我解決這個問題,
感謝事先,
Vairam小號
爲了幫助獲得更多曝光,請添加適當的標籤,如jboss,java等 – Jeremy 2011-05-11 03:18:21