Return-Path: Delivered-To: apmail-ws-synapse-dev-archive@www.apache.org Received: (qmail 98813 invoked from network); 2 Jan 2008 17:12:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2008 17:12:13 -0000 Received: (qmail 65065 invoked by uid 500); 2 Jan 2008 17:12:02 -0000 Delivered-To: apmail-ws-synapse-dev-archive@ws.apache.org Received: (qmail 64901 invoked by uid 500); 2 Jan 2008 17:12:02 -0000 Mailing-List: contact synapse-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: synapse-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list synapse-dev@ws.apache.org Delivered-To: moderator for synapse-dev@ws.apache.org Received: (qmail 51365 invoked by uid 99); 2 Jan 2008 16:58:28 -0000 X-ASF-Spam-Status: No, hits=3.8 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of medhi@yousendit.com designates 209.8.50.47 as permitted sender) User-Agent: Microsoft-Entourage/11.3.6.070618 Date: Wed, 02 Jan 2008 08:55:18 -0800 Subject: Re: Adding STOMP transport protocol in synapse From: mehdi ait oufkir To: Message-ID: Thread-Topic: Adding STOMP transport protocol in synapse Thread-Index: AchNYEDVf2kKkLlTEdyo/gAX8vQgHw== In-Reply-To: <71e1b5740801020355m2caf626di9ddf6b99b049bac8@mail.gmail.com> Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3282108918_11980050" X-Virus-Checked: Checked by ClamAV on apache.org --B_3282108918_11980050 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Thank you ant but I still have some trouble to build synapse 1.1. Here is some more information: I=B9m using JDK 1.5 and maven 2.0.6 (I=B9ll try to upgrade if it still doesn=B9t work). I fee like I won=B9t be able to build synapse inside eclipse because the mvn plugin is not precise enough. However when I try to build it from the command line (mvn clean install) here is the error I have: Compiling 222 source files to /Users/mehdi/ysi/workspace/ysb/modules/core/target/classes [INFO]=20 ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO]=20 ------------------------------------------------------------------------ [INFO] Compilation failure /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synaps= e /mediators/builtin/CacheMediator.java:[151,25] setResponseEnvelope(byte[]) in org.wso2.caching.CachedObject cannot be applied to (org.apache.axiom.soap.SOAPEnvelope) /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synaps= e /mediators/builtin/CacheMediator.java:[212,26] setEnvelope(org.apache.axiom.soap.SOAPEnvelope) in org.apache.synapse.MessageContext cannot be applied to (byte[]) /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synaps= e /mediators/builtin/CacheMediator.java:[283,17] setRequestEnvelope(byte[]) i= n org.wso2.caching.CachedObject cannot be applied to (org.apache.axiom.soap.SOAPEnvelope) /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synaps= e /mediators/builtin/CacheMediator.java:[284,17] setRequestHash(java.lang.String) in org.wso2.caching.CachedObject cannot be applied to (java.lang.Object) Let me know what you think. mehdi On 1/2/08 3:55 AM, "ant elder" wrote: > In case you've not got past this yet here's some info and Maven commands = which > I find useful, we should add this to the Synapse website: >=20 > Building Synapse: >=20 > Synapse requires JDK 1.5 or later and Maven 2.0.7 or later > (http://maven.apache.org/download.html). >=20 > To build, in the top level Synapse folder do: >=20 > mvn clean install >=20 > Or to build the distribution archive packages do (the distribution archiv= es > are created in new folder named target): >=20 > mvn assembly:assembly -Drelease >=20 > The first time you build Maven downloads all the required dependency jars= to > your local repository, after there has been a successful build you can ad= d the > "-o" parameter to the above commands to run in offline mode which avoids > going out to remote Maven repositories so the build runs faster. Eg >=20 > mvn clean install -o > or > mvn assembly:assembly -Drelease -o >=20 > If you don't want to have all the Synapse test cases run during the build= you > can add the parameter "-Dmaven.test.skip=3Dtrue", eg: >=20 > mvn clean install -o -Dmaven.test.skip=3Dtrue > or > mvn assembly:assembly -Drelease -o -Dmaven.test.skip=3Dtrue >=20 > Sometimes the trunk build uses snapshot versions of some dependency jars = which > can go out of date but may not get refreshed in your local Maven reposito= ry > even when the "-o" parameter is not used. So if you get build failures yo= u can > try refreshing any snapshot dependencys with the "-U" parameter, eg: >=20 > mvn clean install -U >=20 > By default the Maven local repository is in your home directory, you can > change this so the build uses use a different local repository with the > parameter "-Dmaven.repo.local=3D", eg: >=20 > mvn clean install -Dmaven.repo.local=3D\Synapse\MyRepo >=20 > HTH, >=20 > ...ant >=20 > On Dec 31, 2007 8:29 PM, mehdi ait oufkir > wrote: >> Hi, >> So I have issues with maven under eclipse. I guess the installation did= n't >> work properly. When I want to build, it's complaining about:[ERROR] BUIL= D >> [INFO] The PluginDescriptor for the plugin >> org.apache.maven.plugins:maven-resources-plugin was not found >>=20 >> I don't know how to solve that. >>=20 >> Also, I have a lot of type that cannot be resolved. It seems that I'm >> missing a lot of apache packages (org.apache.axis2, org.apache.log...) >>=20 >> Let me know what I should do to fix those issues. >> Mehdi.=20 >>=20 >>=20 >> On 12/30/07 7:51 AM, "Paul Fremantle" wrote: >>=20 >>> > Yes it works fine for me.... let me know if you have any problems. >>> > >>> > Paul >>> > >>> > On Dec 30, 2007 2:38 PM, Asankha C. Perera wrote: >>>> >> mehdi ait oufkir wrote: >>>>> >>> Concerning the build of synapse. Do you have some documentation >>>>> somewhere or=20 >>>>> >>> can I build it from eclipse. I have heard about maven but I'm not >>>>> familiar >>>>> >>> at all with it, I know more about ant. >>>>> >>> >>>> >> If you have Maven 2.0.6 or later installed on your system, you shou= ld be >>>> >> able to type "mvn eclipse:eclipse" and it should download any/all >>>> >> dependencies and create your Eclipse project correctly.. >>>> >> >>>> >> If this does not work for any unknown reason, we have a few committ= ers >>>> >> like Upul and Ant, who uses Eclipse and they would be able to help = you.. >>>> >> >>>> >> asankha >>>> >> >>>> >> >>>> >> -------------------------------------------------------------------= -- >>>> >> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org >>>> >> For additional commands, e-mail: synapse-dev-help@ws.apache.org >>>> >> >>>> >> >>> > >>> > >>=20 >> Mehdi Ait Oufkir >> Webapp lead >> O: 408.879.9118 x222 | F: 408.879.9117 >>=20 >> yousendit >> 1919 S. Bascom Ave, 3rd Floor | Campbell | CA 95008 >> Send, Receive, Track. . . www.YouSendIt.com >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org >> For additional commands, e-mail: synapse-dev-help@ws.apache.org >> >>=20 >=20 >=20 Mehdi Ait Oufkir Webapp lead O: 408.879.9118 x222 | F: 408.879.9117 yousendit =20 1919 S. Bascom Ave, 3rd Floor | Campbell | CA 95008 Send, Receive, Track. . . www.YouSendIt.com --B_3282108918_11980050 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: Adding STOMP transport protocol in synapse
Thank you ant but I still have some trouble to build synapse 1.1.
Here is some more information:
I’m using JDK 1.5 and maven 2.0.6 (I’ll try to upgrade if it st= ill doesn’t work). I fee like I won’t be able to build synapse i= nside eclipse because the mvn plugin is not precise enough. However when I t= ry to build it from the command line (mvn clean install) here is the error I= have:

