Hi,
I've some problems with EOmodels at runtime.
Config : Eclipse 2.1.2, WOLips 1.0.7.40, MacOS 10.3, WebObjects 5.2
I've 2 WOFrameworks with some EOModel files inside.
I've a WOApp using those 2 WOFrameworks. (But without any specific
EOModel)
When I open any EOmodel files from WOLips, everything is fine,
EOPrototypes and relationship between EOModels are resolved.
At runtime, I've a problem:
I can access the defaultModelGroup, it contains all EOModels files, but
when I try to follow a relationship between 2 EOModel files (in
Framework2) I got the following Exception :
java.lang.IllegalArgumentException: EORelationship(): cannot find
entity named DLRoleSetImp for destination of relationship roleSetImp in
entity DLThesaurusSetImp.
at
com.webobjects.eoaccess.EORelationship.<init>(EORelationship.java:731)
at com.webobjects.eoaccess.EOEntity.relationships(EOEntity.java:845)
at
com.webobjects.eoaccess.EODatabaseChannel.setEntity(EODatabaseChannel.ja
va:102)
at
com.webobjects.eoaccess.EODatabaseChannel.setCurrentEntity(EODatabaseCha
nnel.java:143)
at
com.webobjects.eoaccess.EODatabaseChannel._setCurrentEntityAndRelationsh
ipWithFetchSpecification(EODatabaseChannel.java:723)
at
com.webobjects.eoaccess.EODatabaseChannel._selectWithFetchSpecificationE
ditingContext(EODatabaseChannel.java:790)
at
com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecific
ation(EODatabaseChannel.java:216)
at
com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecification
EditingContext(EODatabaseContext.java:3179)
at
com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(
EODatabaseContext.java:3320)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecif
ication(EOObjectStoreCoordinator.java:535)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(
EOEditingContext.java:4016)
at
com.webobjects.eocontrol.EOSharedEditingContext.objectsWithFetchSpecific
ation(EOSharedEditingContext.java:349)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(
EOEditingContext.java:4395)
Classpath : (I mean "WO Frameworks" list)
Framework1 is in the classpath for Framework2 and WOApp
Framework2 is in the classpath for WOApp
Here are FRAMEWORKSEARCH section in the PB.project:
Framework1 :
FRAMEWORKSEARCH =
(
"$(NEXT_ROOT)$(LOCAL_LIBRARY_DIR)/Frameworks",
"$(NEXT_ROOT)$(LOCAL_LIBRARY_DIR)/Frameworks/Framework1.framework"
);
Framework2 :
FRAMEWORKSEARCH =
(
"$(NEXT_ROOT)$(LOCAL_LIBRARY_DIR)/Frameworks",
"$(NEXT_ROOT)$(LOCAL_LIBRARY_DIR)/Frameworks/Framework1.framework",
"$(NEXT_ROOT)$(LOCAL_LIBRARY_DIR)/Frameworks/Framework2.framework"
);
WOApp :
FRAMEWORKSEARCH =
(
"$(NEXT_ROOT)$(LOCAL_LIBRARY_DIR)/Frameworks",
"$(NEXT_ROOT)$(LOCAL_LIBRARY_DIR)/Frameworks/Framework1.framework",
"$(NEXT_ROOT)$(LOCAL_LIBRARY_DIR)/Frameworks/Framework2.framework",
);
I don't understand what append, I'm missing something ???
Benoit
This archive was generated by hypermail 2.0.0 : Thu Dec 18 2003 - 05:40:19 EST