More info on this...
When I do the ant load-admin-user-login -DuserLoginId=admin
I am now able to login to webtools, but I can't use the Content Manager
to add a DataResource. I get the following error in the log files:
Log.java:111:INFO ]
[CommonPermissionServices.xml#genericBasePermissionCheck] Checking for
primary permission CONTENTMGR_CREATE
2009-09-06 17:49:49,959 (http-0.0.0.0-8443-1) [
Log.java:111:INFO ]
[DataResourcePermissionServices.xml#genericDataResourcePermission] Admin
permission found: CONTENTMGR_CREATE
2009-09-06 17:49:49,960 (http-0.0.0.0-8443-1) [
Log.java:111:INFO ]
[DataResourcePermissionServices.xml#genericDataResourcePermission]
Permission service [CREATE / ] completed; returning hasPermission = true
2009-09-06 17:49:49,960 (http-0.0.0.0-8443-1) [
ServiceDispatcher.java:585:INFO ] Sync service
[content/genericDataResourcePermission] finished in [90] milliseconds
2009-09-06 17:49:50,074 (http-0.0.0.0-8443-1)
[ServiceEcaCondition.java:155:WARN ] From Field (partyId) is not found
in context for createDataResource, defaulting to null.
2009-09-06 17:49:50,075 (http-0.0.0.0-8443-1) [
ServiceEcaRule.java:134:INFO ] For Service ECA [createDataResource] on
[commit] got false for condition: [partyId][is-not-empty][true][String]
2009-09-06 17:49:50,075 (http-0.0.0.0-8443-1)
[ServiceEcaCondition.java:155:WARN ] From Field (partyId) is not found
in context for createDataResource, defaulting to null.
2009-09-06 17:49:50,076 (http-0.0.0.0-8443-1) [
ServiceEcaRule.java:134:INFO ] For Service ECA [createDataResource] on
[commit] got false for condition: [partyId][is-not-empty][true][String]
2009-09-06 17:49:50,076 (http-0.0.0.0-8443-1)
[ServiceEcaCondition.java:155:WARN ] From Field (partyId) is not found
in context for createDataResource, defaulting to null.
2009-09-06 17:49:50,076 (http-0.0.0.0-8443-1)
[ServiceEcaCondition.java:155:WARN ] From Field (roleTypeId) is not
found in context for createDataResource, defaulting to null.
2009-09-06 17:49:50,077 (http-0.0.0.0-8443-1) [
ServiceEcaSetField.java:66 :INFO ] Expanded String:
2009-09-06 17:49:50,077 (http-0.0.0.0-8443-1) [
ServiceEcaRule.java:151:INFO ] Running Service ECA Service:
createDataResourceRole, triggered by rule on Service: createDataResource
2009-09-06 17:49:50,080 (http-0.0.0.0-8443-1) [
Log.java:111:INFO ]
[CommonPermissionServices.xml#genericBasePermissionCheck] Checking for
primary permission CONTENTMGR_UPDATE
2009-09-06 17:49:50,085 (http-0.0.0.0-8443-1) [
Log.java:111:INFO ]
[DataResourcePermissionServices.xml#genericDataResourcePermission] Admin
permission found: CONTENTMGR_UPDATE
2009-09-06 17:49:50,085 (http-0.0.0.0-8443-1) [
Log.java:111:INFO ]
[DataResourcePermissionServices.xml#genericDataResourcePermission]
Permission service [UPDATE / ] completed; returning hasPermission = true
2009-09-06 17:49:50,086 (http-0.0.0.0-8443-1) [
ServiceEcaRule.java:151:INFO ] Running Service ECA Service:
ensurePartyRole, triggered by rule on Service: createDataResourceRole
2009-09-06 17:49:50,132 (http-0.0.0.0-8443-1) [
DelegatorImpl.java:1436:ERROR]
---- exception report
----------------------------------------------------------
Failure in findOne operation for entity [PartyRole]:
org.ofbiz.entity.GenericModelException: [GenericDelegator.findOne]
Passed primary key is not a valid primary key:
[GenericEntity:PartyRole][roleTypeId,OWNER(java.lang.String)]. Rolling
back transaction.
Exception: org.ofbiz.entity.GenericModelException
Message: [GenericDelegator.findOne] Passed primary key is not a valid
primary key: [GenericEntity:PartyRole][roleTypeId,OWNER(java.lang.String)]
---- stack trace
---------------------------------------------------------------
org.ofbiz.entity.GenericModelException: [GenericDelegator.findOne]
Passed primary key is not a valid primary key:
[GenericEntity:PartyRole][roleTypeId,OWNER(java.lang.String)]
TIA for any help.
Ruth
Ruth Hoffman wrote:
Just in case it wasn't clear, when going to login to webtools using
admin/ofbiz I got the following error message:
"The Following Errors Occurred: unable to login this application"
Any help would be greatly appreciated. This is getting frustrating to
say the least.
Ruth
Ruth Hoffman wrote:
Hello List:
What is going on? I couldn't login as admin/ofbiz so I clean data and
reinstall. Here's what I get on trunk version 809901, after ant
clean-all, ant run-install:
[java] 2009-09-06 17:29:57,994 (main) [
EntitySaxReader.java:219:INFO ] Beginning import from URL:
file:/Users/ruthhoffman/809901-trunk-2009-09-01/applications/party/data/PartyDemoData.xml
[java] 2009-09-06 17:29:57,995 (main) [
EntitySaxReader.java:257:INFO ] Transaction Timeout set to 2 hours
(7200 seconds)
[java] 2009-09-06 17:29:58,096 (main) [
DelegatorImpl.java:503:ERROR]
[java] ---- exception report
----------------------------------------------------------
[java] Failure in create operation for entity [PartyRole]:
org.ofbiz.entity.GenericEntityException: Error while inserting:
[GenericEntity:PartyRole][createdStamp,2009-09-06
17:29:58.091(java.sql.Timestamp)][createdTxStamp,2009-09-06
17:29:57.995(java.sql.Timestamp)][lastUpdatedStamp,2009-09-06
17:29:58.091(java.sql.Timestamp)][lastUpdatedTxStamp,2009-09-06
17:29:57.995(java.sql.Timestamp)][partyId,admin(java.lang.String)][roleTypeId,EMAIL_ADMIN(java.lang.String)]
(SQL Exception while executing the following:INSERT INTO
OFBIZ.PARTY_ROLE (PARTY_ID, ROLE_TYPE_ID, LAST_UPDATED_STAMP,
LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?,
?, ?, ?, ?) (INSERT on table 'PARTY_ROLE' caused a violation of
foreign key constraint 'PARTY_RLE_ROLE' for key (EMAIL_ADMIN). The
statement has been rolled back.)). Rolling back transaction.
[java] Exception: org.ofbiz.entity.GenericEntityException
[java] Message: Error while inserting:
[GenericEntity:PartyRole][createdStamp,2009-09-06
17:29:58.091(java.sql.Timestamp)][createdTxStamp,2009-09-06
17:29:57.995(java.sql.Timestamp)][lastUpdatedStamp,2009-09-06
17:29:58.091(java.sql.Timestamp)][lastUpdatedTxStamp,2009-09-06
17:29:57.995(java.sql.Timestamp)][partyId,admin(java.lang.String)][roleTypeId,EMAIL_ADMIN(java.lang.String)]
(SQL Exception while executing the following:INSERT INTO
OFBIZ.PARTY_ROLE (PARTY_ID, ROLE_TYPE_ID, LAST_UPDATED_STAMP,
LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?,
?, ?, ?, ?) (INSERT on table 'PARTY_ROLE' caused a violation of
foreign key constraint 'PARTY_RLE_ROLE' for key (EMAIL_ADMIN). The
statement has been rolled back.))......
lots more errors....
Ruth