Tx a lot but ... i knew ... however being a CE I have no access to
update scripts and follo the other instructions:
* /The |update35to36| script is currently only available for
licensed users of Magnolia Enterprise Edition using Jackrabbit. If
you have no license, you'll have to:/
o /Export all your data, from all workspaces. Check the backup
scripts
<http://confluence.magnolia.info/display/WIKI/Backup+and+Restore+JSP+Scripts>
provided on the wiki for a convenient way of performing
this. (Do not forget to customize the scripts to add other
workspaces if needed)/
o /Import it in a fresh 3.6 instance./
o /Restart the webapp in order to have the update mechanism
applied on your configuration./
hence I exported from the 3.0.1 and imported in fresh 4.1.1 as suggested
(unless there are further steps in moving to 4.1.1)
As for the
/If you can not use the |updatenodetypes| and/or |update35to36|
scripts, here are some details on how to achieve similar
functionality: /
/Nodetypes definitions/
/The Magnolia node types have changed: |mgnl:content|,
|mgnl:contentNode|, |mgnl:metaData| and other module specific node
types now have |mix:referenceable| has a supertype (along with
|nt:hierarchyNode| as before); |mgnl:metaData| should not have
|mix:versionable| as a supertype anymore. /
not fully sure about what to do but exporting template definition it
seems everything ok (and congruent with the template dcefinition from
the samples) ...
hence I'm a bit stuck ...
xml follows just in case it helps understanding better
<sv:node sv:name="mytemplate">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>mgnl:contentNode</sv:value>
</sv:property>
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
<sv:value>mix:lockable</sv:value>
</sv:property>
<sv:property sv:name="jcr:uuid" sv:type="String">
<sv:value>7402ba24-106b-48f3-9555-c3650ef43abc</sv:value>
</sv:property>
<sv:property sv:name="name" sv:type="String">
<sv:value>mytemplate</sv:value>
</sv:property>
<sv:property sv:name="templatePath" sv:type="String">
<sv:value>/templates/jsp/mytemplates/soci/main.jsp</sv:value>
</sv:property>
<sv:property sv:name="title" sv:type="String">
<sv:value>mytemplate</sv:value>
</sv:property>
<sv:property sv:name="type" sv:type="String">
<sv:value>jsp</sv:value>
</sv:property>
<sv:property sv:name="visible" sv:type="String">
<sv:value>true</sv:value>
</sv:property>
<sv:node sv:name="MetaData">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>mgnl:metaData</sv:value>
</sv:property>
<sv:property sv:name="mgnl:authorid" sv:type="String">
<sv:value>superuser</sv:value>
</sv:property>
<sv:property sv:name="mgnl:creationdate" sv:type="Date">
<sv:value>2009-11-11T16:19:32.859+01:00</sv:value>
</sv:property>
<sv:property sv:name="mgnl:lastmodified" sv:type="Date">
<sv:value>2009-11-12T10:06:52.178+01:00</sv:value>
</sv:property>
</sv:node>
<sv:node sv:name="subTemplates">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>mgnl:contentNode</sv:value>
</sv:property>
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
<sv:value>mix:lockable</sv:value>
</sv:property>
<sv:property sv:name="jcr:uuid" sv:type="String">
<sv:value>a64c5cba-8f0b-448b-8e74-c7494f877ba4</sv:value>
</sv:property>
<sv:node sv:name="MetaData">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>mgnl:metaData</sv:value>
</sv:property>
<sv:property sv:name="mgnl:authorid" sv:type="String">
<sv:value>superuser</sv:value>
</sv:property>
<sv:property sv:name="mgnl:creationdate" sv:type="Date">
<sv:value>2009-11-11T16:22:05.535+01:00</sv:value>
</sv:property>
<sv:property sv:name="mgnl:lastmodified" sv:type="Date">
<sv:value>2009-11-11T16:23:12.348+01:00</sv:value>
</sv:property>
</sv:node>
<sv:node sv:name="edit">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>mgnl:contentNode</sv:value>
</sv:property>
<sv:property sv:name="jcr:mixinTypes" sv:type="Name">
<sv:value>mix:lockable</sv:value>
</sv:property>
<sv:property sv:name="jcr:uuid" sv:type="String">
<sv:value>371de8d2-4735-43c8-9a70-3a3be29eab7d</sv:value>
</sv:property>
<sv:property sv:name="extension" sv:type="String">
<sv:value>edit</sv:value>
</sv:property>
<sv:property sv:name="templatePath" sv:type="String">
<sv:value>/templates/jsp/mytemplate/soci/edit.jsp</sv:value>
</sv:property>
<sv:property sv:name="type" sv:type="String">
<sv:value>jsp</sv:value>
</sv:property>
<sv:node sv:name="MetaData">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>mgnl:metaData</sv:value>
</sv:property>
<sv:property sv:name="mgnl:authorid" sv:type="String">
<sv:value>superuser</sv:value>
</sv:property>
<sv:property sv:name="mgnl:creationdate" sv:type="Date">
<sv:value>2009-11-11T16:23:03.257+01:00</sv:value>
</sv:property>
<sv:property sv:name="mgnl:lastmodified" sv:type="Date">
<sv:value>2009-11-11T16:23:58.293+01:00</sv:value>
</sv:property>
</sv:node>
</sv:node>
</sv:node>
</sv:node>
Jan Haderka wrote:
The node types structure changed between 3.5.8 and 3.6 ... read the
release notes for version 3.6 to find out how to fix the problem.
HTH,
Jan
On Mon, 2009-11-23 at 09:38 +0100, [email protected] wrote:
Hi. I' setting up a Magnolia4.1 mvoing from a 3.0.1 (CE)
Loaded a set of templates (jsp) from previous version, and loaded
website content. All seems to be working fine, but whenever Magnolia
start I get a number of errors (2 for any of the defined templates)
as from following stack trace.
Triple-checked template/dialogs/para definitions and everything seems
ok (and also the site is running fine),but fear problems somewhere
else.
Anyone any idea?
Tx
Luca
stacktrace follows
2009-11-19 10:14:16,958 ERROR
info.magnolia.cms.core.DefaultContent : Exception caught
javax.jcr.UnsupportedRepositoryOperationException
at
org.apache.jackrabbit.core.NodeImpl.getUUID(NodeImpl.java:2965)
at
info.magnolia.cms.core.DefaultContent.getUUID(DefaultContent.java:837)
at
info.magnolia.cms.util.LazyContentWrapper.<init>(LazyContentWrapper.java:78)
at
info.magnolia.cms.util.SystemContentWrapper.<init>(SystemContentWrapper.java:62)
at
info.magnolia.content2bean.impl.Content2BeanTransformerImpl.setProperty(Content2BeanTransformerImpl.java:203)
at
info.magnolia.content2bean.impl.Content2BeanProcessorImpl.setProperties(Content2BeanProcessorImpl.java:210)
at
info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:101)
at
info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toMap(Content2BeanProcessorImpl.java:167)
at
info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:95)
at
info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:69)
at
info.magnolia.content2bean.Content2BeanUtil.toBean(Content2BeanUtil.java:151)
at
info.magnolia.content2bean.Content2BeanUtil.toBean(Content2BeanUtil.java:137)
at
info.magnolia.module.templating.TemplateManager.addTemplatesToCache(TemplateManager.java:160)
at
info.magnolia.module.templating.TemplateManager.cacheContent(TemplateManager.java:183)
at
info.magnolia.module.templating.TemplateManager.onRegister(TemplateManager.java:81)
at
info.magnolia.cms.beans.config.ObservedManager.register(ObservedManager.java:85)
at
info.magnolia.module.ModuleLifecycleContextImpl.initEntry(ModuleLifecycleContextImpl.java:93)
at
info.magnolia.module.ModuleLifecycleContextImpl.start(ModuleLifecycleContextImpl.java:85)
at
info.magnolia.module.ModuleManagerImpl.startModules(ModuleManagerImpl.java:355)
at
info.magnolia.module.ui.ModuleManagerWebUI.onStartup(ModuleManagerWebUI.java:80)
at
info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:108)
at info.magnolia.cms.servlets.MgnlServletContextListener
$2.exec(MgnlServletContextListener.java:184)
at
info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:377)
at
info.magnolia.cms.servlets.MgnlServletContextListener.startServer(MgnlServletContextListener.java:181)
at
info.magnolia.cms.servlets.MgnlServletContextListener.contextInitialized(MgnlServletContextListener.java:177)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
______________________________________________________________________
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------