Compiling on OSX

15 messages Options
Embed this post
Permalink
Alex Graul

Compiling on OSX

Reply Threaded More More options
Print post
Permalink
Hello,

We're just about to start giving your rather lovely looking platform a  
trial over the next month and we've run into our first hurdle.

Running OSX 10.5.4 on 32bit Intel. Have maven 2.0.9 via macports  
however it's using Java 1.5. Have java 1.6 via soylatte but can't work  
out how to get maven to use it.

feather:marketcetera-platform Alex$ java -version
java version "1.6.0_03-p3"
Java(TM) SE Runtime Environment (build 1.6.0_03-p3-
landonf_03_feb_2008_02_12-b00)
Java HotSpot(TM) Server VM (build 1.6.0_03-p3-
landonf_03_feb_2008_02_12-b00, mixed mode)

feather:marketcetera-platform Alex$ mvn -v
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"
feather:marketcetera-platform Alex$

When I run mvn install I get a bunch of errors similar to:
/marketcetera-platform/source/core/src/main/java/org/marketcetera/
marketdata/IMarketDataFeedFactory.java:[21,39] generics are not  
supported in -source 1.3
(try -source 1.5 to enable generics)
public interface IMarketDataFeedFactory<F extends IMarketDataFeed<?  
extends IMarketDataFeedToken<C>,C>,

I'm assuming this is to do with the java version. You guys have a  
boilerplate environmental setup under OSX that works for compilation?

Looking forward to digging into the platform!
Alex
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
Colin DuPlantis-2

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
Alex,

Glad you're taking a look at us, thanks.

I think the problem you're having is not specific to OSX.  Find, under
the public directory, a file named 'profiles.xml.sample' and copy it, in
the same directory, to 'profiles.xml'.  This should tell maven to use 1.6.

- C

Alex Graul wrote:

> Hello,
>
> We're just about to start giving your rather lovely looking platform a  
> trial over the next month and we've run into our first hurdle.
>
> Running OSX 10.5.4 on 32bit Intel. Have maven 2.0.9 via macports  
> however it's using Java 1.5. Have java 1.6 via soylatte but can't work  
> out how to get maven to use it.
>
> feather:marketcetera-platform Alex$ java -version
> java version "1.6.0_03-p3"
> Java(TM) SE Runtime Environment (build 1.6.0_03-p3-
> landonf_03_feb_2008_02_12-b00)
> Java HotSpot(TM) Server VM (build 1.6.0_03-p3-
> landonf_03_feb_2008_02_12-b00, mixed mode)
>
> feather:marketcetera-platform Alex$ mvn -v
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"
> feather:marketcetera-platform Alex$
>
> When I run mvn install I get a bunch of errors similar to:
> /marketcetera-platform/source/core/src/main/java/org/marketcetera/
> marketdata/IMarketDataFeedFactory.java:[21,39] generics are not  
> supported in -source 1.3
> (try -source 1.5 to enable generics)
> public interface IMarketDataFeedFactory<F extends IMarketDataFeed<?  
> extends IMarketDataFeedToken<C>,C>,
>
> I'm assuming this is to do with the java version. You guys have a  
> boilerplate environmental setup under OSX that works for compilation?
>
> Looking forward to digging into the platform!
> Alex
> _______________________________________________
> Marketcetera Developers mailing list
> Marketcetera Documentation: http://trac.marketcetera.org
> To unsubscribe, go to
> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
toli

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
Alex,

I have a the same exact setup on my MacBookPro - so it's definitely
possible to build Marketcetera.
If the suggestion Colin gave you is not enough, here's what I have in
my .bashrc:

# enable java 1.6
export JAVA_HOME='/Library/Java/soylatte16-i386-1.0.2'
export JDK_HOME=$JAVA_HOME

Verify that you get Java 1.6 from command-line with 'java -version'
and you should be able to build from Maven.

If you are building Photon, take a look at this
http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/MacOSEclipseSetup
writeup - there are a few more steps to get Eclipse RCP apps to work
under Java 1.6 on a 32-bit Mac.

let me know if you have any other questions

On Tue, Jul 15, 2008 at 6:39 AM, Colin DuPlantis <[hidden email]> wrote:

