You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Raymond Feng <en...@gmail.com> on 2007/12/03 19:52:34 UTC

Re: svn commit: r600080 - in /incubator/tuscany/java/sca/samples/helloworld-ws-service/src: main/java/helloworld/ main/resources/ main/resources/META-INF/ main/resources/META-INF/sca-deployables/ test/java/helloworld/

Hi,

It seems that the reference-side samples are broken due to these changes. 
For example, in 
/sample-helloworld-ws-reference/src/test/java/helloworld/HelloWorldTestServer.java, 
we have:

    scaDomain = SCADomain.newInstance("helloworldws.composite");

It fails as "helloworldws.composite" is not on the classpath any more (it's 
META-INF/sca-deployables/helloworldws.composite).

Thanks,
Raymond

----- Original Message ----- 
From: <an...@apache.org>
To: <tu...@ws.apache.org>
Sent: Saturday, December 01, 2007 2:39 AM
Subject: svn commit: r600080 - in 
/incubator/tuscany/java/sca/samples/helloworld-ws-service/src: 
main/java/helloworld/ main/resources/ main/resources/META-INF/ 
main/resources/META-INF/sca-deployables/ test/java/helloworld/


> Author: antelder
> Date: Sat Dec  1 02:39:38 2007
> New Revision: 600080
>
> URL: http://svn.apache.org/viewvc?rev=600080&view=rev
> Log:
> Change sample to have composite in deployables folder
>
> Added:
> 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/resources/META-INF/
> 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/resources/META-INF/sca-deployables/
> 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/resources/META-INF/sca-deployables/helloworldws.composite
> 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/test/java/helloworld/HelloWorldServer.java
>      - copied, changed from r599368, 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/java/helloworld/HelloWorldServer.java
> Removed:
> 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/java/helloworld/HelloWorldServer.java
> 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/resources/helloworldws.composite
> Modified:
> 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/test/java/helloworld/HelloWorldServerTestCase.java
>
> Added: 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/resources/META-INF/sca-deployables/helloworldws.composite
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/resources/META-INF/sca-deployables/helloworldws.composite?rev=600080&view=auto
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/resources/META-INF/sca-deployables/helloworldws.composite 
> (added)
> +++ 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/resources/META-INF/sca-deployables/helloworldws.composite 
> Sat Dec  1 02:39:38 2007
> @@ -0,0 +1,33 @@
> +<?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.
> +-->
> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> + targetNamespace="http://helloworld"
> + xmlns:hw="http://helloworld"
> +    name="helloworldws">
> +
> +    <component name="HelloWorldServiceComponent">
> +        <implementation.java class="helloworld.HelloWorldImpl" />
> +     <service name="HelloWorldService">
> +         <interface.wsdl 
> interface="http://helloworld#wsdl.interface(HelloWorld)" />
> +         <binding.ws uri="http://localhost:8085/HelloWorldService"/>
> +     </service>
> +    </component>
> +
> +</composite>
>
> Copied: 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/test/java/helloworld/HelloWorldServer.java 
> (from r599368, 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/java/helloworld/HelloWorldServer.java)
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-ws-service/src/test/java/helloworld/HelloWorldServer.java?p2=incubator/tuscany/java/sca/samples/helloworld-ws-service/src/test/java/helloworld/HelloWorldServer.java&p1=incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/java/helloworld/HelloWorldServer.java&r1=599368&r2=600080&rev=600080&view=diff
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/main/java/helloworld/HelloWorldServer.java 
> (original)
> +++ 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/test/java/helloworld/HelloWorldServer.java 
> Sat Dec  1 02:39:38 2007
> @@ -30,7 +30,7 @@
>
>     public static void main(String[] args) {
>
> -        SCADomain scaDomain = 
> SCADomain.newInstance("helloworldws.composite");
> +        SCADomain scaDomain = 
> SCADomain.newInstance("META-INF/sca-deployables/helloworldws.composite");
>
>         try {
>             System.out.println("HelloWorld server started (press enter to 
> shutdown)");
>
> Modified: 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/test/java/helloworld/HelloWorldServerTestCase.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-ws-service/src/test/java/helloworld/HelloWorldServerTestCase.java?rev=600080&r1=600079&r2=600080&view=diff
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/test/java/helloworld/HelloWorldServerTestCase.java 
> (original)
> +++ 
> incubator/tuscany/java/sca/samples/helloworld-ws-service/src/test/java/helloworld/HelloWorldServerTestCase.java 
> Sat Dec  1 02:39:38 2007
> @@ -38,7 +38,7 @@
>
>         @Before
>  public void startServer() throws Exception {
> -            scaDomain = SCADomain.newInstance("helloworldws.composite");
> +            scaDomain = 
> SCADomain.newInstance("META-INF/sca-deployables/helloworldws.composite");
>  }
>
>  @Test
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-commits-help@ws.apache.org
> 


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