cmp设置问题
我用wsad5.0
我的ejb-jar.xml如下
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar id="ejb-jar_ID">
<display-name>ExamplesEJB</display-name>
<enterprise-beans>
<session id="JDBCTest">
<ejb-name>JDBCTest</ejb-name>
<home>examples.JDBCTestHome</home>
<remote>examples.JDBCTest</remote>
<ejb-class>examples.JDBCTestBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
<resource-ref id="ResourceRef_1091785455217">
<description></description>
<res-ref-name>dataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</session>
<entity id="Account">
<ejb-name>Account</ejb-name>
<home>examples.AccountHome</home>
<remote>examples.Account</remote>
<local-home>examples.AccountLocalHome</local-home>
<local>examples.AccountLocal</local>
<ejb-class>examples.AccountBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>examples.AccountPK</prim-key-class>
<reentrant>False</reentrant>
<resource-ref id="ResourceRef_1091776311099">
<description></description>
<res-ref-name>jdbc/ejbPool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</entity>
<entity id="Product">
<ejb-name>Product</ejb-name>
<home>examples.ProductHome</home>
<remote>examples.Product</remote>
<local-home>examples.ProductLocalHome</local-home>
<local>examples.ProductLocal</local>
<ejb-class>examples.ProductBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>examples.ProductPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>ProductBean</abstract-schema-name>
<cmp-field id="CMPAttribute_1093491551667">
<field-name>basePrice</field-name>
</cmp-field>
<cmp-field id="CMPAttribute_1093491439336">
<field-name>description</field-name>
</cmp-field>
<cmp-field id="CMPAttribute_1093491568321">
<field-name>name</field-name>
</cmp-field>
<cmp-field id="CMPAttribute_1093491560820">
<field-name>productID</field-name>
</cmp-field>
<query>
<description></description>
<query-method>
<method-name>findAllProducts</method-name>
<method-params></method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE productID IS NOT NULL]]></ejb-ql>
</query>
<query>
<description></description>
<query-method>
<method-name>findByBasePrice</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE basePrice = ?1]]></ejb-ql>
</query>
<query>
<description></description>
<query-method>
<method-name>findByDescription</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE description = ?1]]></ejb-ql>
</query>
<query>
<description></description>
<query-method>
<method-name>findByName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE name = ?1]]></ejb-ql>
</query>
<query>
<description></description>
<query-method>
<method-name>findCheapProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE basePrice < ?1]]></ejb-ql>
</query>
<query>
<description></description>
<query-method>
<method-name>findExpensiveProducts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[SELECT OBJECT(a) FROM ProductBean AS a WHERE basePrice > ?1]]></ejb-ql>
</query>
</entity>
</enterprise-beans>
</ejb-jar>
为什么在任务视图中总是出现如下错误
种类 状态 优先级 描述 资源 在文件夹中 位置
错误 WQRY0108E: field productid is not defined ejb-jar.xml ExamplesEJB/ejbModule/META-INF 第 63 行
错误 WQRY0108E: field baseprice is not defined ejb-jar.xml ExamplesEJB/ejbModule/META-INF 第 71 行
错误 WQRY0110E: correlation id implicit qualifier is not defined. ejb-jar.xml ExamplesEJB/ejbModule/META-INF 第 81 行
错误 WQRY0110E: correlation id implicit qualifier is not defined. ejb-jar.xml ExamplesEJB/ejbModule/META-INF 第 91 行
错误 WQRY0108E: field baseprice is not defined ejb-jar.xml ExamplesEJB/ejbModule/META-INF 第 101 行
错误 WQRY0108E: field baseprice is not defined ejb-jar.xml ExamplesEJB/ejbModule/META-INF 第 111 行