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

2007-09-03 Thread Vamsavardhana Reddy (JIRA)

 [ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2007-11-19 Thread Vamsavardhana Reddy (JIRA)

 [ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]