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/07/22 11:55:06 UTC

[jira] Created: (TUSCANY-1474) Unable to create two SCA services that use the Web Service binding

Unable to create two SCA services that use the Web Service binding
------------------------------------------------------------------

                 Key: TUSCANY-1474
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1474
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Tomcat Integration
    Affects Versions: Java-SCA-Next
         Environment: Windows XP
            Reporter: Simon Nash
            Priority: Blocker
             Fix For: Java-SCA-Next


As part of debugging the "servlet is not available" problem (see [1]), I converted simple-callback-ws to use matched pairs of services and references instead of callbacks, and I got exactly the same error.  It seesms that no more than one Tomcat Axis2 servlet can be registered, which means that it's not possible to have more than one SCA service that uses the Web Service binding.  This is a  blocking defect for my work to support  callbacks across the Web Service binding.

[1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg20548.html

-- 
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-1474) Unable to create two SCA services that use the Web Service binding

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

Simon Nash updated TUSCANY-1474:
--------------------------------

    Attachment: simple-callback2-ws.zip

Here's a test case that shows the problem (second attempt, as the first had a typo in the WSDL).

> Unable to create two SCA services that use the Web Service binding
> ------------------------------------------------------------------
>
>                 Key: TUSCANY-1474
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1474
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Tomcat Integration
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP
>            Reporter: Simon Nash
>            Priority: Blocker
>             Fix For: Java-SCA-Next
>
>         Attachments: simple-callback2-ws.zip
>
>
> As part of debugging the "servlet is not available" problem (see [1]), I converted simple-callback-ws to use matched pairs of services and references instead of callbacks, and I got exactly the same error.  It seesms that no more than one Tomcat Axis2 servlet can be registered, which means that it's not possible to have more than one SCA service that uses the Web Service binding.  This is a  blocking defect for my work to support  callbacks across the Web Service binding.
> [1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg20548.html

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


Re: [jira] Commented: (TUSCANY-1474) Unable to create two SCA services that use the Web Service binding

Posted by Simon Nash <na...@hursley.ibm.com>.
Thanks, Raymond.  Increasing the timeout got me past this problem.

   Simon

Raymond Feng (JIRA) wrote:

>     [ https://issues.apache.org/jira/browse/TUSCANY-1474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514487 ] 
> 
> Raymond Feng commented on TUSCANY-1474:
> ---------------------------------------
> 
> Hi, Simon.
> 
> I just ran your test case with the the latest trunk code and it was successful without any errors both in Eclipse and maven. The sleep method may need a longer timout value in some cases. 
> 
> Thanks,
> Raymond
> 
> 
>>Unable to create two SCA services that use the Web Service binding
>>------------------------------------------------------------------
>>
>>                Key: TUSCANY-1474
>>                URL: https://issues.apache.org/jira/browse/TUSCANY-1474
>>            Project: Tuscany
>>         Issue Type: Bug
>>         Components: Java SCA Tomcat Integration
>>   Affects Versions: Java-SCA-Next
>>        Environment: Windows XP
>>           Reporter: Simon Nash
>>           Priority: Blocker
>>            Fix For: Java-SCA-Next
>>
>>        Attachments: simple-callback2-ws.zip
>>
>>
>>As part of debugging the "servlet is not available" problem (see [1]), I converted simple-callback-ws to use matched pairs of services and references instead of callbacks, and I got exactly the same error.  It seesms that no more than one Tomcat Axis2 servlet can be registered, which means that it's not possible to have more than one SCA service that uses the Web Service binding.  This is a  blocking defect for my work to support  callbacks across the Web Service binding.
>>[1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg20548.html
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1474) Unable to create two SCA services that use the Web Service binding

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

Raymond Feng commented on TUSCANY-1474:
---------------------------------------

Hi, Simon.

I just ran your test case with the the latest trunk code and it was successful without any errors both in Eclipse and maven. The sleep method may need a longer timout value in some cases. 

Thanks,
Raymond

> Unable to create two SCA services that use the Web Service binding
> ------------------------------------------------------------------
>
>                 Key: TUSCANY-1474
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1474
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Tomcat Integration
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP
>            Reporter: Simon Nash
>            Priority: Blocker
>             Fix For: Java-SCA-Next
>
>         Attachments: simple-callback2-ws.zip
>
>
> As part of debugging the "servlet is not available" problem (see [1]), I converted simple-callback-ws to use matched pairs of services and references instead of callbacks, and I got exactly the same error.  It seesms that no more than one Tomcat Axis2 servlet can be registered, which means that it's not possible to have more than one SCA service that uses the Web Service binding.  This is a  blocking defect for my work to support  callbacks across the Web Service binding.
> [1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg20548.html

-- 
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-1474) Unable to create two SCA services that use the Web Service binding

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

Simon Nash updated TUSCANY-1474:
--------------------------------

    Attachment:     (was: simple-callback2-ws.zip)

> Unable to create two SCA services that use the Web Service binding
> ------------------------------------------------------------------
>
>                 Key: TUSCANY-1474
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1474
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Tomcat Integration
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP
>            Reporter: Simon Nash
>            Priority: Blocker
>             Fix For: Java-SCA-Next
>
>
> As part of debugging the "servlet is not available" problem (see [1]), I converted simple-callback-ws to use matched pairs of services and references instead of callbacks, and I got exactly the same error.  It seesms that no more than one Tomcat Axis2 servlet can be registered, which means that it's not possible to have more than one SCA service that uses the Web Service binding.  This is a  blocking defect for my work to support  callbacks across the Web Service binding.
> [1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg20548.html

-- 
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] Resolved: (TUSCANY-1474) Unable to create two SCA services that use the Web Service binding

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

Raymond Feng resolved TUSCANY-1474.
-----------------------------------

    Resolution: Invalid

Simon confirmed that increasing the timeout got him past this problem.


> Unable to create two SCA services that use the Web Service binding
> ------------------------------------------------------------------
>
>                 Key: TUSCANY-1474
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1474
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Tomcat Integration
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP
>            Reporter: Simon Nash
>            Priority: Blocker
>             Fix For: Java-SCA-Next
>
>         Attachments: simple-callback2-ws.zip
>
>
> As part of debugging the "servlet is not available" problem (see [1]), I converted simple-callback-ws to use matched pairs of services and references instead of callbacks, and I got exactly the same error.  It seesms that no more than one Tomcat Axis2 servlet can be registered, which means that it's not possible to have more than one SCA service that uses the Web Service binding.  This is a  blocking defect for my work to support  callbacks across the Web Service binding.
> [1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg20548.html

-- 
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-1474) Unable to create two SCA services that use the Web Service binding

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

Simon Nash updated TUSCANY-1474:
--------------------------------

    Attachment: simple-callback2-ws.zip

This test case illustrates the servlet problem in a non-callback scenario.

> Unable to create two SCA services that use the Web Service binding
> ------------------------------------------------------------------
>
>                 Key: TUSCANY-1474
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1474
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Tomcat Integration
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP
>            Reporter: Simon Nash
>            Priority: Blocker
>             Fix For: Java-SCA-Next
>
>         Attachments: simple-callback2-ws.zip
>
>
> As part of debugging the "servlet is not available" problem (see [1]), I converted simple-callback-ws to use matched pairs of services and references instead of callbacks, and I got exactly the same error.  It seesms that no more than one Tomcat Axis2 servlet can be registered, which means that it's not possible to have more than one SCA service that uses the Web Service binding.  This is a  blocking defect for my work to support  callbacks across the Web Service binding.
> [1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg20548.html

-- 
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-1474) Unable to create two SCA services that use the Web Service binding

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

Simon Nash commented on TUSCANY-1474:
-------------------------------------

Here's the error  that I am seeing:

Running simplecallback.SimpleCallbackTestCase
log4j:WARN No appenders could be found for logger (org.apache.axiom.om.util.StAXUtils).
log4j:WARN Please initialize the log4j system properly.
22-Jul-2007 11:05:08 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
22-Jul-2007 11:05:08 org.apache.catalina.startup.ContextConfig defaultWebConfig
INFO: No default web.xml
22-Jul-2007 11:05:08 org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url for /javax/servlet/jsp/resources/jsp_2_0.xsd
22-Jul-2007 11:05:08 org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url for /javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd
22-Jul-2007 11:05:08 org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url for /javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd
22-Jul-2007 11:05:08 org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url for /javax/servlet/jsp/resources/web-jsptaglibrary_2_0.xsd
22-Jul-2007 11:05:08 org.apache.catalina.startup.DigesterFactory register
WARNING: Could not get url for /javax/servlet/resources/j2ee_web_services_1_1.xsd
22-Jul-2007 11:05:08 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8085
22-Jul-2007 11:05:08 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8085
Main thread Thread[main,5,main]
aClientMethod on thread Thread[main,5,main]
aClientMethod return from someMethod on thread Thread[main,5,main]
Sleeping ...
22-Jul-2007 11:05:09 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 1 instance(s) to be deallocated
setMyServiceCallback on thread Thread[pool-1-thread-1,5,main]
someMethod on thread Thread[pool-1-thread-1,5,main]
22-Jul-2007 11:05:09 org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet /MyClientComponent/MyServiceCallback is currently unavailable
RuntimeException invoking receiveResult: java.lang.reflect.UndeclaredThrowableException
java.lang.reflect.UndeclaredThrowableException
	at $Proxy10.receiveResult(Unknown Source)
	at simplecallback.MyServiceImpl.someMethod(MyServiceImpl.java:48)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112)
	at org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134)
	at org.apache.tuscany.sca.implementation.java.invocation.PassByValueInvoker.invoke(PassByValueInvoker.java:61)
	at org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46)
	at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:68)
	at org.apache.tuscany.sca.binding.axis2.Axis2ServiceBindingProvider.invokeTarget(Axis2ServiceBindingProvider.java:505)
	at org.apache.tuscany.sca.binding.axis2.Axis2ServiceInMessageReceiver.invokeBusinessLogic(Axis2ServiceInMessageReceiver.java:62)
	at org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:33)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144)
	at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:116)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at org.apache.tuscany.sca.binding.axis2.Axis2ServiceServlet.service(Axis2ServiceServlet.java:234)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:352)
	at org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:61)
	at org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:206)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.axis2.AxisFault: Transport error: 404 Error: Servlet /MyClientComponent/MyServiceCallback is not available
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
	at org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:94)
	at org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:72)
	at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:68)
	at org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:142)
	at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73)
	... 36 more
