On Fri, Sep 4, 2009 at 2:43 PM, Sacauskis, Mike<[email protected]> wrote: > I’m creating my own policy and I’m getting the following error when I deploy > my service: > > > > SEVERE: PolicyValidation exception when processing implementation of > component CalculatorServiceComponent due to Policy Intent > '{http://tuscany.apache.org/xmlns/sca/1.0}foobar' is not defined in this > domain . > > > > What domain is it not defined in? Any Idea what I need to do to fix this? > > >
Have you defined foobar intent in a definitions.xml ? See the definitions.xml in the modules/policy-logging example : <definitions xmlns="http://www.osoa.org/xmlns/sca/1.0" targetNamespace="http://tuscany.apache.org/xmlns/sca/1.0" xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"> <!-- Policy Intents Defined by the SCA Runtime --> <intent name="logging" constrains="sca:implementation.java sca:implementation.spring"> <description> All messages to and from this implementation must be logged </description> </intent> </definitions> -- Luciano Resende http://people.apache.org/~lresende http://lresende.blogspot.com/
