[Building Sakai] build Error: On adding gradebook service API

Steve Swinsburg steve.swinsburg at gmail.com
Sat Feb 12 03:20:05 PST 2011


This doesn't look complete.

You need to include a dependency for the artifact which contains the class you are using. Since you are using the gradebook service classes, you need the gradebook service dependency.

S





On 12/02/2011, at 10:11 PM, Gautham wrote:

> 
> 
> Hi Steve,
> 
> Please find below the Dependency Section of my project's POM:
> 
> 
>    <!-- handles the management of all related dependencies -->
>    <dependencyManagement>
>        <dependencies>
>            <dependency>
>                <groupId>org.sakaiproject.selfcertification</groupId>
>                <artifactId>selfcertification-api</artifactId>
>                <version>0.1</version><!--Selfcertification.version-->
>                <scope>provided</scope>
>            </dependency>
>            <dependency>
>                <groupId>org.sakaiproject.selfcertification</groupId>
>                <artifactId>selfcertification-impl</artifactId>
>                <version>0.1</version><!--Selfcertification.version-->
>            </dependency>
>            <!-- needed until EB is in the Sakai master dependency
> management -->
>            <dependency>
>                <groupId>org.sakaiproject.entitybroker</groupId>
>                <artifactId>entitybroker-api</artifactId>
>                <version>[1.3.3,1.4.0)</version>
>                <scope>provided</scope>
>            </dependency>
>            <dependency>
>                <groupId>org.sakaiproject.entitybroker</groupId>
>                <artifactId>entitybroker-utils</artifactId>
>                <version>[1.3.3,1.4.0)</version>
>            </dependency>
>        </dependencies>
>    </dependencyManagement>
> 
> Please let me know if you need any more information.
> 
> Regards,
> Gautham
> 
> 
> 
> Steve Swinsburg-3 wrote:
>> 
>> Hi,
>> 
>> An error like this:
>> package org.sakaiproject.service.gradebook.shared does not exist
>> 
>> means that Maven can't find it in the dependencies you gave it.
>> 
>> Running a search for GradebookService.java gives me:
>> ./gradebook/service/api/src/java/org/sakaiproject/service/gradebook/shared/GradebookService.java
>> 
>> Which would be a dependency of:
>> 
>> <groupId>org.sakaiproject</groupId>
>> <artifactId>sakai-gradebook-service-api</artifactId>
>> 
>> Can you post the dependencies section of your pom please?
>> 
>> Also, when posting stacktraces to the list, just copy and paste.
>> Screenshots in word documents are difficult to read.
>> 
>> cheers,
>> Steve
>> 
>> On 12/02/2011, at 4:50 PM, Gautham wrote:
>> 
>>> 
>>> 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.
>>> 
>>> _______________________________________________
>>> 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"
>> 
>> _______________________________________________
>> 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-tp30901229p30908212.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