Caused by: org.apache.axis2.AxisFault: Transport error: 404 Error: Servlet /MyClientComponent/MyServiceCallback is not available
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314)
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
	... 44 more
Caused by: org.apache.axis2.AxisFault: Transport error: 404 Error: Servlet /MyClientComponent/MyServiceCallback is not available
	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179)
	at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305)
	... 45 more
Caused by: org.apache.axis2.AxisFault: Transport error: 404 Error: Servlet /MyClientComponent/MyServiceCallback is not available
	at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:320)
	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:177)
	... 47 more
22-Jul-2007 11:05:09 org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8085
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.245 sec <<< FAILURE!



> Unable to create two SCA services that use the Web Service binding
> ------------------------------------------------------------------
>
>                 Key: TUSCANY-1474
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1474
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Tomcat Integration
>    Affects Versions: Java-SCA-Next
>         Environment: Windows XP
>            Reporter: Simon Nash
>            Priority: Blocker
>             Fix For: Java-SCA-Next
>
>         Attachments: simple-callback2-ws.zip
>
>
> As part of debugging the "servlet is not available" problem (see [1]), I converted simple-callback-ws to use matched pairs of services and references instead of callbacks, and I got exactly the same error.  It seesms that no more than one Tomcat Axis2 servlet can be registered, which means that it's not possible to have more than one SCA service that uses the Web Service binding.  This is a  blocking defect for my work to support  callbacks across the Web Service binding.
> [1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg20548.html

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