Hello
did anyone succeeded in installing XWiki with HSQLDB and Jetty?
I am asking because this looks like the development default setup (as seen in
SVN, where a test case exists), but I can't find the way to make it work.
For example, how do I import the database? Where is the XML file to import? Is
there an ant task which does that (importdb seems not to work out of the box
and I don't find the configuration doc)?
Thanks,
Marc
Perhaps slightly off-topic:
Our poor overworked sysadmin has been having the devil of a time keeping
up with the content of robots.txt. Since this file is public
information by nature, I had no problem composing a useful one for him
for our XWiki instances - simply copied from the one at xwiki.org - but
he needs the same information for all the other apps deployed to his
Tomcat servers. Of course, he could do the same thing with the others,
if there were known to be accessible instances, but it really is outside
his normal purview, and it occurred to me that this is naturally a
component of an application's deployment.
So, my question is: Has anyone thought of putting an application's
description of searchable paths into a deployable file, to be appended
to (or better, merged into) robots.txt? and if so, is there a
more-or-less standard way of doing it? Less interesting at the moment
is: when will XWiki do this also? and is this JIRA fodder?
brain[sic]
Thanks Richard,
Got the solution to this with googling! IT is specific to LDAP with AD.
Check out the url if you are interested more.
http://forums.devshed.com/ldap-programming-76/javax-naming-authenticationex…
Thanks,
Mrudula
-----Original Message-----
From: Ryszard Lach [mailto:rla@debian.org]
Sent: Tuesday, September 05, 2006 12:40 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] LDAP Integration of xwiki
On Tue, Sep 05, 2006 at 11:12:36AM +0530, mrudula.madiraju(a)wipro.com wrote:
>
>
>
> I've been able to boil down the exact error to the one shown below. I
> tried a variety of combinations, but it doesn't seem to work with my
> company user id and password. Any pointers here?
Are you sure you can connect to your LDAP using your credentials?
I suggest to install some ldap client on your xwiki machine (e.g.
ldap-utils) and try to connect to LDAP with entered in xwiki.cfg values.
Taking your config try something like that:
> authentication.ldap=1
> authentication.ldap.server=blr-ec-dc01.wipro.com
> authentication.ldap.port=389
> authentication.ldap.check_level=1
> authentication.ldap.base_DN=dc=wipro,dc=com
> authentication.ldap.bind_DN=uid=wipro\<< my user id>>,ou=USERS,dc=wipro,dc=com
>
> authentication.ldap.bind_pass=<<my password>>
> authentication.ldap.UID_attr=Mrudula Madiraju
> authentication.ldap.fields_mapping=name=Mrudula Madiraju,last_name=sn,first_name=givenName,fullname=displayName,mail=mail,ldap_dn=dn
ldapsearch -h blr-ec-dc01.wipro.com -p 389 \
-D 'uid=wipro\<< my user id>>,ou=USERS,dc=wipro,dc=com'
-b 'dc=wipro,dc=com' \
-x -W \
'(<UID_attr>=<xwiki loginname>)'
As you can see I've used in search filter '<UID_attr>', becaues I
suppose that you don't have a field named 'Mrudula Madiraju' in you
LDAP ;-). If your ldap was Active Directory you would have
authentication.ldap.UID_attr=sAMAccountName
in xwiki.cfg, and search field
(sAMAccountName=<xwiki_loginname>)
in your ldapsearch test.
R.
--
"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
Hello,
I believe you can use the copyDocument() method. I use it to rename pages, I copy a document to a newly named document, then delete the old one.
All objects and attachments are also copied in the process, so that may interest you (as far as all objects are included in the template document I believe)
$xwiki.copyDocument($sourceDoc, $targetDoc)
Jeremie, Bousquet
GSE Solution CMO
Gemalto
Tel: +33 4 42 36 42 93
Avenue du Jujubier, Z.I Athelia IV
13705 La Ciotat, FRANCE
Jeremie.Bousquet(a)gemalto.com
www.gemalto.com <http://www.gemalto.com/>
________________________________
From: Esbach, Brandon [mailto:Esbachb@tycoelectronics.com]
Sent: vendredi 25 août 2006 12:58
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] "Clone" another documents objects when creating a new document
Hi All,
Is there any way to clone all objects in an existing document to a different document with one server request?
So that a template document can be maintained with default object values; and can be brought in painlessly to a new document.
Brandon Esbach
Software Engineer
M/A-Com Eurotec Operations
LoughMahon Technology Park,
Skehard Road,
Blackrock,
Cork, Ireland
Tel +353 21 4808305
I was wondering if it is possible to reference an xwiki document as source
for a FreeMind graph.
I have tried the following:
1) XWiki.TestMindMap document: a valid ".mm" freemind file -- obviously,
viewing this xwiki document causes Tomcat to complain.
2) XWiki.TestMindMap2 document:
[I have included the directive "xpage=raw" to stop XWiki from processing the
file before sending it to Freemind]
1.1 MindMap
#mindmap("HYPERLINK
"http://server-name:8080/xwiki/bin/view/XWiki/TestMindMap?xpage=raw"http://s
erver-name:8080/xwiki/bin/view/XWiki/TestMindMap?xpage=raw" "800" "600")
[View full screen>$doc.fullName?xpage=plain]
MindManager mindmap converted to Freemind using [Liberated
Computing>http://www.liberatedcomputing.org/mm2fm]
{pre}
<SCRIPT LANGUAGE="JavaScript">
function resize() {
if (navigator.appName.indexOf("Microsoft") != -1) {
width=document.body.clientWidth;
height=document.body.clientHeight;
} else {
var netscapeScrollWidth=15;
width=window.innerWidth - netscapeScrollWidth;
height=window.innerHeight-netscapeScrollWidth;
}
#if($request.xpage=="plain")
document.applets[0].width = width - 20;
#else
document.applets[0].width = width - 400;
#end
document.applets[0].height = height;
window.scroll(0,0);
}
window.onResize = resize;
window.onLoad = resize;
resize();
</SCRIPT>
{/pre}
But this does not work; I get from the Java Console:
[Freemind-Developer-Internal-Warning (do not write a bug report, please)]:
Tried to get view without being able to get map module.
View is null.
Any hint?
jld.
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/437 - Release Date: 04/09/2006
I just tested on my side, I have the same problem than you, the attachments copy fails. In fact it seems that attachments creation in the new page fails. (I only tested once)
I'm certain that I could have it work during my first tests of page copy. I don't have time to test again, but I think sometimes it works, sometimes it doesn't ...
In my case the attached files are listed in the copied page, but if you click on one you get an exception. And I can't delete the page at all for the same reason (database exception, a row cannot be found in the attachments table).
By the way I had some problems with attachments, apart of pages copy, but with the same exceptions returned, and in a random fashion ...
________________________________
From: Esbach, Brandon [mailto:Esbachb@tycoelectronics.com]
Sent: lundi 4 septembre 2006 10:24
To: xwiki-users(a)objectweb.org
Subject: RE: [xwiki-users] "Clone" another documents objects when creating a new document
Attachments don't seem to copy with this method - I get a wrapped exception error:
The size of the attachment is around 20k.
Comments are fine, as are other objects (at least the one's I've tried).
________________________________
From: Esbach, Brandon [mailto:Esbachb@tycoelectronics.com]
Sent: 01 September 2006 10:31
To: xwiki-users(a)objectweb.org
Subject: RE: [xwiki-users] "Clone" another documents objects when creating a new document
That seems to do it perfectly, thanks!
________________________________
From: BOUSQUET Jeremie [mailto:Jeremie.BOUSQUET@gemalto.com]
Sent: 01 September 2006 09:45
To: xwiki-users(a)objectweb.org
Subject: RE: [xwiki-users] "Clone" another documents objects when creating a new document
Hello,
I believe you can use the copyDocument() method. I use it to rename pages, I copy a document to a newly named document, then delete the old one.
All objects and attachments are also copied in the process, so that may interest you (as far as all objects are included in the template document I believe)
$xwiki.copyDocument($sourceDoc, $targetDoc)
Jeremie, Bousquet
GSE Solution CMO
Gemalto
Tel: +33 4 42 36 42 93
Avenue du Jujubier, Z.I Athelia IV
13705 La Ciotat, FRANCE
Jeremie.Bousquet(a)gemalto.com
www.gemalto.com <http://www.gemalto.com/>
________________________________
From: Esbach, Brandon [mailto:Esbachb@tycoelectronics.com]
Sent: vendredi 25 août 2006 12:58
To: xwiki-users(a)objectweb.org
Subject: [xwiki-users] "Clone" another documents objects when creating a new document
Hi All,
Is there any way to clone all objects in an existing document to a different document with one server request?
So that a template document can be maintained with default object values; and can be brought in painlessly to a new document.
Brandon Esbach
Software Engineer
M/A-Com Eurotec Operations
LoughMahon Technology Park,
Skehard Road,
Blackrock,
Cork, Ireland
Tel +353 21 4808305
I've been able to boil down the exact error to the one shown below. I
tried a variety of combinations, but it doesn't seem to work with my
company user id and password. Any pointers here?
Regards,
Mrudula
Error StackTrace
MyLDAPAuthServiceImpl:Bind:508 - LDAP Bind failed with thus Exception
Invalid Credentials
LDAPException: Invalid Credentials (49) Invalid Credentials
LDAPException: Server Message: 80090308: LdapErr: DSID-0C090334,
comment: AcceptSecurityContext error, data 525, vece
LDAPException: Matched DN:
at com.novell.ldap.LDAPResponse.getResultException(Unknown
Source)
at com.novell.ldap.LDAPResponse.chkResultCode(Unknown
Source)
at com.novell.ldap.LDAPConnection.chkResultCode(Unknown
Source)
at com.novell.ldap.LDAPConnection.bind(Unknown Source)
at com.novell.ldap.LDAPConnection.bind(Unknown Source)
Configuration File
authentication.ldap=1
authentication.ldap.server=blr-ec-dc01.wipro.com
authentication.ldap.port=389
authentication.ldap.check_level=1
authentication.ldap.base_DN=dc=wipro,dc=com
authentication.ldap.bind_DN=uid=wipro\<< my user
id>>,ou=USERS,dc=wipro,dc=com
authentication.ldap.bind_pass=<<my password>>
authentication.ldap.UID_attr=Mrudula Madiraju
authentication.ldap.fields_mapping=name=Mrudula
Madiraju,last_name=sn,first_name=givenName,fullname=displayName,mail=mai
l,ldap_dn=dn
-----Original Message-----
From: Richard Lach [mailto:rla@debian.org]
Sent: Friday, September 01, 2006 7:17 PM
To: xwiki-users(a)objectweb.org
Subject: Re: [xwiki-users] LDAP Integration of xwiki
On Fri, Sep 01, 2006 at 09:36:20AM -0400, Srinivasa Pulugurtha wrote:
> Also, it seems that you are binding to Active Directory (?). You
might try
> DOMAINNAME\\USERNAME format, if you have trouble finding the right
DN's
> while binding to LDAP.
In that case it should be pretty easy, if you have console access to
domain controller. Try 'ldifde' command line tool with filter
"(sAMAccountName=<your_login_name>)"
R.
--
"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
Hi.
We are using xwiki for almost two years (as internal knowledge base) and
although we still have some problems - thank you very much for all you
work, I hope we will be able to solve some paining issues ;-), I'm
pretty determined to dig until success, I count on your help and promise
to give sufficient feedback.
Our main problems are:
* broken PDF export (generated null-byte files)
* broken search on non-latin1 characters (that I'll describe in separate
thread)
Hera are the details
My platform is:
tomcat 5.5.17 running in locale pl_PL.UTF-8
JDK 1.5.0
mysql 5.0 with default charset UTF-8 (and DB in UTF-8 too).
xwiki.war 9.840, but the same bahaviour is on latest SVN trunk.
I suppose that problem with PDF export has something to do with UTF-8.
I'm pretty sure I have UTF-8 configured properly (xwiki.encoding in
xwiki.cfg and filter in web.xml), non-latin1 characters are being properly
written to and read from database, are also properly rendered in xwiki
pages. When I click PDF export link (even viewing document containing
only ASCII characters) I receive an empty file and some entries in
catalina.out:
########
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>
Wiki - Sandbox - TestTopic1
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
/>
<meta name="revisit-after" content="7 days" />
<meta name="description" content="Intranet Wiki" />
<meta name="keywords" content="wiki" />
<meta name="distribution" content="GLOBAL" />
<meta name="rating" content="General" />
<meta name="copyright" content="you need to choose your copyright"
/>
<meta name="author" content="" />
<meta http-equiv="reply-to" content="" />
<meta name="language" content="pl" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"
/>
[...]
line 5 column 1 - Warning: <html> has XML attribute "xml:lang"
[Fatal Error] :78:27: Invalid byte 1 of 1-byte UTF-8 sequence.
19:53:36,729 WARN TP-Processor4
https://xwiki.biuro.contium.pl:5443/xwiki/bin/pdf/Sandbox/TestTopic1
XWikiAction:execute:185 - Uncaught exception: Error number 12003 in 12:
XSL Transformation Failed
Wrapped Exception: Invalid byte 1 of 1-byte UTF-8 sequence.
com.xpn.xwiki.XWikiException: Error number 12003 in 12: XSL
Transformation Failed
Wrapped Exception: Invalid byte 1 of 1-byte UTF-8 sequence.
at com.xpn.xwiki.pdf.impl.PdfExportImpl.applyXsl(PdfExportImpl.java:176)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.convertXHtmlToXMLFO(PdfExportImpl.java:154)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHtml(PdfExportImpl.java:86)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:115)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:129)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportToPDF(PdfExportImpl.java:119)
at com.xpn.xwiki.web.PDFAction.render(PDFAction.java:45)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:146)
[...]
########
Do you any have any idea what can be the cause of this exception?
I suppose that
' <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">'
has nothing to do, although I don't know why lang, content-type and
charset are derived both from templates/httpheader.vm and
xwiki->preferences.
I hope I will be able to run it under eclipse soon, maybe I find the
problem....
Best regards,
Richard.
--
"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.