Marketcetera Community Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Where are Modules?  XML
Forum Index » Developer Help
Author Message
kamaljeet.sandhu@gmail.com


Joined: 28/02/2009 14:03:56
Messages: 55
Offline


I built the ORS and strategyAgent as mvn assembly:directory , as per instructions but when I try to run the samples .. strategyAgent cannot find the modules:

'Unable to find a module provider with the URN 'metc:strategy:system'.

'Unable to find a module with URN 'metc:strategy:system:helloWorld'

similarly for all samples.

Pls advise where should I start looking.. also any hints/pointers on how the URNS metc:strategy:system etc.get resolved.. can't find any docs..

Thanks in advance.
kamaljeet.sandhu@gmail.com


Joined: 28/02/2009 14:03:56
Messages: 55
Offline


OK, ,at least manually copying the .jars from modules/../target into the empty folders inside strategyagent/modules/jars works..
ytalmor


Joined: 12/02/2009 00:24:08
Messages: 130
Offline

Strategy Agent generic documentation is available here:

http://www.marketcetera.org/confluence/display/SA/Strategy+Agent

However, it doesn't address your own module development (or compilation) which seems to be what you are doing (I.e., check out the code and compile). For that you will need to:

Strategy Agent can be run from the development tree by executing the following commands.



When run via the command above, the strategy agent reads the commands file at the path src/test/sample_data/inputs/sampleCommands.txt. You can change this path by editing the execute profile definition in the pom.xml file. The strategy agent expects to find the module jars in the directory src/test/sample_data/modules/jars and their default properties files in the directory src/test/sample_data/modules/conf.

The sample default properties files that are installed in the strategy agent install can be found in src/main/sample_data/modules/conf. You can copy them over to the test conf directory when testing strategy agent from the dev tree.

Note that in the installed version of the product the Strategy Agent modules and modules config files should be placed in the <install dir>/strategyagent/modules/jars and <install dir>/strategyagent/modules/conf respectively.

Thanks,
Yoram
kamaljeet.sandhu@gmail.com


Joined: 28/02/2009 14:03:56
Messages: 55
Offline

Hi Yoram,

Firstly a big thanks for a great product and your efforts.. it is very instructive.

What I did was run the mvn assembly and tried the command line strategyAgent.sh .. that is when I realized the jars were not copied into the target/strategyagent/modules/jars etc.

So copying these jars and editing the strategyagent.sh manually did the trick..

Don't know if it is by design (to prevent overwrites when rebuilding customised strategyagent) or an omission..

This message was edited 1 time. Last update was at 18/03/2009 06:10:43

raghuvar


Joined: 01/11/2009 14:38:23
Messages: 1
Offline

I have the same general doubt as kamaljeet.sandhu@gmail.com - where can we find a specification of how URNs get resolved? Thanks in advance.

This message was edited 2 times. Last update was at 13/11/2009 16:33:00

ytalmor


Joined: 12/02/2009 00:24:08
Messages: 130
Offline

For additional info on URNs refer to the description section in the module package javadoc: http://repo.marketcetera.org/javadoc/1.5.0/platform/org/marketcetera/module/package-summary.html#package_description

Thanks,
Yoram
 
Forum Index » Developer Help
Go to:   
Powered by JForum 2.1.8 © JForum Team