> Alex,
>
> Glad you're taking a look at us, thanks.
>
> I think the problem you're having is not specific to OSX.  Find, under
> the public directory, a file named 'profiles.xml.sample' and copy it, in
> the same directory, to 'profiles.xml'.  This should tell maven to use 1.6.
>
> - C
>
> Alex Graul wrote:
>> Hello,
>>
>> We're just about to start giving your rather lovely looking platform a
>> trial over the next month and we've run into our first hurdle.
>>
>> Running OSX 10.5.4 on 32bit Intel. Have maven 2.0.9 via macports
>> however it's using Java 1.5. Have java 1.6 via soylatte but can't work
>> out how to get maven to use it.
>>
>> feather:marketcetera-platform Alex$ java -version
>> java version "1.6.0_03-p3"
>> Java(TM) SE Runtime Environment (build 1.6.0_03-p3-
>> landonf_03_feb_2008_02_12-b00)
>> Java HotSpot(TM) Server VM (build 1.6.0_03-p3-
>> landonf_03_feb_2008_02_12-b00, mixed mode)
>>
>> feather:marketcetera-platform Alex$ mvn -v
>> Maven version: 2.0.9
>> Java version: 1.5.0_13
>> OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"
>> feather:marketcetera-platform Alex$
>>
>> When I run mvn install I get a bunch of errors similar to:
>> /marketcetera-platform/source/core/src/main/java/org/marketcetera/
>> marketdata/IMarketDataFeedFactory.java:[21,39] generics are not
>> supported in -source 1.3
>> (try -source 1.5 to enable generics)
>> public interface IMarketDataFeedFactory<F extends IMarketDataFeed<?
>> extends IMarketDataFeedToken<C>,C>,
>>
>> I'm assuming this is to do with the java version. You guys have a
>> boilerplate environmental setup under OSX that works for compilation?
>>
>> Looking forward to digging into the platform!
>> Alex
>> _______________________________________________
>> Marketcetera Developers mailing list
>> Marketcetera Documentation: http://trac.marketcetera.org
>> To unsubscribe, go to
>> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
> _______________________________________________
> Marketcetera Developers mailing list
> Marketcetera Documentation: http://trac.marketcetera.org
> To unsubscribe, go to
> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
>



--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
Alex Graul

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Firstly, thankyou both for your super-fast replies! A combination of the two seemed to sort things out. I'd re-checked out and generally fiddled with things so many times by that point I'd completely forgotten to copy the profiles.xml file again. A test exec against our internal fix test server worked beautifully. 

I've got a few more general questions, I've hunted around the mailing list a bit for these but I apologize in advance if they're answered somewhere already.

1. How is ORS usually started/controlled in a production environment? Is there an init.d script or something similar lying around? 
2. Anyone have any experience making ORS talk to nagios via JMX?
3. We already use ActiveMQ in-house, is it possible to divorce ORS from its internal copy of ActiveMQ? Is this just a matter of modifying config values and maven build files or a bigger job? 
4. From reading various bits and bobs I get the impression that ORS can support multiple separate sessions to separate brokers, is this correct? 
5. Is there a concise reference of messaging queues/topics/messages floating about or am I just going to have to pull things apart and fiddle? Not worried about doing so but I thought I'd ask first.

With most of these things if the answer is no there's a fair chance we'll be making it happen ourselves, are you interested in us pushing back these things? 

Very small note: Developer FAQ lists requirements as Java 1.5 not 1.6. 

BloomsburyQI
29 Jenner House
Hunter St
WC1N 1BL

+442077138333
+447984625019
bloomsburyqi.com

This e-mail message may contain confidential and/or privileged information.
If you are not an addressee or otherwise authorized to receive this message,
you should not use, copy, disclose or take any action based on this e-mail or
any information contained in the message. If you have received this material
in error, please advise the sender immediately by reply e-mail and delete this
message. Thank you.

On 15 Jul 2008, at 15:00, Toli Kuznets wrote:

Alex,

I have a the same exact setup on my MacBookPro - so it's definitely
possible to build Marketcetera.
If the suggestion Colin gave you is not enough, here's what I have in
my .bashrc:

# enable java 1.6
export JAVA_HOME='/Library/Java/soylatte16-i386-1.0.2'
export JDK_HOME=$JAVA_HOME

Verify that you get Java 1.6 from command-line with 'java -version'
and you should be able to build from Maven.

If you are building Photon, take a look at this
http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/MacOSEclipseSetup
writeup - there are a few more steps to get Eclipse RCP apps to work
under Java 1.6 on a 32-bit Mac.

let me know if you have any other questions

On Tue, Jul 15, 2008 at 6:39 AM, Colin DuPlantis <[hidden email]> wrote:
Alex,

Glad you're taking a look at us, thanks.

I think the problem you're having is not specific to OSX.  Find, under
the public directory, a file named 'profiles.xml.sample' and copy it, in
the same directory, to 'profiles.xml'.  This should tell maven to use 1.6.

- C

Alex Graul wrote:
Hello,

We're just about to start giving your rather lovely looking platform a
trial over the next month and we've run into our first hurdle.

Running OSX 10.5.4 on 32bit Intel. Have maven 2.0.9 via macports
however it's using Java 1.5. Have java 1.6 via soylatte but can't work
out how to get maven to use it.

