• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: fetchspec problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: fetchspec problem


  • Subject: RE: fetchspec problem
  • From: "Cros Laurent" <email@hidden>
  • Date: Thu, 24 Jun 2010 11:46:44 +0200
  • Thread-topic: fetchspec problem

 

 

De : Cros Laurent
Envoyé : jeudi 24 juin 2010 11:46
À : 'Farrukh Ijaz'
Objet : RE: fetchspec problem

 

In my web.xml my WOAppMode parameter is set to development.

 

I don’t know how to switch to SSDD because I am based on maven and the ant wolips script doesn’t work with maven for sure.

 

Can you explain me how to set the catalina security policy ?

 

The strange things is that the entity files from the eomodel are loaded ,I can see that in the log :

 

24 juin 11:45:02 DEBUG [er.extensions.eof.ERXEntityClassDescription] classDescriptionNeededForEntityName: Platform

24 juin 11:45:02 DEBUG [er.extensions.eof.ERXEntityClassDescription] Registering description for entity: Platform with class: Platform

24 juin 11:45:02 DEBUG [er.default.ERXEntityClassDescription] Reading defaults for: Platform

 

But there is a reading problem with the fetch spec file, I was thinking a fime problem format (utf8, Unix format, mac format, ansi …)

 

Thanks,

 

  Laurent.

 

 

De : Farrukh Ijaz [mailto:email@hidden]
Envoyé : jeudi 24 juin 2010 11:07
À : Cros Laurent
Cc : WebObjects-Dev Apple
Objet : Re: fetchspec problem

 

If the deployment is based on WAR file then I would suggest you to switch to SSDD and check if you face the same issue. Also in the web.xml set the deployment mode to development. Setting up the application for production requires a lot of other configurations.

 

If you don't get the same issue then chances are you need to adjust permissions using the java security policy for catalina. 

 

Farrukh

Sent from my iPad


On 24-Jun-2010, at 11:34 AM, "Cros Laurent" <email@hidden> wrote:

Hi guys,

 

 

  Now my application deployed on a windows tomcat  is responding wohooohoooo !!!!

 

But the application is unble to find a fectchspec

 

Application: jcommops-ptf
Error: com.webobjects.foundation.NSForwardException exception
Reason:
com.webobjects.foundation.NSForwardException [com.webobjects.eoaccess.EOObjectNotAvailableException] setFetchSpecificationByName -- com.webobjects.eoaccess.EODatabaseDataSource: Failed to find the fetch specification named wmo in the entity named Platform.:com.webobjects.eoaccess.EOObjectNotAvailableException: setFetchSpecificationByName -- com.webobjects.eoaccess.EODatabaseDataSource: Failed to find the fetch specification named wmo in the entity named Platform.

 

 

Here is my Platform.fspec file (file format : ansi), the fspec is located at the very end of the file :

 

