Hi Everyone,
I just switched from the standalone install to a tomcat/mysql installation and now the Admin user can't install any extensions. Specifically, I am running Tomcat 7.0.34 with MySQL 5.1 on Windows Server 2008 R2 Standard and XWiki Enterprise 4.3. I imported the Default Wiki Xar file (xwiki-enterprise-ui-all-4.3.xar) and since the macros on the home page aren't working (Spaces, Tags, Send Message, and Activity Stream all state unknown macro) proceeded to login with the Admin user and navigated to the Extension Manager. I was surprised to see only one extension installed (XWiki Enterprise - UI All) instead of the 27 that came with the standalone version of XWiki. So I went to install some of the missing extensions and received the message "Admin right is required to install extension [org.xwiki.platform:xwiki-platform-wiki-manager-ui-4.3] on namespace [wiki:xwiki]." Which I hadn't received any messages like that when using the standalone version. I verified that the Admin user is in the XWikiAdminGroup and has Admin privileges. Are there other access controls that I need to modify for this? Is there some other configuration that I need to perform first? Any help is much appreciated.
Thanks,
Barry
Hi all,
I have installed XWiki on a fresh Ubuntu 12.04 server followed this
guide http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationViaAPT
My installation: XWiki 4.3, Postgres 9.1, tomcat6.
When I tried to navigate to XWiki from other LAN desktop, this error is
displayed:
HTTP Status 500 -
------------------------------------------------------------------------
*type* Exception report
*message*
*description* _The server encountered an internal error () that
prevented it from fulfilling this request._
*exception*
javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.TagClass]
Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
*root cause*
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.TagClass]
Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:414)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:483)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
*root cause*
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.TagClass]
Wrapped Exception: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:870)
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290)
com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404)
com.xpn.xwiki.XWiki.getDocument(XWiki.java:1447)
com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:824)
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:794)
com.xpn.xwiki.XWiki.<init>(XWiki.java:735)
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:394)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:483)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
*root cause*
org.hibernate.HibernateException: Can't find [/WEB-INF/hibernate.cfg.xml] for hibernate configuration
com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.getConfigurationInputStream(DefaultHibernateSessionFactory.java:143)
org.hibernate.cfg.Configuration.configure(Configuration.java:2157)
com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory$1.configure(DefaultHibernateSessionFactory.java:102)
com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:228)
com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:622)
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:746)
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290)
com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404)
com.xpn.xwiki.XWiki.getDocument(XWiki.java:1447)
com.xpn.xwiki.XWiki.initializeMandatoryClasses(XWiki.java:824)
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:794)
com.xpn.xwiki.XWiki.<init>(XWiki.java:735)
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:394)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:483)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:136)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
*note* _The full stack trace of the root cause is available in the
Apache Tomcat/6.0.35 logs._
------------------------------------------------------------------------
Apache Tomcat/6.0.35
I tried:
- Check the installation followed
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationPostgreSQL
xwiki database is created already by dbconfig
- Connect to Postgres DB as xwiki user successfully. I see that
there are no relations (I think it is correct).
Do you have any idea?
--
Viet Hoang
Hi,
The subject of this mail says it all but I will detail.
I'm trying to follow some standard rules, whenever possible, in my contrib
project.
So, concerning translation properties recommendations [1], for the pretty
name of a field (named "from") of a class (named "MailClass", from space
"MailArchiveCode"), from module
org.xwik.contrib:xwiki-contrib-mailarchive-ui, I would maybe use:
contrib.mailarchive-ui.MailArchiveCodeMailClassFromPrettyName
or
contrib.mailarchive-ui.MailArchiveCodeMailClassFrom
or anything else for the last part really...
I could consider that a good candidate for the "top level project" could be
"contrib" in my case. I could also consider it to be "mailarchive" by the
way, as I'm clearly out of scope of that xwiki development practice.
But then if I follow [2], I find a completely different recommendation, and
it's even automated if I apply it (for pretty name).
I would then use:
MailArchiveCode.MailClass_from
Then if I want to define another translation key for the "hint" of this
field, I could decide to append "Hint" or "_hint" or ".hint" to the
property I defined for the pretty name (ie the label in the form ?). Or
maybe there's some more automated way as for the pretty name, but I didn't
find it described in on x.org...
As I'm a curious guy I also checked [3], I know it's not a validated
document, but as anyway that use-case is already a bit out of scope ...
But it seems not to solve the problem, and I'm not sure to understand why
there's such distinction between a "class field label" (that should use
Space.Class_field) and a form label for a field of that class (that would
use <prefix>.label), as it really seems the same to me. Or it could be
different, but I think main use-case is to create an XClass, and create a
Sheet for it, and display a form for all fields from that class, point. In
rare cases, you might want to display another form on that same class in
another location (page/sheet), but it's unfrequent and it should be even
more unfrequent to use different labels in that case ... And usually your
end-users won't have to update the XClasses coming from your application,
so you don't really care about internationalizing the XClass in itself -
you care more about internationalizing the forms derived from that XClass.
Mixing all that together and shaking it a little, personnally, this is what
I would follow, for internationalizing a sheet displaying
MailArchiveCode.MailClass objects:
MailArchiveCode.MailClass_from=...
mailarchive.mails.x.from.label=$msg.get('MailArchiveCode.MailClass_from')
mailarchive.mails.x.from.hint=...
mailarchive.mails.x.from.help=...
...
## For livetable
mailarchive.mails.tableColumnHeaders.from=...
...
Here I used "mails" as the interesting (defining) part of the XClass
("mail") with an 's' (as you usually don't create a unique object from an
XClass...). I believe there should be something for 'x' level but I don't
know what exactly ("form", "class", "xclass", "fields" ?).
This also has the advantage of not following any defined rule :P
Maybe I misunderstand things, and maybe (certainly) this is all too much
far-fetched, but I like to follow standard ways as much as possible ... :-)
If there's nothing more defined (or to be defined) for a contrib project,
or any provided ui extension, then I'll do whatever comes to my mind and
sorry for disturb ;-)
BR,
Jeremie
[1]
http://dev.xwiki.org/xwiki/bin/view/Community/DevelopmentPractices#HTransla…
[2] http://platform.xwiki.org/xwiki/bin/view/DevGuide/TranslationsTutorial
[3] http://dev.xwiki.org/xwiki/bin/view/Drafts/L10N+Conventions
Hi Marius,
This works, but my problem is that I have a xwiki page, I have a link on
this page, when I click on this link, a javascript function is called, with
the call, I want to include a new xwiki page at the bottom of the current
page without reloading the current old content (like appending a new page
to the current page without change of the old content), the new appended
content could be in edit or view mode.
My question is the approach you have here is to use display macro, how to
trigger this macro inside javascript code? also how to avoid reloading the
old content when appending new content? since in the old page I have some
search results listed, I do not want to lose it and make users have to
search again.
Thanks for your help.
David
On Mon, Nov 5, 2012 at 3:33 AM, Marius Dumitru Florea <
mariusdumitru.florea(a)xwiki.com> wrote:
> The display macro works for me as you would expect. For instance, if I
> create a page with this content:
>
> ----------8<----------
> {{velocity}}
> Current action: $xcontext.action
> {{/velocity}}
>
> {{display reference="Blog.BlogIntroduction"/}}
> ---------->8----------
>
> in view mode I can see the blog post preceded by "Current action:
> view" and in "Inline Form" edit mode I can edit the blog post, which
> is preceded by "Current action: edit".
>
> Hope this helps,
> Marius
>
> On Fri, Nov 2, 2012 at 10:18 PM, Geo Du <dddu88(a)gmail.com> wrote:
> > Hi Marius,
> >
> > Thanks for your response, it works when I use display macro to include
> the
> > testpage into the other page, but I need also to include (display) the
> page
> > with inline mode inside the other page, since user can click the edit
> pencil
> > button on the right corner of the testpage to edit it, right now the edit
> > button will lead to the testpage in inline mode but the testpage is not
> > inside the other page which originally include(display) the testpage.
> >
> > So how to include or display a page with inline mode into another page?
> >
> > Thanks for your help.
> >
> > David
> >
> > On Fri, Nov 2, 2012 at 3:06 AM, Marius Dumitru Florea
> > <mariusdumitru.florea(a)xwiki.com> wrote:
> >>
> >> On Thu, Nov 1, 2012 at 10:51 PM, Geo Du <dddu88(a)gmail.com> wrote:
> >> >
> >> > Hi All,
> >> >
> >> > I want to include one page into another page in terms of content
> instead
> >> > of
> >> > velocity code, for example, the Blog.WebHome is a page without
> velocity
> >> > code if you choose Edit->Wiki, but it has Blog.BlogClass if you select
> >> > Edit->Objects, from Blog.WebHome page, I can create a new post with
> tile
> >> > testpage, now the Blog.testpage is the new page created that I need to
> >> > include into another page, this testpage has no velocity code from
> >> > Edit_>Wiki. so how to include that page into a different page?
> >> >
> >>
> >> > I tried: include Macro, includeInContext Macro, includeTopic Macro,
> none
> >> > of
> >> > them displays the testpage for me, any idea?
> >>
> >> "display" is the key. You want to display not to include. See
> >> http://extensions.xwiki.org/xwiki/bin/view/Extension/Display+Macro .
> >>
> >> Hope this helps,
> >> Marius
> >>
> >> >
> >> > Thanks very much for your help.
> >> >
> >> > David
> >> > _______________________________________________
> >> > devs mailing list
> >> > devs(a)xwiki.org
> >> > http://lists.xwiki.org/mailman/listinfo/devs
> >> _______________________________________________
> >> devs mailing list
> >> devs(a)xwiki.org
> >> http://lists.xwiki.org/mailman/listinfo/devs
> >
> >
>
Hello,
Following Vertical Layout standards [1], I've written the following to
display a form (XE 4.3 standalone):
#set($class = $obj.xWikiClass)
{{html wiki="true"}}
<form action="." class="xform" name="form_server">
#foreach($prop in $class.properties)
<dl>
<dt><label for="MySpave.MyClass_0_$prop.name
">$prop.prettyName</label></dt>
<dd>$doc.display($prop.getName())</dd>
</dl>
#end
</form>
{{/html}}
In view mode, labels are correctly displayed uppercase, but in inline edit
mode, they switch to lowercase bold, which is not very nice.
I investigated, and in inline mode my <form> is removed, and replaced by
the encapsulating "inline" <form>. So to fix that, I decorated my form with
a div with class "xform". Is it the right way to do that ?
If so, I think the comment from [1] is not complete:
"Obs: The CSS classes have as parent the .xform class. This is supposed to
be used on the form tag, but if the styling is done inside dynamically
generated structures it can be used on other elements, like divs, as long
as the element remains the parent for the other form components."
It would not really be limited to dynamically generated structures, but
also to inline edit mode.
BR,
Jeremie
[1] - http://platform.xwiki.org/xwiki/bin/view/DevGuide/VerticalForms
I am out of the office until 12/17/2012.
Note: This is an automated response to your message "users Digest, Vol 65,
Issue 25" sent on 12/14/2012 22:53:24.
This is the only notification you will receive while this person is away.
Thanks Marius for your quick reply! This was happening using IE 9 (version 9.0.8112.16421), and by nothing happens, I mean it's like clicking a button on a design form. You can see the button depress and return, but nothing else takes place. No page reload, or anything. I have since tried on a different computer using FireFox and it is working there, so maybe this is a IE 9 specific issue. So I've been able to install the LDAP Application through the extension interface (unfortunately it still doesn't authenticate a user for me), but the Simple Forum Application fails because it couldn't find a dependency. Apparently the SpaceIndex Macro is needed, but I'm not finding any information on how to install it.
Thanks again,
Barry
On Tue, Dec 11, 2012 at 7:17 PM, Pape, Barry <Barry.Pape at nov.com<http://lists.xwiki.org/mailman/listinfo/users>> wrote:
> Hello,
>
> I have recently installed XWiki Enterprise 4.3 Standalone on Windows Server 2008 R2 and am unable to use the extension manager.
> Any extension I browse to, whether installed or uninstalled, does not respond to the show details or install buttons. I click the button and nothing happens. There are no messages logged in the console either.
I haven't seen this before. I would check with Firebug or any similar
browser tool to see if there are any JavaScript errors. Btw, what
browser are you using? And by "nothing happens" you mean not even a
page reload?
Hope this helps,
Marius
> I thought I could work around the issue by importing the xar files directly, which I did for both the ldap extension and the forum extension. The forum extension appears to be functioning even though it isn't listed as an extension or anywhere else except on the dashboard. Is this the correct behavior? The ldap extension also seemed to work, but it doesn't actually authenticate a user. In googling around, I fear that the extension dependencies aren't installed, but I'm not sure how to check that or what the dependencies are (I don't see them listed) to attempt manual installation of them. LDAP does show up under applications in the adm
> in menu, and I've gone through and tried configuring it both there and in the xwiki.config to no avail. I'd prefer to get the extension manager working so that we can easily install/uninstall extensions as needed, but any help with either the extension manager or getting the ldap extension to work are greatly appreciated.
>
> Thanks for reading and any suggestions you may have!
>
> Barry
> _______________________________________________
> users mailing list
> users at xwiki.org<http://lists.xwiki.org/mailman/listinfo/users>
> http://lists.xwiki.org/mailman/listinfo/users