Jahia Template Forum > Container issue

0 (0 Good)
0 (0 Bad)

Container issue

by  equinox »  2011/06/07 20:01

Hi,

I'm just trying to put together a new site, using the existing web_templates project as an example.

Recently I've been getting the following error in the Tomcat console:

2009-11-23 15:33:11,292: INFO [Jahia] - Processed [/cms/engineName/updatecontainer/site
/eqWebNew/op/edit/About] user=[root] ip=[127.0.0.1] sessionID=[E7199F251BD0FB0C4496109B1
105F64A] in [62ms]
2009-11-23 15:33:33,793: ERROR [JahiaPageNodeImpl] - Cannot get container
javax.jcr.RepositoryException
at org.jahia.services.content.impl.jahia.JahiaContainerListNodeImpl.lt;init
  • Container issue
    2011/06/07 20:01

    equinox Hi,<br/><br/>I'm just trying to put together a new site, using the existing web_templates project as an example.<br/><br/>Recently I've been getting the following error in the Tomcat console:<br/><br/>2009-11-23 15:33:11,292: INFO [Jahia] - Processed [/cms/engineName/updatecontainer/site<br/>/eqWebNew/op/edit/About] user=[root] ip=[127.0.0.1] sessionID=[E7199F251BD0FB0C4496109B1<br/>105F64A] in [62ms]<br/>2009-11-23 15:33:33,793: ERROR [JahiaPageNodeImpl] - Cannot get container<br/>javax.jcr.RepositoryException<br/> at org.jahia.services.content.impl.jahia.JahiaContainerListNodeImpl.lt;init

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

    Re: Container issue

    by  pap@commaro.com »  2011/06/07 20:01

    Hello,

    could you please post the entire stacktrace of the exception ?

    Thanks,
    Benjamin

    Benjamin Papez (pap@commaro.com)

    Number of messages  220
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Container issue

    by  equinox »  2011/06/07 20:01

    No problem (I'm putting the full set of what comes up when displaying a page - so in two posts):

    2009-11-26 09:05:01,445: INFO [Jahia] - Processed [/cms/site/eqWebNew/op/preview/pid/10
    2] user=[root] ip=[127.0.0.1] sessionID=[E7199F251BD0FB0C4496109B1105F64A] in [140ms]
    2009-11-26 09:06:46,900: ERROR [JahiaPageNodeImpl] - Cannot get container
    javax.jcr.RepositoryException
    at org.jahia.services.content.impl.jahia.JahiaContainerListNodeImpl.lt;init
  • Re: Container issue
    2011/06/07 20:01

    equinox No problem (I'm putting the full set of what comes up when displaying a page - so in two posts):<br/><br/>2009-11-26 09:05:01,445: INFO [Jahia] - Processed [/cms/site/eqWebNew/op/preview/pid/10<br/>2] user=[root] ip=[127.0.0.1] sessionID=[E7199F251BD0FB0C4496109B1105F64A] in [140ms]<br/>2009-11-26 09:06:46,900: ERROR [JahiaPageNodeImpl] - Cannot get container<br/>javax.jcr.RepositoryException<br/> at org.jahia.services.content.impl.jahia.JahiaContainerListNodeImpl.lt;init

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

    Re: Container issue

    by  equinox »  2011/06/07 20:01

    Part 2:

    2009-11-26 09:06:47,150: ERROR [JahiaPageNodeImpl] - Cannot get container
    javax.jcr.RepositoryException
    at org.jahia.services.content.impl.jahia.JahiaContainerListNodeImpl.lt;init
  • Re: Container issue
    2011/06/07 20:01

    equinox Part 2:<br/><br/>2009-11-26 09:06:47,150: ERROR [JahiaPageNodeImpl] - Cannot get container<br/>javax.jcr.RepositoryException<br/> at org.jahia.services.content.impl.jahia.JahiaContainerListNodeImpl.lt;init

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

    Re: Container issue

    by  pap@commaro.com »  2011/06/07 20:01

    Hello,

    thanks for the stacktrace - unfortunately the same exception is printed out twice, so you wouldn't have to attach the second iteration.

    Anyway, I'm not sure what the real problem is here, I guess that you alredy get an exception when starting up the server and when the CND files is read. Can you please check ? Do you perhaps get an error saying that there is a syntax error in the CND or that you changed a definition, where automatic migration to the new definition is not possible ?

    Regards,
    Benjamin

    Benjamin Papez (pap@commaro.com)

    Number of messages  220
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re: Container issue

    by  equinox »  2011/06/07 20:01

    Hi Benjamin,

    Looks like your right, on startup I had a look through, and found these messages:

    2009-11-27 13:57:10,542: WARN [JahiaContainerDefinitionsRegistry] - Definition for container website_templates_news_title_box has changed
    2009-11-27 13:57:10,558: WARN [JahiaContainerDefinitionsRegistry] - Structure has changed
    2009-11-27 13:57:10,792: WARN [JahiaContainerDefinitionsRegistry] - Definition for container website_templates_static_mainContent_box has changed
    2009-11-27 13:57:10,792: WARN [JahiaContainerDefinitionsRegistry] - Structure has changed
    2009-11-27 13:57:10,854: WARN [JahiaContainerDefinitionsRegistry] - Definition for container website_templates_static_rightInfo_box_lastNewsContainer has changed
    2009-11-27 13:57:10,854: WARN [JahiaContainerDefinitionsRegistry] - Structure has changed

    So I think it is the changes I've been making as I put this together. So what do I need to do to clear this up?
    When I first got it I tried deleting all the data, removing containers etc. But it didn't seem to make any difference?

    Thanks for your help,

    Matt
  • Re: Container issue
    2011/06/07 20:01

    equinox Hi Benjamin,<br/><br/>Looks like your right, on startup I had a look through, and found these messages:<br/><br/>2009-11-27 13:57:10,542: WARN [JahiaContainerDefinitionsRegistry] - Definition for container website_templates_news_title_box has changed<br/>2009-11-27 13:57:10,558: WARN [JahiaContainerDefinitionsRegistry] - Structure has changed<br/>2009-11-27 13:57:10,792: WARN [JahiaContainerDefinitionsRegistry] - Definition for container website_templates_static_mainContent_box has changed<br/>2009-11-27 13:57:10,792: WARN [JahiaContainerDefinitionsRegistry] - Structure has changed<br/>2009-11-27 13:57:10,854: WARN [JahiaContainerDefinitionsRegistry] - Definition for container website_templates_static_rightInfo_box_lastNewsContainer has changed<br/>2009-11-27 13:57:10,854: WARN [JahiaContainerDefinitionsRegistry] - Structure has changed<br/><br/>So I think it is the changes I've been making as I put this together. So what do I need to do to clear this up? <br/>When I first got it I tried deleting all the data, removing containers etc. But it didn't seem to make any difference?<br/><br/>Thanks for your help,<br/><br/>Matt

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

    Re: Container issue

    by  pap@commaro.com »  2011/06/07 20:01

    Hello,

    the content repository is quite sensitive to changes of content definitions for already created content. It distinguishes between minor and major changes.
    Minor changes (e.g. adding a new property to to the node - a field for a container or a whole container list into a page) should be handled without the loss of existing content.
    Major changes (e.g. changing of a property type, changing the parent type etc.) cannot be handled for the existing content as they are structure changes.

    There is no problem at all for adding new definitions or modifying definitions, where the content was not created yet. Once the content is created it also does not help to delete it again.

    So in your case - for now - you would need to re-install the site. You could first export the data from the current site and then import it into the new site.

    Hope this helps.
    Regards,
    Benjamin

    Benjamin Papez (pap@commaro.com)

    Number of messages  220
    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