Author: jleroux
Date: Sat Sep 10 13:37:17 2011
New Revision: 1167514
URL:
http://svn.apache.org/viewvc?rev=1167514&view=revLog:
"Applied fix from trunk for revision: 1167510" (it seems R10.04 still miss OfbizSetupSecurityData, but not sure...)
------------------------------------------------------------------------
r1167510 | jleroux | 2011-09-10 15:09:51 +0200 (sam., 10 sept. 2011) | 13 lines
A patch from Marcelo Giubergia "ofbizsetup "INSERT CARRIER_SHIPMENT_METHOD" ERROR when new store is created" script"
https://issues.apache.org/jira/browse/OFBIZ-4381I installed ofbiz from scratch according with recommended method
>ant clean-all
>ant run-install-extseed
>ant create-admin-user-login
>./startofbiz.sh
Then, when I create an store by
https://localhost:8443/ofbizsetup/control/createProductStoreError: Error parsing entity xml file: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:CarrierShipmentMethod][createdStamp,2011-08-29 11:16:33.247(java.sql.Timestamp)][createdTxStamp,2011-08-29 11:16:32.951(java.sql.Timestamp)][lastUpdatedStamp,2011-08-29 11:16:33.247(java.sql.Timestamp)][lastUpdatedTxStamp,2011-08-29 11:16:32.951(java.sql.Timestamp)][partyId,sds(java.lang.String)][roleTypeId,CARRIER(java.lang.String)][sequenceNumber,4(java.lang.Long)][shipmentMethodTypeId,LOCAL_DELIVERY(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.CARRIER_SHIPMENT_METHOD (SHIPMENT_METHOD_TYPE_ID, PARTY_ID, ROLE_TYPE_ID, SEQUENCE_NUMBER, CARRIER_SERVICE_CODE, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: inserción o actualización en la tabla «carrier_shipment_method» viola la llave foránea «carr_shmeth_type»<br/> Detail: La llave (shipment_method_
type_id)=(LOCAL_DELIVERY) no está presente en la tabla «shipment_method_type».)) calling service parseEntityXmlFile in importTempDataFile
------------------------------------------------------------------------
Modified:
ofbiz/branches/release10.04/applications/commonext/ofbiz-component.xml
Modified: ofbiz/branches/release10.04/applications/commonext/ofbiz-component.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/applications/commonext/ofbiz-component.xml?rev=1167514&r1=1167513&r2=1167514&view=diff==============================================================================
--- ofbiz/branches/release10.04/applications/commonext/ofbiz-component.xml (original)
+++ ofbiz/branches/release10.04/applications/commonext/ofbiz-component.xml Sat Sep 10 13:37:17 2011
@@ -30,6 +30,7 @@ under the License.
<entity-resource type="data" reader-name="seed" loader="main" location="data/CommonExtHelpData.xml"/>
<entity-resource type="data" reader-name="seed" loader="main" location="data/SystemInfoPortletData.xml"/>
<entity-resource type="data" reader-name="seed" loader="main" location="data/SetupData.xml"/>
+ <entity-resource type="data" reader-name="seed" loader="main" location="data/ShippingData.xml"/>
<entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/>
<entity-resource type="eca" reader-name="main" loader="main" location="entitydef/eecas.xml"/>