Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

MMBase 1.9.5

4 views
Skip to first unread message

Robin Vanspauwen

unread,
Dec 1, 2010, 8:30:04 AM12/1/10
to mmbase-...@googlegroups.com
Hi everyone,

What am I doing wrong when I am deploying a new MMBase 1.9.5 webapp (empty database)? I am using cloudcontext for security. This is a log snippet:

14:18:07,718 WAR security.implementation.cloudcontext.BasicContextProvider - Could not find context 'admin' using default context 'default'
14:18:07,719 ERR security.implementation.cloudcontext.BasicContextProvider - Could not find default context 'default'.
14:18:07,728 WAR security.implementation.cloudcontext.BasicContextProvider - Could not find context 'security' using default context 'default'
14:18:07,728 ERR security.implementation.cloudcontext.BasicContextProvider - Could not find default context 'default'.
14:18:07,731 ERR mmbase.module.tools.ApplicationResult - Insert of node admin failed. Field 'defaultcontext' with type NODE is not allowed to have a null value. The referenced node is not found. Try to reorder the nodes so the referenced node is imported before this one.
14:18:07,733 ERR mmbase.module.tools.ApplicationResult - Insert of node foo failed. Field 'defaultcontext' with type NODE is not allowed to have a null value. The referenced node is not found. Try to reorder the nodes so the referenced node is imported before this one.
14:18:07,735 ERR mmbase.module.tools.ApplicationResult - Insert of node anonymous failed. Field 'defaultcontext' with type NODE is not allowed to have a null value. The referenced node is not found. Try to reorder the nodes so the referenced node is imported before this one.
14:18:07,813 ERR mmbase.module.tools.ApplicationInstaller - Problem installing application : Security.xml, cause: Insert of node admin failed. Field 'defaultcontext' with type NODE is not allowed to have a null value. The referenced node is not found. Try to reorder the nodes so the referenced node is imported before this one.
Insert of node foo failed. Field 'defaultcontext' with type NODE is not allowed to have a null value. The referenced node is not found. Try to reorder the nodes so the referenced node is imported before this one.
Insert of node anonymous failed. Field 'defaultcontext' with type NODE is not allowed to have a null value. The referenced node is not found. Try to reorder the nodes so the referenced node is imported before this one.

Thanks! Robin

André van Toly

unread,
Dec 9, 2010, 12:41:47 PM12/9/10
to mmbase-...@googlegroups.com
Hi,

But it went away after you started the webapp for the second time? Since after restarting all needed nodes were installed?

---André

> --
> You received this message because you are subscribed to the Google Groups "mmbase-discuss" group.
> To post to this group, send email to mmbase-...@googlegroups.com.
> To unsubscribe from this group, send email to mmbase-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mmbase-discuss?hl=en.

--
André van Toly

M: +31(0)627233562
------------------------------------------------------------------~~<<>>~~

Jacobjob Koster

unread,
Dec 10, 2010, 7:27:39 AM12/10/10
to mmbase-...@googlegroups.com
On 9-12-2010 18:41, Andr� van Toly wrote:
> Hi,
>
> But it went away after you started the webapp for the second time? Since after restarting all needed nodes were installed?
>
> ---Andr�

It seems that you need to have the default context filled in, in 1.9.5.
Before at 1.9.0 we used, it was not needed. Some code in CMSc we are
using for it, can be found here:
https://scm.mmbase.org/CMSContainer/trunk/CMSContainer/cmsc/security/src/java/com/finalist/cmsc/security/SecurityUtil.java

Jacobjob

Michiel Meeuwissen

unread,
Dec 14, 2010, 9:18:10 AM12/14/10
to mmbase-...@googlegroups.com
2010/12/1 Robin Vanspauwen <robinva...@gmail.com>:

> What am I doing wrong when I am deploying a new MMBase 1.9.5 webapp (empty
> database)? I am using cloudcontext for security. This is a log snippet:
> 14:18:07,718 WAR security.implementation.cloudcontext.BasicContextProvider -
> Could not find context 'admin' using default context 'default'
> 14:18:07,719 ERR security.implementation.cloudcontext.BasicContextProvider -
> Could not find default context 'default'.
> 14:18:07,728 WAR security.implementation.cloudcontext.BasicContextProvider -
> Could not find context 'security' using default context 'default'
> 14:18:07,728 ERR security.implementation.cloudcontext.BasicContextProvider -
> Could not find default context 'default'.

This were read in the wrong order. I fixed in in the 1.9 branch.
I also solved the related bug:
http://www.mmbase.org/jira/browse/MMB-1998

It boils down down to that node field which are filled by an
application _must_ be nullable. But the 'defaultcontext' is logically
a required field.

We will release a 1.9.6 soon, but in the mean time there should be
available SNAPSHOT builds.

Michiel


--
mihxil'  http://meeuw.org
nl_NL eo_XX en_US

Robin Vanspauwen

unread,
Dec 15, 2010, 2:53:08 AM12/15/10
to mmbase-...@googlegroups.com
I will check the mmbase snapshot build somewhere this week.

Thanks!

Reply all
Reply to author
Forward
0 new messages