[Building Sakai] Unable to find org.sakaiproject.tool.assessment.shared.api.assessment.AssessmentServiceAPI in Build process

Steve Swinsburg steve.swinsburg at gmail.com
Tue Mar 1 13:45:14 PST 2011


Hi,

You can't just import libraries from other apps and expect them to work. You need to ask Spring to inject them into your application, or use the ComponentManager to get them. Sakai is basically a bunch of different webapps, with shared apis and components which need to be injected into one another to allow communication. To put it another way, you need to inject the component from another 'webapp' into your own 'webapp', which you can't ordinarily do. So we use Spring to allow that.

That particular error means you haven't added the samigo-api as a dependency to your pom, but you'll still need to setup the injection in oder to actually use it. The core services come from the kernel-api which is why those ones work ok.

https://confluence.sakaiproject.org/display/BOOT/Developing+with+the+Sakai+Framework

cheers,
Steve



On 01/03/2011, at 8:45 PM, Gautham wrote:

> 
> Hi Steve,
> 
> I am trying to use the Samigo API Service "import
> org.sakaiproject.tool.assessment.shared.api.assessment.AssessmentServiceAPI;"
> in "ExternalLogicImpl.java"(  to use Samigo methods in my new tool developed
> by Sakai App Builder. I am getting the below Build Error:
> 
> [INFO] Compiling 5 source files to
> D:\WS-Sakai\DBTESTMAIN\impl\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> D:\WS-Sakai\DBTESTMAIN\impl\src\java\org\sakaiproject\dbtestmain\logic\ExternalL
> ogicImpl.java:[29,61] package
> org.sakaiproject.tool.assessment.shared.api.assess
> ment does not exist
> 
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 minute 13 seconds
> [INFO] Finished at: Tue Mar 01 10:37:14 IST 2011
> [INFO] Final Memory: 26M/247M
> [INFO]
> ------------------------------------------------------------------------
> D:\WS-Sakai\DBTESTMAIN>
> 
> I have learnt that I have to import APIs of the respective tools to use in
> our Sakai Tool. The Sakai App builder uses all below services Successfully
> and get their methods:
> 
> import org.sakaiproject.authz.api.FunctionManager;
> import org.sakaiproject.authz.api.SecurityService;
> import org.sakaiproject.site.api.Site;
> import org.sakaiproject.site.api.SiteService;
> import org.sakaiproject.tool.api.SessionManager;
> import org.sakaiproject.tool.api.ToolManager;
> import org.sakaiproject.user.api.UserDirectoryService;
> 
> Does I need to add any more imports to use Samigo API Service or need to add
> any dependencies in POM files/Components file.
> 
> Any help will be highly appreciated. 
> 
> Regards,
> Gautham
> -- 
> View this message in context: http://old.nabble.com/Unable-to-find-org.sakaiproject.tool.assessment.shared.api.assessment.AssessmentServiceAPI-in-Build-process-tp31039309p31039309.html
> Sent from the Sakai - Development mailing list archive at Nabble.com.
> 
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"



More information about the sakai-dev mailing list