You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org> on 2007/09/03 16:42:58 UTC

[jira] Created: (TUSCANY-1654) Problem getting wsdl for service ws binding

Problem getting wsdl for service ws binding
-------------------------------------------

                 Key: TUSCANY-1654
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1654
             Project: Tuscany
          Issue Type: Bug
    Affects Versions: Java-SCA-0.99
         Environment: Tuscany SCA 0.99 runtime used in "Tuscany plugin for Geronimo 2.0.1 Tomcat" distro.
            Reporter: Vamsavardhana Reddy
             Fix For: Java-SCA-Next


I have encountered this problem with getting wsdl for service ws binding with helloworld webservice sample deployed in Geronimo using Tuscany plugin for Geronimo.  Creating this JIRA to keep track of any observations and progress on this problem.  I suspect the problem is introduced in rev 569074.  Part of the discussion on tuscany-dev is available at  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22334.html.

Problem:  After deploying helloworld webservice sample with ws binding URI http://localhost:8080/hello/HelloWorldService, accessing "http://localhost:8080/hello/HelloWorldService?wsdl" throws StringIndexOutOfBoundsException.

Observations:
1.  Though accessing http://localhost:8080/hello/HelloWorldService?wsdl results in an error, the service is still available at http://localhost:8080/hello/HelloWorldService
2.  If a URI http://localhost:8080/HelloWorldService is used, then http://localhost:8080/HelloWorldService?wsdl does not result in any errors i.e. when the context-root is "/".
3.  The HelloWorldService sample under samples runs fine with either URI's in standalone tuscany runtime.  This is because "/" is used as the context-root in both the cases.

-- 
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


[jira] Commented: (TUSCANY-1654) Problem getting wsdl for service ws binding

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525027 ] 

ant elder commented on TUSCANY-1654:
------------------------------------

Ok i've got the geronimo-tuscany integration up and running and have been able to debug through this, the problem is an issue with the way the context path is getting handled in the geronimo-tuscany code.

When running in the Tuscany-Geronimo integration calling getContextPath on the HttpServletRequest passed in on service(HttpServletRequest, HttpServletResponse) gives different results than when Tuscany is running as a webapp in Tomcat or in the Tuscany Jetty and Tomcat standalone hosts.

In Geronimo getContextPath is returning the first part of the url path whereas Tuscany may be using that as part of the service name. So if you deploy a service using <binidng.ws uri="http://localhost:8080/hello/HelloService"/> then in the Geronimo/Tuscany integration getContextPath returns "/hello" whereas in the other environments "hello" is not included.

This looks to me like a problem in the geronimo-tuscany integration code, eg in GeronimoServletHost.addServletMapping. 

But its also a design issue - what should the context path be? In Geronimo you can't deploy an SCA service with a context path of "/" as thats used by J2EE apps, so they MUST have another path (i'm guessing thats why "hello/" is added to the URL in the sample above).

In the Tuscany standalone hosts a context path of "/" works, with Tuscany running as a webapp or in the Tuscany webapp distro it does not and the webapp name is used as the context path. Maybe the  Geronimo-Tuscany integration needs to do that, eg as in the webapp distro use something like "tuscany/" or "sca/" as a fixed context path for all services.






> Problem getting wsdl for service ws binding
> -------------------------------------------
>
>                 Key: TUSCANY-1654
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1654
>             Project: Tuscany
>          Issue Type: Bug
>    Affects Versions: Java-SCA-0.99
>         Environment: Tuscany SCA 0.99 runtime used in "Tuscany plugin for Geronimo 2.0.1 Tomcat" distro.
>            Reporter: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-1654.patch
>
>
> I have encountered this problem with getting wsdl for service ws binding with helloworld webservice sample deployed in Geronimo using Tuscany plugin for Geronimo.  Creating this JIRA to keep track of any observations and progress on this problem.  I suspect the problem is introduced in rev 569074.  Part of the discussion on tuscany-dev is available at  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22334.html.
> Problem:  After deploying helloworld webservice sample with ws binding URI http://localhost:8080/hello/HelloWorldService, accessing "http://localhost:8080/hello/HelloWorldService?wsdl" throws StringIndexOutOfBoundsException.
> Observations:
> 1.  Though accessing http://localhost:8080/hello/HelloWorldService?wsdl results in an error, the service is still available at http://localhost:8080/hello/HelloWorldService
> 2.  If a URI http://localhost:8080/HelloWorldService is used, then http://localhost:8080/HelloWorldService?wsdl does not result in any errors i.e. when the context-root is "/".
> 3.  The HelloWorldService sample under samples runs fine with either URI's in standalone tuscany runtime.  This is because "/" is used as the context-root in both the cases.