feather:marketcetera-platform Alex$ java -version
java version "1.6.0_03-p3"
Java(TM) SE Runtime Environment (build 1.6.0_03-p3-
landonf_03_feb_2008_02_12-b00)
Java HotSpot(TM) Server VM (build 1.6.0_03-p3-
landonf_03_feb_2008_02_12-b00, mixed mode)

feather:marketcetera-platform Alex$ mvn -v
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"
feather:marketcetera-platform Alex$

When I run mvn install I get a bunch of errors similar to:
/marketcetera-platform/source/core/src/main/java/org/marketcetera/
marketdata/IMarketDataFeedFactory.java:[21,39] generics are not
supported in -source 1.3
(try -source 1.5 to enable generics)
public interface IMarketDataFeedFactory<F extends IMarketDataFeed<?
extends IMarketDataFeedToken<C>,C>,

I'm assuming this is to do with the java version. You guys have a
boilerplate environmental setup under OSX that works for compilation?

Looking forward to digging into the platform!
Alex
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].




--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.


_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
toli

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
Alex,

> 1. How is ORS usually started/controlled in a production environment? Is
> there an init.d script or something similar lying around?

We have all that setup in the VMWare appliance in /etc/init.d/ors.
I've attached that file here as well.

> 2. Anyone have any experience making ORS talk to nagios via JMX?

We haven't done it. Not sure about anyone else.

> 3. We already use ActiveMQ in-house, is it possible to divorce ORS from its
> internal copy of ActiveMQ? Is this just a matter of modifying config values
> and maven build files or a bigger job?

It's actually very simple. I've updated the FAQ to provide more information:
http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/UserFAQ#HowdoIconnecttheORStomyownJMSserver

> 4. From reading various bits and bobs I get the impression that ORS can
> support multiple separate sessions to separate brokers, is this correct?

Not yet - it's definitely one of the major features in development
right now, and something that'll be part of 1.0 release.
The underlying QFJ engine supports connections to multiple brokers,
the delicate part is coming up with a good API/UI to allow people to
choose the right destination brokers for their trades or strategies.

You can track the RFE at http://trac.marketcetera.org/trac.fcgi/ticket/373

> 5. Is there a concise reference of messaging queues/topics/messages floating
> about or am I just going to have to pull things apart and fiddle? Not
> worried about doing so but I thought I'd ask first.

Is the architectural diagram at
http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/Architecture#OMSArchitecturalOverview
descriptive enough?
That's all we have for now, so if that's not descriptive enough please
let me know so that I can writeup a better one.

> With most of these things if the answer is no there's a fair chance we'll be
> making it happen ourselves, are you interested in us pushing back these
> things?

absolutely. do let me know what you plan on adding, and we can work to
figure out a way to minimize duplication of effort.

> Very small note: Developer FAQ lists requirements as Java 1.5 not 1.6.

done. thanks!



--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.


_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
kykim_lists

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
In reply to this post by toli
Some javascript/style in this post has been disabled (why?)
Toli,

I'm having a similar problem.
I've installed Java 1.6 via Apple, and I'm seeing the following:

ccrb:marketcetera-platform admin$ mvn -v
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.3" arch: "i386" Family: "unix"
ccrb:marketcetera-platform admin$ 

But the default java version *is* 1.6

ccrb:marketcetera-platform admin$ java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode)

I think maven is pointing to the wrong version of Java.
Any suggestions?

-kevin

On Jul 15, 2008, at 10:00 AM, Toli Kuznets wrote:

Alex,

I have a the same exact setup on my MacBookPro - so it's definitely
possible to build Marketcetera.
If the suggestion Colin gave you is not enough, here's what I have in
my .bashrc:

# enable java 1.6
export JAVA_HOME='/Library/Java/soylatte16-i386-1.0.2'
export JDK_HOME=$JAVA_HOME

Verify that you get Java 1.6 from command-line with 'java -version'
and you should be able to build from Maven.

If you are building Photon, take a look at this
writeup - there are a few more steps to get Eclipse RCP apps to work
under Java 1.6 on a 32-bit Mac.

let me know if you have any other questions

On Tue, Jul 15, 2008 at 6:39 AM, Colin DuPlantis <[hidden email]> wrote:
Alex,

Glad you're taking a look at us, thanks.

I think the problem you're having is not specific to OSX.  Find, under
the public directory, a file named 'profiles.xml.sample' and copy it, in
the same directory, to 'profiles.xml'.  This should tell maven to use 1.6.

- C

Alex Graul wrote:
Hello,

We're just about to start giving your rather lovely looking platform a
trial over the next month and we've run into our first hurdle.

Running OSX 10.5.4 on 32bit Intel. Have maven 2.0.9 via macports
however it's using Java 1.5. Have java 1.6 via soylatte but can't work
out how to get maven to use it.

