You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Nash (JIRA)" <tu...@ws.apache.org> on 2007/09/01 18:51:19 UTC

[jira] Created: (TUSCANY-1652) Dynamic WSDL not available via "?wsdl" query

Dynamic WSDL not available via "?wsdl" query
--------------------------------------------

                 Key: TUSCANY-1652
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1652
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Axis Binding Extension
    Affects Versions: Java-SCA-Next
         Environment: Windows XP
            Reporter: Simon Nash
            Priority: Critical
             Fix For: Java-SCA-1.0


The calculator-ws-webapp sample should produce its dyanmically generated WSDL from the query
   http://localhost:8080/sample-calculator-ws-webapp/AddServiceComponent?wsdl

Instead, the following exception is thrown:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	java.lang.String.substring(String.java:1768)
	org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.setContextRoot(TuscanyListingAgent.java:286)
	org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.processListService(TuscanyListingAgent.java:102)
	org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet(Axis2ServiceServlet.java:260)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
	org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.service(Axis2ServiceServlet.java:235)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:77)
	org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:83)

This is a result of the changes in r571650 that have removed the ../services/.. prefix from the URL.  The code in TuscanyListing Agent can't handle a URL in the new format.



-- 
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-1652) Dynamic WSDL not available via "?wsdl" query

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

Simon Nash commented on TUSCANY-1652:
-------------------------------------

This sample is working fine for me now with host-webapp.  Thanks, Ant!

> Dynamic WSDL not available via "?wsdl" query
> --------------------------------------------
>
>                 Key: TUSCANY-1652
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1652
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP
>            Reporter: Simon Nash
>            Priority: Critical
>             Fix For: Java-SCA-1.0
>
>
> The calculator-ws-webapp sample should produce its dyanmically generated WSDL from the query
>    http://localhost:8080/sample-calculator-ws-webapp/AddServiceComponent?wsdl
> Instead, the following exception is thrown:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> 	java.lang.String.substring(String.java:1768)
> 	org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.setContextRoot(TuscanyListingAgent.java:286)
> 	org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.processListService(TuscanyListingAgent.java:102)
> 	org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet(Axis2ServiceServlet.java:260)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> 	org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.service(Axis2ServiceServlet.java:235)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:77)
> 	org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:83)
> This is a result of the changes in r571650 that have removed the ../services/.. prefix from the URL.  The code in TuscanyListing Agent can't handle a URL in the new format.

-- 
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-1652) Dynamic WSDL not available via "?wsdl" query

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

gengshaoguang commented on TUSCANY-1652:
----------------------------------------

Hello,

This problem happened when using "host-webapp", it works fine with "http-jetty".

Things were different inside TuscanyListingAgent.setContextRoot(*,*), with jetty, contextRoot is "/", with webapp, it  comes to be a string, so as got to be treated differently. I am not sure the latter was correct.


Any way, it seems a small problem, but need to be verified again.




> Dynamic WSDL not available via "?wsdl" query
> --------------------------------------------
>
>                 Key: TUSCANY-1652
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1652
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP
>            Reporter: Simon Nash
>            Priority: Critical
>             Fix For: Java-SCA-1.0
>
>
> The calculator-ws-webapp sample should produce its dyanmically generated WSDL from the query
>    http://localhost:8080/sample-calculator-ws-webapp/AddServiceComponent?wsdl
> Instead, the following exception is thrown:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> 	java.lang.String.substring(String.java:1768)
> 	org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.setContextRoot(TuscanyListingAgent.java:286)
> 	org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.processListService(TuscanyListingAgent.java:102)
> 	org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet(Axis2ServiceServlet.java:260)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> 	org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.service(Axis2ServiceServlet.java:235)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:77)
> 	org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:83)
> This is a result of the changes in r571650 that have removed the ../services/.. prefix from the URL.  The code in TuscanyListing Agent can't handle a URL in the new format.

-- 
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-1652) Dynamic WSDL not available via "?wsdl" query

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

gengshaoguang commented on TUSCANY-1652:
----------------------------------------

Hi

I am just in the exact same scenario, for the time being.

But the service works right.

I think we missed something in the classpath, but I don't know what is it.

Did you solve it? Or could someone give a clue?




> Dynamic WSDL not available via "?wsdl" query
> --------------------------------------------
>
>                 Key: TUSCANY-1652
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1652
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP
>            Reporter: Simon Nash
>            Priority: Critical
>             Fix For: Java-SCA-1.0
>
>
> The calculator-ws-webapp sample should produce its dyanmically generated WSDL from the query
>    http://localhost:8080/sample-calculator-ws-webapp/AddServiceComponent?wsdl
> Instead, the following exception is thrown:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> 	java.lang.String.substring(String.java:1768)
> 	org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.setContextRoot(TuscanyListingAgent.java:286)
> 	org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.processListService(TuscanyListingAgent.java:102)
> 	org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet(Axis2ServiceServlet.java:260)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> 	org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.service(Axis2ServiceServlet.java:235)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:77)
> 	org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:83)
> This is a result of the changes in r571650 that have removed the ../services/.. prefix from the URL.  The code in TuscanyListing Agent can't handle a URL in the new format.

-- 
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] Closed: (TUSCANY-1652) Dynamic WSDL not available via "?wsdl" query

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

ant elder closed TUSCANY-1652.
------------------------------

    Resolution: Fixed

Fixed in r572360 (the sample ?wsdl works for me now anyway).

> Dynamic WSDL not available via "?wsdl" query
> --------------------------------------------
>
>                 Key: TUSCANY-1652
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1652
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP
>            Reporter: Simon Nash
>            Priority: Critical
>             Fix For: Java-SCA-1.0
>
>
> The calculator-ws-webapp sample should produce its dyanmically generated WSDL from the query
>    http://localhost:8080/sample-calculator-ws-webapp/AddServiceComponent?wsdl
> Instead, the following exception is thrown:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> 	java.lang.String.substring(String.java:1768)
> 	org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.setContextRoot(TuscanyListingAgent.java:286)
> 	org.apache.tuscany.sca.binding.ws.axis2.TuscanyListingAgent.processListService(TuscanyListingAgent.java:102)
> 	org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet(Axis2ServiceServlet.java:260)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> 	org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.service(Axis2ServiceServlet.java:235)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	org.apache.tuscany.sca.host.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:77)
> 	org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.doFilter(TuscanyServletFilter.java:83)
> This is a result of the changes in r571650 that have removed the ../services/.. prefix from the URL.  The code in TuscanyListing Agent can't handle a URL in the new format.

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