Ok. Now I'm really able to run Synapse into Eclipse.
*Hiranya*, I tried to stop Synapse (and so the javaw.exe process) hitting
the stop button on Eclipse Console and it is ok. I also tried the QuickStart
guide of Synapse, launching the configuration "sample 0" and "sample 150"
within Eclipse, and everything successfully completed.

But, yet I'm not able to configure the *Log4J*. I know that IntelliJ IDEA is
a commercial IDE and it is possile to apply/buy several types of licenses,
but I don't know precisely what I have to do with it for configuring
"$BASE_DIR/lib directory to the front of the classpath".


   1. Do I have to install IntelliJ IDEA (with "Classroom license", I
   suppose, because I'm doing this work for univesity...)?
   2. Do I have to import Synapse into IDEA? How can I set "$BASE_DIR/lib
   directory to the front of the classpath"?
   3. Is it impossibile to configure the Log4J in Eclipse, without IDEA?


Thank you

Pasquale


2008/11/25 Hiranya Jayathilaka <[EMAIL PROTECTED]>

> Hi Pasquale,
>
> Please see my comments in-line.
>
> On Tue, Nov 25, 2008 at 4:48 AM, Pasquale Campitiello <
> [EMAIL PROTECTED]> wrote:
>
>> I'm proceeding with my project to create an interface to connect jUDDI
>> 0.9rc4 and Synapse 1.4. I have some questions:
>>
>> 1) I imported the source code of Synapse in Eclipse with the parameter
>> specified by Asankha Perera in the last mail. But I don't understand this:
>>
>> I use the classpath from the IDE project, and with IDEA, I add the 
>> *$BASE_DIR/lib
>>> directory to the front of the classpath* to make sure my
>>> log4j.properties is correctly picked up and the normal logs appear
>>>
>>
>> It is about the object log (I see that this object is used very much)?
>> And where is a logfile?
>
>
> Synapse uses Apache Commons Logging and Log4J for logging purposes. The
> logging configuration is specified in a file called log4j.properties which
> generally resides in the $BASE_DIR/lib directory. By adding this directory
> to the beginning of your classpath you make the log4.properties file get a
> higher precedence over the other configuration files. This will enable
> Synapse to print out some useful log statements on you IDE console while it
> is operating within your IDE.
>
>
>>
>>
>> THANK YOU
>>
>> Pasquale Campitiello
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 2008/11/13 Pasquale Campitiello <[EMAIL PROTECTED]>
>>
>> I thank you very much for your help, really I'm a beginner but I need to
>>> do this work (hard, for me).
>>>
>>> However, ok, in this weekend I will prepare my computer to run everything
>>> (now I have to format for several problems).
>>> Then I will try to import the project in Eclipse, and I will ask you my
>>> doubts.
>>> For example, in the first place what is "implementing a UDDI endpoint,
>>> that gets the actual endpoint from UDDI"?.
>>>
>>> Thanks
>>>
>>> Pasquale
>>>
>>>
>>> 2008/11/13 Asankha C. Perera <[EMAIL PROTECTED]>
>>>
>>>  Pasquale
>>>>
>>>>> As for getting the Synapse code into Eclipse, try mvn eclipse
>>>>>
>>>>>
>>>> Yes, first do a full online build with "mvn clean install" (or "mvn
>>>> clean install -Dmaven.test.skip" if unit tests fail), and then do "mvn
>>>> eclipse:eclipse" to build the project.
>>>>
>>>> To run the default configuration from the IDE, what I normally do is,
>>>> build and extract the binary Zip to some location, and use that location as
>>>> the base directory and start the Synapse engine as follows:
>>>>
>>>> Main class: org.apache.synapse.SynapseServer
>>>> VM params: -server -Xms256M -Xmx256M -Dcom.sun.management.jmxremote
>>>> Program parameters: /home/asankha/java/synapse-1.2/repository
>>>>  /home/asankha/java/synapse-1.2/repository/conf/axis2.xml
>>>>  /home/asankha/java/synapse-1.2/
>>>> /home/asankha/java/synapse-1.2/repository/conf/synapse.xml
>>>> Working directory: /home/asankha/java/synapse-1.2
>>>>
>>>> I use the classpath from the IDE project, and with IDEA, I add the
>>>> $BASE_DIR/lib directory to the front of the classpath to make sure my
>>>> log4j.properties is correctly picked up and the normal logs appear
>>>>
>>>> From here onwards, Synapse can run purely within the IDE
>>>>
>>>> asankha
>>>>
>>>> --
>>>> Asankha C. Perera
>>>> http://adroitlogic.org
>>>>
>>>> http://esbmagic.blogspot.com
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>>
>

Reply via email to