帮我写一个ejb-jar.xml文件映射的weblogic-ejb-jar.xml文件。请高手帮忙了,我机器不能够自动生成,自己写了几次总是出错
ejb-jar.xml内容如下:<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
version="3.0">
<display-name>TutorialEJBProject </display-name>
<enterprise-beans>
<session>
<display-name>SelectProductEJBLogicBean</display-name>
<ejb-name>SelectProductEJBLogicBean</ejb-name>
<mapped-name>SelectProductEJBLogicBean</mapped-name>
<business-local>com.nec.jp.zaa03.ap.logicbean.fixed.ISelectProductEJBLogicBean</business-local>
<ejb-class>com.nec.jp.zaa03.ap.logicbean.SelectProductEJBLogicBean</ejb-class>
<session-type>Stateless</session-type>
<ejb-ref>
<ejb-ref-name>ejb/ProductDao</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<remote>com.nec.jp.zaa03.db.dao.ProductDao</remote>
<injection-target>
<injection-target-class>com.nec.jp.zaa03.ap.logicbean.SelectProductEJBLogicBean</injection-target-class>
<injection-target-name>dao</injection-target-name>
</injection-target>
</ejb-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/ProductDao</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>com.nec.jp.zaa03.db.dao.ProductDao</local>
<injection-target>
<injection-target-class>com.nec.jp.zaa03.ap.logicbean.SelectProductEJBLogicBean</injection-target-class>
<injection-target-name>dao</injection-target-name>
</injection-target>
</ejb-local-ref>
</session>
<session>
<display-name>SelectOneProductEJBLogicBean</display-name>
<ejb-name>SelectOneProductEJBLogicBean</ejb-name>
<mapped-name>SelectOneProductEJBLogicBean</mapped-name>
<business-remote>com.nec.jp.zaa03.ap.logicbean.fixed.ISelectOneProductEJBLogicBean</business-remote>
<ejb-class>com.nec.jp.zaa03.ap.logicbean.SelectOneProductEJBLogicBean</ejb-class>
<session-type>Stateless</session-type>
<ejb-local-ref>
<ejb-ref-name>ejb/ProductDao</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>com.nec.jp.zaa03.db.dao.ProductDao</local>
<injection-target>
<injection-target-class>com.nec.jp.zaa03.ap.logicbean.SelectOneProductEJBLogicBean</injection-target-class>
<injection-target-name>dao</injection-target-name>
</injection-target>
</ejb-local-ref>
</session>
<session>
<display-name>ProductDao</display-name>
<ejb-name>ProductDao</ejb-name>
<business-local>com.nec.jp.zaa03.db.dao.ProductDao</business-local>
<ejb-class>com.nec.jp.zaa03.db.dao.ProductDaoImpl</ejb-class>
<session-type>Stateless</session-type>
<resource-ref>
<res-ref-name>jdbc/tutorialDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
<injection-target>
<injection-target-class>com.nec.jp.zaa03.db.dao.ProductDaoImpl</injection-target-class>
<injection-target-name>ds</injection-target-name>
</injection-target>
</resource-ref>
<!--<resource-env-ref>
     <description>
        This is a reference to a JMS queue used in the
        processing of Stock info
     </description>
    <resource-env-ref-name>java/ProductDaoJNDI</resource-env-ref-name>
     <resource-env-ref-type>javax.sql.DataSource</resource-env-ref-type>
</resource-env-ref> --></session>
</enterprise-beans>
</ejb-jar>