On Tue, Sep 8, 2009 at 10:17 AM, Sacauskis, Mike<mike.sacaus...@gdit.com> wrote:
> I have defined the foobar intent in the definitions file:
>
> <?xml version="1.0" encoding="ASCII"?>
>
> <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="foobar"
>                constrains="sca:implementation.java sca:implementation.spring">
>                <description>
>                        FooBar Policy
>                </description>
>        </intent>
> </definitions
>
> The stack trace I get when Starting up the test war:
>
> Caused by: org.apache.tuscany.sca.monitor.MonitorRuntimeException: Provided 
> Intent - {http://tuscany.apache.org/xmlns/sca/1.0}foobar not found for 
> PolicySet {http://www.osoa.org/xmlns/sca/1.0}FooBarPolicy
>        ... 107 more
> 10:13:52,154 ERROR [StandardContext] Error filterStart
> 10:13:52,154 ERROR [StandardContext] Context 
> [/sample-calculator-ws-secure-webapp] startup failed due to previous errors
> 10:13:52,216 WARN  [ServiceController] Problem starting service 
> jboss.web.deployment:war=sample-calculator-ws-secure-webapp.war,id=-81618433
> org.jboss.deployment.DeploymentException: URL 
> file:/F:/jboss-4.2.3.GA/server/default/tmp/deploy/tmp806545048511002898sample-calculator-ws-secure-webapp-exp.war/
>  deployment failed

Looks like the runtime can't resolve your new Intent, either because
it's not being contributed properly to the runtime (see [1]) or maybe
because mix/mismatch of namespaces (e.g Tuscany namespace versus OSOA
namespace being mismatched)?

[1] 
https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/LoggingPolicyDefinitionsProvider.java

-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Reply via email to