Hi,

I have tuscany SCA application that should be inside of the WEB service 
(archived in aar file).
The problem I can't solve is how to instantiate SCADomain. 
SCADomain.newInstance("mycomposite.composite") can't find composite file. 


I have tried something like this:

URL resource=this.getClass().getResource("Corridor.composite");
 sCADomain = SCADomain.newInstance(resource.getPath());

but I have error 


Caused by: org.osoa.sca.ServiceRuntimeException: 
java.lang.IllegalArgumentException: Composite URI must be a resource name: 
jar:file:/opt/apache-tomcat-6.0.29/temp/axis2-tmp-6743702882305292213.tmp/axis21317268517787262444Adaptive_Module_WS.aar!/com/corridor/app/Corridor.composite

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


Can you give me some suggestions how to solve this?

Thanks,
Zoran



      

Reply via email to