{

    Active = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOKeyValueQualifier;

            key = activ;

            selectorName = "isEqualTo:";

            value = {class = NSNumber; value = 1; };

        };

    };

    "DEAD PTF MODEL" = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOAndQualifier;

            qualifiers = (

                {

                    class = EOKeyValueQualifier;

                    key = platformmodelId;

                    selectorName = "isEqualTo:";

                    value = {"_key" = platformmodelId; class = EOQualifierVariable; };

                },

                {

                    class = EOKeyValueQualifier;

                    key = dead;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                }

            );

        };

    };

    Dead = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOKeyValueQualifier;

            key = dead;

            selectorName = "isEqualTo:";

            value = {class = NSNumber; value = 1; };

        };

    };

    "Fetch Spec" = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOKeyValueQualifier;

            key = "loc.date";

            selectorName = "isGreaterThan:";

            value = {"_key" = loc; class = EOQualifierVariable; };

        };

    };

    PROGS = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOOrQualifier;

            qualifiers = (

                {

                    class = EOKeyValueQualifier;

                    key = "progPtfArray_program";

                    selectorName = "isEqualTo:";

                    value = {"_key" = program; class = EOQualifierVariable; };

                },

                {

                    class = EOKeyValueQualifier;

                    key = "progPtfArray_program.masterProgIdProgram";

                    selectorName = "isEqualTo:";

                    value = {"_key" = program; class = EOQualifierVariable; };

                }

            );

        };

    };

    "PTF MODEL" = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOAndQualifier;

            qualifiers = (

                {

                    class = EOKeyValueQualifier;

                    key = platformmodelId;

                    selectorName = "isEqualTo:";

                    value = {"_key" = platformmodelId; class = EOQualifierVariable; };

                },

                {

                    class = EOKeyValueQualifier;

                    key = activ;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                }

            );

        };

    };

    Retired = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOKeyValueQualifier;

            key = retired;

            selectorName = "isEqualTo:";

            value = {class = NSNumber; value = 1; };

        };

    };

    argoAlive = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOAndQualifier;

            qualifiers = (

                {

                    class = EOKeyValueQualifier;

                    key = argo;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                },

                {

                    class = EOKeyValueQualifier;

                    key = activ;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                }

            );

        };

    };

    argoDead = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOAndQualifier;

            qualifiers = (

                {

                    class = EOKeyValueQualifier;

                    key = argo;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                },

                {

                    class = EOKeyValueQualifier;

                    key = dead;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                }

            );

        };

    };

    dbcpAlive = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOAndQualifier;

            qualifiers = (

                {

                    class = EOKeyValueQualifier;

                    key = activ;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                },

                {

                    class = EOKeyValueQualifier;

                    key = dbcp;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                }

            );

        };

    };

    dbcpDead = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOAndQualifier;

            qualifiers = (

                {

                    class = EOKeyValueQualifier;

                    key = dbcp;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                },

                {

                    class = EOKeyValueQualifier;

                    key = dead;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                }

            );

        };

    };

    "ptf display" = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOOrQualifier;

            qualifiers = (

                {

                    class = EOKeyValueQualifier;

                    key = "telecom.num";

                    selectorName = "isEqualTo:";

                    value = {"_key" = telecom; class = EOQualifierVariable; };

                },

                {

                    class = EOKeyValueQualifier;

                    key = "argonotification.wmo";

                    selectorName = "isEqualTo:";

                    value = {"_key" = wmo; class = EOQualifierVariable; };

                }

            );

        };

    };

    ptfDisplay2 = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOKeyValueQualifier;

            key = ref;

            selectorName = "isEqualTo:";

            value = {"_key" = ref; class = EOQualifierVariable; };

        };

    };

    vosAlive = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOAndQualifier;

            qualifiers = (

                {

                    class = EOKeyValueQualifier;

                    key = activ;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                },

                {

                    class = EOKeyValueQualifier;

                    key = vos;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                }

            );

        };

    };

    vosDead = {

        class = EOFetchSpecification;

        entityName = Platform;

        fetchLimit = 0;

        isDeep = YES;

        qualifier = {

            class = EOAndQualifier;

            qualifiers = (

                {

                    class = EOKeyValueQualifier;

                    key = dbcp;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                },

                {

                    class = EOKeyValueQualifier;

                    key = vos;

                    selectorName = "isEqualTo:";

                    value = {class = NSNumber; value = 1; };

                }

            );

        };

    };

    wmo = {

        class = EOFetchSpecification;

        entityName = Platform;

        prefetchingRelationshipKeyPaths = ();

        qualifier = {

            class = EOKeyValueQualifier;

            key = "argonotification.wmo";

            selectorName = "isEqualTo:";

            value = {"_key" = wmo; class = EOQualifierVariable; };

        };

    };

}

 

If someone has an idea ?

 

Thanks,

 

Laurent Cros

Software engineer

Société CLS
8-10rue Hermès, Parc technologique du canal
31560 Ramonville Saint-Agne France
Tel. +33 5 61 393 701
Fax +33 5 61 394 750

 

<image001.gif>

 

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

 

Cliquez ici si ce message est indésirable (pourriel).

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: fetchspec problem
      • From: Farrukh Ijaz <email@hidden>
References: 
 >fetchspec problem (From: "Cros Laurent" <email@hidden>)
 >Re: fetchspec problem (From: Farrukh Ijaz <email@hidden>)

  • Prev by Date: Re: fetchspec problem
  • Next by Date: Optimistic locking failure due to string trimming?
  • Previous by thread: Re: fetchspec problem
  • Next by thread: Re: fetchspec problem
  • Index(es):
    • Date
    • Thread