How do I allow Kerberos authentication for just one of my XWiki's in
the xwiki farm?
I had an AD LDAP authentication setup, but we're moving to a Kerberos
structure for just the one xwiki.
-Do I need to comment out all the LDAP parameters?
-How do I pass the Kerberos Authentications to just one XWiki in the
farm?
-In your documentation you mention ":Place the authkerb.jar jar in the
WEB-INF/lib directory of Xwiki in Apache Tomcat." Where is the
authkerb.jar file?
Sam
Hi,
we are running XWiki 1.7.1 on Tomcat 6 with MS-SQL.
When deleting attachments, in general, everything works fine. But on some
files we get a hibernate exception. We can't figure out why this error
appers with some attachments. Here's the exception:
A problem occured while trying to service your request. Please contact the
support if this happens again.
Detailed information:
Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: The database returned no natively generated identity
value
com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate
execute
Wrapped Exception: The database returned no natively generated identity
value
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1052)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.executeWrite(XWikiHibernateBaseStore.java:1098)
at
com.xpn.xwiki.store.hibernate.HibernateAttachmentRecycleBinStore.saveToRecycleBin(HibernateAttachmentRecycleBinStore.java:83)
at
com.xpn.xwiki.doc.XWikiDocument.deleteAttachment(XWikiDocument.java:2799)
at
com.xpn.xwiki.doc.XWikiDocument.deleteAttachment(XWikiDocument.java:2782)
at
com.xpn.xwiki.web.DeleteAttachmentAction.action(DeleteAttachmentAction.java:72)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:215)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:135)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Wrapped Exception:
org.hibernate.HibernateException: The database returned no natively
generated identity value
at
org.hibernate.id.IdentifierGeneratorFactory.getGeneratedIdentity(IdentifierGeneratorFactory.java:67)
at
org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:77)
at
org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
at
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2163)
at
org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2643)
at
org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:51)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
at
org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
at
org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
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)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
at
com.xpn.xwiki.store.hibernate.HibernateAttachmentRecycleBinStore$1.doInHibernate(HibernateAttachmentRecycleBinStore.java:87)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1046)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.executeWrite(XWikiHibernateBaseStore.java:1098)
at
com.xpn.xwiki.store.hibernate.HibernateAttachmentRecycleBinStore.saveToRecycleBin(HibernateAttachmentRecycleBinStore.java:83)
at
com.xpn.xwiki.doc.XWikiDocument.deleteAttachment(XWikiDocument.java:2799)
at
com.xpn.xwiki.doc.XWikiDocument.deleteAttachment(XWikiDocument.java:2782)
at
com.xpn.xwiki.web.DeleteAttachmentAction.action(DeleteAttachmentAction.java:72)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:215)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:135)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Does anybody know how we can figure out why this happens and how we can
solve this issue?
THX,
Steve
--
View this message in context: http://n2.nabble.com/Hibernate-exception-when-trying-to-delete-attachment-t…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Ari Oinas wrote:
> - It would be nice if search -method could also search rendered contents.
> For example if I have a macro on one page, which trancludes text from
> another page, page containing the macro doesn't show in search results. I
> think that this feature is very hard to implement very efficiently. And
> theres definitely should be possibility to turn it on or off. Maybe it would
> require a "copy" of renderedContent to be stored on the database and thus
> increases database size.
This could be done using Lucene, once we start refactoring our
lucene-based search.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
On Mar 19, 2009, at 8:48 AM, Ari Oinas wrote:
> Hi,
>
> And thanks for your efforts regarding this issue. I found the
> problem which
> caused my translations not to work.
>
>
Happy that you solved your problem.
> Still, some things to consider:
>
> - should renderContent function also handle pageId so that language
> could be
> embedded in the end of pageId? Same way as getPage handles pageId.
>
> - getPages function returns PageSummaries with default language
> pageTitles.
> It would be convenient to call this function with language id, so that
> pagetitles would be in correct language. Now I have to loop through
> every
> pagesummary and get page title to get correct pageTitles to show on
> navigation tree.
>
Thank you for spotting these improvements.
I will open Jira issues in order to add these feature in the next
release.
> Thanks for superb customer support!
>
You are welcome.
Cheers,
Fabio
Hi,
I'm trying to access session from a Groovy class, but I'm not successful.
When I have a simple script:
<%
session = request.getSession(true);
counter = session.getValue("counter")
%>
- everything is OK.
But when I have a class:
class User {
def counter = 0;
void setUser() {
session = request.getSession(true);
counter = session.getValue("counter")
}
String showCounter() {
return this.counter;
}
}
The Error message is No such property: request for class: User.
So how should I access session from the class?
Thanks,
Zik
Hi guys,
I created a few days ago some documents based on my own class which
has databse list properties. In the respective template fields, there
was no entry selected when creating the document which is the
behaviour I need. When I now create a document based on the same class
the first entry is selected a priori and there is no way to deselect,
i.e. have nothing selected, it. The old documents still have the
ability to deselect the entry in inline editing mode. Can you guys
please tell me, what might have happened here or could it be a bug? I
dont't understand this apparently undeterministic behaviour. Many
thanx in advance. BTW, this is in XWiki 1.7.2.
Cheers
Sebastian
Hi,
I recreated your scenario an published a basic XmlRpc proxy on this page:
- http://xoffice.xwiki.org/xwiki/bin/view/CodeBase/XmlRpcProxy
Getting the wiki content of a translated page seems to work fine. Here's
how it can be used:
Page pageInfo = proxy.GetPage(token, "Main.WebHome?language=fr");
String frenchContent = pageInfo.content;
The language parameter value must be a value present in the translations
array.
Notes:
- The translations array contains all available translations for that
page, except the default language of the page.
- The default language of the page is the default language of the wiki
at the moment when the page is created. If ,in time, you change the
wiki's default language, the page default language for the page will not
change.
- If you need the rendered content you will need to make another call to
this API method:
public String renderContent(String token, String space, String pageId, String content) throws Exception;
Please let me know of your progress
Thanks,
Florin Ciubotaru
Ari Oinas wrote:
> Ok, my setup is as follows:
>
> Xwiki Enterprise 1.71 installed on Apache Tomcat server (Win Xp Pro Sp3) and
> it's working fine.
>
> Im trying to create .NET Managed -application using C# (Visual Studio 2008)
> which connects to Xwiki and displays Xwiki content on a dialog.
> Im using CookComputing.XmlRpc -library.
>
> So far I've managed to do the following:
> - Connect and login successfully to Xwiki
> - Fetch pagesummaries, pages and attachments from Xwiki and displayed them
> in Windows.Forms.WebBrowser component.
>
> I have created a space in Xwiki which holds the pages I want to show in my
> application. (Space name contains spaces, is this a problem?)
>
> I have created a page inside this space and also translated it to another
> language. This page is displayed properly in Xwiki web-client. Page is
> created using Xwiki 1.0 syntax.
>
> If I debug my program and inspect PageSummary -properties, I can see that
> there is a translation called "en" in translations array.
>
> Best regards,
>
> paristo
>
>
> -----Original Message-----
> From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf Of
> Fabio Mancinelli
> Sent: 17. maaliskuuta 2009 15:07
> To: XWiki Users
> Subject: Re: [xwiki-users] Translations cannot be fetched using XML/RPC
> interface
>
>
> On Mar 17, 2009, at 1:37 PM, Ari Oinas wrote:
>
>
>> Hi,
>>
>>
>>
>> My problem is that I cannot fetch translated pages from Xwiki using
>> XML/RPC
>> interface.
>>
>>
>>
>> I have tried it like this:
>>
>> xwikiInterface.getPage(iToken, Space.Page + "?language=en");
>>
>> but it returns the default page.
>>
>>
> Hi,
>
> could you tell me your exact setup?
>
> I tried with a multilanguage wiki and a Main.WebHome translated in fr
> and it.
>
> rpc.getPage("Main.WebHome?language=en").getContent() -> English
> rpc.getPage("Main.WebHome?language=it").getContent() -> Italiano
> rpc.getPage("Main.WebHome?language=fr").getContent() -> Français
>
> The available translations are accessible using the
> Page.getTranslations()
>
> In the previous example, this call returns [it, fr] (Maybe here we
> should explicitly add also the default translation)
>
> Let me know.
>
> Cheers,
> Fabio
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>
Hello all,
I'm looking for a real tutorial (step by step or How to) for creating skins and template for XWiki ... I'm Looking for the Xwiki Documentation ... and it's not really understable ...
Someone have some knoewledge about ?
Thanx,
Azz ..
PS : If someone write a good Tutorial, I'll paid him/her beer in a wonderfull pub in Paris ...
HI
Is there a way of filtering tags using the new TagCloud?
1. I want to create a filter to display tags based on space name.
2. I want to create a filter to display tags based on a value in doc
class property (ie. Show tags where doc property topic=education).
Is there any documentation on tag API (I seen there is stuff like
$xwiki.tag.getTags()) ?
Thanks
Ajdin
--------------------------------------------------------
NOTICE
This message and any files transmitted with it is intended for the addressee only and may contain information that is confidential or privileged. Unauthorised use is strictly prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise use this message, except for the purpose of delivery to the addressee.
Any views or opinions expressed within this e-mail are those of the author and do not necessarily represent those of Coventry University.