[Building Sakai] for edia scorm player and sakai 2.7

Roland Groen roland at edia.nl
Thu Feb 3 04:22:13 PST 2011


Hi Steve,

Thank you for pointing this out. Please take a look at:

https://source.sakaiproject.org/contrib/edia/scorm/branches/2.7.x/scorm-impl/service/src/java/org/sakaiproject/scorm/service/sakai/impl/ContentPackageSakaiResource.java

and notice that it does not matter what
org.sakaiproject.content.api.ContentResource.getContentLength()
returns. In case of an int it will implicitly cast to long, and in case of
al long it will work anyway. Portable code, right ;). No need to change code
for 2.7 regarding this issue.

The binary code, on the other hand, will be different once compiled. This
NoSuchMethodError can only happen if it is compiled agains long, and
executed agains int. Or the other way around, of course.

So: this issue can ONLY happen if the compilation libraries are different
than the runtime libraries. My recommendations still stand.

With kind regards,

--
*Roland M.S. Groen*
roland at edia.nl

*Edia* - Educatie Technologie
Korte Prinsengracht 42 hs | 1013 GT Amsterdam
*T* 020 716 36 12 | *F* 020 716 36 13 | *M* 06 2423 09 06 | www.edia.nl



On Thu, Feb 3, 2011 at 11:52 AM, Steve Swinsburg
<steve.swinsburg at gmail.com>wrote:

> The issue here is that ContentResource.getContentLength() returns a long in
> the versions of the kernel that ship with 2.7 (1.1.x). In previous versions
> they were an int.
>
> Perhaps there could be a release of the SCORM player that is compatible
> with 2.7? At the same time it might be worthwhile adjusting the wicket issue
> to not require Sakai wicket.
>
> 2011-02-02 19:30:40,865 ERROR http-8080-Processor23
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sakai-scorm-tool].[sakai.scorm.tool]
> - Servlet.service() for servlet sakai.scorm.tool threw exception
> java.lang.NoSuchMethodError:
> org.sakaiproject.content.api.ContentResource.getContentLength()J
> cheers,
> Steve
>
>
>
> On 03/02/2011, at 9:43 PM, Roland Groen wrote:
>
> It seems there is some discrepancy between you building environment and
> deployment environment. There are a couple of things that might be the case:
>
>    - you are deploying to another version of Sakai than you are building
>    for (2.7);
>    - you accidentally deployed a wrong version of the kernel or content
>    sakai-content-api-*.jar to your Sakai deployment.
>
> You can either:
>
>    - start with a clean Sakai 2.7 and deploy the tool, or;
>    - try to find the obstructing jar by something like: find . -name
>    "*.jar" -exec grep ContentResource {} \; -print
>
> With kind regards,
>
> --
> *Roland M.S. Groen*
> roland at edia.nl
>
> *Edia* - Educatie Technologie
> Korte Prinsengracht 42 hs | 1013 GT Amsterdam
> *T* 020 716 36 12 | *F* 020 716 36 13 | *M* 06 2423 09 06 | www.edia.nl
>
>
>
> On Thu, Feb 3, 2011 at 11:23 AM, Regimantas Maciulskis <
> regimantas.maciulskis at gmail.com> wrote:
>
>> I am sending you log file.
>>
>> Thanks,
>> Regimantas
>>
>> 2011/2/3 Roland Groen <roland at edia.nl>
>>
>> Could you try and place a resource tool in the same site, and see if that
>>> fixes this problem? If not, please send me the stack trace from the server
>>> log <CATALINA_HOME>/logs/catalina.out
>>>
>>> With kind regards,
>>>
>>> --
>>> *Roland M.S. Groen*
>>> roland at edia.nl
>>>
>>> *Edia* - Educatie Technologie
>>> Korte Prinsengracht 42 hs | 1013 GT Amsterdam
>>> *T* 020 716 36 12 | *F* 020 716 36 13 | *M* 06 2423 09 06 | www.edia.nl
>>>
>>>
>>>
>>> On Wed, Feb 2, 2011 at 4:26 PM, Regimantas Maciulskis <
>>> regimantas.maciulskis at gmail.com> wrote:
>>>
>>>> Thanks a lot, i missed one pom.xml in scorm project, now it's working.
>>>> I uploaded SCORM 2004 from
>>>> http://scorm.com/scorm-explained/technical-scorm/golf-examples/ I
>>>> checked Validate this archive as a SCORM 2004 and upload was
>>>> successful.
>>>> When i clicked on uploaded SCORM its loading forever (attached
>>>> screen-shot). I tried others SCORMS and it's same...
>>>> Any ideas?
>>>>
>>>> Regimantas
>>>>
>>>
>>>
>>
> _______________________________________________
> 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/20110203/7afcce38/attachment.html 


More information about the sakai-dev mailing list