feather:marketcetera-platform Alex$ java -version
java version "1.6.0_03-p3"
Java(TM) SE Runtime Environment (build 1.6.0_03-p3-
landonf_03_feb_2008_02_12-b00)
Java HotSpot(TM) Server VM (build 1.6.0_03-p3-
landonf_03_feb_2008_02_12-b00, mixed mode)

feather:marketcetera-platform Alex$ mvn -v
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"
feather:marketcetera-platform Alex$

When I run mvn install I get a bunch of errors similar to:
/marketcetera-platform/source/core/src/main/java/org/marketcetera/
marketdata/IMarketDataFeedFactory.java:[21,39] generics are not
supported in -source 1.3
(try -source 1.5 to enable generics)
public interface IMarketDataFeedFactory<F extends IMarketDataFeed<?
extends IMarketDataFeedToken<C>,C>,

I'm assuming this is to do with the java version. You guys have a
boilerplate environmental setup under OSX that works for compilation?

Looking forward to digging into the platform!
Alex
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to




-- 
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to 


_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
toli

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
Kevin,

Can you double-check that you have the JAVA_HOME variable set in your .bashrc ?

Perhaps there's a way to set Java 1.6 as default via Apple or by
modifying the  /System/Library/Frameworks/JavaVM.framework/Versions/
links.

I get the same behaviour your do when the variable is not set, and
then Java 6 shows up when the JAVA_HOME var is set:

Unset the var:

toli@tolimac:~/dev/marketcetera$ unset JAVA_HOME
toli@tolimac:~/dev/marketcetera$ mvn -v
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"

Set the var:
toli@tolimac:~/dev/marketcetera$ export
JAVA_HOME=/Library/Java/soylatte16-i386-1.0.2toli@tolimac:~/dev/marketcetera$
mvn -v
Maven version: 2.0.9
Java version: 1.6.0_03-p3
OS name: "darwin" version: "9.4.0" arch: "i386" Family: "unix"

This is on a 32-bit MacBookPro with MacOS 10.5.4

hope this helps

On Tue, Jul 22, 2008 at 2:14 PM,  <[hidden email]> wrote:

> Toli,
> I'm having a similar problem.
> I've installed Java 1.6 via Apple, and I'm seeing the following:
> ccrb:marketcetera-platform admin$ mvn -v
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS name: "mac os x" version: "10.5.3" arch: "i386" Family: "unix"
> ccrb:marketcetera-platform admin$
> But the default java version *is* 1.6
> ccrb:marketcetera-platform admin$ java -version
> java version "1.6.0_05"
> Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120)
> Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode)
> I think maven is pointing to the wrong version of Java.
> Any suggestions?
> -kevin
> On Jul 15, 2008, at 10:00 AM, Toli Kuznets wrote:
>
> Alex,
> I have a the same exact setup on my MacBookPro - so it's definitely
> possible to build Marketcetera.
> If the suggestion Colin gave you is not enough, here's what I have in
> my .bashrc:
> # enable java 1.6
> export JAVA_HOME='/Library/Java/soylatte16-i386-1.0.2'
> export JDK_HOME=$JAVA_HOME
> Verify that you get Java 1.6 from command-line with 'java -version'
> and you should be able to build from Maven.
> If you are building Photon, take a look at this
> http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/MacOSEclipseSetup
> writeup - there are a few more steps to get Eclipse RCP apps to work
> under Java 1.6 on a 32-bit Mac.
> let me know if you have any other questions
> On Tue, Jul 15, 2008 at 6:39 AM, Colin DuPlantis <[hidden email]>
> wrote:
>
> Alex,
> Glad you're taking a look at us, thanks.
> I think the problem you're having is not specific to OSX.  Find, under
> the public directory, a file named 'profiles.xml.sample' and copy it, in
> the same directory, to 'profiles.xml'.  This should tell maven to use 1.6.
> - C
> Alex Graul wrote:
>
> Hello,
> We're just about to start giving your rather lovely looking platform a
> trial over the next month and we've run into our first hurdle.
> Running OSX 10.5.4 on 32bit Intel. Have maven 2.0.9 via macports
> however it's using Java 1.5. Have java 1.6 via soylatte but can't work
> out how to get maven to use it.
> feather:marketcetera-platform Alex$ java -version
> java version "1.6.0_03-p3"
> Java(TM) SE Runtime Environment (build 1.6.0_03-p3-
> landonf_03_feb_2008_02_12-b00)
> Java HotSpot(TM) Server VM (build 1.6.0_03-p3-
> landonf_03_feb_2008_02_12-b00, mixed mode)
> feather:marketcetera-platform Alex$ mvn -v
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"
> feather:marketcetera-platform Alex$
> When I run mvn install I get a bunch of errors similar to:
> /marketcetera-platform/source/core/src/main/java/org/marketcetera/
> marketdata/IMarketDataFeedFactory.java:[21,39] generics are not
> supported in -source 1.3
> (try -source 1.5 to enable generics)
> public interface IMarketDataFeedFactory<F extends IMarketDataFeed<?
> extends IMarketDataFeedToken<C>,C>,
> I'm assuming this is to do with the java version. You guys have a
> boilerplate environmental setup under OSX that works for compilation?
> Looking forward to digging into the platform!
> Alex
> _______________________________________________
> Marketcetera Developers mailing list
> Marketcetera Documentation: http://trac.marketcetera.org
> To unsubscribe, go to
> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an
> email to [hidden email].
>
> _______________________________________________
> Marketcetera Developers mailing list
> Marketcetera Documentation: http://trac.marketcetera.org
> To unsubscribe, go to
> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an
> email to [hidden email].
>
>
>
> --
> Toli Kuznets
> http://www.marketcetera.com: Open-Source Trading Platform
> download.run.trade.
> _______________________________________________
> Marketcetera Developers mailing list
> Marketcetera Documentation: http://trac.marketcetera.org
> To unsubscribe, go to
> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an
> email to [hidden email].
>



