Reminder ! We have an IntelliJ XWiki Licence for development on the
XWiki Open Source software.
User Name: XWiki
License key 1: 23790-9W2RU-OJXJ1-DP93Y-0FFB2-SQHJ2
Feel free to use it to work on XWiki
Ludovic
--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic
Speaking of UTF-8 there is also the change from Stéphane. I think this
change is made in Xavier's package.. It would be great to compile
exactly what is need to make UTF8 work so that we can commit the changes
in the source code and write the actual documentation for it.
There is also the following change that Stéphane has made:
----
I have also commented out following lines of
"com.xpn.xwiki.web.Utils.java", because content.length() does not return
the UTF-8 encoded content length, which shortens the pages… Or
converting the string to UTF-8 encoded bytes works fine, but is it
absolutely necessary to set the content length of the response?
if (context.getResponse() instanceof XWikiServletResponse) {
response.setContentLength(content.length()); }
----
Actually it is much better to give the content length when you can
because it allows the browser to use the keepalive connection which is
more performant. This code needs to be rewrittent to calculate the
accurate size regardless of the character set.
Ludovic
Ryszard Lach a écrit :
>Finally, with great help from Xavier, I found the solution.
>
>The problem was missing JRCS jars and bad (1.4.2) version of JDK. I'll
>add a comment on page describing UTF.
>
>Best regards,
>
>R.
>
>On Tue, Jul 05, 2005 at 01:42:14PM +0200, Ryszard Lach wrote:
>
>
>>Hi.
>>
>>Is anybody able to write/read any non-latin1 documents in xwiki?
>>
>>I'm trying with XWiki Version 0.9.793 and a new default database. I'v
>>changed default values to UTF-8 in:
>>
>>WEB-INF/xwiki.cfg: xwiki.encoding
>>WEB-INF/web.xml: init param 'encoding' in 'Set Character Encoding'
>>filter
>>XWiki.Preferences -> Presentation: http-equiv meta header
>>
>>Tomcat 4.1.30 is using JDK 1.4.2, running in locale en_US.
>>
>>The behaviour is as follows:
>>
>>1. I'm creating a new document, entering some non-latin1 chars.
>>2. I can preview, save and edit this document - all works fine
>>3. I'm restarting tomcat serving xwiki
>>4. I cannot display the created document - an exception occurs:
>>
>>$msg.get("problemoccured")
>>
>>$msg.get("detailedinformation"):
>>
>>Error number 3202 in 3: Exception while reading document Sandbox.TestTopic1
>>Wrapped Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.xpn.xwiki.doc.XWikiDocument.setArchive
>>com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document Sandbox.TestTopic1
>>Wrapped Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.xpn.xwiki.doc.XWikiDocument.setArchive
>> at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:638)
>> at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:123)
>>[...]
>>Wrapped Exception:
>>org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.xpn.xwiki.doc.XWikiDocument.setArchive
>> at org.hibernate.tuple.PojoTuplizer.setPropertyValuesWithOptimizer(PojoTuplizer.java:203)
>> at org.hibernate.tuple.PojoTuplizer.setPropertyValues(PojoTuplizer.java:173)
>> at org.hibernate.persister.entity.BasicEntityPersister.setPropertyValues(BasicEntityPersister.java:2900)
>> at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:113)
>> at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:510)
>>[...]
>>Caused by: net.sf.cglib.beans.BulkBeanException: Lexical error at line 36, column 10. Encountered: "\u0142" (322), after : "@\n\n\nSandbox\nTestTopic1\n\nen\n0\nSandbox.WebHome\nXWiki.Admin\n1120562792127\n1120562808542\n1.2\n"
>> at com.xpn.xwiki.doc.XWikiDocument$$BulkBeanByCGLIB$$9e5f0943.setPropertyValues()
>> at org.hibernate.tuple.PojoTuplizer.setPropertyValuesWithOptimizer(PojoTuplizer.java:200)
>> ... 63 more
>>
>>
>
>
>
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
>To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
>For general help: mailto:sympa@objectweb.org?subject=help
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
--
Ludovic Dubost
XPertNet: http://www.xpertnet.fr/
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic
I'm curious whether there are any plans to complete the current
implementation of Confluence XML-RPC API in a near future or it will
be replaced by some different remote API. We are using it for various
purposes e.g. for Wiked - the off-line editor, uploading batch scripts
etc. and we miss implementation of some features that are part of the
API specification. For instance, our build script needs to set
Page.modifier property when uploading a page.
Thank you,
Jiri.
Hi All,
I get the following exception when a new page that has yet to be saved is
deleted.
How do you check whether a page exists and it's ok to be deleted? Is there
some #if checks I can put in the template .vm so that the delete button only
appears if the page is valid?
Thanks
Duke
Error number 3203 in 3: Exception while deleting document Main.TestForm
Wrapped Exception: Batch update returned unexpected row count from update: 0
actual row count: 0 expected: 1
com.xpn.xwiki.XWikiException: Error number 3203 in 3: Exception while
deleting document Main.TestForm Wrapped Exception: Batch update returned
unexpected row count from update: 0 actual row count: 0 expected: 1
at
com.xpn.xwiki.store.XWikiHibernateStore.deleteXWikiDoc(XWikiHibernateStore.j
ava:775)
at
com.xpn.xwiki.store.XWikiCacheStore.deleteXWikiDoc(XWikiCacheStore.java:143)
Hi there,
I have already asked this question some time back but I didn't get a
definitive answer and I'm getting a bit worried: Are the xwiki wikis on
xwiki.org (for example mavenbook.xwiki.org) backupped? If so how often?
Thanks a lot
-Vincent
PS: I've also tried the script that Jeremi gave me and it seems there's an
error somewhere in it. I'll contact Jeremi.
Hi,
for some types of documents published on XWiki we would like to use
naming convention where there is a major version included in a name of
the document e.g. 'SomeSpace.Document-0.1'. The problem is that the
XWiki then resolves it like this 'SomeSpace.Document-0/1' instead of
expected 'SomeSpace/Document-0.1'.
I would like to ask whether there is a specific reason why name of
Web(Space) is substringed from the beginning to the last position of
'.' and not the first position of '.'?
Thank you,
Jiri.
Hello,
For a project I work on I need ability to change all (or most) of XWiki
directories, basically I need to:
1. Move everything from /WEB-INF/ to /WEB-INF/xwiki
2. Move everything from / to /xwiki
3. Everything in /WEB-INF/classes and /WEB-INF/lib can obviously remain
where it is.
4. Merge two web.xml
5. Normally XWiki would have "/" directory on "/xwiki" context. What I
need is for it to have "/xwiki" directory on "/" context.
Why:
To be able to place XWiki on the same ServletContext as the main
project, while maintaining "separate" directory structure. I have to use
custom RightService and UserService which has to have access to main
project's data through the ServletContext, so both this project and
XWiki have to share the ServletContext, effectively being one web-app
from container's point of view.
How:
I was thinking about:
1. Modifying the default initialization so XWiki first tries to load
/WEB-INF/xwiki.cfg, then if it fails /WEB-INF/xwiki/xwiki.cfg.
2.1. Having the ability to specify each configuration file (like
hibernate.xml, velocity.properties) path in xwiki.cfg.
or
2.2. Doing the same for every configuration file, first trying to load
it from /WEB-INF/, then from /WEB-INF/xwiki/ (I think it's less prone
to errors)
3. Changing the top-level directories (like /templates/) paths from
xwiki.cfg
4. Changing the Struts paths (like /bin/)
Would such a functionality be welcome?
I think I can do much work on my own, but I'll probably need some
pointers now and then.
Greetings, Lilianne E. Blaze
Hello,
as the new admin/grunt/bofh for xwiki.com, i'll have soon to perform
some administrative stuff on a running xwiki installation. During past
experiences with such database intensive applications, i found out
that most of the downtimes can be avoided by simply putting the whole
server in read-only mode.
I've put up a topic with requirements and implementation notes here :
http://www.xwiki.org/xwiki/bin/view/Dev/ReadOnlyServer
let me know what are you thoughts.
I'm specifically looking for the best idea to appropriately explain
users they are running on a read-only server.
Thanks in advance,
Erwan