[Building Sakai] build Error: On adding gradebook service API
Gautham
gautham at sankhya.net
Fri Feb 11 21:50:18 PST 2011
Hi Steve/David,
I have imported "org.sakaiproject.service.gradebook.shared.GradebookService"
in my Java code and found the code in "GradebookService" points to
Assignments but not assessments.
After Importing "GradebookService", Build Error shows :
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
D:\WS-Sakai\SelfCertification\impl\src\java\org\sakaiproject\selfcertification\l
ogic\ExternalLogicImpl.java:[27,48] package
org.sakaiproject.service.gradebook.s
hared does not exist
D:\WS-Sakai\SelfCertification\impl\src\java\org\sakaiproject\selfcertification\l
ogic\ExternalLogicImpl.java:[28,48] package
org.sakaiproject.tool.assessment.ser
vices does not exist
D:\WS-Sakai\SelfCertification\impl\src\java\org\sakaiproject\selfcertification\l
ogic\ExternalLogicImpl.java:[70,9] cannot find symbol
symbol : class GradingService
location: class org.sakaiproject.selfcertification.logic.ExternalLogicImpl
D:\WS-Sakai\SelfCertification\impl\src\java\org\sakaiproject\selfcertification\l
ogic\ExternalLogicImpl.java:[71,31] cannot find symbol
symbol : class GradingService
location: class org.sakaiproject.selfcertification.logic.ExternalLogicImpl
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Sat Feb 12 11:16:43 IST 2011
[INFO] Final Memory: 27M/247M
[INFO]
------------------------------------------------------------------------
Any Information that resolve his issue will be highly appreciated.
Regards,
Gautham
David Horwitz wrote:
>
> That's because there is no GradingService. The package you want is:
>
> org.sakaiproject.service.gradebook.shared.GradebookService
>
> D
>
> On 02/11/2011 03:57 PM, Gautham wrote:
>> Hi David,
>>
>> Thanks for the Swift reply.
>>
>> Now I am getting the previous Error as attached after adding the
>> "dependency" tags to Project's POM file
>>
>> Please help.
>>
>> Regards,
>> Gautam
>> http://old.nabble.com/file/p30901436/BUILD_Error_GradingService.docx
>> BUILD_Error_GradingService.docx
>>
>>
>> Gautham wrote:
>>
>>>
>>> Hi david,
>>>
>>> I got the attached Pom build Error when I added these dependency tags to
>>> tools pom file:
>>>
>>> I am using a New tool developed by Sakai App Builder.
>>>
>>> Any help to resolve will be highly appreciated.
>>>
>>> regards,
>>> Gautham
>>>
>>> ========================================================
>>> Gautham,
>>>
>>> You need to add the gradebook API's to your tools pom.xml file:
>>>
>>> <dependency>
>>> <groupId>org.sakaiproject.edu-services.gradebook</groupId>
>>> <artifactId>gradebook-service-api</artifactId>
>>> </dependency>
>>>
>>> David
>>> ==============================================
>>> Hi Steve,
>>>
>>> Please find the attached java class from New tool where I have added the
>>> grading service as in
>>> 'https://confluence.sakaiproject.org/display/BOOT/Using+the+UserDirectoryService"
>>>
>>> I have added the below code in attached "ExternalLogicImpl.java"
>>>
>>> import org.sakaiproject.tool.assessment.services.GradingService;
>>>
>>> ///Grading Service
>>>
>>> private GradingService gradingService;
>>> public void setGradingService(GradingService gradingService) {
>>> this.gradingService = gradingService;
>>> }
>>>
>>> //Grading Service
>>>
>>>
>>> I have added the below code in attached "components.xml"
>>>
>>> <property name="GradingService"
>>> ref="org.sakaiproject.tool.assessment.services.GradingService" />
>>>
>>> Does i need to add any of the grading api's to get Build success.
>>> Attached
>>> is build Error
>>>
>>> Any help is highly appreciated.
>>>
>>> Regards,
>>> Gautham
>>>
>>>
>>
> _______________________________________________
> 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"
>
>
--
View this message in context: http://old.nabble.com/Pom-build-Error%3A--On-adding-gradebook-API-tp30901229p30907271.html
Sent from the Sakai - Development mailing list archive at Nabble.com.
More information about the sakai-dev
mailing list