[xwiki-users] XWiki 2 ML 4 .xar import error
Hello everyone, Tried setting up XWiki 2 ML4 as a fresh installation on a test machine. The installation went fine. However, importing the .xar file for XWiki 2 ML 4 throws the following error: Wrapped Exception: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'save' in class com.xpn.xwiki.api.Document threw exception com.xpn.xwiki.XWikiException: Error number 9001 in 9: Access denied in edit mode on document XWiki.XWikiPreferences at /templates/admin.vm[line 58, column 26] at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException( ASTMethod.java:337) . When I tried again, it takes me to the XWiki preferences page but the page says it is locked in edit mode by XWiki.Guest. Clicking force edit throws the above mentioned error again. Is anyone else too facing the same issue. Did I miss out on anything critical during setup. The machine is the same where a test version of XWiki 2 ML 3 works just fine.
I downloaded the Generic Installer, installed it and when showing the XWiki Dashboard I get an exception from the menuview.vm caused by the DB upgrade. This is what I see first in the console: 009-08-27 15:47:21,258 [http://localhost:8080/xwiki/bin/view/Main/] [http://localhost:8080/xwiki/bin/view/Main/?null] INFO .AbstractXWikiMigrationManager - New storage version is now [15429] org.hibernate.MappingException: Unknown entity: com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550) at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:98) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187) at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172) at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70) Cheers Andreas Schaefer CEO of Madplanet.com Inc. EMail: andreas.schaefer@madplanet.com schaefera@me.com Twitter: andy_mpc AIM: schaefera@me.com On Wednesday, August 26, 2009, at 06:29PM, "Dilipkumar Jadhav" <jadhav.dilipkumar@gmail.com> wrote:
Hello everyone,
Tried setting up XWiki 2 ML4 as a fresh installation on a test machine.
The installation went fine. However, importing the .xar file for XWiki 2 ML 4 throws the following error:
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'save' in class com.xpn.xwiki.api.Document threw exception com.xpn.xwiki.XWikiException: Error number 9001 in 9: Access denied in edit mode on document XWiki.XWikiPreferences at /templates/admin.vm[line 58, column 26]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException( ASTMethod.java:337)
.
When I tried again, it takes me to the XWiki preferences page but the page says it is locked in edit mode by XWiki.Guest. Clicking force edit throws the above mentioned error again.
Is anyone else too facing the same issue. Did I miss out on anything critical during setup.
The machine is the same where a test version of XWiki 2 ML 3 works just fine.
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
On a side note I checked what is in SVN and built the entire application from scratch. The generic installer is failing there the same way. In addition the built from 2 days ago (8/25/09) does work fine meaning the error was introduced in the last two days. - Andreas Schaefer On Thursday, August 27, 2009, at 04:00PM, "Andreas Schaefer" <schaefera@me.com> wrote:
I downloaded the Generic Installer, installed it and when showing the XWiki Dashboard I get an exception from the menuview.vm caused by the DB upgrade. This is what I see first in the console:
009-08-27 15:47:21,258 [http://localhost:8080/xwiki/bin/view/Main/] [http://localhost:8080/xwiki/bin/view/Main/?null] INFO .AbstractXWikiMigrationManager - New storage version is now [15429] org.hibernate.MappingException: Unknown entity: com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550) at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:98) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187) at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172) at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. EMail: andreas.schaefer@madplanet.com schaefera@me.com Twitter: andy_mpc AIM: schaefera@me.com
On Wednesday, August 26, 2009, at 06:29PM, "Dilipkumar Jadhav" <jadhav.dilipkumar@gmail.com> wrote:
Hello everyone,
Tried setting up XWiki 2 ML4 as a fresh installation on a test machine.
The installation went fine. However, importing the .xar file for XWiki 2 ML 4 throws the following error:
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'save' in class com.xpn.xwiki.api.Document threw exception com.xpn.xwiki.XWikiException: Error number 9001 in 9: Access denied in edit mode on document XWiki.XWikiPreferences at /templates/admin.vm[line 58, column 26]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException( ASTMethod.java:337)
.
When I tried again, it takes me to the XWiki preferences page but the page says it is locked in edit mode by XWiki.Guest. Clicking force edit throws the above mentioned error again.
Is anyone else too facing the same issue. Did I miss out on anything critical during setup.
The machine is the same where a test version of XWiki 2 ML 3 works just fine.
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
On Aug 28, 2009, at 3:48 AM, Andreas Schaefer wrote:
On a side note I checked what is in SVN and built the entire application from scratch. The generic installer is failing there the same way. In addition the built from 2 days ago (8/25/09) does work fine meaning the error was introduced in the last two days.
Yes thanks Andreas, this was introduced by the Activity Stream integration I guess. I wonder why our functional tests didn't pick this one. Is the error happening only on the dashboard page? Thanks -Vincent
- Andreas Schaefer
On Thursday, August 27, 2009, at 04:00PM, "Andreas Schaefer" <schaefera@me.com
wrote: I downloaded the Generic Installer, installed it and when showing the XWiki Dashboard I get an exception from the menuview.vm caused by the DB upgrade. This is what I see first in the console:
009-08-27 15:47:21,258 [http://localhost:8080/xwiki/bin/view/Main/] [http://localhost:8080/xwiki/bin/view/Main/?null] INFO .AbstractXWikiMigrationManager - New storage version is now [15429] org.hibernate.MappingException: Unknown entity: com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl at org .hibernate .impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java: 550) at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java: 1338) at org .hibernate .event .def .AbstractSaveEventListener .saveWithGeneratedId(AbstractSaveEventListener.java:98) at org .hibernate .event .def .DefaultSaveOrUpdateEventListener .saveWithGeneratedOrRequestedId (DefaultSaveOrUpdateEventListener.java:187) at org .hibernate .event .def .DefaultSaveEventListener .saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33) at org .hibernate .event .def .DefaultSaveOrUpdateEventListener .entityIsTransient(DefaultSaveOrUpdateEventListener.java:172) at org .hibernate .event .def .DefaultSaveEventListener .performSaveOrUpdate(DefaultSaveEventListener.java:27) at org .hibernate .event .def .DefaultSaveOrUpdateEventListener .onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. EMail: andreas.schaefer@madplanet.com schaefera@me.com Twitter: andy_mpc AIM: schaefera@me.com
On Wednesday, August 26, 2009, at 06:29PM, "Dilipkumar Jadhav" <jadhav.dilipkumar@gmail.com
wrote: Hello everyone,
Tried setting up XWiki 2 ML4 as a fresh installation on a test machine.
The installation went fine. However, importing the .xar file for XWiki 2 ML 4 throws the following error:
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'save' in class com.xpn.xwiki.api.Document threw exception com.xpn.xwiki.XWikiException: Error number 9001 in 9: Access denied in edit mode on document XWiki.XWikiPreferences at /templates/ admin.vm[line 58, column 26]
at org .apache .velocity.runtime.parser.node.ASTMethod.handleInvocationException( ASTMethod.java:337)
.
When I tried again, it takes me to the XWiki preferences page but the page says it is locked in edit mode by XWiki.Guest. Clicking force edit throws the above mentioned error again.
Is anyone else too facing the same issue. Did I miss out on anything critical during setup.
The machine is the same where a test version of XWiki 2 ML 3 works just fine.
Thanks for the report, the issue has been fixed: http://jira.xwiki.org/jira/browse/XE-485 It will be shipped with 2.0RC1, in the meantime you can edit WEB-INF/hibernate.cfg.xml and add the following line after the other resources inclusions (xwiki and feeds.hbm.xml): <mapping resource="activitystream.hbm.xml"/> Thanks, JV. On Fri, Aug 28, 2009 at 1:00 AM, Andreas Schaefer<schaefera@me.com> wrote:
I downloaded the Generic Installer, installed it and when showing the XWiki Dashboard I get an exception from the menuview.vm caused by the DB upgrade. This is what I see first in the console:
009-08-27 15:47:21,258 [http://localhost:8080/xwiki/bin/view/Main/] [http://localhost:8080/xwiki/bin/view/Main/?null] INFO .AbstractXWikiMigrationManager - New storage version is now [15429] org.hibernate.MappingException: Unknown entity: com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550) at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338) at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:98) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187) at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172) at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27) at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
Cheers
Andreas Schaefer CEO of Madplanet.com Inc. EMail: andreas.schaefer@madplanet.com schaefera@me.com Twitter: andy_mpc AIM: schaefera@me.com
On Wednesday, August 26, 2009, at 06:29PM, "Dilipkumar Jadhav" <jadhav.dilipkumar@gmail.com> wrote:
Hello everyone,
Tried setting up XWiki 2 ML4 as a fresh installation on a test machine.
The installation went fine. However, importing the .xar file for XWiki 2 ML 4 throws the following error:
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'save' in class com.xpn.xwiki.api.Document threw exception com.xpn.xwiki.XWikiException: Error number 9001 in 9: Access denied in edit mode on document XWiki.XWikiPreferences at /templates/admin.vm[line 58, column 26]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException( ASTMethod.java:337)
.
When I tried again, it takes me to the XWiki preferences page but the page says it is locked in edit mode by XWiki.Guest. Clicking force edit throws the above mentioned error again.
Is anyone else too facing the same issue. Did I miss out on anything critical during setup.
The machine is the same where a test version of XWiki 2 ML 3 works just fine.
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
participants (4)
-
Andreas Schaefer -
Dilipkumar Jadhav -
Jean-Vincent Drean -
Vincent Massol