Re: Problems with EOmodels at runtime

From: Benoit Mangez (benoit.mange..enali.be)
Date: Fri Dec 19 2003 - 04:34:40 EST

  • Next message: Stephen Tavener: "RE: Question: .jar file, frameworks, and WOProject"

    Hi Ulrich,

    Thanks for your question, I found my mistake : I forgot to include
    "JDBCAdaptor.framework" and "FrontBasePlugin.framework" in Framework
    Section in Framework2.
    Now I did, and it works...

    On Thursday, December 18, 2003, at 09:50 PM, Ulrich Köster wrote:

    > Hi Benoit,
    >
    > I need the Frameworks section of the PB.project(s).
    >
    > Ulrich
    > Am 18.12.2003 um 11:40 schrieb Benoit Mangez:
    >
    >> 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.
    >> java:102)
    >> at
    >> com.webobjects.eoaccess.EODatabaseChannel.setCurrentEntity(EODatabaseC
    >> hannel.java:143)
    >> at
    >> com.webobjects.eoaccess.EODatabaseChannel._setCurrentEntityAndRelation
    >> shipWithFetchSpecification(EODatabaseChannel.java:723)
    >> at
    >> com.webobjects.eoaccess.EODatabaseChannel._selectWithFetchSpecificatio
    >> nEditingContext(EODatabaseChannel.java:790)
    >> at
    >> com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecif
    >> ication(EODatabaseChannel.java:216)
    >> at
    >> com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificati
    >> onEditingContext(EODatabaseContext.java:3179)
    >> at
    >> com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecificatio
    >> n(EODatabaseContext.java:3320)
    >> at
    >> com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpec
    >> ification(EOObjectStoreCoordinator.java:535)
    >> at
    >> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecificatio
    >> n(EOEditingContext.java:4016)
    >> at
    >> com.webobjects.eocontrol.EOSharedEditingContext.objectsWithFetchSpecif
    >> ication(EOSharedEditingContext.java:349)
    >> at
    >> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecificatio
    >> n(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
    >>
    >
    >
    Benoit

    ___________________________________________

    DENALI sa - http://www.denali.be
    Château de Clerlande - 1340 Ottignies - Belgium
    Tel +32 (0) 10 43 99 51 - Fax +32 (0) 10 43 99 52
    ___________________________________________



    This archive was generated by hypermail 2.0.0 : Fri Dec 19 2003 - 04:34:48 EST