-- 
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


[jira] Commented: (TUSCANY-1654) Problem getting wsdl for service ws binding

Posted by "Simon Nash (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524709 ] 

Simon Nash commented on TUSCANY-1654:
-------------------------------------

The changes in r572360 fixed this problem for me (see TUSCANY-1652).  Can you build from a new checkout and see if the results are as you expect?

> Problem getting wsdl for service ws binding
> -------------------------------------------
>
>                 Key: TUSCANY-1654
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1654
>             Project: Tuscany
>          Issue Type: Bug
>    Affects Versions: Java-SCA-0.99
>         Environment: Tuscany SCA 0.99 runtime used in "Tuscany plugin for Geronimo 2.0.1 Tomcat" distro.
>            Reporter: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-1654.patch
>
>
> I have encountered this problem with getting wsdl for service ws binding with helloworld webservice sample deployed in Geronimo using Tuscany plugin for Geronimo.  Creating this JIRA to keep track of any observations and progress on this problem.  I suspect the problem is introduced in rev 569074.  Part of the discussion on tuscany-dev is available at  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22334.html.
> Problem:  After deploying helloworld webservice sample with ws binding URI http://localhost:8080/hello/HelloWorldService, accessing "http://localhost:8080/hello/HelloWorldService?wsdl" throws StringIndexOutOfBoundsException.
> Observations:
> 1.  Though accessing http://localhost:8080/hello/HelloWorldService?wsdl results in an error, the service is still available at http://localhost:8080/hello/HelloWorldService
> 2.  If a URI http://localhost:8080/HelloWorldService is used, then http://localhost:8080/HelloWorldService?wsdl does not result in any errors i.e. when the context-root is "/".
> 3.  The HelloWorldService sample under samples runs fine with either URI's in standalone tuscany runtime.  This is because "/" is used as the context-root in both the cases.

-- 
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


[jira] Updated: (TUSCANY-1654) Problem getting wsdl for service ws binding

Posted by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated TUSCANY-1654:
-----------------------------------------

    Attachment: TUSCANY-1654.patch

For URI http://localhost:8080/hello/HelloWorldService Axis2ServiceProvider.createWSDLAxisService() is computing the name as 
"/hello/HelloWorldService" (part of the URI that follows the host).  This is alright when the context-root is "/".  But, if a different context-root is used, (which is the case with Tuscany plugin for Geronimo) for e.g., "/hello", then TuscanyListingAgent.setContextRoot() is not able to handle it.  The else part (around line 283) bombs as filePart.substring() gets called with parameters (28, 21). 

TUSCANY-1654.patch:  As a work around, if we set the context-root to "/" in this method instead of the actual context-root, then the code runs as expected.  I do not know if it will break something else, but it works for me!!  I will leave it for others to figure if there is a better way to fix it.

Note: If configContext.setContextRoot("/") is called before configContext.setServicePath("_null_"), then soap:address is getting computed as "http://localhost8080/service/hello/HelloWorldService"!! Notice that extra "service" in the URL.


