Jahia in English > Import From Jahia...

0 (0 Good)
0 (0 Bad)

Import From Jahia 6.1.0 r31127 to jahia_v6 CE_r25203

by  mfoy »  2011/06/07 18:47

Hi All.

I'm trying to migrate to the community edition, but i'm facing some issue such as:

1. attribute var does not exists on template tags such as metadata and field.
2. field /1, but I get an error with maven:

[b:208myl9n]Downloading: http://maven.jahia.org/maven2/org/jahia ... APSHOT.pom
[INFO] Unable to find resource 'org.jahia.server:maven-jahia-plugin:pom:1.0-SNAPSHOT' in repository gwt-maven (http://maven.jahia.org/maven2)
Downloading: http://maven.jahia.org/maven2/org/jahia ... APSHOT.pom
[INFO] Unable to find resource 'org.jahia.server:maven-jahia-plugin:pom:1.0-SNAPSHOT' in repository jahiaRepository (http://maven.jahia.org/maven2)
Downloading: http://maven.jahia.org/maven2/org/jahia ... APSHOT.pom
[INFO] Unable to find resource 'org.jahia.server:maven-jahia-plugin:pom:1.0-SNAPSHOT' in repository jahiaRepository (http://maven.jahia.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.jahia.server:maven-jahia-plugin

Reason: POM 'org.jahia.server:maven-jahia-plugin' not found in repository: Unable to download the artifact from any repository

org.jahia.server:maven-jahia-plugin:pom:1.0-SNAPSHOT

from the specified remote repositories:
gwt-maven (http://maven.jahia.org/maven2),
central (http://repo1.maven.org/maven2),
jahiaRepository (http://maven.jahia.org/maven2)

for project org.jahia.server:maven-jahia-plugin[/b:208myl9n]

--
Cheers.
Carlos Ch?�vez.
  • Import From Jahia 6.1.0 r31127 to jahia_v6 CE_r25203
    2011/06/07 18:47

    mfoy Hi All.<br/><br/>I'm trying to migrate to the community edition, but i'm facing some issue such as:<br/><br/>1. attribute var does not exists on template tags such as metadata and field.<br/>2. field /1, but I get an error with maven:<br/><br/>[b:208myl9n]Downloading: <!-- m --><a class="postlink" href="http://maven.jahia.org/maven2/org/jahia/server/maven-jahia-plugin/1.0-SNAPSHOT/maven-jahia-plugin-1.0-SNAPSHOT.pom">http://maven.jahia.org/maven2/org/jahia ... APSHOT.pom</a><!-- m --><br/>[INFO] Unable to find resource 'org.jahia.server:maven-jahia-plugin:pom:1.0-SNAPSHOT' in repository gwt-maven (<!-- m --><a class="postlink" href="http://maven.jahia.org/maven2">http://maven.jahia.org/maven2</a><!-- m -->)<br/>Downloading: <!-- m --><a class="postlink" href="http://maven.jahia.org/maven2/org/jahia/server/maven-jahia-plugin/1.0-SNAPSHOT/maven-jahia-plugin-1.0-SNAPSHOT.pom">http://maven.jahia.org/maven2/org/jahia ... APSHOT.pom</a><!-- m --><br/>[INFO] Unable to find resource 'org.jahia.server:maven-jahia-plugin:pom:1.0-SNAPSHOT' in repository jahiaRepository (<!-- m --><a class="postlink" href="http://maven.jahia.org/maven2">http://maven.jahia.org/maven2</a><!-- m -->)<br/>Downloading: <!-- m --><a class="postlink" href="http://maven.jahia.org/maven2/org/jahia/server/maven-jahia-plugin/1.0-SNAPSHOT/maven-jahia-plugin-1.0-SNAPSHOT.pom">http://maven.jahia.org/maven2/org/jahia ... APSHOT.pom</a><!-- m --><br/>[INFO] Unable to find resource 'org.jahia.server:maven-jahia-plugin:pom:1.0-SNAPSHOT' in repository jahiaRepository (<!-- m --><a class="postlink" href="http://maven.jahia.org/maven2">http://maven.jahia.org/maven2</a><!-- m -->)<br/>[INFO] ------------------------------------------------------------------------<br/>[ERROR] BUILD ERROR<br/>[INFO] ------------------------------------------------------------------------<br/>[INFO] Error building POM (may not be this project's POM).<br/><br/><br/>Project ID: org.jahia.server:maven-jahia-plugin<br/><br/>Reason: POM 'org.jahia.server:maven-jahia-plugin' not found in repository: Unable to download the artifact from any repository<br/><br/> org.jahia.server:maven-jahia-plugin:pom:1.0-SNAPSHOT<br/><br/>from the specified remote repositories:<br/> gwt-maven (<!-- m --><a class="postlink" href="http://maven.jahia.org/maven2">http://maven.jahia.org/maven2</a><!-- m -->),<br/> central (<!-- m --><a class="postlink" href="http://repo1.maven.org/maven2">http://repo1.maven.org/maven2</a><!-- m -->),<br/> jahiaRepository (<!-- m --><a class="postlink" href="http://maven.jahia.org/maven2">http://maven.jahia.org/maven2</a><!-- m -->)<br/><br/> for project org.jahia.server:maven-jahia-plugin[/b:208myl9n]<br/><br/>--<br/>Cheers.<br/>Carlos Ch?�vez.

  • Number of messages  2
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Import From Jahia 6.1.0 r31127 to jahia_v6 CE_r25203

    by  mfoy »  2011/06/07 18:47

    Hello again.

    I did change the structure of the files repository.xml, now the pages are imported, but the files upload does not work
    the following are the changes I made:

    1. change /1)
    at org.jahia.services.importexport.ImportJob.executeJahiaJob(ImportJob.java:109)
    at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:162)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    Caused by: javax.jcr.InvalidItemStateException: f82d1045-6a78-49d9-8166-f26200182b6d: the item cannot be saved because it has been modified externally.
    at org.apache.jackrabbit.core.ItemImpl.getTransientStates(ItemImpl.java:246)
    at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:928)
    at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:839)
    at org.jahia.services.content.JCRItemWrapperImpl.saveSession(JCRItemWrapperImpl.java:138)
    at org.jahia.services.content.JCRNodeDecorator.saveSession(JCRNodeDecorator.java:612)
    at org.jahia.services.importexport.DocumentViewImportHandler.endElement(DocumentViewImportHandler.java:244)
    ... 26 more

    --
    Cheers.
    Carlos Ch?�vez.
  • Re: Import From Jahia 6.1.0 r31127 to jahia_v6 CE_r25203
    2011/06/07 18:47

    mfoy Hello again.<br/><br/>I did change the structure of the files repository.xml, now the pages are imported, but the files upload does not work<br/>the following are the changes I made:<br/><br/>1. change /1)<br/> at org.jahia.services.importexport.ImportJob.executeJahiaJob(ImportJob.java:109)<br/> at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:162)<br/> at org.quartz.core.JobRunShell.run(JobRunShell.java:202)<br/> at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)<br/>Caused by: javax.jcr.InvalidItemStateException: f82d1045-6a78-49d9-8166-f26200182b6d: the item cannot be saved because it has been modified externally.<br/> at org.apache.jackrabbit.core.ItemImpl.getTransientStates(ItemImpl.java:246)<br/> at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:928)<br/> at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:839)<br/> at org.jahia.services.content.JCRItemWrapperImpl.saveSession(JCRItemWrapperImpl.java:138)<br/> at org.jahia.services.content.JCRNodeDecorator.saveSession(JCRNodeDecorator.java:612)<br/> at org.jahia.services.importexport.DocumentViewImportHandler.endElement(DocumentViewImportHandler.java:244)<br/> ... 26 more<br/><br/>--<br/>Cheers.<br/>Carlos Ch?�vez.

  • Number of messages  2
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Import From Jahia 6.1.0 r31127 to jahia_v6 CE_r25203

    by  cachavez »  2011/06/07 18:48

    Hello again.

    I stopped with the idea to change the structure of the repository.xml.

    What I'm doing now It is trying to build the Community Edition version, I downloaded from http://subversion.jahia.org/svn/jahia/t ... E_20090520

    I successfully compiled that version and deploy to tomcat, I'm able to run the config option.
    When I tried to import I got the following error:

    2010-12-28 23:11:21,598: INFO [org.jahia.services.content.automation.RulesListener] - Executing rules for [/content/sites/cms/files/videos/thumbnails/Robyn.JPG/jcr:content/jcr:mimeType, /content/sites/cms/files/videos/thumbnails/Robyn.JPG/jcr:content/jcr:data, /content/sites/cms/files/videos/thumbnails/Robyn.JPG/j:fullpath] ... and 1 other nodes
    Corrupt JPEG data: premature end of data segment
    Corrupt JPEG data: 77 extraneous bytes before marker 0xda
    Corrupt JPEG data: bad Huffman code
    sun.awt.image.ImageFormatException: Bogus marker length
    at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
    at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:119)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
    2010-12-28 23:11:21,770: INFO [org.jahia.services.content.automation.RulesListener] - Rules executed for [/content/sites/cms/files/videos/thumbnails/Robyn.JPG/jcr:content/jcr:mimeType, /content/sites/cms/files/videos/thumbnails/Robyn.JPG/jcr:content/jcr:data, /content/sites/cms/files/videos/thumbnails/Robyn.JPG/j:fullpath] ... and 1 other nodes
    2010-12-28 23:11:22,531: INFO [org.jahia.services.content.automation.RulesListener] - Executing rules for [/content/sites/cms/files/videos/thumbnails/Sharon.JPG/jcr:content/jcr:mimeType, /content/sites/cms/files/videos/thumbnails/Sharon.JPG/jcr:content/jcr:data, /content/sites/cms/files/videos/thumbnails/Sharon.JPG/j:fullpath] ... and 1 other nodes
    Corrupt JPEG data: bad Huffman code
    sun.awt.image.ImageFormatException: Bogus marker length
    at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
    at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:119)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)

    The other error I got is:

    2010-12-28 23:11:48,433: ERROR [org.jahia.services.importexport.ImportExportBaseService] - Cannot import
    javax.jcr.InvalidItemStateException: Item cannot be saved because it has beenmodified externally: node /
    at org.jahia.services.importexport.DocumentViewImportHandler.endElement(DocumentViewImportHandler.java:259)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
    at org.jahia.services.importexport.ImportExportBaseService.handleImport(ImportExportBaseService.java:1467)
    at org.jahia.services.importexport.ImportExportBaseService.importFile(ImportExportBaseService.java:797)
    at org.jahia.services.importexport.ImportExportBaseService.importFile(ImportExportBaseService.java:740)
    at org.jahia.services.importexport.ImportExportBaseService$$FastClassByCGLIB$$de1c40f7.invoke(/1)
    at org.jahia.services.importexport.ImportJob.executeJahiaJob(ImportJob.java:109)
    at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:164)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
    Caused by: javax.jcr.InvalidItemStateException: Item cannot be saved because it has beenmodified externally: node /
    at org.apache.jackrabbit.core.ItemImpl.getTransientStates(ItemImpl.java:246)
    at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:931)
    at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:846)
    at org.jahia.services.content.JCRItemWrapperImpl.saveSession(JCRItemWrapperImpl.java:135)
    at org.jahia.services.content.JCRNodeDecorator.saveSession(JCRNodeDecorator.java:612)
    at org.jahia.services.importexport.DocumentViewImportHandler.endElement(DocumentViewImportHandler.java:257)
    ... 26 more

    I already change the quartz to execute just one thread, in that way the import of the files started, but I still getting this error, so not sure where else I need to change.

    --
    Cheers.
    Carlos Ch?�vez.

      (cachavez)

    Number of messages  32
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page