You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2006/08/29 07:04:47 UTC

svn commit: r437967 - in /incubator/tuscany/cpp/sca/runtime: core/src/tuscany/sca/core/TuscanyRuntime.cpp ws_service/axis2c/src/Axis2Service_skeleton.cpp

Author: jsdelfino
Date: Mon Aug 28 22:04:47 2006
New Revision: 437967

URL: http://svn.apache.org/viewvc?rev=437967&view=rev
Log:
Fixed a SEGV in Axis2ServiceSkeleton in initialization of the default component name in TuscanyRuntime, WS service now working end to end, tested with Calculator and BigBank

Modified:
    incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/core/TuscanyRuntime.cpp
    incubator/tuscany/cpp/sca/runtime/ws_service/axis2c/src/Axis2Service_skeleton.cpp

Modified: incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/core/TuscanyRuntime.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/core/TuscanyRuntime.cpp?rev=437967&r1=437966&r2=437967&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/core/TuscanyRuntime.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/core/TuscanyRuntime.cpp Mon Aug 28 22:04:47 2006
@@ -45,7 +45,7 @@
         void TuscanyRuntime::setDefaultComponentName(const string& componentName)
         {
             LOGENTRY(1, "TuscanyRuntime::setDefaultComponentName");
-            defaultComponentName = defaultComponentName;
+            defaultComponentName = componentName;
             LOGINFO_1(3, "TuscanyRuntime::setDefaultComponentName - set to %s", componentName.c_str());
             LOGEXIT(1, "TuscanyRuntime::setDefaultComponentName");
         }

Modified: incubator/tuscany/cpp/sca/runtime/ws_service/axis2c/src/Axis2Service_skeleton.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/ws_service/axis2c/src/Axis2Service_skeleton.cpp?rev=437967&r1=437966&r2=437967&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/ws_service/axis2c/src/Axis2Service_skeleton.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/ws_service/axis2c/src/Axis2Service_skeleton.cpp Mon Aug 28 22:04:47 2006
@@ -136,13 +136,13 @@
 
         bool newInitParams = false;
 
-        if(systemRoot.length() != 0 && systemRoot != root)
+        if(systemRoot != root)
         {
             systemRoot = root;
             newInitParams = true;
         }
 
-        if(serviceName.length() != 0 && serviceName != service)
+        if(serviceName != service)
         {
             serviceName = service;
             newInitParams = true;
@@ -169,7 +169,7 @@
 
         if(compositeService == NULL)
         {
-            Composite* composite = SCARuntime::getInstance()->getDefaultComponent()->getComposite();
+            Composite* composite = (Composite*)SCARuntime::getInstance()->getDefaultComponent()->getType();
             compositeService = (CompositeService*)composite->findComponent(compositeServiceName);
         }
         else



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