> Problem getting wsdl for service ws binding
> -------------------------------------------
>
>                 Key: TUSCANY-1654
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1654
>             Project: Tuscany
>          Issue Type: Bug
>    Affects Versions: Java-SCA-0.99
>         Environment: Tuscany SCA 0.99 runtime used in "Tuscany plugin for Geronimo 2.0.1 Tomcat" distro.
>            Reporter: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-1654.patch
>
>
> I have encountered this problem with getting wsdl for service ws binding with helloworld webservice sample deployed in Geronimo using Tuscany plugin for Geronimo.  Creating this JIRA to keep track of any observations and progress on this problem.  I suspect the problem is introduced in rev 569074.  Part of the discussion on tuscany-dev is available at  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22334.html.
> Problem:  After deploying helloworld webservice sample with ws binding URI http://localhost:8080/hello/HelloWorldService, accessing "http://localhost:8080/hello/HelloWorldService?wsdl" throws StringIndexOutOfBoundsException.
> Observations:
> 1.  Though accessing http://localhost:8080/hello/HelloWorldService?wsdl results in an error, the service is still available at http://localhost:8080/hello/HelloWorldService
> 2.  If a URI http://localhost:8080/HelloWorldService is used, then http://localhost:8080/HelloWorldService?wsdl does not result in any errors i.e. when the context-root is "/".
> 3.  The HelloWorldService sample under samples runs fine with either URI's in standalone tuscany runtime.  This is because "/" is used as the context-root in both the cases.

-- 
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


[jira] Commented: (TUSCANY-1654) Problem getting wsdl for service ws binding

Posted by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525053 ] 

Vamsavardhana Reddy commented on TUSCANY-1654:
----------------------------------------------

Even if I decide to use a fixed context path (say "/tuscany") for all services and use an URI like "http://localhost:8080/tuscany/hello/HelloWorldService" for my service ws binding, Axis2ServiceProvider.createWSDLAxisService() will compute the service name as "/tuscany/hello/HelloWorldService" for it has no knowledge on the context path I plan to use later for servlet mapping.  One solution I can suggest is that Axis2ServiceProvider.createWSDLAxisService() compute the service name as "/HelloWorldService" (the part following the last "/" in the path), standalone tuscany can use a context-root of "/" and context path of "tuscany/hello" and Geronimo-Tuscany integration can use a context-root "tuscany" and a context path "/hello".  This way tuscany can support all URIs irrespective of what will be used as context-root.  In the case when URI is "http://localhost:8080/HelloWorldService", "/" has to be used as context-root anyway.

> Problem getting wsdl for service ws binding
> -------------------------------------------
>
>                 Key: TUSCANY-1654
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1654
>             Project: Tuscany
>          Issue Type: Bug
>    Affects Versions: Java-SCA-0.99
>         Environment: Tuscany SCA 0.99 runtime used in "Tuscany plugin for Geronimo 2.0.1 Tomcat" distro.
>            Reporter: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-1654.patch
>
>
> I have encountered this problem with getting wsdl for service ws binding with helloworld webservice sample deployed in Geronimo using Tuscany plugin for Geronimo.  Creating this JIRA to keep track of any observations and progress on this problem.  I suspect the problem is introduced in rev 569074.  Part of the discussion on tuscany-dev is available at  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22334.html.
> Problem:  After deploying helloworld webservice sample with ws binding URI http://localhost:8080/hello/HelloWorldService, accessing "http://localhost:8080/hello/HelloWorldService?wsdl" throws StringIndexOutOfBoundsException.
> Observations:
> 1.  Though accessing http://localhost:8080/hello/HelloWorldService?wsdl results in an error, the service is still available at http://localhost:8080/hello/HelloWorldService
> 2.  If a URI http://localhost:8080/HelloWorldService is used, then http://localhost:8080/HelloWorldService?wsdl does not result in any errors i.e. when the context-root is "/".
> 3.  The HelloWorldService sample under samples runs fine with either URI's in standalone tuscany runtime.  This is because "/" is used as the context-root in both the cases.

-- 
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


[jira] Commented: (TUSCANY-1654) Problem getting wsdl for service ws binding

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525058 ] 