Compiling 222 source files to /Users/mehdi/ysi/workspace/ysb/modules/core/t= arget/classes
[INFO] --------------------------------------------------------------------= ----
[ERROR] BUILD FAILURE
[INFO] --------------------------------------------------------------------= ----
[INFO] Compilation failure

/Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synaps= e/mediators/builtin/CacheMediator.java:[151,25] setResponseEnvelope(byte[]) = in org.wso2.caching.CachedObject cannot be applied to (org.apache.axiom.soap= .SOAPEnvelope)

/Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synaps= e/mediators/builtin/CacheMediator.java:[212,26] setEnvelope(org.apache.axiom= .soap.SOAPEnvelope) in org.apache.synapse.MessageContext cannot be applied t= o (byte[])

/Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synaps= e/mediators/builtin/CacheMediator.java:[283,17] setRequestEnvelope(byte[]) i= n org.wso2.caching.CachedObject cannot be applied to (org.apache.axiom.soap.= SOAPEnvelope)

/Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synaps= e/mediators/builtin/CacheMediator.java:[284,17] setRequestHash(java.lang.Str= ing) in org.wso2.caching.CachedObject cannot be applied to (java.lang.Object= )

Let me know what you think.
mehdi

On 1/2/08 3:55 AM, "ant elder" <ant.elder@gmail.com> wrote:=