--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
Alex Graul

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
In reply to this post by kykim_lists
Some javascript/style in this post has been disabled (why?)
Hello,

As Toli said the key to getting maven to pick up the newer java is the JAVA_HOME env variable, here's mine from my .profile:

export JAVA_HOME=/soylatte16-i386-1.0.2
export JKD_HOME=$JAVA_HOME

Works just dandy. 

On 22 Jul 2008, at 22:14, [hidden email] wrote:

Toli,

I'm having a similar problem.
I've installed Java 1.6 via Apple, and I'm seeing the following:

ccrb:marketcetera-platform admin$ mvn -v
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.3" arch: "i386" Family: "unix"
ccrb:marketcetera-platform admin$ 

But the default java version *is* 1.6

ccrb:marketcetera-platform admin$ java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode)

I think maven is pointing to the wrong version of Java.
Any suggestions?

-kevin

On Jul 15, 2008, at 10:00 AM, Toli Kuznets wrote:

Alex,

I have a the same exact setup on my MacBookPro - so it's definitely
possible to build Marketcetera.
If the suggestion Colin gave you is not enough, here's what I have in
my .bashrc:

# enable java 1.6
export JAVA_HOME='/Library/Java/soylatte16-i386-1.0.2'
export JDK_HOME=$JAVA_HOME

Verify that you get Java 1.6 from command-line with 'java -version'
and you should be able to build from Maven.

If you are building Photon, take a look at this
writeup - there are a few more steps to get Eclipse RCP apps to work
under Java 1.6 on a 32-bit Mac.

let me know if you have any other questions

On Tue, Jul 15, 2008 at 6:39 AM, Colin DuPlantis <[hidden email]> wrote:
Alex,

Glad you're taking a look at us, thanks.

I think the problem you're having is not specific to OSX.  Find, under
the public directory, a file named 'profiles.xml.sample' and copy it, in
the same directory, to 'profiles.xml'.  This should tell maven to use 1.6.

- C

Alex Graul wrote:
Hello,

We're just about to start giving your rather lovely looking platform a
trial over the next month and we've run into our first hurdle.

Running OSX 10.5.4 on 32bit Intel. Have maven 2.0.9 via macports
however it's using Java 1.5. Have java 1.6 via soylatte but can't work
out how to get maven to use it.

feather:marketcetera-platform Alex$ java -version
java version "1.6.0_03-p3"
Java(TM) SE Runtime Environment (build 1.6.0_03-p3-
landonf_03_feb_2008_02_12-b00)
Java HotSpot(TM) Server VM (build 1.6.0_03-p3-
landonf_03_feb_2008_02_12-b00, mixed mode)

feather:marketcetera-platform Alex$ mvn -v
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"
feather:marketcetera-platform Alex$

When I run mvn install I get a bunch of errors similar to:
/marketcetera-platform/source/core/src/main/java/org/marketcetera/
marketdata/IMarketDataFeedFactory.java:[21,39] generics are not
supported in -source 1.3
(try -source 1.5 to enable generics)
public interface IMarketDataFeedFactory<F extends IMarketDataFeed<?
extends IMarketDataFeedToken<C>,C>,

I'm assuming this is to do with the java version. You guys have a
boilerplate environmental setup under OSX that works for compilation?

Looking forward to digging into the platform!
Alex
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to




-- 
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to 

_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].


