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

svn commit: r432157 - in /incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca: binding.axis2.scdl composite.scdl databinding.sdo.scdl webapp.system.scdl

Author: rfeng
Date: Wed Aug 16 22:47:47 2006
New Revision: 432157

URL: http://svn.apache.org/viewvc?rev=432157&view=rev
Log:
Integrate Axis2 and SDO databinding for Web Service  

Added:
    incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/binding.axis2.scdl
    incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/databinding.sdo.scdl
Modified:
    incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/composite.scdl
    incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/webapp.system.scdl

Added: incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/binding.axis2.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/binding.axis2.scdl?rev=432157&view=auto
==============================================================================
--- incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/binding.axis2.scdl (added)
+++ incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/binding.axis2.scdl Wed Aug 16 22:47:47 2006
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<!-- Axis2 based WebService binding extension -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+           xmlns:tuscany="http://tuscany.apache.org/xmlns/1.0-SNAPSHOT"
+           name="org.apache.tuscany.binding.axis2">
+
+    <!-- [rfeng] Commented it out for now. When this SCDL is loaded, the DependencyLoader component
+    has not been initiated yet. We may need to play with initLevel setting -->
+    <!-- 
+    <tuscany:dependency>
+        <group>axis2</group>
+        <artifact>axis2-core</artifact>
+        <version>SNAPSHOT</version>
+    </tuscany:dependency>
+     -->
+     
+    <component name="webservice.bindingLoader">
+        <system:implementation.system class="org.apache.tuscany.binding.axis2.WebServiceBindingLoader"/>
+    </component>
+
+    <component name="webservice.axis2.bindingBuilder">
+        <system:implementation.system class="org.apache.tuscany.binding.axis2.Axis2BindingBuilder"/>
+    </component>
+
+</composite>

Modified: incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/composite.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/composite.scdl?rev=432157&r1=432156&r2=432157&view=diff
==============================================================================
--- incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/composite.scdl (original)
+++ incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/composite.scdl Wed Aug 16 22:47:47 2006
@@ -30,6 +30,9 @@
     <component name="composite.loader">
         <system:implementation.system class="org.apache.tuscany.core.implementation.composite.CompositeLoader"/>
     </component>
+    <component name="composite.dependencyLoader">
+        <system:implementation.system class="org.apache.tuscany.core.implementation.composite.DependencyLoader"/>
+    </component>
     <component name="composite.componentTypeLoader">
         <system:implementation.system class="org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader"/>
     </component>

Added: incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/databinding.sdo.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/databinding.sdo.scdl?rev=432157&view=auto
==============================================================================
--- incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/databinding.sdo.scdl (added)
+++ incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/databinding.sdo.scdl Wed Aug 16 22:47:47 2006
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<!--
+    import.sdo configuration
+    
+    $Rev: 431086 $ $Date: 2006-08-12 13:58:17 -0700 (Sat, 12 Aug 2006) $
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+           name="org.apache.tuscany.databinding.sdo">
+
+    <!-- import.sdo element loader implementations -->
+    <component name="elementLoader.import.sdo">
+        <system:implementation.system class="org.apache.tuscany.databinding.sdo.ImportSDOLoader"/>
+    </component>
+    
+</composite>

Modified: incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/webapp.system.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/webapp.system.scdl?rev=432157&r1=432156&r2=432157&view=diff
==============================================================================
--- incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/webapp.system.scdl (original)
+++ incubator/tuscany/java/sca/runtime/webapp/src/main/resources/META-INF/sca/webapp.system.scdl Wed Aug 16 22:47:47 2006
@@ -115,12 +115,9 @@
     </component>
     
     <!-- TODO: Hack the Axis extension in  -->
-    <component name="ws.implementationLoader">
-        <system:implementation.system class="org.apache.tuscany.binding.axis2.WebServiceBindingLoader"/>
-    </component>
-    <component name="ws.componentBuilder">
-        <system:implementation.system class="org.apache.tuscany.binding.axis2.Axis2BindingBuilder"/>
-    </component>
+    <include name="binding.axis2" scdlLocation="binding.axis2.scdl"/>
     
+    <!-- TODO: Hack the SDO DataBinding extension in -->
+    <include name="databinding.sdo" scdlLocation="databinding.sdo.scdl"/>
 
 </composite>



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


Re: svn commit: r432157

Posted by Jeremy Boynes <jb...@apache.org>.
On Aug 17, 2006, at 12:28 AM, Jim Marino wrote:

> Raymond,
>
> Sorry to keep harping on the dependencies issue but I now see we  
> have the webapp project dependent on the Axis binding and SDO. I  
> realize you did not introduce the Axis dependency and asked last  
> week why it was introduced but never received a response...I assume  
> it was because of issues we have with resolving dependencies.
>
> Could you please explain the issues that are forcing us down this  
> path so we can find a solution? Significant hacks like this, if  
> necessary, should really be discussed on the list prior to making  
> them. Again, I am very uncomfortable with this as it appears we are  
> loosing site of our modularity goal.
>

It also doesn't work as the axis binding uses <dependency> elements  
that require the AritfactRepository to be running and that is not  
part of the primordial deployer. These really should be deployed as  
extensions.

A work-around might be to set the installDirectory in the RuntimeInfo  
for the webapp to the real path (as returned by getRealPath()) of an  
extension directory in the webapp e.g. WEB-INF/tuscany. This would be  
used by the DirectoryScanExtender as the base for resolving relative  
paths; with default config this would result in jars in WEB-INF/ 
tuscany/extension being loaded as extensions.

Just an idea - YMMV

--
Jeremy


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


Fwd: svn commit: r432157

Posted by Jim Marino <jm...@myromatours.com>.
Raymond,

Sorry to keep harping on the dependencies issue but I now see we have  
the webapp project dependent on the Axis binding and SDO. I realize  
you did not introduce the Axis dependency and asked last week why it  
was introduced but never received a response...I assume it was  
because of issues we have with resolving dependencies.

Could you please explain the issues that are forcing us down this  
path so we can find a solution? Significant hacks like this, if  
necessary, should really be discussed on the list prior to making  
them. Again, I am very uncomfortable with this as it appears we are  
loosing site of our modularity goal.

Jim


Begin forwarded message:

> From: rfeng@apache.org
> Date: August 16, 2006 10:47:48 PM PDT
> To: tuscany-commits@ws.apache.org
> Subject: svn commit: r432157 - in /incubator/tuscany/java/sca/ 
> runtime/webapp/src/main/resources/META-INF/sca: binding.axis2.scdl  
> composite.scdl databinding.sdo.scdl webapp.system.scdl
> Reply-To: tuscany-dev@ws.apache.org
>
> Author: rfeng
> Date: Wed Aug 16 22:47:47 2006
> New Revision: 432157
>
> URL: http://svn.apache.org/viewvc?rev=432157&view=rev
> Log:
> Integrate Axis2 and SDO databinding for Web Service
>
> Added:
>     incubator/tuscany/java/sca/runtime/webapp/src/main/resources/ 
> META-INF/sca/binding.axis2.scdl
>     incubator/tuscany/java/sca/runtime/webapp/src/main/resources/ 
> META-INF/sca/databinding.sdo.scdl
> Modified:
>     incubator/tuscany/java/sca/runtime/webapp/src/main/resources/ 
> META-INF/sca/composite.scdl
>     incubator/tuscany/java/sca/runtime/webapp/src/main/resources/ 
> META-INF/sca/webapp.system.scdl
>
>


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