Patch support "wsjar" in host embedded
--------------------------------------

                 Key: TUSCANY-2219
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2219
             Project: Tuscany
          Issue Type: Improvement
          Components: Java SCA Embedded Runtime
    Affects Versions: Java-SCA-1.2
         Environment: Tuscany 1.2-incubating RC3b, WAS 6.1
            Reporter: Nishant Joshi
             Fix For: Java-SCA-1.2


When you need to call with SCADomain under structure like
my_war.ear/my.war/WEB-INF/lib/some_jar_under_war.jar!/my.composite
then your "contributionArtifactURL" will comes like "wsjar:file:/C:/Program 
Files/IBM/WebSphere/AppServer/profiles/bmw/installedApps/bmw/my_war.ear/my.war/WEB-INF/lib/some_jar_under_war.jar!/my.composite"
 so... to resolve this issue somebody needs to apply patch in file 
"DefaultSCADomain.java" and method is "getContributionLocation" the patch is as 
below

 else if ("jar".equals(protocol)) {
                // jar contribution
                String location = url.substring(4, url.lastIndexOf("!/"));
                // workaround for evil url/uri from maven
                contributionURL = FileHelper.toFile(new 
URL(location)).toURI().toURL();                
            } else if ("wsjar".equals(protocol)) {
                // wsjar contribution
                String location = url.substring(6, url.lastIndexOf("!/"));
                // workaround for evil url/uri from maven
                contributionURL = FileHelper.toFile(new 
URL(location)).toURI().toURL();
                
            } 




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to