Hi,

I'm moving a whole load of entity ejb's into Orion from jBoss.  I've
followed the instructions in application-creation-howto.html from the
downloaded docs but changed the atm to my application name (configurator).
I've used the original ejb-jar.xml from the jBoss deloyment.  I have not yet
setup a orion-ejb-jar.xml file.  I'll do that next... but when I start Orion
I get the following error:

Auto-deploying configurator-ejb (ejb-jar.xml had been touched since the
previous deployment)... Error compiling
file:/D:/install/orion/applications/configurator/configurator-ejb/: Unknown
persistence-type for field id: 0

Is this obvious to anyone?

See below for the ejb-jar.xml file.

Thanks for your help,
Tim.

<?xml version="1.0" encoding="Cp1252"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">

<ejb-jar>
         <description>MyWDS Configurator</description>
         <display-name>Configurator</display-name>
         <enterprise-beans>
                           
                           <entity>
                                    <ejb-name>area</ejb-name>
                                    <home>com.mywds.beans.areaHome</home>
                                    <remote>com.mywds.beans.area</remote>
 
<ejb-class>com.mywds.beans.areaBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.areaPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Name</field-name></cmp-field>
                           </entity>
                                                   
                           <entity>
                                    <ejb-name>area_area_type</ejb-name>
 
<home>com.mywds.beans.area_area_typeHome</home>
 
<remote>com.mywds.beans.area_area_type</remote>
 
<ejb-class>com.mywds.beans.area_area_typeBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.area_area_typePK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Area_Id</field-name></cmp-field>
 
<cmp-field><field-name>Area_Type_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>company_service</ejb-name>
 
<home>com.mywds.beans.company_serviceHome</home>
 
<remote>com.mywds.beans.company_service</remote>
 
<ejb-class>com.mywds.beans.company_serviceBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.company_servicePK</prim-key-class>
                                   <reentrant>False</reentrant>
 
<cmp-field><field-name>Company_Id</field-name></cmp-field>
 
<cmp-field><field-name>Service_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>area_type</ejb-name>
 
<home>com.mywds.beans.area_typeHome</home>
 
<remote>com.mywds.beans.area_type</remote>
 
<ejb-class>com.mywds.beans.area_typeBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.area_typePK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Description</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>area_area</ejb-name>
 
<home>com.mywds.beans.area_areaHome</home>
 
<remote>com.mywds.beans.area_area</remote>
 
<ejb-class>com.mywds.beans.area_areaBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.area_areaPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Parent_Area_Id</field-name></cmp-field>
 
<cmp-field><field-name>Child_Area_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>software</ejb-name>
 
<home>com.mywds.beans.softwareHome</home>
 
<remote>com.mywds.beans.software</remote>
 
<ejb-class>com.mywds.beans.softwareBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.softwarePK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Software_Type_Id</field-name></cmp-field>
 
<cmp-field><field-name>Name</field-name></cmp-field>
 
<cmp-field><field-name>Description</field-name></cmp-field>
 
<cmp-field><field-name>Comments</field-name></cmp-field>
                           </entity>
                                           
                           <entity>
                                    <ejb-name>software_type</ejb-name>
 
<home>com.mywds.beans.software_typeHome</home>
 
<remote>com.mywds.beans.software_type</remote>
 
<ejb-class>com.mywds.beans.software_typeBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.software_typePK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Description</field-name></cmp-field>
                           </entity>
                           
                           <entity>
                                    <ejb-name>functionality</ejb-name>
 
<home>com.mywds.beans.functionalityHome</home>
 
<remote>com.mywds.beans.functionality</remote>
 
<ejb-class>com.mywds.beans.functionalityBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.functionalityPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Description</field-name></cmp-field>
                           </entity>
                           
                           <entity>
                                    <ejb-name>company_area</ejb-name>
 
<home>com.mywds.beans.company_areaHome</home>
 
<remote>com.mywds.beans.company_area</remote>
 
<ejb-class>com.mywds.beans.company_areaBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.company_areaPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Area_Id</field-name></cmp-field>
 
<cmp-field><field-name>Company_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>network_area</ejb-name>
 
<home>com.mywds.beans.network_areaHome</home>
 
<remote>com.mywds.beans.network_area</remote>
 
<ejb-class>com.mywds.beans.network_areaBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.network_areaPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Area_Id</field-name></cmp-field>
 