_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
Kevin Y. Kim

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
So, based on Toil's and Alex's email, I punted on using Apple's Java 1.6 and installed soylatte.
Maven seem to work fine.
But I got build errors (7 tests failed).
Is this expected?

-kevin
Sent via electrons and photons over wires and fiber.

On Jul 22, 2008, at 6:12 PM, Alex Graul wrote:

Hello,

As Toli said the key to getting maven to pick up the newer java is the JAVA_HOME env variable, here's mine from my .profile:

export JAVA_HOME=/soylatte16-i386-1.0.2
export JKD_HOME=$JAVA_HOME

Works just dandy. 

On 22 Jul 2008, at 22:14, [hidden email] wrote:

Toli,

I'm having a similar problem.
I've installed Java 1.6 via Apple, and I'm seeing the following:

ccrb:marketcetera-platform admin$ mvn -v
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.3" arch: "i386" Family: "unix"
ccrb:marketcetera-platform admin$ 

But the default java version *is* 1.6

ccrb:marketcetera-platform admin$ java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode)

I think maven is pointing to the wrong version of Java.
Any suggestions?

-kevin

On Jul 15, 2008, at 10:00 AM, Toli Kuznets wrote:

Alex,

I have a the same exact setup on my MacBookPro - so it's definitely
possible to build Marketcetera.
If the suggestion Colin gave you is not enough, here's what I have in
my .bashrc:

# enable java 1.6
export JAVA_HOME='/Library/Java/soylatte16-i386-1.0.2'
export JDK_HOME=$JAVA_HOME

Verify that you get Java 1.6 from command-line with 'java -version'
and you should be able to build from Maven.

If you are building Photon, take a look at this
writeup - there are a few more steps to get Eclipse RCP apps to work
under Java 1.6 on a 32-bit Mac.

let me know if you have any other questions

On Tue, Jul 15, 2008 at 6:39 AM, Colin DuPlantis <[hidden email]> wrote:
Alex,

Glad you're taking a look at us, thanks.

I think the problem you're having is not specific to OSX.  Find, under
the public directory, a file named 'profiles.xml.sample' and copy it, in
the same directory, to 'profiles.xml'.  This should tell maven to use 1.6.

- C

Alex Graul wrote:
Hello,

We're just about to start giving your rather lovely looking platform a
trial over the next month and we've run into our first hurdle.

Running OSX 10.5.4 on 32bit Intel. Have maven 2.0.9 via macports
however it's using Java 1.5. Have java 1.6 via soylatte but can't work
out how to get maven to use it.

feather:marketcetera-platform Alex$ java -version
java version "1.6.0_03-p3"
Java(TM) SE Runtime Environment (build 1.6.0_03-p3-
landonf_03_feb_2008_02_12-b00)
Java HotSpot(TM) Server VM (build 1.6.0_03-p3-
landonf_03_feb_2008_02_12-b00, mixed mode)

feather:marketcetera-platform Alex$ mvn -v
Maven version: 2.0.9
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"
feather:marketcetera-platform Alex$

When I run mvn install I get a bunch of errors similar to:
/marketcetera-platform/source/core/src/main/java/org/marketcetera/
marketdata/IMarketDataFeedFactory.java:[21,39] generics are not
supported in -source 1.3
(try -source 1.5 to enable generics)
public interface IMarketDataFeedFactory<F extends IMarketDataFeed<?
extends IMarketDataFeedToken<C>,C>,

I'm assuming this is to do with the java version. You guys have a
boilerplate environmental setup under OSX that works for compilation?

Looking forward to digging into the platform!
Alex
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to




-- 
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to 

_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].

_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to 


_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
toli

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
Kevin,

Of course not - you shouldn't get build failures.

Can you please give me more details on what you are running?
Are you building from SVN trunk? Or are you building from the 0.5.0 tag?

Would you mind attaching your error log output so that I can see your errors?

Note that if you are building from SVN, then you may not have your
MySQL configured correctly. We are in the process of adding new
persistence and internationalization code that requires some changes
to your local MySQL setup, and since it's in flux we haven't updated
the documentation yet.

Let me know what your errors are and which SVN version you are using,
and I should be able to help you out.

toli

On Tue, Jul 22, 2008 at 4:23 PM, Kevin Y. Kim <[hidden email]> wrote:
> So, based on Toil's and Alex's email, I punted on using Apple's Java 1.6 and
> installed soylatte.
> Maven seem to work fine.
> But I got build errors (7 tests failed).
> Is this expected?
> -kevin

--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
Alex Graul

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
Just to note I'm getting failures as well with the latest trunk with  
or without correct mysql config.