In case you've not got past this yet here's some info a= nd Maven commands which I find useful, we should add this to the Synapse web= site:

Building Synapse:

Synapse requires JDK 1.5 or later and Maven 2.0.7 or later (http://maven.apache.org/download.html).

To build, in the top level  Synapse folder do:

mvn clean install

Or to build the distribution archive packages do (the distribution archives= are created in new folder named target):

mvn assembly:assembly -Drelease

The first time you build Maven downloads all the required dependency jars t= o your local repository, after there has been a successful build you can add= the "-o" parameter to  the above commands to run in offline = mode which avoids going out to remote Maven repositories so the build runs f= aster. Eg

mvn clean install -o
or
mvn assembly:assembly -Drelease -o

If you don't want to have all the Synapse test cases run during the build y= ou can add the parameter "-Dmaven.test.skip=3Dtrue", eg:

mvn clean install -o -Dmaven.test.skip=3Dtrue
or
mvn assembly:assembly -Drelease -o -Dmaven.test.skip=3Dtrue

Sometimes the trunk build uses snapshot versions of some dependency jars wh= ich can go out of date but may not get refreshed in your local Maven reposit= ory even when the "-o" parameter is not used. So if you get build = failures you can try refreshing any snapshot dependencys with the "-U&q= uot; parameter, eg:

mvn clean install -U

By default the Maven local repository is in your home directory, you can ch= ange this so the build uses use a different local repository with the parame= ter "-Dmaven.repo.local=3D", eg:

mvn clean install -Dmaven.repo.local=3D\Synapse\MyRepo

HTH,

   ...ant

On Dec 31, 2007 8:29 PM, mehdi ait oufkir <mehdi@yousendit.com  
<mailto:mehdi@yousendit.com> >= ; wrote:
Hi,
 So I have issues with maven under eclipse. I guess the installation d= idn't
work properly. When I want to build, it's complaining about:[ERROR] BUILD [INFO] The PluginDescriptor for the plugin
org.apache.maven.plugins:maven-resources-plugin was not found

I don't know how to solve that.

Also, I have a lot of type that cannot be resolved. It seems that I'm
missing a lot of apache packages (org.apache.axis2, org.apache.log...)

Let me know what I should do to fix those issues.
Mehdi.


On 12/30/07 7:51 AM, "Paul Fremantle" <pzfreo@gmail.com> wr= ote:

> Yes it works fine for me.... let me know if you have any problems. >
> Paul
>
> On Dec 30, 2007 2:38 PM, Asankha C. Perera <asankha@wso2.com> wr= ote:
>> mehdi ait oufkir wrote:
>>> Concerning the build of synapse. Do you have some documentatio= n somewhere or
>>> can I build it from eclipse. I have heard about maven but I'm = not familiar
>>> at all with it, I know more about ant.
>>>
>> If you have Maven 2.0.6 or later installed on your system, you sho= uld be
>> able to type "mvn eclipse:eclipse" and it should downloa= d any/all
>> dependencies and create your Eclipse project correctly..
>>
>> If this does not work for any unknown reason, we have a few commit= ters
>> like Upul and Ant, who uses Eclipse and they would be able to help= you..
>>
>> asankha
>>
>>
>> ------------------------------------------------------------------= ---
>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: synapse-dev-help@ws.apache.org >>
>>
>
>

Mehdi Ait Oufkir
Webapp lead
O: 408.879.9118 x222   | F: 408.879.9117

yousendit
1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA= 95008
Send, Receive, Track. . .  www.YouSendIt.com <http://www.YouSendIt.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org  <mailto:synapse-dev-help@ws.ap= ache.org>





= Mehdi Ait Oufkir
Webapp lead
O: 408.879.9118 x222   | F: 408.879.9117

yousendit  
1919 S. Bascom Ave, 3rd Floor  |   Campbell &nbs= p;|  CA 95008
Send, Receive, Track
<= /FONT>. . .  www.YouSendIt.com
--B_3282108918_11980050--