I'm getting a stack trace when I'm trying to run the 
calculator-ws-secure-webapp with the eclipse plugin.  My Launch program is:

 

package calculator;

 

import calculator.CalculatorService;

 

import org.apache.tuscany.sca.host.embedded.SCADomain;

public class Launch

{

 

 

   public static void main(String args[])

   {

   

      SCADomain scaDomain = (SCADomain) 
SCADomain.newInstance("Calculator.composite"); ß----------- crash occurs here.

      CalculatorService calculatorService = 
(CalculatorService)scaDomain.getService(CalculatorService.class, 

                                                           
"CalculatorServiceComponent");

      System.out.println("add 2+3="+calculatorService.add(2, 3));

      scaDomain.close();

   }

   

   

}

 

 

Exception in thread "main" org.osoa.sca.ServiceRuntimeException: 
org.osoa.sca.ServiceRuntimeException: 
org.apache.tuscany.sca.core.assembly.ActivationException: 
java.lang.RuntimeException: java.lang.ClassCastException: 
org.apache.tuscany.sca.policy.logging.LoggingPolicyDefinitionsProvider cannot 
be cast to org.apache.tuscany.sca.definitions.SCADefinitionsProvider

      at 
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)

      at 
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69)

      at calculator.Launch.main(Launch.java:13)

Caused by: org.osoa.sca.ServiceRuntimeException: 
org.apache.tuscany.sca.core.assembly.ActivationException: 
java.lang.RuntimeException: java.lang.ClassCastException: 
org.apache.tuscany.sca.policy.logging.LoggingPolicyDefinitionsProvider cannot 
be cast to org.apache.tuscany.sca.definitions.SCADefinitionsProvider

      at 
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:121)

      at 
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:109)

      at 
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:230)

      ... 2 more

Caused by: org.apache.tuscany.sca.core.assembly.ActivationException: 
java.lang.RuntimeException: java.lang.ClassCastException: 
org.apache.tuscany.sca.policy.logging.LoggingPolicyDefinitionsProvider cannot 
be cast to org.apache.tuscany.sca.definitions.SCADefinitionsProvider

      at 
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.loadSCADefinitions(ReallySmallRuntime.java:276)

      at 
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.start(ReallySmallRuntime.java:161)

      at 
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(DefaultSCADomain.java:118)

      ... 4 more

Caused by: java.lang.RuntimeException: java.lang.ClassCastException: 
org.apache.tuscany.sca.policy.logging.LoggingPolicyDefinitionsProvider cannot 
be cast to org.apache.tuscany.sca.definitions.SCADefinitionsProvider

      at 
org.apache.tuscany.sca.definitions.impl.DefaultSCADefinitionsProviderExtensionPoint.loadProviders(DefaultSCADefinitionsProviderExtensionPoint.java:87)

      at 
org.apache.tuscany.sca.definitions.impl.DefaultSCADefinitionsProviderExtensionPoint.getSCADefinitionsProviders(DefaultSCADefinitionsProviderExtensionPoint.java:57)

      at 
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.loadSCADefinitions(ReallySmallRuntime.java:249)

      ... 6 more

Caused by: java.lang.ClassCastException: 
org.apache.tuscany.sca.policy.logging.LoggingPolicyDefinitionsProvider cannot 
be cast to org.apache.tuscany.sca.definitions.SCADefinitionsProvider

      at 
org.apache.tuscany.sca.definitions.impl.DefaultSCADefinitionsProviderExtensionPoint.loadProviders(DefaultSCADefinitionsProviderExtensionPoint.java:81)

      ... 8 more

 

 

Mike Sacauskis

Senior Software Engineer

General Dynamics Information Technology

 

8989 Rio San Diego Dr.  Suite 330

San Diego, CA 92108

619.542.0240  x154

mike.sacaus...@gdit.com

 

Reply via email to