Ok Tijs,
This source distribution is working on Ubuntu and Windows but I found the
same problem when I used a fresh Debian machine. There is something wrong.
Till I figure out what's wrong with the build I will provide a workaround
for you.
In the src distribution you will be able to find a pom.xml file in
modules/core/pom.xml.....
In that file you can find the following ant task somwhere in the begining of
the build.
- <#> <executions>
- <#> <execution>
<id>copy</id>
<phase>generate-test-resources</phase>
- <#> <goals>
<goal>copy</goal>
</goals>
- <#> <configuration>
- <#> <artifactItems>
- <#> <artifactItem>
<groupId>org.apache.axis2</groupId>
<artifactId>addressing</artifactId>
<version>${addressing.version}</version>
<type>mar</type>
<overWrite>false</overWrite>
<outputDirectory>target/lib</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
It says <overWrite>false</overWrite> when copying addressing mar. You can
chane it to true so that <overWrite>true</overWrite>.
This should not be the solution for the issue but it is just an workaround.
I will attach the modified pom so that You can replace it with the existing
one.
Thanks,
Ruwan
On 12/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi Ruwan,
To be clear, I am using the source distribution of the 0.90 version that I
downloaded from the Synapse website. I found out that the problem is that
the ws-addressing mar does not get installed in the test-repos. It actually
the mar is not available in any place in the Synapse source tree. The
strange thing is that in the maven log the following print is given:
[INFO] org.apache.axis2:addressing:1.1.051:mar already exists in
C:\book\distributions\synapse-0.90-src\modules\core\target\lib
Well it doesn't. I run maven with the "mvn clean install" command.
I have attached the text file you asked for.
Tijs
>
> van: "Ruwan Linton" <[EMAIL PROTECTED]>
> datum: 2006/12/17 Sun AM 12:41:47 MET
> aan: [email protected]
> onderwerp: Re: built Synapse 0.90 src distribution
>
> Hi Tijs,
>
> Can You please attach the test report for the corresponding test case,
which
> is placed in
>
$SYNAPSE_SRC/trunk/java/modules/core/target/surfire-reports/org.apache.synapse.core.n2n.SynapseCommodityServiceTest.txt
>
> Thanks,
> Ruwan.
>
> On 12/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > The wso2 maven repository seems to be working now. But I get a test
> > failure when building the 0.90 source distribution. The
> > SynapseCommodityServiceTest is failing. Does anybody else get this
test
> > failure?
> >
> > >
> > > van: <[EMAIL PROTECTED]>
> > > datum: 2006/12/16 Sat PM 04:29:39 MET
> > > aan: <[email protected]>
> > > onderwerp: built Synapse 0.90 src distribution
> > >
> > > Hi all,
> > >
> > > I am not able to built the Synapse 0.90 src distribution.
> > > A lot of poms and jars can not be found like for example
> > axis2-rahas/1.1.051 and sandesha2-policy-1.1.
> > > Also the dist.wso2.org/maven repository seems to be not responding.
> > >
> > > Tijs
> > >
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
-------------------------------------------------------------------------------
Test set: org.apache.synapse.n2n.SynapseCommodityServiceTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.359 sec
<<< FAILURE!
testN2N(org.apache.synapse.n2n.SynapseCommodityServiceTest) Time elapsed:
0.359 sec <<< ERROR!
org.apache.axis2.AxisFault: Trying to engage a module which is not
available : addressing
at org.apache.axis2.engine.AxisConfiguration.engageModule(
AxisConfiguration.java:356)
at org.apache.axis2.deployment.DeploymentEngine.engageModules(
DeploymentEngine.java:664)
at
org.apache.axis2.deployment.FileSystemConfigurator.engageGlobalModules(
FileSystemConfigurator.java:124)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
(ConfigurationContextFactory.java:71)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
(ConfigurationContextFactory.java:180)
at org.apache.synapse.n2n.SynapseCommodityServiceTest.setUp(
SynapseCommodityServiceTest.java:53)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(
JUnitTestSet.java:210)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
AbstractDirectoryTestSuite.java:135)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
AbstractDirectoryTestSuite.java:122)
at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:225)
at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.java:747)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<?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.
-->
<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>
<parent>
<groupId>org.apache.synapse</groupId>
<artifactId>Apache-Synapse-Incubating</artifactId>
<version>0.90</version>
</parent>
<groupId>org.apache.synapse</groupId>
<artifactId>synapse-incubating-core</artifactId>
<name>Apache Synapse - Core</name>
<description>Apache Synapse - Core</description>
<packaging>jar</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0-alpha-1-SNAPSHOT</version>
<executions>
<execution>
<id>copy</id>
<phase>generate-test-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.axis2</groupId>
<artifactId>addressing</artifactId>
<version>${addressing.version}</version>
<type>mar</type>
<overWrite>true</overWrite>
<outputDirectory>target/lib</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>create_repo</id>
<phase>generate-test-resources</phase>
<configuration>
<tasks>
<echo message="*** Creating a testing repository ***"/>
<mkdir dir="target/test_repos"/>
<mkdir dir="target/test_repos/synapse/modules"/>
<mkdir dir="target/test_repos/synapse/services"/>
<mkdir dir="target/test_repos/client/modules"/>
<echo message="*** Creating synapse.mar ***"/>
<mkdir dir="target/modules/synapse/META-INF"/>
<copy file="src/main/resources/module.xml" tofile="target/modules/synapse/META-INF/module.xml"/>
<manifest file="target/MANIFEST.MF">
<attribute name="Extension-Name" value="org.apache.synapse"/>
<attribute name="Specification-Title" value="synapse-incubating"/>
<attribute name="Specification-Vendor" value="Apache Software Foundation"/>
<attribute name="Specification-Version" value="${pom.version}"/>
<attribute name="Implementation-Title" value="Apache Synapse"/>
<attribute name="Implementation-Vendor-Id" value="org.apache"/>
<attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
<attribute name="Implementation-Version" value="${pom.version}"/>
</manifest>
<jar jarfile="target/synapse-incubating-${version}.mar" manifest="target/MANIFEST.MF">
<fileset dir="target/modules/synapse">
<include name="**"/>
</fileset>
<fileset dir="target/classes">
<include name="**"/>
</fileset>
</jar>
<copy file="target/synapse-incubating-${version}.mar"
tofile="target/test_repos/synapse/modules/synapse-incubating-${version}.mar"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>populate_repo</id>
<phase>process-test-resources</phase>
<configuration>
<tasks>
<echo message="*** Populating the testing repository ***"/>
<!--<copy todir="target/test_repos/client/modules">-->
<!--<fileset dir="target/lib">-->
<!--<include name="**/addressing*.mar"/>-->
<!--</fileset>-->
<!--</copy>-->
<copy todir="target/test_repos/synapse/modules">
<fileset dir="target/lib">
<include name="**/*.mar"/>
</fileset>
</copy>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]