Running org.marketcetera.persist.example.AuthorizationTest
23 Jul 2008 08:15:17,951 ERROR [main]  
hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:78) -  
Duplicate entry 'vg7xwf0j4vbv' for key 2
Tests run: 18, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 61.8  
sec <<< FAILURE!
Initialized top-level logger test.
Running org.marketcetera.persist.example.GroupTest
23 Jul 2008 08:16:14,858 ERROR [main]  
hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:78) -  
Duplicate entry '1a4r8mo1if3iz' for key 2

Obviously the tag0.5 is fine. MIght want to change the url on the  
'building platform' page.

Cheers,
Alex

On 23 Jul 2008, at 02:01, Toli Kuznets wrote:

> Kevin,
>
> Of course not - you shouldn't get build failures.
>
> Can you please give me more details on what you are running?
> Are you building from SVN trunk? Or are you building from the 0.5.0  
> tag?
>
> Would you mind attaching your error log output so that I can see  
> your errors?
>
> Note that if you are building from SVN, then you may not have your
> MySQL configured correctly. We are in the process of adding new
> persistence and internationalization code that requires some changes
> to your local MySQL setup, and since it's in flux we haven't updated
> the documentation yet.
>
> Let me know what your errors are and which SVN version you are using,
> and I should be able to help you out.
>
> toli
>
> On Tue, Jul 22, 2008 at 4:23 PM, Kevin Y. Kim <[hidden email]> wrote:
>> So, based on Toil's and Alex's email, I punted on using Apple's  
>> Java 1.6 and
>> installed soylatte.
>> Maven seem to work fine.
>> But I got build errors (7 tests failed).
>> Is this expected?
>> -kevin
>
> --
> Toli Kuznets
> http://www.marketcetera.com: Open-Source Trading Platform
> download.run.trade.

_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
Toli Lerios

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
The database setup necessary to get the latest trunk to pass all its
unit tests is not the setup described on www.marketcetera.org. There are
additional changes that need to be made, and which have not been made
public yet.

In other words, everyone outside Marketcetera, Inc. without clairvoyant
powers will be unable to get the unit tests to pass on the latest trunk.

We plan to share the new required mysql configuration in the near future.

In addition, if you use an Eclipse IDE, you may experience certain odd
behaviors if you build from our latest trunk. These are the result of
restructuring our Eclipse plugins; we are still refining the new
structure.

So, until you get a heads-up from our CTO, Toli Kuznets, it may be best
to stick to the 0.5.0 tag.

Cheers!

--
Toli Lerios <[hidden email]>


> Just to note I'm getting failures as well with the latest trunk with  
> or without correct mysql config.
>
> Running org.marketcetera.persist.example.AuthorizationTest
> 23 Jul 2008 08:15:17,951 ERROR [main]  
> hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:78) -  
> Duplicate entry 'vg7xwf0j4vbv' for key 2
> Tests run: 18, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 61.8  
> sec <<< FAILURE!
> Initialized top-level logger test.
> Running org.marketcetera.persist.example.GroupTest
> 23 Jul 2008 08:16:14,858 ERROR [main]  
> hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:78) -  
> Duplicate entry '1a4r8mo1if3iz' for key 2
>
> Obviously the tag0.5 is fine. MIght want to change the url on the  
> 'building platform' page.

_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
Kevin Y. Kim

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
In reply to this post by toli
Toli,