ant elder commented on TUSCANY-1654:
------------------------------------

Thats a good point, but the problem with just using the last part of the url for the Axis2 service name is that it needs to be unique and multiple components could use the same service name. So it needs to be some mapping of componentName/serviceName to the binding URI.


> Problem getting wsdl for service ws binding
> -------------------------------------------
>
>                 Key: TUSCANY-1654
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1654
>             Project: Tuscany
>          Issue Type: Bug
>    Affects Versions: Java-SCA-0.99
>         Environment: Tuscany SCA 0.99 runtime used in "Tuscany plugin for Geronimo 2.0.1 Tomcat" distro.
>            Reporter: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-1654.patch
>
>
> I have encountered this problem with getting wsdl for service ws binding with helloworld webservice sample deployed in Geronimo using Tuscany plugin for Geronimo.  Creating this JIRA to keep track of any observations and progress on this problem.  I suspect the problem is introduced in rev 569074.  Part of the discussion on tuscany-dev is available at  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22334.html.
> Problem:  After deploying helloworld webservice sample with ws binding URI http://localhost:8080/hello/HelloWorldService, accessing "http://localhost:8080/hello/HelloWorldService?wsdl" throws StringIndexOutOfBoundsException.
> Observations:
> 1.  Though accessing http://localhost:8080/hello/HelloWorldService?wsdl results in an error, the service is still available at http://localhost:8080/hello/HelloWorldService
> 2.  If a URI http://localhost:8080/HelloWorldService is used, then http://localhost:8080/HelloWorldService?wsdl does not result in any errors i.e. when the context-root is "/".
> 3.  The HelloWorldService sample under samples runs fine with either URI's in standalone tuscany runtime.  This is because "/" is used as the context-root in both the cases.

-- 
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


[jira] Updated: (TUSCANY-1654) Problem getting wsdl for service ws binding

Posted by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vamsavardhana Reddy updated TUSCANY-1654:
-----------------------------------------

    Attachment: TUSCANY-1654-new.patch

Though getContextPath() is added to ServletHost, it is not used in Axis2ServiceProvider to adjust the servicename.  TUSCANY-1654-new.patch fixes this.

> Problem getting wsdl for service ws binding
> -------------------------------------------
>
>                 Key: TUSCANY-1654
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1654
>             Project: Tuscany
>          Issue Type: Bug
>    Affects Versions: Java-SCA-0.99
>         Environment: Tuscany SCA 0.99 runtime used in "Tuscany plugin for Geronimo 2.0.1 Tomcat" distro.
>            Reporter: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-1654-new.patch, TUSCANY-1654.patch
>
>
> I have encountered this problem with getting wsdl for service ws binding with helloworld webservice sample deployed in Geronimo using Tuscany plugin for Geronimo.  Creating this JIRA to keep track of any observations and progress on this problem.  I suspect the problem is introduced in rev 569074.  Part of the discussion on tuscany-dev is available at  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22334.html.
> Problem:  After deploying helloworld webservice sample with ws binding URI http://localhost:8080/hello/HelloWorldService, accessing "http://localhost:8080/hello/HelloWorldService?wsdl" throws StringIndexOutOfBoundsException.
> Observations:
> 1.  Though accessing http://localhost:8080/hello/HelloWorldService?wsdl results in an error, the service is still available at http://localhost:8080/hello/HelloWorldService
> 2.  If a URI http://localhost:8080/HelloWorldService is used, then http://localhost:8080/HelloWorldService?wsdl does not result in any errors i.e. when the context-root is "/".
> 3.  The HelloWorldService sample under samples runs fine with either URI's in standalone tuscany runtime.  This is because "/" is used as the context-root in both the cases.

-- 
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


[jira] Commented: (TUSCANY-1654) Problem getting wsdl for service ws binding

Posted by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524737 ] 

Vamsavardhana Reddy commented on TUSCANY-1654:
----------------------------------------------

