Hi There ,
I need to set up ofbiz for command line application.I have a Java program having main method which calls ofbiz framework. I am not able to get an instance of GenericDelegator.I don't know the version name but date on the jar files ofbcore-entity.jar and ofbcore-share.jar says 27th May 2008. I have entityengine.xml as follows.I need to make use of defaultDS data source.All the paths are correct in this file. Can you please tell what can be the problem? Thanks -Jitesh entityengine.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE entity-config PUBLIC "-//OFBiz//DTD Entity Engine Config//EN" "http://www.ofbiz.org/dtds/entity-config.dtd <http://www.ofbiz.org/dtds/entity-config.dtd> "> <entity-config> <resource-loader name="maincp" class="org.ofbiz.core.config.ClasspathLoader"/> <!-- <transaction-factory class="org.ofbiz.core.entity.transaction.DumbFactory"/> --> <transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory"> <user-transaction-jndi jndi-server-name="default" jndi-name="java:comp/UserTransaction"/> <transaction-manager-jndi jndi-server-name="default" jndi-name="java:comp/UserTransaction"/> </transaction-factory> <delegator name="default" entity-model-reader="main" entity-group-reader="main"> <group-map group-name="default" datasource-name="defaultDS"/> </delegator> <delegator name="postgres" entity-model-reader="main" entity-group-reader="main"> <group-map group-name="default" datasource-name="postgresDS"/> </delegator> <delegator name="test" entity-model-reader="main" entity-group-reader="main"> <group-map group-name="default" datasource-name="testDS"/> </delegator> <entity-model-reader name="main"> <resource loader="maincp" location="entitydefs/entitymodel_propertyset.xml"/> <resource loader="maincp" location="entitydefs/entitymodel_osworkflow.xml"/> <resource loader="maincp" location="entitydefs/entitymodel_paws.xml"/> </entity-model-reader> <entity-group-reader name="main" loader="maincp" location="entitydefs/entitygroup.xml"/> <field-type name="oracle" loader="maincp" location="entitydefs/fieldtype-oracle.xml"/> <field-type name="postgres72" loader="maincp" location="entitydefs/fieldtype-postgres72.xml"/> <!-- Main datasource --> <datasource name="defaultDS" helper-class="org.ofbiz.core.entity.GenericHelperDAO" field-type-name="oracle" check-on-start="false" add-missing-on-start="false" join-style="theta-oracle"> <inline-jdbc jdbc-driver="oracle.jdbc.driver.OracleDriver" jdbc-uri="jdbc:oracle:thin:@hostname:1522:appdev" jdbc-username="username" jdbc-password="password" isolation-level="Serializable" /> </datasource> <!-- Test datasource --> <datasource name="testDS" helper-class="org.ofbiz.core.entity.GenericHelperDAO" field-type-name="oracle" check-on-start="true" add-missing-on-start="false" join-style="theta-oracle"> <inline-jdbc jdbc-driver="oracle.jdbc.driver.OracleDriver" jdbc-uri="jdbc:oracle:thin:@kbase-dev:1521:kbase" jdbc-username="username" jdbc-password="password" isolation-level="Serializable"/> </datasource> <!-- postgres datasource --> <datasource name="postgresDS" helper-class="org.ofbiz.core.entity.GenericHelperDAO" field-type-name="postgres72" check-on-start="true" use-foreign-keys="false" add-missing-on-start="true"> <jndi-jdbc jndi-server-name="default" jndi-name="java:comp/env/jdbc/xa/PAWSXA"/> </datasource> </entity-config> |
these are jars from symphony, not ofbiz.
http://svn.opensymphony.com/fisheye/browse/~raw,r=5/propertyset/trunk/docs/installation.html ask here http://forums.opensymphony.com/index.jspa Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco) sent the following on 8/11/2008 5:37 PM: > Hi There , > > I need to set up ofbiz for command line application.I have a Java > program having main method which calls ofbiz framework. > I am not able to get an instance of GenericDelegator.I don't know the > version name but date on the jar files ofbcore-entity.jar and > ofbcore-share.jar says 27th May 2008. > > I have entityengine.xml as follows.I need to make use of defaultDS data > source.All the paths are correct in this file. > Can you please tell what can be the problem? > > Thanks > -Jitesh > > entityengine.xml > > <?xml version="1.0" encoding="UTF-8" ?> > > <!DOCTYPE entity-config PUBLIC "-//OFBiz//DTD Entity Engine Config//EN" > "http://www.ofbiz.org/dtds/entity-config.dtd > <http://www.ofbiz.org/dtds/entity-config.dtd> "> > > > > <entity-config> > > <resource-loader name="maincp" > class="org.ofbiz.core.config.ClasspathLoader"/> > > > > <!-- <transaction-factory > class="org.ofbiz.core.entity.transaction.DumbFactory"/> --> > > <transaction-factory > class="org.ofbiz.core.entity.transaction.JNDIFactory"> > > <user-transaction-jndi jndi-server-name="default" > jndi-name="java:comp/UserTransaction"/> > > <transaction-manager-jndi jndi-server-name="default" > jndi-name="java:comp/UserTransaction"/> > > </transaction-factory> > > > > <delegator name="default" entity-model-reader="main" > entity-group-reader="main"> > > <group-map group-name="default" datasource-name="defaultDS"/> > > </delegator> > > > > <delegator name="postgres" entity-model-reader="main" > entity-group-reader="main"> > > <group-map group-name="default" datasource-name="postgresDS"/> > > </delegator> > > > > <delegator name="test" entity-model-reader="main" > entity-group-reader="main"> > > <group-map group-name="default" datasource-name="testDS"/> > > </delegator> > > > > <entity-model-reader name="main"> > > <resource loader="maincp" > location="entitydefs/entitymodel_propertyset.xml"/> > > <resource loader="maincp" > location="entitydefs/entitymodel_osworkflow.xml"/> > > <resource loader="maincp" location="entitydefs/entitymodel_paws.xml"/> > > </entity-model-reader> > > > > <entity-group-reader name="main" loader="maincp" > location="entitydefs/entitygroup.xml"/> > > > > <field-type name="oracle" loader="maincp" > location="entitydefs/fieldtype-oracle.xml"/> > > <field-type name="postgres72" loader="maincp" > location="entitydefs/fieldtype-postgres72.xml"/> > > > > <!-- Main datasource --> > > <datasource name="defaultDS" > helper-class="org.ofbiz.core.entity.GenericHelperDAO" > field-type-name="oracle" > check-on-start="false" > add-missing-on-start="false" > join-style="theta-oracle"> > <inline-jdbc > jdbc-driver="oracle.jdbc.driver.OracleDriver" > jdbc-uri="jdbc:oracle:thin:@hostname:1522:appdev" > jdbc-username="username" > jdbc-password="password" > isolation-level="Serializable" > /> > > > </datasource> > > > > > <!-- Test datasource --> > > <datasource name="testDS" > > helper-class="org.ofbiz.core.entity.GenericHelperDAO" > > field-type-name="oracle" > > check-on-start="true" > > add-missing-on-start="false" > > join-style="theta-oracle"> > > <inline-jdbc > > jdbc-driver="oracle.jdbc.driver.OracleDriver" > > jdbc-uri="jdbc:oracle:thin:@kbase-dev:1521:kbase" > > jdbc-username="username" > > jdbc-password="password" > > isolation-level="Serializable"/> > > </datasource> > > > > <!-- postgres datasource --> > > <datasource name="postgresDS" > > helper-class="org.ofbiz.core.entity.GenericHelperDAO" > > field-type-name="postgres72" > > check-on-start="true" > > use-foreign-keys="false" > > add-missing-on-start="true"> > > <jndi-jdbc jndi-server-name="default" > jndi-name="java:comp/env/jdbc/xa/PAWSXA"/> > > </datasource> > > > > </entity-config> > > > |
Forum page which you have pointed out has all junk content.Looks like a
long mile to cover before I get any solution for my problem. -----Original Message----- From: BJ Freeman [mailto:[hidden email]] Sent: Monday, August 11, 2008 6:49 PM To: [hidden email] Subject: Re: Problem setting up ofbiz these are jars from symphony, not ofbiz. http://svn.opensymphony.com/fisheye/browse/~raw,r=5/propertyset/trunk/do cs/installation.html ask here http://forums.opensymphony.com/index.jspa Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco) sent the following on 8/11/2008 5:37 PM: > Hi There , > > I need to set up ofbiz for command line application.I have a Java > program having main method which calls ofbiz framework. > I am not able to get an instance of GenericDelegator.I don't know the > version name but date on the jar files ofbcore-entity.jar and > ofbcore-share.jar says 27th May 2008. > > I have entityengine.xml as follows.I need to make use of defaultDS > data source.All the paths are correct in this file. > Can you please tell what can be the problem? > > Thanks > -Jitesh > > entityengine.xml > > <?xml version="1.0" encoding="UTF-8" ?> > > <!DOCTYPE entity-config PUBLIC "-//OFBiz//DTD Entity Engine > "http://www.ofbiz.org/dtds/entity-config.dtd > <http://www.ofbiz.org/dtds/entity-config.dtd> "> > > > > <entity-config> > > <resource-loader name="maincp" > class="org.ofbiz.core.config.ClasspathLoader"/> > > > > <!-- <transaction-factory > class="org.ofbiz.core.entity.transaction.DumbFactory"/> --> > > <transaction-factory > class="org.ofbiz.core.entity.transaction.JNDIFactory"> > > <user-transaction-jndi jndi-server-name="default" > jndi-name="java:comp/UserTransaction"/> > > <transaction-manager-jndi jndi-server-name="default" > jndi-name="java:comp/UserTransaction"/> > > </transaction-factory> > > > > <delegator name="default" entity-model-reader="main" > entity-group-reader="main"> > > <group-map group-name="default" datasource-name="defaultDS"/> > > </delegator> > > > > <delegator name="postgres" entity-model-reader="main" > entity-group-reader="main"> > > <group-map group-name="default" datasource-name="postgresDS"/> > > </delegator> > > > > <delegator name="test" entity-model-reader="main" > entity-group-reader="main"> > > <group-map group-name="default" datasource-name="testDS"/> > > </delegator> > > > > <entity-model-reader name="main"> > > <resource loader="maincp" > location="entitydefs/entitymodel_propertyset.xml"/> > > <resource loader="maincp" > location="entitydefs/entitymodel_osworkflow.xml"/> > > <resource loader="maincp" > location="entitydefs/entitymodel_paws.xml"/> > > </entity-model-reader> > > > > <entity-group-reader name="main" loader="maincp" > location="entitydefs/entitygroup.xml"/> > > > > <field-type name="oracle" loader="maincp" > location="entitydefs/fieldtype-oracle.xml"/> > > <field-type name="postgres72" loader="maincp" > location="entitydefs/fieldtype-postgres72.xml"/> > > > > <!-- Main datasource --> > > <datasource name="defaultDS" > helper-class="org.ofbiz.core.entity.GenericHelperDAO" > field-type-name="oracle" > check-on-start="false" > add-missing-on-start="false" > join-style="theta-oracle"> > <inline-jdbc > jdbc-driver="oracle.jdbc.driver.OracleDriver" > jdbc-uri="jdbc:oracle:thin:@hostname:1522:appdev" > jdbc-username="username" > jdbc-password="password" > isolation-level="Serializable" > /> > > > </datasource> > > > > > <!-- Test datasource --> > > <datasource name="testDS" > > helper-class="org.ofbiz.core.entity.GenericHelperDAO" > > field-type-name="oracle" > > check-on-start="true" > > add-missing-on-start="false" > > join-style="theta-oracle"> > > <inline-jdbc > > jdbc-driver="oracle.jdbc.driver.OracleDriver" > > jdbc-uri="jdbc:oracle:thin:@kbase-dev:1521:kbase" > > jdbc-username="username" > > jdbc-password="password" > > isolation-level="Serializable"/> > > </datasource> > > > > <!-- postgres datasource --> > > <datasource name="postgresDS" > > helper-class="org.ofbiz.core.entity.GenericHelperDAO" > > field-type-name="postgres72" > > check-on-start="true" > > use-foreign-keys="false" > > add-missing-on-start="true"> > > <jndi-jdbc jndi-server-name="default" > jndi-name="java:comp/env/jdbc/xa/PAWSXA"/> > > </datasource> > > > > </entity-config> > > > |
best I can offer.
you will not get a solution here. Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco) sent the following on 8/12/2008 11:00 AM: > Forum page which you have pointed out has all junk content.Looks like a > long mile to cover before I get any solution for my problem. > > -----Original Message----- > From: BJ Freeman [mailto:[hidden email]] > Sent: Monday, August 11, 2008 6:49 PM > To: [hidden email] > Subject: Re: Problem setting up ofbiz > > these are jars from symphony, not ofbiz. > http://svn.opensymphony.com/fisheye/browse/~raw,r=5/propertyset/trunk/do > cs/installation.html > ask here > http://forums.opensymphony.com/index.jspa > > Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco) sent the following > on 8/11/2008 5:37 PM: >> Hi There , >> >> I need to set up ofbiz for command line application.I have a Java >> program having main method which calls ofbiz framework. >> I am not able to get an instance of GenericDelegator.I don't know the >> version name but date on the jar files ofbcore-entity.jar and >> ofbcore-share.jar says 27th May 2008. >> >> I have entityengine.xml as follows.I need to make use of defaultDS >> data source.All the paths are correct in this file. >> Can you please tell what can be the problem? >> >> Thanks >> -Jitesh >> >> entityengine.xml >> >> <?xml version="1.0" encoding="UTF-8" ?> >> >> <!DOCTYPE entity-config PUBLIC "-//OFBiz//DTD Entity Engine > Config//EN" >> "http://www.ofbiz.org/dtds/entity-config.dtd >> <http://www.ofbiz.org/dtds/entity-config.dtd> "> >> >> >> >> <entity-config> >> >> <resource-loader name="maincp" >> class="org.ofbiz.core.config.ClasspathLoader"/> >> >> >> >> <!-- <transaction-factory >> class="org.ofbiz.core.entity.transaction.DumbFactory"/> --> >> >> <transaction-factory >> class="org.ofbiz.core.entity.transaction.JNDIFactory"> >> >> <user-transaction-jndi jndi-server-name="default" >> jndi-name="java:comp/UserTransaction"/> >> >> <transaction-manager-jndi jndi-server-name="default" >> jndi-name="java:comp/UserTransaction"/> >> >> </transaction-factory> >> >> >> >> <delegator name="default" entity-model-reader="main" >> entity-group-reader="main"> >> >> <group-map group-name="default" datasource-name="defaultDS"/> >> >> </delegator> >> >> >> >> <delegator name="postgres" entity-model-reader="main" >> entity-group-reader="main"> >> >> <group-map group-name="default" datasource-name="postgresDS"/> >> >> </delegator> >> >> >> >> <delegator name="test" entity-model-reader="main" >> entity-group-reader="main"> >> >> <group-map group-name="default" datasource-name="testDS"/> >> >> </delegator> >> >> >> >> <entity-model-reader name="main"> >> >> <resource loader="maincp" >> location="entitydefs/entitymodel_propertyset.xml"/> >> >> <resource loader="maincp" >> location="entitydefs/entitymodel_osworkflow.xml"/> >> >> <resource loader="maincp" >> location="entitydefs/entitymodel_paws.xml"/> >> >> </entity-model-reader> >> >> >> >> <entity-group-reader name="main" loader="maincp" >> location="entitydefs/entitygroup.xml"/> >> >> >> >> <field-type name="oracle" loader="maincp" >> location="entitydefs/fieldtype-oracle.xml"/> >> >> <field-type name="postgres72" loader="maincp" >> location="entitydefs/fieldtype-postgres72.xml"/> >> >> >> >> <!-- Main datasource --> >> >> <datasource name="defaultDS" >> helper-class="org.ofbiz.core.entity.GenericHelperDAO" >> field-type-name="oracle" >> check-on-start="false" >> add-missing-on-start="false" >> join-style="theta-oracle"> >> <inline-jdbc >> jdbc-driver="oracle.jdbc.driver.OracleDriver" >> jdbc-uri="jdbc:oracle:thin:@hostname:1522:appdev" >> jdbc-username="username" >> jdbc-password="password" >> isolation-level="Serializable" >> /> >> >> >> </datasource> >> >> >> >> >> <!-- Test datasource --> >> >> <datasource name="testDS" >> >> helper-class="org.ofbiz.core.entity.GenericHelperDAO" >> >> field-type-name="oracle" >> >> check-on-start="true" >> >> add-missing-on-start="false" >> >> join-style="theta-oracle"> >> >> <inline-jdbc >> >> jdbc-driver="oracle.jdbc.driver.OracleDriver" >> >> jdbc-uri="jdbc:oracle:thin:@kbase-dev:1521:kbase" >> >> jdbc-username="username" >> >> jdbc-password="password" >> >> isolation-level="Serializable"/> >> >> </datasource> >> >> >> >> <!-- postgres datasource --> >> >> <datasource name="postgresDS" >> >> helper-class="org.ofbiz.core.entity.GenericHelperDAO" >> >> field-type-name="postgres72" >> >> check-on-start="true" >> >> use-foreign-keys="false" >> >> add-missing-on-start="true"> >> >> <jndi-jdbc jndi-server-name="default" >> jndi-name="java:comp/env/jdbc/xa/PAWSXA"/> >> >> </datasource> >> >> >> >> </entity-config> >> >> >> > > > > |
I should say you will not get a solution using those jars.
BJ Freeman sent the following on 8/12/2008 11:13 AM: > best I can offer. > you will not get a solution here. > > Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco) sent the following > on 8/12/2008 11:00 AM: >> Forum page which you have pointed out has all junk content.Looks like a >> long mile to cover before I get any solution for my problem. >> >> -----Original Message----- >> From: BJ Freeman [mailto:[hidden email]] >> Sent: Monday, August 11, 2008 6:49 PM >> To: [hidden email] >> Subject: Re: Problem setting up ofbiz >> >> these are jars from symphony, not ofbiz. >> http://svn.opensymphony.com/fisheye/browse/~raw,r=5/propertyset/trunk/do >> cs/installation.html >> ask here >> http://forums.opensymphony.com/index.jspa >> >> Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco) sent the following >> on 8/11/2008 5:37 PM: >>> Hi There , >>> >>> I need to set up ofbiz for command line application.I have a Java >>> program having main method which calls ofbiz framework. >>> I am not able to get an instance of GenericDelegator.I don't know the >>> version name but date on the jar files ofbcore-entity.jar and >>> ofbcore-share.jar says 27th May 2008. >>> >>> I have entityengine.xml as follows.I need to make use of defaultDS >>> data source.All the paths are correct in this file. >>> Can you please tell what can be the problem? >>> >>> Thanks >>> -Jitesh >>> >>> entityengine.xml >>> >>> <?xml version="1.0" encoding="UTF-8" ?> >>> >>> <!DOCTYPE entity-config PUBLIC "-//OFBiz//DTD Entity Engine >> Config//EN" >>> "http://www.ofbiz.org/dtds/entity-config.dtd >>> <http://www.ofbiz.org/dtds/entity-config.dtd> "> >>> >>> >>> >>> <entity-config> >>> >>> <resource-loader name="maincp" >>> class="org.ofbiz.core.config.ClasspathLoader"/> >>> >>> >>> >>> <!-- <transaction-factory >>> class="org.ofbiz.core.entity.transaction.DumbFactory"/> --> >>> >>> <transaction-factory >>> class="org.ofbiz.core.entity.transaction.JNDIFactory"> >>> >>> <user-transaction-jndi jndi-server-name="default" >>> jndi-name="java:comp/UserTransaction"/> >>> >>> <transaction-manager-jndi jndi-server-name="default" >>> jndi-name="java:comp/UserTransaction"/> >>> >>> </transaction-factory> >>> >>> >>> >>> <delegator name="default" entity-model-reader="main" >>> entity-group-reader="main"> >>> >>> <group-map group-name="default" datasource-name="defaultDS"/> >>> >>> </delegator> >>> >>> >>> >>> <delegator name="postgres" entity-model-reader="main" >>> entity-group-reader="main"> >>> >>> <group-map group-name="default" datasource-name="postgresDS"/> >>> >>> </delegator> >>> >>> >>> >>> <delegator name="test" entity-model-reader="main" >>> entity-group-reader="main"> >>> >>> <group-map group-name="default" datasource-name="testDS"/> >>> >>> </delegator> >>> >>> >>> >>> <entity-model-reader name="main"> >>> >>> <resource loader="maincp" >>> location="entitydefs/entitymodel_propertyset.xml"/> >>> >>> <resource loader="maincp" >>> location="entitydefs/entitymodel_osworkflow.xml"/> >>> >>> <resource loader="maincp" >>> location="entitydefs/entitymodel_paws.xml"/> >>> >>> </entity-model-reader> >>> >>> >>> >>> <entity-group-reader name="main" loader="maincp" >>> location="entitydefs/entitygroup.xml"/> >>> >>> >>> >>> <field-type name="oracle" loader="maincp" >>> location="entitydefs/fieldtype-oracle.xml"/> >>> >>> <field-type name="postgres72" loader="maincp" >>> location="entitydefs/fieldtype-postgres72.xml"/> >>> >>> >>> >>> <!-- Main datasource --> >>> >>> <datasource name="defaultDS" >>> helper-class="org.ofbiz.core.entity.GenericHelperDAO" >>> field-type-name="oracle" >>> check-on-start="false" >>> add-missing-on-start="false" >>> join-style="theta-oracle"> >>> <inline-jdbc >>> jdbc-driver="oracle.jdbc.driver.OracleDriver" >>> jdbc-uri="jdbc:oracle:thin:@hostname:1522:appdev" >>> jdbc-username="username" >>> jdbc-password="password" >>> isolation-level="Serializable" >>> /> >>> >>> >>> </datasource> >>> >>> >>> >>> >>> <!-- Test datasource --> >>> >>> <datasource name="testDS" >>> >>> helper-class="org.ofbiz.core.entity.GenericHelperDAO" >>> >>> field-type-name="oracle" >>> >>> check-on-start="true" >>> >>> add-missing-on-start="false" >>> >>> join-style="theta-oracle"> >>> >>> <inline-jdbc >>> >>> jdbc-driver="oracle.jdbc.driver.OracleDriver" >>> >>> jdbc-uri="jdbc:oracle:thin:@kbase-dev:1521:kbase" >>> >>> jdbc-username="username" >>> >>> jdbc-password="password" >>> >>> isolation-level="Serializable"/> >>> >>> </datasource> >>> >>> >>> >>> <!-- postgres datasource --> >>> >>> <datasource name="postgresDS" >>> >>> helper-class="org.ofbiz.core.entity.GenericHelperDAO" >>> >>> field-type-name="postgres72" >>> >>> check-on-start="true" >>> >>> use-foreign-keys="false" >>> >>> add-missing-on-start="true"> >>> >>> <jndi-jdbc jndi-server-name="default" >>> jndi-name="java:comp/env/jdbc/xa/PAWSXA"/> >>> >>> </datasource> >>> >>> >>> >>> </entity-config> >>> >>> >>> >> >> >> > > > > |
Administrator
|
In reply to this post by Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco)
Which version of OFBiz are you using ? I just found this :
http://lists.ofbiz.org/pipermail/dev/2002-July/001241.html 2002 !!! And I can't see any references of those in OFBiz trunk... I found it also here http://docs.atlassian.com/atlassian-ofbiz/2.8-SNAPSHOT/dependencies.html So it seems that they are old parts of the OFBiz Entity Engine used in Open Symphony (always alive ?) and Atlassian Jira (alive!) Good luck... Jacques From: "Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco)" <[hidden email]> > Forum page which you have pointed out has all junk content.Looks like a > long mile to cover before I get any solution for my problem. > > From: BJ Freeman [mailto:[hidden email]] > these are jars from symphony, not ofbiz. > http://svn.opensymphony.com/fisheye/browse/~raw,r=5/propertyset/trunk/do > cs/installation.html > ask here > http://forums.opensymphony.com/index.jspa > > Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco) sent the following > on 8/11/2008 5:37 PM: >> Hi There , >> >> I need to set up ofbiz for command line application.I have a Java >> program having main method which calls ofbiz framework. >> I am not able to get an instance of GenericDelegator.I don't know the >> version name but date on the jar files ofbcore-entity.jar and >> ofbcore-share.jar says 27th May 2008. >> >> I have entityengine.xml as follows.I need to make use of defaultDS >> data source.All the paths are correct in this file. >> Can you please tell what can be the problem? >> >> Thanks >> -Jitesh >> >> entityengine.xml >> >> <?xml version="1.0" encoding="UTF-8" ?> >> >> <!DOCTYPE entity-config PUBLIC "-//OFBiz//DTD Entity Engine > Config//EN" >> "http://www.ofbiz.org/dtds/entity-config.dtd >> <http://www.ofbiz.org/dtds/entity-config.dtd> "> >> >> >> >> <entity-config> >> >> <resource-loader name="maincp" >> class="org.ofbiz.core.config.ClasspathLoader"/> >> >> >> >> <!-- <transaction-factory >> class="org.ofbiz.core.entity.transaction.DumbFactory"/> --> >> >> <transaction-factory >> class="org.ofbiz.core.entity.transaction.JNDIFactory"> >> >> <user-transaction-jndi jndi-server-name="default" >> jndi-name="java:comp/UserTransaction"/> >> >> <transaction-manager-jndi jndi-server-name="default" >> jndi-name="java:comp/UserTransaction"/> >> >> </transaction-factory> >> >> >> >> <delegator name="default" entity-model-reader="main" >> entity-group-reader="main"> >> >> <group-map group-name="default" datasource-name="defaultDS"/> >> >> </delegator> >> >> >> >> <delegator name="postgres" entity-model-reader="main" >> entity-group-reader="main"> >> >> <group-map group-name="default" datasource-name="postgresDS"/> >> >> </delegator> >> >> >> >> <delegator name="test" entity-model-reader="main" >> entity-group-reader="main"> >> >> <group-map group-name="default" datasource-name="testDS"/> >> >> </delegator> >> >> >> >> <entity-model-reader name="main"> >> >> <resource loader="maincp" >> location="entitydefs/entitymodel_propertyset.xml"/> >> >> <resource loader="maincp" >> location="entitydefs/entitymodel_osworkflow.xml"/> >> >> <resource loader="maincp" >> location="entitydefs/entitymodel_paws.xml"/> >> >> </entity-model-reader> >> >> >> >> <entity-group-reader name="main" loader="maincp" >> location="entitydefs/entitygroup.xml"/> >> >> >> >> <field-type name="oracle" loader="maincp" >> location="entitydefs/fieldtype-oracle.xml"/> >> >> <field-type name="postgres72" loader="maincp" >> location="entitydefs/fieldtype-postgres72.xml"/> >> >> >> >> <!-- Main datasource --> >> >> <datasource name="defaultDS" >> helper-class="org.ofbiz.core.entity.GenericHelperDAO" >> field-type-name="oracle" >> check-on-start="false" >> add-missing-on-start="false" >> join-style="theta-oracle"> >> <inline-jdbc >> jdbc-driver="oracle.jdbc.driver.OracleDriver" >> jdbc-uri="jdbc:oracle:thin:@hostname:1522:appdev" >> jdbc-username="username" >> jdbc-password="password" >> isolation-level="Serializable" >> /> >> >> >> </datasource> >> >> >> >> >> <!-- Test datasource --> >> >> <datasource name="testDS" >> >> helper-class="org.ofbiz.core.entity.GenericHelperDAO" >> >> field-type-name="oracle" >> >> check-on-start="true" >> >> add-missing-on-start="false" >> >> join-style="theta-oracle"> >> >> <inline-jdbc >> >> jdbc-driver="oracle.jdbc.driver.OracleDriver" >> >> jdbc-uri="jdbc:oracle:thin:@kbase-dev:1521:kbase" >> >> jdbc-username="username" >> >> jdbc-password="password" >> >> isolation-level="Serializable"/> >> >> </datasource> >> >> >> >> <!-- postgres datasource --> >> >> <datasource name="postgresDS" >> >> helper-class="org.ofbiz.core.entity.GenericHelperDAO" >> >> field-type-name="postgres72" >> >> check-on-start="true" >> >> use-foreign-keys="false" >> >> add-missing-on-start="true"> >> >> <jndi-jdbc jndi-server-name="default" >> jndi-name="java:comp/env/jdbc/xa/PAWSXA"/> >> >> </datasource> >> >> >> >> </entity-config> >> >> >> > > |
Free forum by Nabble | Edit this page |