I am building from trunk (http://code.marketcetera.org/root/trunk)
Here are the errors from Maven.  I'll sent the surefire-reports off  
list.
It appears the only real errors are in  
org.marketcetera.util.exec.ExecTest

        Running org.marketcetera.util.exec.ExecTest
        Tests run: 9, Failures: 7, Errors: 0, Skipped: 0, Time elapsed:  
10.999 sec <<< FAILURE!


I am seeing warning in  
org.marketcetera.util.log.I18NMessageProviderTest

        Running org.marketcetera.util.log.I18NMessageProviderTest
        Jul 23, 2008 1:08:33 PM  
org.apache.commons.i18n.ResourceBundleMessageProvider <init>
        WARNING: Could not find resource bundle with base name  
nonexistent_prv_messages, uninstalling it
        Jul 23, 2008 1:08:33 PM  
org.apache.commons.i18n.ResourceBundleMessageProvider getText
        WARNING: No message entries found for bundle with key nonexistent_msg
        Jul 23, 2008 1:08:33 PM  
org.apache.commons.i18n.ResourceBundleMessageProvider getText
        WARNING: No message entries found for bundle with key nonexistent_msg
        Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:  
0.624 sec


And strange messages out of org.marketcetera.util.file.DeleterTest

        Running org.marketcetera.util.file.DeleterTest
        cp: unix/dir/recursive_link: Too many levels of symbolic links
        cp: unix/dir/dangling_link: No such file or directory
        cp: unix/dir_link/recursive_link: Too many levels of symbolic links
        ...
        Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:  
9.304 sec


And I'm not sure which test is giving these warnings
        Running org.marketcetera.util.log.LogUtilsTest
        Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:  
0.168 sec
        Jul 23, 2008 1:09:08 PM  
org.apache.commons.i18n.ResourceBundleMessageProvider <init>
        WARNING: Could not find resource bundle with base name  
nonexistent_prv_messages, uninstalling it
        log4j:WARN No appenders could be found for logger  
(org.marketcetera.util.log.I18NMessageProvider).
        log4j:WARN Please initialize the log4j system properly.
        Running org.marketcetera.util.unicode.MemoryEncoderTest
        Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:  
0.768 sec


I hope I haven't sent too many red herrings.
Thanks for the help.

On Jul 22, 2008, at 9:01 PM, Toli Kuznets wrote:

> Kevin,
>
> Of course not - you shouldn't get build failures.
>
> Can you please give me more details on what you are running?
> Are you building from SVN trunk? Or are you building from the 0.5.0  
> tag?
>
> Would you mind attaching your error log output so that I can see  
> your errors?
>
> Note that if you are building from SVN, then you may not have your
> MySQL configured correctly. We are in the process of adding new
> persistence and internationalization code that requires some changes
> to your local MySQL setup, and since it's in flux we haven't updated
> the documentation yet.
>
> Let me know what your errors are and which SVN version you are using,
> and I should be able to help you out.
>
> toli
>
> On Tue, Jul 22, 2008 at 4:23 PM, Kevin Y. Kim <[hidden email]> wrote:
>> So, based on Toil's and Alex's email, I punted on using Apple's  
>> Java 1.6 and
>> installed soylatte.
>> Maven seem to work fine.
>> But I got build errors (7 tests failed).
>> Is this expected?
>> -kevin
>
> --
> Toli Kuznets
> http://www.marketcetera.com: Open-Source Trading Platform
> download.run.trade.

_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
toli

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
In reply to this post by Toli Lerios
Alex,

That's a very good point - I've updated the URL on build instructions
to point to the tags/0.5.0 tag.

It probably makes sense for people to build from the latest "stable"
tag - we are developing on the "trunk" every day, and sometimes we
make changes that destabilize the development environment and the
build system before we get a chance to update the instructions.

From now on, I'd recommend building from a last known "good" tag -
0.5.0 at this point - and we'll tag and update the instructions with
new relevant configs at the end of each "sprint" that produces stable
buildable components.

Let me know if anybody has any questions or other suggestions on this.

On Wed, Jul 23, 2008 at 3:01 AM, Toli Lerios <[hidden email]> wrote:

> The database setup necessary to get the latest trunk to pass all its
> unit tests is not the setup described on www.marketcetera.org. There are
> additional changes that need to be made, and which have not been made
> public yet.
>
> In other words, everyone outside Marketcetera, Inc. without clairvoyant
> powers will be unable to get the unit tests to pass on the latest trunk.
>
> We plan to share the new required mysql configuration in the near future.
>
> In addition, if you use an Eclipse IDE, you may experience certain odd
> behaviors if you build from our latest trunk. These are the result of
> restructuring our Eclipse plugins; we are still refining the new
> structure.
>
> So, until you get a heads-up from our CTO, Toli Kuznets, it may be best
> to stick to the 0.5.0 tag.
>
> Cheers!
>
> --
> Toli Lerios <[hidden email]>

--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].
toli

Re: Compiling on OSX

Reply Threaded More More options
Print post
Permalink
In reply to this post by Kevin Y. Kim
Kevin,

Can you send me the output of your
traget/surefire-tests/org.marketcetera.util.exec.ExecTest.txt file?
That's the one with the failing unit tests. Can you also tell me what
machine (Windows/Mac/Linux), which OS and what version of Java you are
using?
And if it's Windows, whether or not you are using Cygwin.

You can safely ignore all the other warnings - if the unit test is not
failing, then it's ok. For example, the bundle tests test to see what
happens when bundles aren't present, which generates the warnings.

thanks.

On Wed, Jul 23, 2008 at 11:59 AM, Kevin Y. Kim <[hidden email]> wrote:
> Toli,
>
> I am building from trunk (http://code.marketcetera.org/root/trunk)
> Here are the errors from Maven.  I'll sent the surefire-reports off list.
> It appears the only real errors are in org.marketcetera.util.exec.ExecTest
>
>        Running org.marketcetera.util.exec.ExecTest
>        Tests run: 9, Failures: 7, Errors: 0, Skipped: 0, Time elapsed:
> 10.999 sec <<< FAILURE!


--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.
_______________________________________________
Marketcetera Developers mailing list
Marketcetera Documentation: http://trac.marketcetera.org
To unsubscribe, go to
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev or send an email to [hidden email].