I am noticing that ServletHost.addServletMapping() gets called after the service name is already computed by Axis2ServiceProvider.  So, there is no way for Axis2ServiceProvider to know what context-root will be used at servlet mapping step.  Since the service name is computed assuming "/" as context-root, we may continue to assume the same in TuscanyListingAgent.setContextRoot() irrespective of the actual context-root which is essentially what TUSCANY-1654.patch does.  Comments??

> Problem getting wsdl for service ws binding
> -------------------------------------------
>
>                 Key: TUSCANY-1654
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1654
>             Project: Tuscany
>          Issue Type: Bug
>    Affects Versions: Java-SCA-0.99
>         Environment: Tuscany SCA 0.99 runtime used in "Tuscany plugin for Geronimo 2.0.1 Tomcat" distro.
>            Reporter: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-1654.patch
>
>
> I have encountered this problem with getting wsdl for service ws binding with helloworld webservice sample deployed in Geronimo using Tuscany plugin for Geronimo.  Creating this JIRA to keep track of any observations and progress on this problem.  I suspect the problem is introduced in rev 569074.  Part of the discussion on tuscany-dev is available at  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22334.html.
> Problem:  After deploying helloworld webservice sample with ws binding URI http://localhost:8080/hello/HelloWorldService, accessing "http://localhost:8080/hello/HelloWorldService?wsdl" throws StringIndexOutOfBoundsException.
> Observations:
> 1.  Though accessing http://localhost:8080/hello/HelloWorldService?wsdl results in an error, the service is still available at http://localhost:8080/hello/HelloWorldService
> 2.  If a URI http://localhost:8080/HelloWorldService is used, then http://localhost:8080/HelloWorldService?wsdl does not result in any errors i.e. when the context-root is "/".
> 3.  The HelloWorldService sample under samples runs fine with either URI's in standalone tuscany runtime.  This is because "/" is used as the context-root in both the cases.

-- 
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


[jira] Commented: (TUSCANY-1654) Problem getting wsdl for service ws binding

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525060 ] 

ant elder commented on TUSCANY-1654:
------------------------------------

I'm thinking we'll have to go with adding a getContextPath method to the TuscanyHost interface to get the context path as discussed in: http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22579.html

That way the Tuscany Axis2ServiceProvider can get the context path from the ServletHost and use it when creating an Axis2Service name.



> Problem getting wsdl for service ws binding
> -------------------------------------------
>
>                 Key: TUSCANY-1654
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1654
>             Project: Tuscany
>          Issue Type: Bug
>    Affects Versions: Java-SCA-0.99
>         Environment: Tuscany SCA 0.99 runtime used in "Tuscany plugin for Geronimo 2.0.1 Tomcat" distro.
>            Reporter: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-1654.patch
>
>
> I have encountered this problem with getting wsdl for service ws binding with helloworld webservice sample deployed in Geronimo using Tuscany plugin for Geronimo.  Creating this JIRA to keep track of any observations and progress on this problem.  I suspect the problem is introduced in rev 569074.  Part of the discussion on tuscany-dev is available at  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22334.html.
> Problem:  After deploying helloworld webservice sample with ws binding URI http://localhost:8080/hello/HelloWorldService, accessing "http://localhost:8080/hello/HelloWorldService?wsdl" throws StringIndexOutOfBoundsException.
> Observations:
> 1.  Though accessing http://localhost:8080/hello/HelloWorldService?wsdl results in an error, the service is still available at http://localhost:8080/hello/HelloWorldService
> 2.  If a URI http://localhost:8080/HelloWorldService is used, then http://localhost:8080/HelloWorldService?wsdl does not result in any errors i.e. when the context-root is "/".
> 3.  The HelloWorldService sample under samples runs fine with either URI's in standalone tuscany runtime.  This is because "/" is used as the context-root in both the cases.

-- 
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


[jira] Commented: (TUSCANY-1654) Problem getting wsdl for service ws binding

Posted by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524724 ] 

Vamsavardhana Reddy commented on TUSCANY-1654:
----------------------------------------------

