[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tuscany-user
Subject:    how to initialize SCADomain in jar file
From:       Zoran Jeremic <jeremic1974 () yahoo ! com>
Date:       2010-11-05 17:40:51
Message-ID: 499104.24350.qm () web46402 ! mail ! sp1 ! yahoo ! com
[Download RAW message or body]

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



      


[Attachment #3 (text/html)]

<html><head><style type="text/css"><!-- DIV {margin:0px;} \
--></style></head><body><div style="font-family:times new roman,new \
york,times,serif;font-size:12pt"><div>Hi,<br><br>I have tuscany SCA application that \
should be inside of the WEB service (archived in aar file).<br>The problem I can't \
solve is how to instantiate SCADomain. SCADomain.newInstance("mycomposite.composite") \
can't find composite file. <br><br>I have tried something like this:<br><br>URL \
resource=this.getClass().getResource("Corridor.composite");<br>&nbsp;sCADomain = \
SCADomain.newInstance(resource.getPath());<br><br>but I have error <br><br><br>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/axis21317268 \
517787262444Adaptive_Module_WS.aar!/com/corridor/app/Corridor.composite<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
at  org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:220)<br><br>Can \
you give me some suggestions how to solve this?<br><br>Thanks,<br>Zoran<br></div> \
</div><br>

      </body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic