Entity error
Hi, I have a problem with the entity-model. I've created the 2 files entitymodel.xml and entitygroup.xml. When I put entity-resource type=model reader-name=main loader=main location=entitydef/entitymodel.xml/ entity-resource type=group reader-name=main loader=main location=entitydef/entitygroup.xml/ in the file ofbiz-component.xml and restart OFBiz, I get an error at the console of Windows you can see it at the attachements. http://ofbiz.135035.n4.nabble.com/file/n4632779/Capture.png http://ofbiz.135035.n4.nabble.com/file/n4632779/capture2.png Well, I'm sure that the error is coming from adding entity-ressource ... because when I remove it works but I need to see the entities that I defined. Thank you for your help ! -- View this message in context: http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Entity error
Make sure the files are in the hot-deploy/hello2/entitydef folder and make sure the file names are correct. -Adrian On 5/30/2012 1:54 PM, G.Ben wrote: Hi, I have a problem with the entity-model. I've created the 2 files entitymodel.xml and entitygroup.xml. When I put entity-resource type=model reader-name=main loader=main location=entitydef/entitymodel.xml/ entity-resource type=group reader-name=main loader=main location=entitydef/entitygroup.xml/ in the file ofbiz-component.xml and restart OFBiz, I get an error at the console of Windows you can see it at the attachements. http://ofbiz.135035.n4.nabble.com/file/n4632779/Capture.png http://ofbiz.135035.n4.nabble.com/file/n4632779/capture2.png Well, I'm sure that the error is coming from adding entity-ressource ... because when I remove it works but I need to see the entities that I defined. Thank you for your help ! -- View this message in context: http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Entity error
I did that, and it's correct, well I don't know ! :D Here is the image : http://ofbiz.135035.n4.nabble.com/file/n4632781/Capture3.png -- View this message in context: http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779p4632781.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Entity error
Hello G.Ben, I think problem is in entityengine.xml. May be with delegator name. Please check it. Thanks Regards, Nameet Jain On Wednesday 30 May 2012 06:57 PM, G.Ben wrote: I did that, and it's correct, well I don't know ! :D Here is the image : http://ofbiz.135035.n4.nabble.com/file/n4632781/Capture3.png -- View this message in context: http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779p4632781.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Entity error
Hi, This is my entityengine.xml file http://ofbiz.135035.n4.nabble.com/file/n4632792/entityengine.png -- View this message in context: http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779p4632792.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Entity error
Hi G.Ben, Don't change the entry for tenant group (org.ofbiz.tenant), leave them as it is. Thanks Regards -- Deepak Dixit On May 30, 2012, at 8:37 PM, G.Ben wrote: Hi, This is my entityengine.xml file http://ofbiz.135035.n4.nabble.com/file/n4632792/entityengine.png -- View this message in context: http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779p4632792.html Sent from the OFBiz - User mailing list archive at Nabble.com. smime.p7s Description: S/MIME cryptographic signature
Re: Entity error
Okay I'll fix it, Excuse my few knowledge, For what the ofbiztenant is useful ? -- View this message in context: http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779p4632795.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Entity error
I've changed it and I still get the same error Thank you Regards. G.Ben -- View this message in context: http://ofbiz.135035.n4.nabble.com/Entity-error-tp4632779p4632796.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Entity error
Hi all - I get the following error when I try this: entity-condition entity-name=modelNumber delegator-name=partslookup list-name=models condition-expr field-name=modelValue env-name=modelValue/ order-by field-name=modelnu/ /entity-condition error: org.ofbiz.base.util.GeneralException: Error rendering screen [component://ecommerce/widget/CatalogScreens.xml#DisplayFoundModels]: java.lang.IllegalArgumentException: Error in Entity Find: could not find entity with name [modelNumber] (Error in Entity Find: could not find entity with name [modelNumber]) entity-def: entity-group group=org.ofbiz.lookup entity=ModelNumber/ delegator-def: delegator name=partslookup entity-model-reader=main entity-group-reader=main entity-eca-reader=main group-map group-name=org.ofbiz.lookup datasource-name=lookuppostgres/ /delegator The entity engine does create the table in the remote database using the correct delegator. Do I need to set the delegator someother place? Rick
Re: Entity error
before looking into it closer, is your entity name modelNumber or ModelNumber? If it follows other ofbiz convention, entity names are upper camel case (UpperCamelCase) and not lower camel case (lowerCamelCase) --- Richard Fleming [EMAIL PROTECTED] wrote: Hi all - I get the following error when I try this: entity-condition entity-name=modelNumber delegator-name=partslookup list-name=models condition-expr field-name=modelValue env-name=modelValue/ order-by field-name=modelnu/ /entity-condition error: org.ofbiz.base.util.GeneralException: Error rendering screen [component://ecommerce/widget/CatalogScreens.xml#DisplayFoundModels]: java.lang.IllegalArgumentException: Error in Entity Find: could not find entity with name [modelNumber] (Error in Entity Find: could not find entity with name [modelNumber]) entity-def: entity-group group=org.ofbiz.lookup entity=ModelNumber/ delegator-def: delegator name=partslookup entity-model-reader=main entity-group-reader=main entity-eca-reader=main group-map group-name=org.ofbiz.lookup datasource-name=lookuppostgres/ /delegator The entity engine does create the table in the remote database using the correct delegator. Do I need to set the delegator someother place? Rick