<cmp-field><field-name>Network_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>device_network</ejb-name>
 
<home>com.mywds.beans.device_networkHome</home>
 
<remote>com.mywds.beans.device_network</remote>
 
<ejb-class>com.mywds.beans.device_networkBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.device_networkPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Device_Id</field-name></cmp-field>
 
<cmp-field><field-name>Network_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>device_type</ejb-name>
 
<home>com.mywds.beans.device_typeHome</home>
 
<remote>com.mywds.beans.device_type</remote>
 
<ejb-class>com.mywds.beans.device_typeBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.device_typePK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Device_Id</field-name></cmp-field>
 
<cmp-field><field-name>Class_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>device_software</ejb-name>
 
<home>com.mywds.beans.device_softwareHome</home>
 
<remote>com.mywds.beans.device_software</remote>
 
<ejb-class>com.mywds.beans.device_softwareBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.device_softwarePK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Device_Id</field-name></cmp-field>
 
<cmp-field><field-name>Software_Id</field-name></cmp-field>
 
<cmp-field><field-name>Software_Type_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>device_area</ejb-name>
 
<home>com.mywds.beans.device_areaHome</home>
 
<remote>com.mywds.beans.device_area</remote>
 
<ejb-class>com.mywds.beans.device_areaBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.device_areaPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Device_Id</field-name></cmp-field>
 
<cmp-field><field-name>Area_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>company_device</ejb-name>
 
<home>com.mywds.beans.company_deviceHome</home>
 
<remote>com.mywds.beans.company_device</remote>
 
<ejb-class>com.mywds.beans.company_deviceBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.company_devicePK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Device_Id</field-name></cmp-field>
 
<cmp-field><field-name>Company_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
 
<ejb-name>company_responsibility</ejb-name>
 
<home>com.mywds.beans.company_responsibilityHome</home>
 
<remote>com.mywds.beans.company_responsibility</remote>
 
<ejb-class>com.mywds.beans.company_responsibilityBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.company_responsibilityPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Responsibility_Id</field-name></cmp-field>
 
<cmp-field><field-name>Company_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
 
<ejb-name>service_functionality</ejb-name>
 
<home>com.mywds.beans.service_functionalityHome</home>
 
<remote>com.mywds.beans.service_functionality</remote>
 
<ejb-class>com.mywds.beans.service_functionalityBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.service_functionalityPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Service_Id</field-name></cmp-field>
 
<cmp-field><field-name>Functionality_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
 
<ejb-name>service_requirements</ejb-name>
 
<home>com.mywds.beans.service_requirementsHome</home>
 
<remote>com.mywds.beans.service_requirements</remote>
 
<ejb-class>com.mywds.beans.service_requirementsBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.service_requirementsPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Service_Id</field-name></cmp-field>
 
<cmp-field><field-name>Software_Type_Id</field-name></cmp-field>
 
<cmp-field><field-name>Device_Id</field-name></cmp-field>
 
<cmp-field><field-name>Software_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
 
<ejb-name>company_network_area</ejb-name>
 
<home>com.mywds.beans.company_network_areaHome</home>
 
<remote>com.mywds.beans.company_network_area</remote>
 
<ejb-class>com.mywds.beans.company_network_areaBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.company_network_areaPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Network_Id</field-name></cmp-field>
 
<cmp-field><field-name>Company_Id</field-name></cmp-field>
 
<cmp-field><field-name>Area_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>classification</ejb-name>
 
<home>com.mywds.beans.classificationHome</home>
 
<remote>com.mywds.beans.classification</remote>
 
<ejb-class>com.mywds.beans.classificationBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.classificationPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Description</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>responsibility</ejb-name>
 
<home>com.mywds.beans.responsibilityHome</home>
 
<remote>com.mywds.beans.responsibility</remote>
 
<ejb-class>com.mywds.beans.responsibilityBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.responsibilityPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Description</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>network</ejb-name>
                                    <home>com.mywds.beans.networkHome</home>
                                    <remote>com.mywds.beans.network</remote>
 
<ejb-class>com.mywds.beans.networkBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.networkPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Name</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>service</ejb-name>
                                    <home>com.mywds.beans.serviceHome</home>
                                    <remote>com.mywds.beans.service</remote>
 
