Hi, To fix the issue on Linux, install the JCE unlimited strength policy files for your JDK. For Oracle JDK 7, these files can be obtained from http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
I'm not sure about the situation on Windows. May be someone who regularly works on Windows can shed some light on that issue. Thanks, Hiranya On Sep 9, 2013, at 7:37 AM, Xinglong Zhang <zhangxinglon...@gmail.com> wrote: > Dear Hiranya, > > Thank you very much for your reply. I have done as what you have said. But > there are several problems. Here are the problems and screenshots. I > sincerely hope you or other experts can help me. > > 1) When I use the terminal to “mvn clean install” in Linux, it will show > the bug information like this. > > PS: The environment in Linux: jdk1.7 Maven3.0.4 > > <1.jpg> > > > 2) When I use the command line to “mvn clean install” in Win7, it will > show the bug information like this. > > PS:The environment Win7:jdk1.7 Maven3.1.0 > > <2.jpg> > > <3.jpg> > > > I tried to solve this problem, so I downloaded aether-api-1.7.jar and put it > at C:\Users\Administrator\.m2\repository\org\sonatype\aether\aether-api\1.7. > But when I maven clean and install again, the bug is still there. > > > 3)Then I import the project into Eclipse. First, I maven clean, there’s no > bug. Second, I maven install, there is a bug report like this. > > PS:Eclipse:Java EE IDE for Web Developers. Version: Kepler Release > > Eclipse mvn plugin:1.4.2 > > > [INFO] Apache Synapse .................................... SUCCESS [0.376s] > > [INFO] Apache Synapse - Secure Vault ..................... SUCCESS [1.311s] > > [INFO] Apache Synapse - Commons .......................... SUCCESS [1.624s] > > [INFO] Apache Synapse - Transports ....................... SUCCESS [0.344s] > > [INFO] Apache Synapse - Non-blocking HTTP/s Transport .... SUCCESS [8.318s] > > [INFO] Apache Synapse - PIPE Transport ................... SUCCESS [0.454s] > > [INFO] Apache Synapse - VFS Transport .................... SUCCESS [8.114s] > > [INFO] Apache Synapse - FIX Transport .................... SUCCESS [0.795s] > > [INFO] Apache Synapse - AMQP Transport ................... SUCCESS [1.015s] > > [INFO] Apache Synapse - Tasks ............................ SUCCESS [0.532s] > > [INFO] Apache Synapse - Core ............................. SUCCESS [2:08.212s] > > [INFO] Apache Synapse - Extensions ....................... SUCCESS [10.395s] > > [INFO] Apache Synapse - Samples .......................... SUCCESS [1.233s] > > [INFO] Apache Synapse - Patches .......................... SUCCESS [0.672s] > > [INFO] Apache Synapse - Experimental code ................ SUCCESS [0.639s] > > [INFO] Apache Synapse - Documentation .................... SUCCESS [1.734s] > > [INFO] Apache Synapse - Web Application .................. SUCCESS [4.042s] > > [INFO] Apache Synapse - Handler Module ................... SUCCESS [0.718s] > > [INFO] Apache Synapse - XAR Maven Plugin ................. SUCCESS [0.422s] > > [INFO] Apache Synapse - Configuration Migrator ........... SUCCESS [0.749s] > > [INFO] Apache Synapse - Distribution ..................... SUCCESS [12.536s] > > [INFO] Apache Synapse - Package skeleton ZIP ............. SUCCESS [0.405s] > > [INFO] Apache Synapse - Package archetype ................ SUCCESS [0.515s] > > [INFO] Apache Synapse - Integration ...................... FAILURE [1.734s] > > [INFO] > ------------------------------------------------------------------------ > > [INFO] BUILD FAILURE > > [INFO] > ------------------------------------------------------------------------ > > [INFO] Total time: 3:07.606s > > [INFO] Finished at: Mon Sep 09 22:14:03 CST 2013 > > [INFO] Final Memory: 58M/138M > > [INFO] > ------------------------------------------------------------------------ > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-antrun-plugin:1.7:run (create_repo) on project > synapse-integration: An Ant BuildException has occured: Unable to delete file > D:\synapse-src\modules\integration\target\temp\axis2-tmp-4364200731091871462.tmp\axis2100756303325216559SimpleStockQuoteService.aar > > [ERROR] around Ant part ...<delete dir="${temp.dir}"/>... @ 55:30 in > D:\synapse-src\modules\integration\target\antrun\build-main.xml > > [ERROR] -> [Help 1] > > [ERROR] > > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > > [ERROR] > > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException > > [ERROR] > > [ERROR] After correcting the problems, you can resume the build with the > command > > [ERROR] mvn <goals> -rf :synapse-integration > > > > I really don't know why bugs are not the same in Linux and Win7, command line > and Eclipse > > Best regards, > > John > > > > On Mon, Sep 9, 2013 at 7:50 AM, Hiranya Jayathilaka <hiranya...@gmail.com> > wrote: > I'd recommend you to try the latest source code from the trunk - > http://svn.apache.org/repos/asf/synapse/trunk/java/ > > Use Maven 3.x to build the code (mvn clean install). To setup an Eclipse > project you will have to run "mvn eclipse:eclipse". > > Messages are processed by mediators. So take a look at the Mediator > interface. Also look at the SynapseMessageReceiver class where the mediation > flow begins. This should enable you to get started. > > Thanks, > Hiranya > > On Sep 7, 2013, at 11:45 PM, Xinglong Zhang <zhangxinglon...@gmail.com> wrote: > > > Hi, > > > > I'm John. Now I am learning Synapse. I have downloaded the souce code > > *synapse-2.1.0-src.zip. > > *I have imported it to Eclipse as a Maven Project. I want to run the > > project on Eclipse. So I used maven to build it, but there are many errors. > > I don't know whether I have done it right or wrong. > > > > I really want to know the internal operation mechanism of Synapse and the > > use of each module in it.In other words, I want to know how synapse handle > > messages step by step. > > > > If possible, I hope somebody can give me some documents introducing synapse. > > > > Best regards, > > > > John > > -- > Hiranya Jayathilaka > Mayhem Lab/RACE Lab; > Dept. of Computer Science, UCSB; http://cs.ucsb.edu > E-mail: hira...@cs.ucsb.edu; Mobile: +1 (805) 895-7443 > Blog: http://techfeast-hiranya.blogspot.com > > -- Hiranya Jayathilaka Mayhem Lab/RACE Lab; Dept. of Computer Science, UCSB; http://cs.ucsb.edu E-mail: hira...@cs.ucsb.edu; Mobile: +1 (805) 895-7443 Blog: http://techfeast-hiranya.blogspot.com