[Building Sakai] lesson builder now supports Assignment 2, tested with Mneme 2.1.2

Hedrick Charles hedrick at rutgers.edu
Thu Jan 26 15:56:13 PST 2012


Thanks. I'll check this in Mysql and update. I believe it will work OK. I'm glad someone is trying the current code in Oracle.

On Jan 26, 2012, at 5:46:55 PM, Geng, Kelly wrote:

> I had to modify the sql for Oracle, but it worked!!!
>  
> String sql="select context, due_date, gradebook_item_id, title, assignment_id from A2_ASSIGNMENT_T where context = ? and draft=0 and removed=0";
>  
> I’ll let you know if I find more issues.
>  
> From: Charles Hedrick [mailto:hedrick at rutgers.edu] 
> Sent: Thursday, January 26, 2012 3:46 PM
> To: Geng, Kelly
> Cc: sakai-dev at collab.sakaiproject.org Developers
> Subject: Re: [Building Sakai] lesson builder now supports Assignment 2, tested with Mneme 2.1.2
>  
> THis is what I get for trying to support tools that I don't use (although we're now starting to use A2). Please try this.
>  
> @@ -300,7 +300,7 @@
>             try {
>                String siteId = ToolManager.getCurrentPlacement().getContext();
>                connection = SqlService.borrowConnection();
> -              String sql="select context, due_date, gradebook_item_id, title, assignment_id from A2_ASSIGNMENT_T where context = ?";
> +             String sql="select context, due_date, gradebook_item_id, title, assignment_id from A2_ASSIGNMENT_T where context = ? and not draft and not removed";
>                Object fields[] = new Object[1];
>                fields[0] = siteId;
>  
>  
>  
> On Jan 26, 2012, at 3:27 PM, Geng, Kelly wrote:
> 
> 
> Thanks Chuck. Now it works, but it shows a list of assignments including some I have deleted earlier. Status checking issue?
>  
> Kelly
>  
>  
> From: Charles Hedrick [mailto:hedrick at rutgers.edu] 
> Sent: Thursday, January 26, 2012 2:58 PM
> To: Geng, Kelly
> Cc: sakai-dev at collab.sakaiproject.org Developers
> Subject: Re: [Building Sakai] lesson builder now supports Assignment 2, tested with Mneme 2.1.2
>  
> There's a typo in Assignment2Entity.java, which had no effect in our testing.
>  
> Line 153 should be
>  
>             if (ToolManager.getTool("sakai.assignment2") != null)
>             haveA2 = true;
>  
> It actually checked for jforum, which of course is present in our instances (even tests, since LB supports jForum, and it's present in our testing instance).
>  
> If that still doesn't work, please look for the following in catalina.out
>  
> INFO Registered entity provider (org.sakaiproject.assignment2.tool.entity.Assignment2EntityProvider) prefix (assignment2) with 19 capabilities
> Assignment2Entity init: haveA2 = true
>  
> and verify that it says haveA2 = true
>  
> I'm gong to check in this fix.
>  
> On Jan 26, 2012, at 2:46 PM, Geng, Kelly wrote:
> 
> 
> 
> I didn't turn on the plugins in tool/pom.xml previously.
> Now I can see opt-applicationContext.xml is present, but it still can't see AS2. Here is the bean definition ( I commented out the Mneme and Yaft, so this is the only bean defined):
>  
> <bean id="org.sakaiproject.lessonbuildertool.service.Assignment2Entity"
>         class="org.sakaiproject.lessonbuildertool.service.Assignment2Entity"
>         init-method="init"
>         destroy-method="destroy">
>  
>     <property name="memoryService"><ref bean="org.sakaiproject.memory.api.MemoryService"/></property>
>     <property name="messageLocator" ref="messageLocator"/>
>     <property name="gradebookService" ref="org.sakaiproject.service.gradebook.GradebookService"/>
>     <property name = "prevEntity" ref="org.sakaiproject.lessonbuildertool.service.AssignmentEntity" />
>   </bean>
>  
> And this is what is in the WEB-INF/classes/org/sakaiproject/lessonbuildertool/service/:
>  
> >ls /opt/tomcat/webapps/sakai-lessonbuildertool-tool/WEB-INF/classes/org/sakaiproject/lessonbuildertool/service
> Assignment2Entity$1.class                                GroupPermissionsService.class
> Assignment2Entity$2.class                                JForumEntity$1.class
> Assignment2Entity$3.class                                JForumEntity$2.class
> Assignment2Entity$4.class                                JForumEntity$3.class
> Assignment2Entity$AssignGroup.class                      JForumEntity$4.class
> Assignment2Entity$Assignment.class                       JForumEntity$5.class
> Assignment2Entity.class                                  JForumEntity.class
> AssignmentEntity.class                                   LessonBuilderAccessService$1$1.class
> BltiEntity.class                                         LessonBuilderAccessService$1.class
> BltiInterface.class                                      LessonBuilderAccessService.class
> ForumEntity.class                                        LessonBuilderEntityProducer.class
> ForumEntity$ForumBySortIndexAscAndCreatedDateDesc.class  LessonBuilderEntityProducer$ContentCopyContext.class
> ForumInterface.class                                     LessonEntity.class
> GradebookIfc.class                                       LessonSubmission.class
> GroupPermissionsService$1.class                          QuizEntity.class
> GroupPermissionsService$2.class                          SamigoEntity.class
>  
>  
>  
> -----Original Message-----
> From: Charles Hedrick [mailto:hedrick at rutgers.edu] 
> Sent: Thursday, January 26, 2012 1:28 PM
> To: Geng, Kelly
> Cc: sakai-dev at collab.sakaiproject.org Developers
> Subject: Re: [Building Sakai] lesson builder now supports Assignment 2, tested with Mneme 2.1.2
>  
> I'd conjecture that somehow your version of LB doesn't actually have A2 working. You need to uncomment 2 different sections of tool/pom.xml, and make sure that the version in the commented section agrees with your version of A2. (This is probably a mistake. I should put the version number in the main pom.xml along with other version numbers.)
>  
> Looking at the deployed copy, i.e. the copy in tomcat/webapps, here are the things involved in making the connection:
>  
> WEB-INF/web.xml - contextConfigLocation should include /WEB-INF/*applicationContext.xml. That will cause the system to read
>  
> WEB-INF/opt-applicationContext.xml - this has the bean definitions for the optional components. It's only present if you've uncommented the appropriate sections of pom.xml.  It should contain a bean definition for org.sakaiproject.lessonbuildertool.service.Assignment2Entity
>  
> WEB-INF/classes/org/sakaiproject/lessonbuildertool/service/AssignmentEntity.class is the class used in the bean definition. When the bean starts up it appends itself to the list of assignment tools.
>  
> Are you getting errors in catalina.out at startup or when you try to access the site?
>  
>  
>  
> On Jan 26, 2012, at 12:20 PM, Geng, Kelly wrote:
>  
> > Now I installed 1.4.x and uncommented the as2 in tools/pom.xml. But AS2 is not recognizable by LB. LB complains that there is no AS tool on this site. I tried to remove the tool and added it back and it didn't work. But LB recognized AS fine. I didn't see anything glaring in the log. Any thoughts?
> > 
> > Thanks,
> > Kelly
> > 
> > 
> > -----Original Message-----
> > From: Hedrick Charles [mailto:hedrick at rutgers.edu]
> > Sent: Wednesday, January 25, 2012 5:44 PM
> > To: Geng, Kelly/WEB-INF/*applicationContext.xml
> > Cc: sakai-dev at collab.sakaiproject.org Developers
> > Subject: Re: [Building Sakai] lesson builder now supports Assignment 2, tested with Mneme 2.1.2
> > 
> > Ooops. It's in 1.4.x, but not the b01 snapshot. There aren't many differences between b0 and 1.4.x, but that's one of them. 1.4.x should appear in the next beta, if I understand correctly how things work. Even in 1.4.x you'll have to uncomment it.
> > 
> > On Jan 25, 2012, at 5:37:39 PM, Geng, Kelly wrote:
> > 
> >> I'm using lessonbuilder-1.4.0-b01/, and didn't see ASSIGNMENT2 mentioned in the README. Was the code already in and the doc didn't  get updated?
> >> 
> >> Thanks,
> >> Kelly
> >> 
> >> 
> >> 
> >> 
> >> -----Original Message-----
> >> From: Charles Hedrick [mailto:hedrick at rutgers.edu]
> >> Sent: Wednesday, January 25, 2012 5:21 PM
> >> To: Geng, Kelly
> >> Cc: sakai-dev at collab.sakaiproject.org Developers
> >> Subject: Re: [Building Sakai] lesson builder now supports Assignment 2, tested with Mneme 2.1.2
> >> 
> >> Yes. Look for ASSIGNMENT2 in the README file. THe release control folks don't want dependencies on any contrib tools, so I've had to comment out the support.
> >> 
> >> On Jan 25, 2012, at 4:35 PM, Geng, Kelly wrote:
> >> 
> >>> Chuck,
> >>> 
> >>> In order for LB1.4 to work with AS2, do I need to make any change to the pom files? I see you have AS in the pom but I didn't see AS2, and apparently AS2 is not showing up in LB in our instance. Also if we have both AS and AS2, would it cause any conflict?
> >>> 
> >>> Thanks,
> >>> 
> >>> Kelly
> >>> 
> >>> 
> >>> 
> >>> ----Original Message-----
> >>> From: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-bounces at collab.sakaiproject.org] On Behalf Of Hedrick Charles
> >>> Sent: Saturday, January 07, 2012 8:05 PM
> >>> To: sakai-dev at collab.sakaiproject.org Developers
> >>> Subject: [Building Sakai] lesson builder now supports Assignment 2, tested with Mneme 2.1.2
> >>> 
> >>> Rutgers will be using Assignment 2 this Spring, and we're starting to test Mneme. Hence Lesson Builder has been updated to support Assignment 2 and I've verified that it works with the most recent Mneme. (It requires a change in the dependency name for Mneme.)
> >>> 
> >>> These are omitted from the build by default. README shows how to include the support.
> >>> 
> >>> At this point I believe we're supporting all the common indie tools:
> >>> 
> >>> tests: Mneme
> >>> assignments:  Assignments2
> >>> forums: Jforum, YAFT
> >>> 
> >>> Support for Assignment 2 should be complete. There are minor limitations in support for Mneme, Jforum, and YAFT as documented in the README
> >>> 
> >>> The code is in both 1.4.x and trunk, hence it will be in 2.9 if you build from source and include the optional source section.
> >>> 
> >>> _______________________________________________
> >>> 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"
> >> 
> > 
>  
>  
>  
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20120126/e18e3cd6/attachment.html 


More information about the sakai-dev mailing list