You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Raymond Feng (JIRA)" <tu...@ws.apache.org> on 2008/04/11 19:38:04 UTC

[jira] Assigned: (TUSCANY-2219) Patch support "wsjar" in host embedded

     [ https://issues.apache.org/jira/browse/TUSCANY-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raymond Feng reassigned TUSCANY-2219:
-------------------------------------

    Assignee: Raymond Feng

> 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
>            Assignee: Raymond Feng
>             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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org