[kepler-dev] [kepler-users] launch kepler 2.0 with proxy settings

Chris Weed chrisweed at gmail.com
Thu Aug 5 16:16:12 PDT 2010


Thanks, I understand, but I don't start kepler using ant.
I only really use eclipse and the binary distribution.
Chris



On Thu, Aug 5, 2010 at 5:58 PM, Jianwu Wang <jianwu at sdsc.edu> wrote:
> Hi Chris,
>
>   I just found that there is another way to specify java system properties
> if you use 'ant run -Dsuite=...' command in build-area directory of the
> Kepler build system.
>
>   If you put your properties into a '.properites' file in the
> 'resources/system.properties' directory of the suite and run 'ant run
> -Dsuite=suite_name', the properties will be set before starting Kepler.
>
>   It works for me when I put your properties in
> $Kepler/kepler/resources/system.properties/kepler.properties file and start
> with 'ant run -Dsuite=kepler'.
>
>   Yet I don't know whether it is fully tested and documented.
>
> Chris Weed wrote:
>>
>> Awesome, Thanks!
>> Chris
>>
>> Sent from my iPhone
>>
>> On Jul 30, 2010, at 4:11 PM, Jianwu Wang <jianwu at sdsc.edu> wrote:
>>
>>
>>>
>>> Hi Chris,
>>>
>>>   I updated Kepler trunk to enable property setting at kepler.sh or
>>> kepler.bat. You can find more information at
>>> http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5115. With this update,
>>> you can set as
>>>
>>> java -classpath build-area\lib\ant.jar;kepler.jar
>>> org.kepler.build.runner.Kepler -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080
>>> "-Dhttp.nonProxyHosts=host1|host2" "%1" "%2" "%3" "%4" "%5" "%6" "%7" "%8"
>>> "%9".
>>>
>>>   Hopefully, it will be in our upcoming Kepler 2.1 release.
>>>
>>> Best wishes
>>>
>>> Sincerely yours
>>>
>>> Jianwu Wang
>>> jianwu at sdsc.edu
>>> http://users.sdsc.edu/~jianwu/
>>>
>>> Assistant Project Scientist
>>> Scientific Workflow Automation Technologies (SWAT) Laboratory
>>> San Diego Supercomputer Center
>>> University of California, San Diego
>>> San Diego, CA, U.S.A.
>>>
>>>
>>> On 7/28/2010 2:14 PM, Chris Weed wrote:
>>>
>>>>
>>>> Actually, I see now that you can set it for a particular java
>>>> executable,
>>>> but it still doesn't work. I'll have to play with it some more.
>>>> Chris
>>>>
>>>> On Wed, Jul 28, 2010 at 5:05 PM,<chrisweed at gmail.com>  wrote:
>>>>
>>>>>
>>>>> That didn't seem to do anything, and I suspect that page is only
>>>>> describing
>>>>> setting these for Java Plug-ins and not the general JVM.
>>>>> Chris
>>>>>
>>>>> On Jul 28, 2010 4:34pm, Jianwu Wang<jianwu at sdsc.edu>  wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Hi Chris,
>>>>>>
>>>>>>
>>>>>>
>>>>>>    From org.kepler.build.Run class, you can see it started another JVM
>>>>>> to start org.kepler.Kepler class without accepting properties from
>>>>>> org.kepler.build.runner.Kepler class. I think it is why the properties
>>>>>> you set works for org.kepler.Kepler, but not
>>>>>> org.kepler.build.runner.Kepler. David, please correct me if I am
>>>>>> wrong.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>    Another possible solution to work around is to setting proxy for
>>>>>> Java itself (http://www.java.com/en/download/help/proxy_setup.xml). It
>>>>>> should set proxy for all java processes. Please have a try to see
>>>>>> whether it works.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Best wishes
>>>>>>
>>>>>> Sincerely yours
>>>>>>
>>>>>> Jianwu Wang
>>>>>> jianwu at sdsc.edu
>>>>>> http://users.sdsc.edu/~jianwu/
>>>>>>
>>>>>> Assistant Project Scientist
>>>>>> Scientific Workflow Automation Technologies (SWAT) Laboratory
>>>>>> San Diego Supercomputer Center
>>>>>> University of California, San Diego
>>>>>> San Diego, CA, U.S.A.
>>>>>>
>>>>>>
>>>>>> On 7/28/2010 10:38 AM, chrisweed at gmail.com wrote:
>>>>>> actually this is what I put in kepler.bat, I am using
>>>>>> windows
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Jul 28, 2010 1:37pm, chrisweed at gmail.com wrote:
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> Does anyone have any ideas how to launch kepler with proxy
>>>>>>>
>>>>>>
>>>>>> settings?
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> I tried adding them to the java command in the kepler.sh file, but
>>>>>>>
>>>>>>
>>>>>> that doesn't seem to work.
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> I can launch it fine from source in Eclipse using
>>>>>>>
>>>>>>
>>>>>> org.kepler.Kepler, but not from the binary distribution.
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> Here is what I tried:
>>>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> java -Xmx1524m -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080
>>>>>>>
>>>>>>
>>>>>> "-Dhttp.nonProxyHosts=host1|host2" -classpath
>>>>>> build-area\lib\ant.jar;kepler.jar org.kepler.build.runner.Kepler "%1"
>>>>>> "%2" "%3" "%4" "%5" "%6" "%7" "%8" "%9"
>>>>>>
>>>>>>
>>>>>>>
>>>>>>> Chris
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Kepler-users mailing list
>>>>>> Kepler-users at kepler-project.org
>>>>>> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>
>
> --
>
> Best wishes
>
> Sincerely yours
>
> Jianwu Wang
> jianwu at sdsc.edu
>
> Assistant Project Scientist
> Scientific Workflow Automation Technologies (SWAT) Laboratory
> San Diego Supercomputer Center University of California, San Diego
> San Diego, U.S.A.
>


More information about the Kepler-dev mailing list