[Building Sakai] SAK-8908 (Tools & Pages i18n)

Daniel Merino daniel.merino at unavarra.es
Tue May 18 01:20:36 PDT 2010


Hi, Stephen, thanks for your reply.

Your patch fixes the problem in metaobj, but there are more problems in 
the next attempts of deploy.

The only reason I want to mix the 1.1.x kernel with the 2.6.2 version of 
Sakai is to have SAK-8908 working. My plans are to migrate to a 2.7.0 
version in a near future.

As I can see, the actual 1.0.x branch of kernel has SAK-8908 included, 
am I wrong?

Maybe it would be faster for me to deploy now the 1.0.x kernel in 2.6.2 
and just wait SAK-8908 to be included in a 1.0 stable version of kernel 
(or just migrate to 2.7.0 when the RC01 is available).

What do you think?

Best regards.

Stephen Marquard escribió:
> Hi Daniel,
>
> getContentLength() changed from int to long in 1.1.x. See
> http://jira.sakaiproject.org/browse/KNL-205  and
> http://jira.sakaiproject.org/browse/SAK-18229
>
> This is one of the reasons why you might have difficulty mixing 2.6.2
> code with the 1.1.x kernel.
>
> To solve your immediate problem, you can apply this change to your
> 2.6.2 source:
>
> http://source.sakaiproject.org/viewsvn?view=revision&revision=65809
>
> Regards
> Stephen
>
>   
>>>> Daniel Merino <daniel.merino at unavarra.es> 5/18/2010 9:43 AM >>>
>>>>         
> Hi, Beth and everybody.
>
> I have followed these steps: I have deployed the 1.1.6 version of
> kernel 
> and changed the master/pom.xml. All was fine until I have tried to 
> deploy the full 2.6.2 version and I get a build failure in Metaobj:
>
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> /apps/sakai/sakai-2.6.2/metaobj/metaobj-api/api/src/java/org/sakaiproject/metaobj/shared/mgt/ContentEntityWrapper.java:[43,7]
>
> org.sakaiproject.metaobj.shared.mgt.ContentEntityWrapper is not
> abstract 
> and does not override abstract method getContentLength() in 
> org.sakaiproject.content.api.ContentResource
>
> /apps/sakai/sakai-2.6.2/metaobj/metaobj-api/api/src/java/org/sakaiproject/metaobj/shared/mgt/ContentEntityWrapper.java:[55,19]
>
> getContentLength() in 
> org.sakaiproject.metaobj.shared.mgt.ContentEntityWrapper cannot 
> implement getContentLength() in 
> org.sakaiproject.content.api.ContentResource; attempting to use 
> incompatible return type
> found   : int
> required: long
>
> /apps/sakai/sakai-2.6.2/metaobj/metaobj-api/api/src/java/org/sakaiproject/metaobj/shared/mgt/ContentEntityWrapper.java:[57,44]
>
> possible loss of precision
> found   : long
> required: int
>
> Does anybody know where can be the problem?
>
> Thanks in advance.
>
> Beth Kirschner escribió:
>   
>> First of all, I'd revert the patch from the SAK-8908 branch -- this 
>> not the final version was applied to trunk, so doesn't represent a 
>> complete solution. You may optionally want to apply r65603, which 
>> contains some cleaned up page/tool title translations.
>>
>> Next I would download the Kernel 1.1.6 tag (which looks like the 
>> latest tag) at 
>> https://source.sakaiproject.org/svn/kernel/tags/kernel-1.1.6/, then 
>> build and deploy. Next, modify the master pom.xml file 
>> (sakai/master/pom.xml) and change the sakai.kernel.version to 1.1.6,
>>     
>
>   
>> then generate a clean build from your 2.6.2 source.
>>
>> - Beth
>>
>> On May 17, 2010, at 12:14 PM, daniel.merino at unavarra.es wrote:
>>
>>     
>>> Beth, I installed the 2.6.2 version of Sakai downloaded from the 
>>> official
>>> repository branch, and it came with the 1.0.13 version of the
>>>       
> kernel. I
>   
>>> didn't change any pom.xml to deploy it.
>>>
>>> How can I upgrade the kernel to 1.1 version in order to make it
>>>       
> work?
>   
>>> Thanks for your help.
>>>
>>> El Lun, 17 de Mayo de 2010, 17:39, Beth Kirschner escribió:
>>>       
>>>> You'll need the 1.1 version of the kernel for this to work
>>>>         
> properly.
>   
>>>> It also sounds like you've changed some kernel-version-dependencies
>>>>         
> to
>   
>>>> sakai-version-dependencies in the pom.xml files.
>>>>
>>>> - Beth
>>>>
>>>> On May 17, 2010, at 8:59 AM, Daniel Merino wrote:
>>>>
>>>>         
>>>>> I have discovered a thread about this issue here:
>>>>>
>>>>>           
> http://collab.sakaiproject.org/pipermail/sakai-dev/2009-October/004141.html
>
>   
>>>>> where I understand that SAK-8908 isn't included in 2.6.x until is
>>>>> fully
>>>>> tested.
>>>>>
>>>>> I have downloaded the SAK-8908
>>>>> (https://source.sakaiproject.org/svn/site/branches/SAK-8908/) and
>>>>>           
> I
>   
>>>>> have
>>>>> changed the version in the poms (2.6.2 instead of M2), but I
>>>>>           
> receive 6
>   
>>>>> missing dependencies, i.e:
>>>>>
>>>>> /1) org.sakaiproject:sakai-component:jar:2.6.2
>>>>>
>>>>> Try downloading the file manually from the project website.
>>>>>
>>>>> Then, install it using the command:
>>>>>     mvn install:install-file -DgroupId=org.sakaiproject
>>>>> -DartifactId=sakai-component -Dversion=2.6.2 
>>>>>           
> -Dpackaging=jar
>   
>>>>> -Dfile=/path/to/file
>>>>>
>>>>> Alternatively, if you host your own repository you can deploy the
>>>>> file
>>>>> there:
>>>>>     mvn deploy:deploy-file -DgroupId=org.sakaiproject
>>>>> -DartifactId=sakai-component -Dversion=2.6.2 -Dpackaging=jar
>>>>> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>>>>
>>>>> Path to dependency:
>>>>>       1) org.sakaiproject:sakai-site-api:jar:2.6.2
>>>>>       2) org.sakaiproject:sakai-component:jar:2.6.2/
>>>>>
>>>>> Looking in the master/pom.xml of the 2.6.2, these dependencies
>>>>>           
> are
>   
>>>>> commented, i.e:
>>>>>
>>>>> /<!--org.sakaiprojectsakai-component${sakai.version}provided-->
>>>>> <!--org.sakaiprojectsakai-site-api${sakai.version}provided-->/
>>>>>
>>>>> What should I do with these dependencies? Trying to add them to
>>>>> 2.6.2 or
>>>>> trying to remove them from SAK-8908?
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> Daniel Merino escribió:
>>>>>           
>>>>>> Hi everybody.
>>>>>>
>>>>>> I have recently installed a Sakai 2.6.2 and I though that
>>>>>>             
> SAK-8908
>   
>>>>>> would
>>>>>> be included in it, but I'm not able to get the tools and pages
>>>>>>             
> titles
>   
>>>>>> dinamically changed as I change my user's language. The tools
>>>>>>             
> and
>   
>>>>>> pages
>>>>>> are showed in the Tomcat's language (spanish) and they don't
>>>>>>             
> change.
>   
>>>>>> The binary kernel version is the 1.0.13 and I think that this
>>>>>>             
> version
>   
>>>>>> has the patch included. Is it necessary to do something more to
>>>>>> make it run?
>>>>>>
>>>>>> Thanks in advance.
>>>>>>
>>>>>>             
>>>>> -- 
>>>>> Daniel Merino Echeverría
>>>>> daniel.merino at unavarra.es 
>>>>> Gestor de teleformación - Centro Superior de Innovación
>>>>>           
> Educativa.
>   
>>>>> Tfno: 948-168489 - Universidad Pública de Navarra.
>>>>> -- 
>>>>> Tener la conciencia limpia es síntoma de mala memoria. (Les
>>>>>           
> Luthiers)
>   
>>>>> _______________________________________________
>>>>> 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"
>>>
>>>
>>>       
>>     
>
>   

-- 
Daniel Merino Echeverría
daniel.merino at unavarra.es
Gestor de teleformación - Centro Superior de Innovación Educativa.
Tfno: 948-168489 - Universidad Pública de Navarra.
--
El sentido común no es nada común. (Voltaire)


More information about the sakai-dev mailing list