It still does not work for me :(.  Even now the serviceName is getting computed as "/hello/HelloWorldService".  In TuscanyListingAgent.setContextRoot(), with context-root "hello",
{code}
 int i = filePart.indexOf(contextRoot) + contextRoot.length(); // evaluates to 27
int j = filePart.lastIndexOf(serviceName); // evaluates to 21.

String mapping = filePart.substring(i+1, j);   // Throws Exception
{code}

> Problem getting wsdl for service ws binding
> -------------------------------------------
>
>                 Key: TUSCANY-1654
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1654
>             Project: Tuscany
>          Issue Type: Bug
>    Affects Versions: Java-SCA-0.99
>         Environment: Tuscany SCA 0.99 runtime used in "Tuscany plugin for Geronimo 2.0.1 Tomcat" distro.
>            Reporter: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-1654.patch
>
>
> I have encountered this problem with getting wsdl for service ws binding with helloworld webservice sample deployed in Geronimo using Tuscany plugin for Geronimo.  Creating this JIRA to keep track of any observations and progress on this problem.  I suspect the problem is introduced in rev 569074.  Part of the discussion on tuscany-dev is available at  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22334.html.
> Problem:  After deploying helloworld webservice sample with ws binding URI http://localhost:8080/hello/HelloWorldService, accessing "http://localhost:8080/hello/HelloWorldService?wsdl" throws StringIndexOutOfBoundsException.
> Observations:
> 1.  Though accessing http://localhost:8080/hello/HelloWorldService?wsdl results in an error, the service is still available at http://localhost:8080/hello/HelloWorldService
> 2.  If a URI http://localhost:8080/HelloWorldService is used, then http://localhost:8080/HelloWorldService?wsdl does not result in any errors i.e. when the context-root is "/".
> 3.  The HelloWorldService sample under samples runs fine with either URI's in standalone tuscany runtime.  This is because "/" is used as the context-root in both the cases.

-- 
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


[jira] Commented: (TUSCANY-1654) Problem getting wsdl for service ws binding

Posted by "Vamsavardhana Reddy (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12524728 ] 

Vamsavardhana Reddy commented on TUSCANY-1654:
----------------------------------------------

As long as Axis2ServiceProvider.createWSDLAxisService() does not consider the actual context-root in computing the service name (line 243 in Axis2ServiceProvider.java), I do not see how this can work for context-root's different from "/".

> Problem getting wsdl for service ws binding
> -------------------------------------------
>
>                 Key: TUSCANY-1654
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1654
>             Project: Tuscany
>          Issue Type: Bug
>    Affects Versions: Java-SCA-0.99
>         Environment: Tuscany SCA 0.99 runtime used in "Tuscany plugin for Geronimo 2.0.1 Tomcat" distro.
>            Reporter: Vamsavardhana Reddy
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-1654.patch
>
>
> I have encountered this problem with getting wsdl for service ws binding with helloworld webservice sample deployed in Geronimo using Tuscany plugin for Geronimo.  Creating this JIRA to keep track of any observations and progress on this problem.  I suspect the problem is introduced in rev 569074.  Part of the discussion on tuscany-dev is available at  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg22334.html.
> Problem:  After deploying helloworld webservice sample with ws binding URI http://localhost:8080/hello/HelloWorldService, accessing "http://localhost:8080/hello/HelloWorldService?wsdl" throws StringIndexOutOfBoundsException.
> Observations:
> 1.  Though accessing http://localhost:8080/hello/HelloWorldService?wsdl results in an error, the service is still available at http://localhost:8080/hello/HelloWorldService
> 2.  If a URI http://localhost:8080/HelloWorldService is used, then http://localhost:8080/HelloWorldService?wsdl does not result in any errors i.e. when the context-root is "/".
> 3.  The HelloWorldService sample under samples runs fine with either URI's in standalone tuscany runtime.  This is because "/" is used as the context-root in both the cases.

-- 
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