Hi,

I am trying to run my FVT testcases for WS bindings using ITest plugin. I
have attached my client side pom file. While trying to start the tuscany
runtime, it throws the following exception:

[INFO] [tuscany-itest:start {execution: start}]
[INFO] Starting Tuscany...
org.apache.tuscany.spi.loader.UnrecognizedElementException: {
http://www.osoa.org
/xmlns/sca/1.0}binding.ws [{http://www.osoa.org/xmlns/sca/1.0}binding.ws]
Context stack trace: [application]
       at org.apache.tuscany.core.loader.LoaderRegistryImpl.load
(LoaderRegistry
Impl.java:93)
       at org.apache.tuscany.core.loader.ReferenceLoader.load(
ReferenceLoader.j
ava:75)
       at org.apache.tuscany.core.loader.ReferenceLoader.load(
ReferenceLoader.j
ava:48)
       at org.apache.tuscany.core.loader.LoaderRegistryImpl.load
(LoaderRegistry
Impl.java:95)
       at
org.apache.tuscany.core.implementation.composite.CompositeLoader.load
(CompositeLoader.java:88)
       at
org.apache.tuscany.core.implementation.composite.CompositeLoader.load
(CompositeLoader.java:64)
       at org.apache.tuscany.core.loader.LoaderRegistryImpl.load
(LoaderRegistry
Impl.java:95)
       at org.apache.tuscany.core.loader.LoaderRegistryImpl.load
(LoaderRegistry
Impl.java:113)
       at
org.apache.tuscany.core.implementation.composite.CompositeComponentTy

I know there is a dependency problem that the tuscany runtime is failing at.
How do i properly add the dependencies to the itest plugin configuation, if
at all that is the case ?

Hasan
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.apache.tuscany.testing.bindingstest</groupId>
  <artifactId>bindingsclient</artifactId>
  <packaging>jar</packaging>
  <version>SNAPSHOT</version>
  <name>SCA FVT Bindings Test Tool JSP Client</name>

    <properties>
    	<tomcat.dir>C:/Apache/Tomcat 5.5</tomcat.dir>
    </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.osoa</groupId>
      <artifactId>sca-api-r0.95</artifactId>
      <version>1.0-incubator-SNAPSHOT</version>
      <scope>provided</scope>
    </dependency>
   
   	<dependency>
	   <groupId>org.apache.tuscany.sca.services.bindings</groupId>
	   <artifactId>axis2</artifactId>
	   <version>1.0-incubator-SNAPSHOT</version>
	</dependency>
    <dependency>
      <groupId>org.apache.tuscany.testing.bindingstest</groupId>
      <artifactId>bindingscomposite</artifactId>
      <version>SNAPSHOT</version>
      <type>war</type>
      <scope>provided</scope>
    </dependency> 
    <dependency>
      <groupId>org.apache.tuscany.testing.bindingstest</groupId>
      <artifactId>bindingsutility</artifactId>
      <version>SNAPSHOT</version>
      <type>war</type>
      <scope>provided</scope>
    </dependency> 
    
    
    
  </dependencies>



 
  <build>
     <defaultGoal>install</defaultGoal>
     <plugins>
	      <plugin>
	        <groupId>org.apache.maven.plugins</groupId>
	        <artifactId>maven-compiler-plugin</artifactId>
	        <configuration>
	          <source>1.5</source>
	          <target>1.5</target>
	          <showDeprecation>true</showDeprecation>
	          <compilerArgument>-Xlint:unchecked,deprecation,fallthrough,finally</compilerArgument>
	        </configuration>
	      </plugin>
	      <plugin>
                <groupId>org.codehaus.cargo</groupId>
                <artifactId>cargo-maven2-plugin</artifactId>
                <executions>
                    <execution>
                        <id>start-container</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>start</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>stop-container</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>

                <configuration>
                    <wait>false</wait>

                    <!-- Container configuration -->
                    <container>
                        <containerId>tomcat5x</containerId>
                        <home>${tomcat.dir}</home>
                        <!-- 
                            <zipUrlInstaller>
                            <url>http://www.orionserver.com/distributions/orion2.0.5.zip</url>
                            <installDir>${java.io.tmpdir}/cargoinstalls</installDir>
                            </zipUrlInstaller>
                        -->

                    </container>

                    <!-- Configuration to use with the container -->
                    <configuration>
                        <home>${project.build.directory}/tomcat5x</home>
                        <deployables>
                            <deployable>
                                <groupId>org.apache.tuscany.testing.bindingstest</groupId>
                                <artifactId>bindingscomposite</artifactId>
                                <type>war</type>
                            </deployable>
                            <deployable>
                                <groupId>org.apache.tuscany.testing.bindingstest</groupId>
                                <artifactId>bindingsutility</artifactId>
                                <type>war</type>
                            </deployable>
                        </deployables>
                    </configuration>

                </configuration>
            </plugin>
	     
	      <plugin>
	        <groupId>org.apache.tuscany.sca.plugins</groupId>
	        <artifactId>tuscany-itest-plugin</artifactId>
	        <executions>
	            <execution>
	                <id>start</id>
	                <phase>pre-integration-test</phase>
	                <goals>
	                    <goal>start</goal>
	                </goals>
	                <configuration>
	                    <applicationScdl>file:///C:/SDO2/Tuscany/java/testing/sca/itest/bindingsTest/bindingsclient/src/main/resources/META-INF/sca/default.scdl</applicationScdl>
	                </configuration>
	            </execution>
	            <execution>
	                <id>test</id>
	                <phase>pre-integration-test</phase>
	                <goals>
	                    <goal>test</goal>
	                </goals>
	                <configuration>
                        <dependency>
                            <groupId>org.apache.tuscany.sca.services.databinding</groupId>
                            <artifactId>databinding-sdo</artifactId>
                            <version>${scaKernelVersion}</version>
                        </dependency>
                        <dependency>
                            <groupId>org.apache.tuscany.sca.services.bindings</groupId>
                            <artifactId>axis2</artifactId>
                            <version>${scaKernelVersion}</version>
                        </dependency>
	                    <includes>
	                        <include>**/*ITest.java</include>
	                    </includes>
	                </configuration>
	            </execution>
	            <execution>
	                <id>stop</id>
	                <phase>pre-integration-test</phase>
	                <goals>
	                    <goal>stop</goal>
	                </goals>
	            </execution>
	          </executions>
	        </plugin>
			<plugin>
			    <groupId>org.apache.maven.plugins</groupId>
			    <artifactId>maven-surefire-plugin</artifactId>
			    <configuration>
			        <excludes>
			            <exclude>**/*ITest.java</exclude>
			        </excludes>
			    </configuration>
			</plugin>
    </plugins>
  </build>
 
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to