<ejb-class>com.mywds.beans.serviceBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.servicePK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Description</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>company</ejb-name>
                                    <home>com.mywds.beans.companyHome</home>
                                    <remote>com.mywds.beans.company</remote>
 
<ejb-class>com.mywds.beans.companyBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.companyPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Name</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>device</ejb-name>
                                    <home>com.mywds.beans.deviceHome</home>
                                    <remote>com.mywds.beans.device</remote>
 
<ejb-class>com.mywds.beans.deviceBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.devicePK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Name</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>class_subclass</ejb-name>
 
<home>com.mywds.beans.class_subclassHome</home>
 
<remote>com.mywds.beans.class_subclass</remote>
 
<ejb-class>com.mywds.beans.class_subclassBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.class_subclassPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Child_Class_Id</field-name></cmp-field>
 
<cmp-field><field-name>Parent_Class_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>article</ejb-name>
                                    <home>com.mywds.beans.articleHome</home>
                                    <remote>com.mywds.beans.article</remote>
 
<ejb-class>com.mywds.beans.articleBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.articlePK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Name</field-name></cmp-field>
 
<cmp-field><field-name>Description</field-name></cmp-field>
 
<cmp-field><field-name>Link</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
 
<ejb-name>device_compatability</ejb-name>
 
<home>com.mywds.beans.device_compatabilityHome</home>
 
<remote>com.mywds.beans.device_compatability</remote>
 
<ejb-class>com.mywds.beans.device_compatabilityBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.device_compatabilityPK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>From_Device_Id</field-name></cmp-field>
 
<cmp-field><field-name>To_Device_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
 
<ejb-name>device_dependency_knowledge</ejb-name>
 
<home>com.mywds.beans.device_dependency_knowledgeHome</home>
 
<remote>com.mywds.beans.device_dependency_knowledge</remote>
 
<ejb-class>com.mywds.beans.device_dependency_knowledgeBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.device_dependency_knowledgePK</prim-key-clas
s>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>From_Device_Id</field-name></cmp-field>
 
<cmp-field><field-name>To_Device_Id</field-name></cmp-field>
 
<cmp-field><field-name>Knowledge_Id</field-name></cmp-field>
                           </entity>
                                                     
                           <entity>
                                    <ejb-name>knowledge</ejb-name>
 
<home>com.mywds.beans.knowledgeHome</home>
 
<remote>com.mywds.beans.knowledge</remote>
 
<ejb-class>com.mywds.beans.knowledgeBean</ejb-class>
 
<persistence-type>Container</persistence-type>
 
<prim-key-class>com.mywds.beans.knowledgePK</prim-key-class>
                                    <reentrant>False</reentrant>
 
<cmp-field><field-name>Id</field-name></cmp-field>
 
<cmp-field><field-name>Name</field-name></cmp-field>
 
<cmp-field><field-name>Description</field-name></cmp-field>
 
<cmp-field><field-name>Digest</field-name></cmp-field>
 
<cmp-field><field-name>Version</field-name></cmp-field>
                           </entity>

                           <session>
                                    <ejb-name>configurator</ejb-name>
                                    <description>test
configurator</description>
 
<home>com.mywds.beans.configuratorHome</home>
 
<remote>com.mywds.beans.configurator</remote>
 
<ejb-class>com.mywds.beans.configuratorBean</ejb-class>
                                    <session-type>Stateless</session-type>
 
<transaction-type>Container</transaction-type>
                                    <ejb-ref>
 
<ejb-ref-name>mywds/configurator/responsibility</ejb-ref-name>
 
<ejb-ref-type>Entity</ejb-ref-type>
 
<home>com.mywds.beans.responsibilityHome</home>
 
<remote>com.mywds.beans.responsibility</remote>
 
<ejb-link>responsibility</ejb-link>
                                    </ejb-ref>
                                    <ejb-ref> 
 
<ejb-ref-name>mywds/configurator/company</ejb-ref-name>
 
<ejb-ref-type>Entity</ejb-ref-type>
 
<home>com.mywds.beans.companyHome</home>
 
<remote>com.mywds.beans.company</remote>
                                             <ejb-link>company</ejb-link>
                                    </ejb-ref>
                           </session>
          </enterprise-beans>
</ejb-jar>


Tim Squires
Wireless Data Services
----------------------------------------
It's not what you know, it's who you tell.


Reply via email to