Re: [xwiki-users] XWiki memory consumption

2010-01-15 Thread Michael Beetz
Hi Dilipkumar,

I've done some tomcat monitoring too (tomcat 6.0.20 (64bit), java 1.6.0_17 and 
now 1.6.0_18).
- I've never seen more than 96MB memory used for MaxPermGen - and I understood, 
that this memory is not used / counted for the heap size.
- For the production system I am using -server -Xms1024m -Xmx2048m 
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode
- It sounds, that you are using the tomcat service (me too) - please note, that 
the "-server" option should be replaced by selecting the java server dll.

Kind regards
mb

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of 
Dilipkumar Jadhav
Sent: Samstag, 16. Januar 2010 3:50
To: users@xwiki.org
Subject: Re: [xwiki-users] XWiki memory consumption

Hi Mathias,
I've a fresh new XWiki 2.1.1 installed on a win 2008 server. This is hosted
on 4Gb RAM & 3 GHz processor VM.
Tomcat is 6.0.20 & MySql is 5.0.37. The memory usage is on the higher side
even though the wiki is practically empty (nothing except the default
pages). What concerns me is that the CPU usage spikes to 100% every once in
a while. Checked the process list & find tomcat eating 98% of CPU usage.
This is definitely scary since this is my production machine. The test
machine which has a similar config (except the OS which is win 2003 server)
works just fine. The tomcat CPU usage doesn't exceed 20% CPU usage ever. And
yes, both machine have same version mysql installed and do not run any other
application or servers.
For the memory part, Tomcat was not satiated with 512 Mb RAM MaxPermGen and
kept throwing OOM almost every day. Had to ramp it to 1024 Mb. That seems to
have taken care of the memory issue for now. 
I am still investigatingthanks.




___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Observer

2010-01-15 Thread Caleb James DeLisle
I am not sure how a view counter would work (using ObservationManager)
but can show you a piece of code which updates the search index every time a
document is changed.
http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-plugins/trunk/lucene/src/main/java/com/xpn/xwiki/plugin/lucene/IndexUpdater.java
Search for the method that starts with:
public void onEvent(Event event, Object source, Object data)

You can see whenever a document is changed or saved, this method is called by 
the
ObservationManager and the index is updated.

To get your EventListener to work you have to implement EventListener and you
have to register your EventListener with ObservationManager.

The irc bot which is written entirely in Groovy but it contains a class which
implements EventListener (IRCEventListener) and it has a section which registers
IRCEventListener with ObservationManager using this:
def listener = new IRCEventListener(bot, xwiki, xcontext)
observation.addListener(listener)

Best of luck,

Caleb James DeLisle


J. Allen Santos wrote:
> Hi
> Sorry, I'm having a hard time understanding how to do it. May I request for a 
> sample program/code for the remote observation module? Say for example, 
> whenever a user views, a view counter increments.
> ThanksAllen
> 
>> From: vinc...@massol.net
>> Date: Mon, 11 Jan 2010 11:54:56 +0100
>> To: users@xwiki.org
>> Subject: Re: [xwiki-users] Observer
>>
>> Hi,
>>
>> On Jan 11, 2010, at 11:48 AM, J. Allen Santos wrote:
>>
>>> What we want to do is to create an application that we could use to connect 
>>> to an XWiki Server to do certain actions whenever a user 
>>> creates/modifies/updates a document in the Wiki. Is it possible to create 
>>> such an application that wouldn't require us to include code snippets in 
>>> the wiki pages/documents as stated in 
>>> http://dev.xwiki.org/xwiki/bin/view/Drafts/GroovyNotifications, or even 
>>> modify a module used by XWiki? We want it to be portable so that it can be 
>>> used by any other XWiki Servers with very minimal, or better yet, no 
>>> configurations.
>> So I assume you're coding from Java. Yes it's possible. Everything in XWiki 
>> is coded in Java. The tutorial shows how to write java code in a groovy page 
>> but you don't have to use groovy for that! :)
>>
>> Here's the doc:
>> http://code.xwiki.org/xwiki/bin/view/Modules/ObservationModule
>>
>> However I see that Thomas has "forgotten" to write a quick example on
>> http://code.xwiki.org/xwiki/bin/view/Modules/LocalObservationModule
>>
>> As you can see you have 2 options:
>> - in-JVM
>> - as distributed events
>>
>> You can also look at the source code:
>> http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-observation/
>>
>> Hope it helps,
>> -Vincent
>>
 From: vinc...@massol.net
 Date: Mon, 11 Jan 2010 09:05:13 +0100
 To: users@xwiki.org
 Subject: Re: [xwiki-users] Observer


 On Jan 11, 2010, at 5:01 AM, J. Allen Santos wrote:

> How do I create an observer without adding a groovy code within a page?I 
> saw this document: 
> http://dev.xwiki.org/xwiki/bin/view/Drafts/GroovyNotifications but it 
> requires code to be added within a page.
 You mean how to do it from java?

 What do you want to achieve?

 Thanks
 -Vincent
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> 
> _
> Windows 7: Simplify what you do everyday. Find the right PC for you.
> http://windows.microsoft.com/shop
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Observer

2010-01-15 Thread J. Allen Santos

Hi
Sorry, I'm having a hard time understanding how to do it. May I request for a 
sample program/code for the remote observation module? Say for example, 
whenever a user views, a view counter increments.
ThanksAllen

> From: vinc...@massol.net
> Date: Mon, 11 Jan 2010 11:54:56 +0100
> To: users@xwiki.org
> Subject: Re: [xwiki-users] Observer
> 
> Hi,
> 
> On Jan 11, 2010, at 11:48 AM, J. Allen Santos wrote:
> 
> > 
> > What we want to do is to create an application that we could use to connect 
> > to an XWiki Server to do certain actions whenever a user 
> > creates/modifies/updates a document in the Wiki. Is it possible to create 
> > such an application that wouldn't require us to include code snippets in 
> > the wiki pages/documents as stated in 
> > http://dev.xwiki.org/xwiki/bin/view/Drafts/GroovyNotifications, or even 
> > modify a module used by XWiki? We want it to be portable so that it can be 
> > used by any other XWiki Servers with very minimal, or better yet, no 
> > configurations.
> 
> So I assume you're coding from Java. Yes it's possible. Everything in XWiki 
> is coded in Java. The tutorial shows how to write java code in a groovy page 
> but you don't have to use groovy for that! :)
> 
> Here's the doc:
> http://code.xwiki.org/xwiki/bin/view/Modules/ObservationModule
> 
> However I see that Thomas has "forgotten" to write a quick example on
> http://code.xwiki.org/xwiki/bin/view/Modules/LocalObservationModule
> 
> As you can see you have 2 options:
> - in-JVM
> - as distributed events
> 
> You can also look at the source code:
> http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-observation/
> 
> Hope it helps,
> -Vincent
> 
> >> From: vinc...@massol.net
> >> Date: Mon, 11 Jan 2010 09:05:13 +0100
> >> To: users@xwiki.org
> >> Subject: Re: [xwiki-users] Observer
> >> 
> >> 
> >> On Jan 11, 2010, at 5:01 AM, J. Allen Santos wrote:
> >> 
> >>> 
> >>> How do I create an observer without adding a groovy code within a page?I 
> >>> saw this document: 
> >>> http://dev.xwiki.org/xwiki/bin/view/Drafts/GroovyNotifications but it 
> >>> requires code to be added within a page.
> >> 
> >> You mean how to do it from java?
> >> 
> >> What do you want to achieve?
> >> 
> >> Thanks
> >> -Vincent
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
  
_
Windows 7: Simplify what you do everyday. Find the right PC for you.
http://windows.microsoft.com/shop
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki memory consumption

2010-01-15 Thread Dilipkumar Jadhav
Hi Mathias,
I've a fresh new XWiki 2.1.1 installed on a win 2008 server. This is hosted
on 4Gb RAM & 3 GHz processor VM.
Tomcat is 6.0.20 & MySql is 5.0.37. The memory usage is on the higher side
even though the wiki is practically empty (nothing except the default
pages). What concerns me is that the CPU usage spikes to 100% every once in
a while. Checked the process list & find tomcat eating 98% of CPU usage.
This is definitely scary since this is my production machine. The test
machine which has a similar config (except the OS which is win 2003 server)
works just fine. The tomcat CPU usage doesn't exceed 20% CPU usage ever. And
yes, both machine have same version mysql installed and do not run any other
application or servers.
For the memory part, Tomcat was not satiated with 512 Mb RAM MaxPermGen and
kept throwing OOM almost every day. Had to ramp it to 1024 Mb. That seems to
have taken care of the memory issue for now. 
I am still investigatingthanks.




___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XEM Setup over internet (Thomas Mortagne)

2010-01-15 Thread Dilipkumar Jadhav
Hi Thomas,
I think I might have figured out how to get this working. Had to create the
XWiki.XWikiServerTemplatexe file manually.
Although, I have just tested this over my intranet and not over the internet
for now.

1. I did a fresh install of the latest xwiki 2.2 ML1
2. Followed steps for XEM install (used XEM 2.1.1 xar file +
wikimanager/applicationmanager plugins). Configured virtual wiki server for
main wiki instance
3. Tried installing the template-xe.xar file. Got the following error:
   XWiki Enterprise Manager installation failed (Error number 50040 in 5:
com.xpn.xwiki.plugin.wikimanager.WikiManagerPlugin: Fail to install package
xar?).
4. Checked that though the above install fails, it does create a
'templatexe' database in MySql. The database is big enough in size. So I had
to assume that this database was an equivalent of a fresh xwiki install.
Also, this cleared my suspicion with something being wrong on the database
side.
5. Went back to the install page again. The page said - no further action
needed.
6. Checked the stdout logs for tomcat. Got a stacktrace that said :
2010-01-15 18:51:07,597
[http://localhost:8080/xwiki/bin/view/XemManager/Install?confirm=1] ERROR
wikimanager.WikiManagerPluginApi  - Wiki
[XWiki.XWikiServerTemplatexe,templatexe.template.local,XWiki.Admin] creation
failed 
com.xpn.xwiki.plugin.wikimanager.WikiManagerException: Error number 50040 in
5: com.xpn.xwiki.plugin.wikimanager.WikiManagerPlugin: Fail to install
package [template-xe.xar]
7. Realised that the file that XWiki was trying to create was
XWiki.XWikiServerTemplatexe. templatexe.template.local was probably the
domain/alias & XWiki.Admin was the default owner for the templatexe wiki
instance.
8. Manually created a XWiki.XWikiServerTemplatexe and filled all the details
as stated in the stacktrace.
9. Created a new wiki using this template as the template. Everything worked
out just fine. Imported the default .xar files & the new wiki works perfect.

I am yet to test this using internet domains. Hopefully, everything works
out just fine.
As always thanks a ton for your help & guidance. Have a great weekend... :)

P.S. The stacktrace in case this is of any use to the XWiki developers:


2010-01-15 18:51:07,597
[http://localhost:8080/xwiki/bin/view/XemManager/Install?confirm=1] ERROR
wikimanager.WikiManagerPluginApi  - Wiki
[XWiki.XWikiServerTemplatexe,templatexe.template.local,XWiki.Admin] creation
failed 
com.xpn.xwiki.plugin.wikimanager.WikiManagerException: Error number 50040 in
5: com.xpn.xwiki.plugin.wikimanager.WikiManagerPlugin: Fail to install
package [template-xe.xar]
at
com.xpn.xwiki.plugin.wikimanager.WikiManager.importPackage(WikiManager.java:
700)
at
com.xpn.xwiki.plugin.wikimanager.WikiManager.createNewWiki(WikiManager.java:
541)
at
com.xpn.xwiki.plugin.wikimanager.WikiManager.createNewWikiFromPackage(WikiMa
nager.java:404)
at
com.xpn.xwiki.plugin.wikimanager.WikiManager.createWikiTemplate(WikiManager.
java:877)
at
com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi.createWikiTemplate(Wik
iManagerPluginApi.java:655)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(
UberspectImpl.java:389)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(Ub
erspectImpl.java:378)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270
)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.ja
va:252)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java
:493)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.ja
va:71)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirecti
ve.java:142)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement
.java:87)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement
.java:87)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:33
6)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEn
gine.java:191)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEn
gine.java:156)
at
com.xpn.xwiki.render.XWikiVelocityRendere

Re: [xwiki-users] Blog: Showing teasers inline on a wiki page

2010-01-15 Thread Guillaume Lerouge
Hi Rick,

On Fri, Jan 15, 2010 at 9:08 PM, Rick Hadsall  wrote:

> Hi,
>
> I'm new to XWiki but know Confluence pretty well.  I'd like to be able to
> do
> something similar to what Confluence does with their blog macro - be able
> to
> show 1..n recent blog posts on a page, either just showing the titles
> (which
> we can do with Velocity as per the default Dashboard), or showing a
> "teaser"
> that shows the title, date posted, poster, and a small intro snippet of the
> post...
>
> Format would be like:
>
> TITLE
> snippet...
> ...
> ...
> Posted by user at datetime (possibly comment stats etc)
>
> Is there a way to do this in XWiki?
>

Yes, definitely. The blog actually used to do this but we changed it some
time ago because when content got truncated sometimes markup was no longer
closed properly, which led to wome weird display on the blog homepage (half
of the text getting underlined, stuff like that).

With the new rendering engine, it could be possible to write a "smart"
snippet algorithm that would cut the markup in the right place. In the
default version, you'll notice that if you manually fill the "summary" field
of a blog post it gets displayed on the blog homepage instead of the actual
article content, which I believe is close to the behavior you're looking
for. If that's what you want to do, follow the indications on
http://code.xwiki.org/xwiki/bin/view/Applications/BlogApplication to create
a blog out of any page.

By the way, I'd be interested in hearing your feedback about XWiki as
compared to Confluence. Specifically, if you were to name one thing you like
best in XWiki vs Confluence and one thing you like best in Confluence
compared to XWiki, what would those be?

Hope this helps,

Guillaume


> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XEM Setup over internet

2010-01-15 Thread Dilipkumar Jadhav
Hi Thomas,

> This error is pretty weird.
> How are you creating the wiki exactly ? Are you using a template ?
No, I am using the main wiki. I was not able to import the template
due to an error while importing the template. However, when I went
back to the installation page, it said - no further action required.
My assumption was everything got installed ok despite the error.
> If i understand well the error it seems like you are creating a wiki using 
> main the main wiki as template. Note that even if it does not seems a very 
> good idea i think It should technically work so i don't know what is the 
> really issue here.

> What database engine are you using ? MySQL ?

I am using MySql community version. Is there a specific version that
you would recommend or a specific methodology to install XEM e.g.
installing XE version x.x.x and then upgrading to XEM version x.x.x.
Or directly install a particular XEM x.x.x. Thanks.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [ANN] XWiki Enterprise 2.2 Milestone 1 Released

2010-01-15 Thread Thomas Mortagne
The XWiki development team is pleased to announce the release of XWiki
Enterprise 2.2 Milestone 1.

Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download

This is first milestone of the XWiki Enterprise 2.2 version. This
release mainly introduces new Model, the possibility to register wiki
macros for any user or wiki and many improvements of xar import.

Main changes from 2.1.1:

* Contextual wikimacros
* New Model module with Reference implementation
* XAR Import improvements
* Allow set to null in velocity
* Upgraded to Groovy 1.7
* Lots of accessibility fixes
* Lots of bugs fixes

For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise22M1

Thanks
-The XWiki dev team
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XEM Setup over internet

2010-01-15 Thread Thomas Mortagne
On Fri, Jan 15, 2010 at 22:18, Dilipkumar Jadhav
 wrote:
> Hi Thomas,
> The complete stack trace is as follows:
>
> Error number 4001 in 4: Error while parsing velocity page
> WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate
> content with id Create New Wiki
> Error number 4001 in 4: Error while parsing velocity page
> WikiManager.CreateNewWiki
> Wrapped Exception: Failed to evaluate content with id Create New Wiki
> com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
> parsing velocity page WikiManager.CreateNewWiki
> Wrapped Exception: Failed to evaluate content with id Create New Wiki
>        at 
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)
>        at 
> com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
>        at 
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
>        at 
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
>        at 
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
>        at 
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
>        at 
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:547)
>        at 
> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:564)
>        at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
>        at sun.reflect.GeneratedMethodAccessor285.invoke(Unknown Source)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:592)
>        at 
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
>        at 
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
>        at 
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
>        at 
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
>        at 
> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
>        at 
> org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
>        at 
> org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
>        at 
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
>        at 
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
>        at 
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
>        at 
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
>        at 
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
>        at 
> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
>        at 
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
>        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1694)
>        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1615)
>        at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
>        at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source)
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:592)
>        at 
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
>        at 
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
>        at 
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
>        at 
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
>        at 
> org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
>        at 
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
>        at 
> org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
>        at 
> org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
>        at 
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
>        at 
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
>        at 
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
>        at 
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
>        at 
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
>        at 
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
>        at 
>

Re: [xwiki-users] XEM Setup over internet

2010-01-15 Thread Dilipkumar Jadhav
Hi Thomas,
The complete stack trace is as follows:

Error number 4001 in 4: Error while parsing velocity page
WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate
content with id Create New Wiki
Error number 4001 in 4: Error while parsing velocity page
WikiManager.CreateNewWiki
Wrapped Exception: Failed to evaluate content with id Create New Wiki
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
parsing velocity page WikiManager.CreateNewWiki
Wrapped Exception: Failed to evaluate content with id Create New Wiki
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
at 
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
at 
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202)
at 
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170)
at 
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:547)
at 
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:564)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:475)
at sun.reflect.GeneratedMethodAccessor285.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at 
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at 
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at 
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1694)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1615)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:657)
at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at 
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:332)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:212)
at 
org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:247)
at 
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at 
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at 
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191)
at 
org.xwiki.

[xwiki-users] Blog: Showing teasers inline on a wiki page

2010-01-15 Thread Rick Hadsall
Hi,

I'm new to XWiki but know Confluence pretty well.  I'd like to be able to do
something similar to what Confluence does with their blog macro - be able to
show 1..n recent blog posts on a page, either just showing the titles (which
we can do with Velocity as per the default Dashboard), or showing a "teaser"
that shows the title, date posted, poster, and a small intro snippet of the
post... 

Format would be like:

TITLE
snippet...
...
...
 Posted by user at datetime (possibly comment stats etc)

Is there a way to do this in XWiki?

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] LDAP Auth: Only Works for the first time log in

2010-01-15 Thread Thomas Mortagne
On Fri, Jan 15, 2010 at 18:36, jackyork  wrote:
>
> OpenSUSE11.1 + Tomcat6 + Mysql5 + XE2.0.5
>
> xwiki.log  locates at /tmp/fze-tmp3/
> And this is the only one I can find. Is this weird?

You should look at tomcat logs (catalina.out).

>
> And I could not find any information regarding LDAP auth in this file.

Are you sure you enabled LDAP logs ?

>
>
> tmortagne wrote:
>>
>> On Wed, Jan 13, 2010 at 21:56, jackyork  wrote:
>>>
>>> Tomcat + Mysql + XE2.0.5
>>>
>>> LDAP connection is working since  everything is fine when a user logs in
>>> for
>>> the first time. But if you log out and try to log in again, it gives an
>>> error "Wrong password".
>>>
>>> I appreciate any reply. Thank you in advance!
>>
>> You should try to enable debg log to see what's wrong, see
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HEnableLDAPdebuglog
>>
>>> --
>>> View this message in context:
>>> http://n2.nabble.com/LDAP-Auth-Only-Works-for-the-first-time-log-in-tp4372167p4372167.html
>>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>>
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>
> --
> View this message in context: 
> http://n2.nabble.com/LDAP-Auth-Only-Works-for-the-first-time-log-in-tp4372167p4400056.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki memory consumption

2010-01-15 Thread Thomas Mortagne
On Fri, Jan 15, 2010 at 20:54, Mathias Herberts
 wrote:
> Hi,
>
> I am currently running XWiki enterprise v2.1.1 in a Tomcat 6.0.20 on a
> dev box. I run into memory consumption problems, jconsole reports hops
> of 50Mb when rendering a small page (with no attachements) making use
> of the code macro (a single user rendering this page). The same
> jconsole also shows roughly 14000 classes loaded! I had to push
> MaxPermGen to 128Mb, otherwise I hit OOM.
>
> Any other experience of such a high memory consumption?

This is caused by Jython initialization (code macro use a python
library Pygments to highlight code) only the first time code macro is
used. I hope they will improve it in the future (they are supposed to
work on it for the next release if i understood well).

>
> Mathias.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XEM Setup over internet

2010-01-15 Thread Thomas Mortagne
On Fri, Jan 15, 2010 at 20:22, Dilipkumar Jadhav
 wrote:
> Hi Thomas,
> Thanks for taking the time to reply to my email. I went through the
> link that you provided and was able to get my wiki up and running. I
> had to go through my domain name setup for the main instance with my
> IT and got it working.
> However, after all the imports and setup when i went to create a new
> wiki I keep getting errors. I checked the mailing list, online docs &
> even googled it and found that the mailing lists suggested using a
> different version of XEM.
> I tried converting XE 2.0.2 to XEM 2.1.1. I also tried XEM 2.1.1
> direct installation. Everything went fine except for the creating of
> the wiki. Following is the stack trace which I have shortened so I
> could fit it into the email. I believe it is somewhere in my server
> environment that there is an issue. All the errors point to execute
> JDBC batch update. Please help. Thank you.
>
> Error number 4001 in 4: Error while parsing velocity page
> WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate
> content with id Create New Wiki
> Error number 4001 in 4: Error while parsing velocity page
> WikiManager.CreateNewWiki
> Wrapped Exception: Failed to evaluate content with id Create New Wiki
> com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
> parsing velocity page WikiManager.CreateNewWiki
> Wrapped Exception: Failed to evaluate content with id Create New Wiki
>        at 
> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)
>        at 
> com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
>        at 
> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
>   ...
>   org.apache.velocity.exception.MethodInvocationException: Invocation
> of method 'createNewWiki' in  class
> com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi threw exception
> com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while
> saving attachment xwiki-enterprise-manager-application-xem-2.0.5.zip
> of document XWiki.Import
> Wrapped Exception: Could not execute JDBC batch update at
> WikiManager.CreateNewWikiline 157, column 32?
>        at 
> org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
>        at 
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
>       .
>        at java.lang.Thread.run(Thread.java:595)
> Caused by: com.xpn.xwiki.XWikiException: Error number 3232 in 3:
> Exception while saving attachment
> xwiki-enterprise-manager-application-xem-2.0.5.zip of document
> XWiki.Import
> Wrapped Exception: Could not execute JDBC batch update
>        at 
> com.xpn.xwiki.store.XWikiHibernateAttachmentStore.saveAttachmentContent(XWikiHibernateAttachmentStore.java:122)
>        at com.xpn.xwiki.XWiki.copyDocument(XWiki.java:4148)
>

I don't understand the stack trace you printed, there is mixed things
here (there is a create wiki error in the middle of an import error).
Could you give us a complete error as you see in in the log.

>
>
>
>
>> Message: 7
>> Date: Fri, 15 Jan 2010 11:08:33 +0100
>> From: Thomas Mortagne 
>> Subject: Re: [xwiki-users] XEM Setup over internet
>> To: XWiki Users 
>> Message-ID:
>>        
>> Content-Type: text/plain; charset=UTF-8
>>
>> On Thu, Jan 14, 2010 at 22:03, Dilipkumar Jadhav
>>  wrote:
>>> Hello guys,
>>> I ran into some difficulties with setting up a wiki farm again.
>>> The website address of the main wiki is (assume):
>>> http://internal.ext.com:8080/xwiki
>>> In the XWiki.XWikiServerClass the default value is localhost.
>>> The moment I restart the tomcat server after switching
>>> xwiki.virtual=1, I can no longer access the main wiki from
>>> http://internal.ext.com:8080/xwiki over the internet. But I can access
>>> it on server as http://localhost:8080/xwiki.
>>> I?ve gone through the documents for XEM setup & also setup the
>>> ?property? in XWiki.XWikiServerClass as internal.ext.com, ext.com,
>>> internal.ext.com:8080, etc. But none of the values seem to help. The
>>
>> As you can see in the documentation you have to set up the complete
>> domain names used to access the wiki (here "internal.ext.com") as
>> alias. Are you sure your domain even access the wiki server ?
>>
>>> localhost value just allows me to access the wiki on localhost only.
>>> The setup worked for me over intranet (It was an internal IP address
>>> and not a domain name) and the xwiki farm worked fine. But on the
>>> internet it just doesn?t work.
>>> I am also planning to use URL path based xwiki access and have set
>>> xwiki.virtual.usepath to 1.
>>> Could someone please guide me in the right direction.
>>
>> See http://manager.xwiki.org/xwiki/bin/view/AdminGuide/AccessWiki for
>> details on both multiwiki modes.
>>
>>> Thank you for your time and consideration guys.
>>> ___
>>> us

[xwiki-users] XWiki memory consumption

2010-01-15 Thread Mathias Herberts
Hi,

I am currently running XWiki enterprise v2.1.1 in a Tomcat 6.0.20 on a
dev box. I run into memory consumption problems, jconsole reports hops
of 50Mb when rendering a small page (with no attachements) making use
of the code macro (a single user rendering this page). The same
jconsole also shows roughly 14000 classes loaded! I had to push
MaxPermGen to 128Mb, otherwise I hit OOM.

Any other experience of such a high memory consumption?

Mathias.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XEM Setup over internet

2010-01-15 Thread Dilipkumar Jadhav
Hi Thomas,
Thanks for taking the time to reply to my email. I went through the
link that you provided and was able to get my wiki up and running. I
had to go through my domain name setup for the main instance with my
IT and got it working.
However, after all the imports and setup when i went to create a new
wiki I keep getting errors. I checked the mailing list, online docs &
even googled it and found that the mailing lists suggested using a
different version of XEM.
I tried converting XE 2.0.2 to XEM 2.1.1. I also tried XEM 2.1.1
direct installation. Everything went fine except for the creating of
the wiki. Following is the stack trace which I have shortened so I
could fit it into the email. I believe it is somewhere in my server
environment that there is an issue. All the errors point to execute
JDBC batch update. Please help. Thank you.

Error number 4001 in 4: Error while parsing velocity page
WikiManager.CreateNewWiki Wrapped Exception: Failed to evaluate
content with id Create New Wiki
Error number 4001 in 4: Error while parsing velocity page
WikiManager.CreateNewWiki
Wrapped Exception: Failed to evaluate content with id Create New Wiki
com.xpn.xwiki.XWikiException: Error number 4001 in 4: Error while
parsing velocity page WikiManager.CreateNewWiki
Wrapped Exception: Failed to evaluate content with id Create New Wiki
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:114)
at 
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:85)
at 
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272)
   ...
   org.apache.velocity.exception.MethodInvocationException: Invocation
of method 'createNewWiki' in  class
com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi threw exception
com.xpn.xwiki.XWikiException: Error number 3232 in 3: Exception while
saving attachment xwiki-enterprise-manager-application-xem-2.0.5.zip
of document XWiki.Import
Wrapped Exception: Could not execute JDBC batch update at
WikiManager.CreateNewWikiline 157, column 32?
at 
org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
   .
at java.lang.Thread.run(Thread.java:595)
Caused by: com.xpn.xwiki.XWikiException: Error number 3232 in 3:
Exception while saving attachment
xwiki-enterprise-manager-application-xem-2.0.5.zip of document
XWiki.Import
Wrapped Exception: Could not execute JDBC batch update
at 
com.xpn.xwiki.store.XWikiHibernateAttachmentStore.saveAttachmentContent(XWikiHibernateAttachmentStore.java:122)
at com.xpn.xwiki.XWiki.copyDocument(XWiki.java:4148)





> Message: 7
> Date: Fri, 15 Jan 2010 11:08:33 +0100
> From: Thomas Mortagne 
> Subject: Re: [xwiki-users] XEM Setup over internet
> To: XWiki Users 
> Message-ID:
>
> Content-Type: text/plain; charset=UTF-8
>
> On Thu, Jan 14, 2010 at 22:03, Dilipkumar Jadhav
>  wrote:
>> Hello guys,
>> I ran into some difficulties with setting up a wiki farm again.
>> The website address of the main wiki is (assume):
>> http://internal.ext.com:8080/xwiki
>> In the XWiki.XWikiServerClass the default value is localhost.
>> The moment I restart the tomcat server after switching
>> xwiki.virtual=1, I can no longer access the main wiki from
>> http://internal.ext.com:8080/xwiki over the internet. But I can access
>> it on server as http://localhost:8080/xwiki.
>> I?ve gone through the documents for XEM setup & also setup the
>> ?property? in XWiki.XWikiServerClass as internal.ext.com, ext.com,
>> internal.ext.com:8080, etc. But none of the values seem to help. The
>
> As you can see in the documentation you have to set up the complete
> domain names used to access the wiki (here "internal.ext.com") as
> alias. Are you sure your domain even access the wiki server ?
>
>> localhost value just allows me to access the wiki on localhost only.
>> The setup worked for me over intranet (It was an internal IP address
>> and not a domain name) and the xwiki farm worked fine. But on the
>> internet it just doesn?t work.
>> I am also planning to use URL path based xwiki access and have set
>> xwiki.virtual.usepath to 1.
>> Could someone please guide me in the right direction.
>
> See http://manager.xwiki.org/xwiki/bin/view/AdminGuide/AccessWiki for
> details on both multiwiki modes.
>
>> Thank you for your time and consideration guys.
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
>
> --
> Thomas Mortagne
>
>
Hi Thomas,
Thanks for taking the time to reply to me email. I went through the
link that you provided and was able to get my wiki up and running. I
had to go through my domain name setup for the main instance with my
IT and got it working.
However, after all the imports and setup w

Re: [xwiki-users] Is there a plan to support LDAP authentication for WebDAV feature

2010-01-15 Thread Thomas Mortagne
On Fri, Jan 15, 2010 at 19:22, Asiri Rathnayake
 wrote:
> Hi,
>
> On Fri, Jan 15, 2010 at 11:43 PM, Milind Kamble  wrote:
>
>> The http://platform.xwiki.org/xwiki/bin/view/Features/WebDAV page says
>> "Wiki's WebDAV implementation only supports Basic Access Authentication and
>> it doesn't support locking and versioning DAV operations yet.".
>> I confirmed this by using NetDrive webdav client to authenticate with my
>> xwiki installation which uses LDAP and it failed to authenticate -- but I
>> could connect as local user "Admin".
>> So it definitely seems to need some enhancement to support LDAP.
>>
>
> WebDAV specification has defined two authentication mechanisms in it.
>
> - Basic Access Authentication
>
> - Digest Authentication
>
> At the moment XWiki cannot support Digest Authentication and I'm not sure
> whether LDAP authentication can be done for WebDAV. I will look around a bit
> and get back to you on this.

Basic or Diggest authentication are authentication entry point (which
receive credentials), WebDav still have to use XWikiRightService to
validate the credentials (authentication back-end where LDAP
authenticator and others are).

>
> Thanks.
>
> - Asiri
>
>
>>
>> Regards,
>> Milind
>>
>>
>>
>>
>> 
>> From: Thomas Mortagne 
>> To: XWiki Users 
>> Sent: Fri, January 15, 2010 11:37:15 AM
>> Subject: Re: [xwiki-users] Is there a plan to support LDAP authentication
>> for WebDAV feature
>>
>> On Fri, Jan 15, 2010 at 16:48, Milind Kamble  wrote:
>> > Hi. I searched this mailing list and xwiki docs for this information but
>> didn't find anything.
>> > Is there any plan to extend the authentication mechanism in WebDAV
>> component to support LDAP? I felt that having access to page content and
>> attachment folders via shared drive (using NetDrive) would be immensely
>> attractive for end users because of the ability to use enhanced editors to
>> directly edit page content and the ability to upload/manage multiple
>> attachments.
>>
>> Well authentication mechanism is generic for the whole XWiki platform.
>> If WebDAV support any authentication then it supports LDAP, i doubt an
>> authentication system has been coded specifically for WebDAV module.
>> It would be weird that WebDAV does not use it but i don't know WebDAV
>> module very well.
>>
>> >
>> > Thanks,
>> > Milind
>> > M
>> >
>> >
>> >
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>> >
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>>
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Is there a plan to support LDAP authentication for WebDAV feature

2010-01-15 Thread Asiri Rathnayake
Hi,

On Fri, Jan 15, 2010 at 11:43 PM, Milind Kamble  wrote:

> The http://platform.xwiki.org/xwiki/bin/view/Features/WebDAV page says
> "Wiki's WebDAV implementation only supports Basic Access Authentication and
> it doesn't support locking and versioning DAV operations yet.".
> I confirmed this by using NetDrive webdav client to authenticate with my
> xwiki installation which uses LDAP and it failed to authenticate -- but I
> could connect as local user "Admin".
> So it definitely seems to need some enhancement to support LDAP.
>

WebDAV specification has defined two authentication mechanisms in it.

- Basic Access Authentication

- Digest Authentication

At the moment XWiki cannot support Digest Authentication and I'm not sure
whether LDAP authentication can be done for WebDAV. I will look around a bit
and get back to you on this.

Thanks.

- Asiri


>
> Regards,
> Milind
>
>
>
>
> 
> From: Thomas Mortagne 
> To: XWiki Users 
> Sent: Fri, January 15, 2010 11:37:15 AM
> Subject: Re: [xwiki-users] Is there a plan to support LDAP authentication
> for WebDAV feature
>
> On Fri, Jan 15, 2010 at 16:48, Milind Kamble  wrote:
> > Hi. I searched this mailing list and xwiki docs for this information but
> didn't find anything.
> > Is there any plan to extend the authentication mechanism in WebDAV
> component to support LDAP? I felt that having access to page content and
> attachment folders via shared drive (using NetDrive) would be immensely
> attractive for end users because of the ability to use enhanced editors to
> directly edit page content and the ability to upload/manage multiple
> attachments.
>
> Well authentication mechanism is generic for the whole XWiki platform.
> If WebDAV support any authentication then it supports LDAP, i doubt an
> authentication system has been coded specifically for WebDAV module.
> It would be weird that WebDAV does not use it but i don't know WebDAV
> module very well.
>
> >
> > Thanks,
> > Milind
> > M
> >
> >
> >
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Thomas Mortagne
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
>
>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Is there a plan to support LDAP authentication for WebDAV feature

2010-01-15 Thread Milind Kamble
The http://platform.xwiki.org/xwiki/bin/view/Features/WebDAV page says "Wiki's 
WebDAV implementation only supports Basic Access Authentication and it doesn't 
support locking and versioning DAV operations yet.". 
I confirmed this by using NetDrive webdav client to authenticate with my xwiki 
installation which uses LDAP and it failed to authenticate -- but I could 
connect as local user "Admin". 
So it definitely seems to need some enhancement to support LDAP.

Regards,
Milind





From: Thomas Mortagne 
To: XWiki Users 
Sent: Fri, January 15, 2010 11:37:15 AM
Subject: Re: [xwiki-users] Is there a plan to support LDAP authentication for 
WebDAV feature

On Fri, Jan 15, 2010 at 16:48, Milind Kamble  wrote:
> Hi. I searched this mailing list and xwiki docs for this information but 
> didn't find anything.
> Is there any plan to extend the authentication mechanism in WebDAV component 
> to support LDAP? I felt that having access to page content and attachment 
> folders via shared drive (using NetDrive) would be immensely attractive for 
> end users because of the ability to use enhanced editors to directly edit 
> page content and the ability to upload/manage multiple attachments.

Well authentication mechanism is generic for the whole XWiki platform.
If WebDAV support any authentication then it supports LDAP, i doubt an
authentication system has been coded specifically for WebDAV module.
It would be weird that WebDAV does not use it but i don't know WebDAV
module very well.

>
> Thanks,
> Milind
> M
>
>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Is there a plan to support LDAP authentication for WebDAV feature

2010-01-15 Thread Thomas Mortagne
On Fri, Jan 15, 2010 at 16:48, Milind Kamble  wrote:
> Hi. I searched this mailing list and xwiki docs for this information but 
> didn't find anything.
> Is there any plan to extend the authentication mechanism in WebDAV component 
> to support LDAP? I felt that having access to page content and attachment 
> folders via shared drive (using NetDrive) would be immensely attractive for 
> end users because of the ability to use enhanced editors to directly edit 
> page content and the ability to upload/manage multiple attachments.

Well authentication mechanism is generic for the whole XWiki platform.
If WebDAV support any authentication then it supports LDAP, i doubt an
authentication system has been coded specifically for WebDAV module.
It would be weird that WebDAV does not use it but i don't know WebDAV
module very well.

>
> Thanks,
> Milind
> M
>
>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] LDAP Auth: Only Works for the first time log in

2010-01-15 Thread jackyork

OpenSUSE11.1 + Tomcat6 + Mysql5 + XE2.0.5

xwiki.log  locates at /tmp/fze-tmp3/
And this is the only one I can find. Is this weird?

And I could not find any information regarding LDAP auth in this file. 


tmortagne wrote:
> 
> On Wed, Jan 13, 2010 at 21:56, jackyork  wrote:
>>
>> Tomcat + Mysql + XE2.0.5
>>
>> LDAP connection is working since  everything is fine when a user logs in
>> for
>> the first time. But if you log out and try to log in again, it gives an
>> error "Wrong password".
>>
>> I appreciate any reply. Thank you in advance!
> 
> You should try to enable debg log to see what's wrong, see
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HEnableLDAPdebuglog
> 
>> --
>> View this message in context:
>> http://n2.nabble.com/LDAP-Auth-Only-Works-for-the-first-time-log-in-tp4372167p4372167.html
>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> 
> 
> 
> -- 
> Thomas Mortagne
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/LDAP-Auth-Only-Works-for-the-first-time-log-in-tp4372167p4400056.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Showing HTML in a page from a field

2010-01-15 Thread Jeremie BOUSQUET
Wow, super thanks Marius, it works perfectly !
I'm not sure to understand why, but it did the trick :)

Jeremie
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Confusion on Differences

2010-01-15 Thread Ziggy
Ok Thanks

On Fri, Jan 15, 2010 at 3:37 PM, Guillaume Lerouge wrote:

> Hi,
>
> On Fri, Jan 15, 2010 at 4:26 PM, Ziggy  wrote:
>
> > Hi,
> >
> > Is it possible to install workspaces on top of Xwiki Enterprise?
> >
>
> Not at this point nor in the foreseeable future. Right now XWiki Workspaces
> is pretty much a standalone application.
>
> Guillaume
>
>
> > Thanks
> >
> > On Fri, Jan 15, 2010 at 1:36 PM, Guillaume Lerouge  > >wrote:
> >
> > > Hi Ziggy,
> > >
> > > On Fri, Jan 15, 2010 at 2:22 PM, Ziggy  wrote:
> > >
> > > > Hi,
> > > >
> > > > I need to understand the differences between some of the modules in
> > > XWIKI.
> > > > What exactly are the differences between Xwiki Enterprise, Xwiki
> > > Enterprise
> > > > Manager and Workspaces.
> > > >
> > > > I downloaded Xwiki Enterprise + the the XAR file that came with it.
> > When
> > > i
> > > > installed it i found that it already had the ability to create new
> > > spaces.
> > > > Does that mean that workspaces are already included in the Xwiki
> > > Enterprise
> > > > distribution?
> > > >
> > >
> > > No. XWiki Workspaces offers more advanced space management than XWiki
> > > Enterprise. Not all of its features have been ported back to XWiki
> > > Enterprise.
> > >
> > > Is the Enterprise manager just a way of managing multiple Xwiki
> > enterprise
> > > > instance?
> > >
> > >
> > > Yes.
> > >
> > >
> > > > I seem to be a bit confused. When i looked at the manuals it says
> > > > that enterprise manager allows you to manage multiple wikis but i
> > thought
> > > > that this was already possible using spaces in the "Xwiki Enterprise"
> > > > installation that i tried.
> > > >
> > >
> > > There's a difference between a space and a whole wiki, particularly at
> > the
> > > configuration and permission level.
> > >
> > > Guillaume
> > >
> > > Thanks
> > > > ___
> > > > users mailing list
> > > > users@xwiki.org
> > > > http://lists.xwiki.org/mailman/listinfo/users
> > > >
> > >
> > >
> > >
> > > --
> > > Guillaume Lerouge
> > > Product Manager - XWiki SAS
> > > Skype: wikibc
> > > Twitter: glerouge
> > > http://guillaumelerouge.com/
> > > ___
> > > users mailing list
> > > users@xwiki.org
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Guillaume Lerouge
> Product Manager - XWiki SAS
> Skype: wikibc
> Twitter: glerouge
> http://guillaumelerouge.com/
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Showing HTML in a page from a field

2010-01-15 Thread Marius Dumitru Florea
Hi Jeremie,

Jeremie BOUSQUET wrote:
> Hi all,
> 
> This problem is driving me nuts...
> I try to retrieve some HTML content from a field of a specific object, and
> display it in a page (rendered, not as code).
> 
> I wrote this kind of code, and it's the unique content of my page :
> 
> {{velocity filter="none"}}
> {{html clean="false" wiki="false"}}
> #set ($obj = $doc.getObject("MyClass"))

> #set ($htmlbody = $obj.bodyhtml)
> #set ($htmlbody = $htmlbody.replaceAll(" ", "
> ").replaceAll("<","<").replaceAll(">",">").replaceAll("","").replaceAll("&",
> "&").replaceAll(""", '"'))

What happens if you replace the 2 lines above with:

#set($htmlbody = $obj.getProperty("bodyhtml").value)

Hope this helps,
Marius

> 
> $htmlbody
> 
> {{/html}}
> {{/velocity}}
> 
> The replacements are here because, for any reason, I could not manage to
> store my HTML in the field without having many characters substituted in the
> process (like "<" and such), and line break tags are inserted randomly, but
> the resulting string looks like regular HTML content (I debugged it in
> server logs).
> 
> Problem is that, when rendered, this page shows the following :
> 
> {{html clean="false" wiki="false"}}
> [... html content rendered ...]
> 
> So there are 2 problems IMO, and I really don't see from where they come :
> - my {{html}} macro is not understood by the wiki engine
> - even if not understood, the page understands the $htmlbody is html and
> renders it like that. But it assumes wiki="true", and so, for example, all
> links are broken (replaced by bunches of " result is not clean
> 
> Thanks,
> Jeremie
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Is there a plan to support LDAP authentication for WebDAV feature

2010-01-15 Thread Milind Kamble
Hi. I searched this mailing list and xwiki docs for this information but didn't 
find anything. 
Is there any plan to extend the authentication mechanism in WebDAV component to 
support LDAP? I felt that having access to page content and attachment folders 
via shared drive (using NetDrive) would be immensely attractive for end users 
because of the ability to use enhanced editors to directly edit page content 
and the ability to upload/manage multiple attachments.

Thanks,
Milind
M


  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Showing HTML in a page from a field

2010-01-15 Thread Jeremie BOUSQUET
Hi all,

This problem is driving me nuts...
I try to retrieve some HTML content from a field of a specific object, and
display it in a page (rendered, not as code).

I wrote this kind of code, and it's the unique content of my page :

{{velocity filter="none"}}
{{html clean="false" wiki="false"}}
#set ($obj = $doc.getObject("MyClass"))
#set ($htmlbody = $obj.bodyhtml)
#set ($htmlbody = $htmlbody.replaceAll(" ", "
").replaceAll("<","<").replaceAll(">",">").replaceAll("","").replaceAll("&",
"&").replaceAll(""", '"'))

$htmlbody

{{/html}}
{{/velocity}}

The replacements are here because, for any reason, I could not manage to
store my HTML in the field without having many characters substituted in the
process (like "<" and such), and line break tags are inserted randomly, but
the resulting string looks like regular HTML content (I debugged it in
server logs).

Problem is that, when rendered, this page shows the following :

{{html clean="false" wiki="false"}}
[... html content rendered ...]

So there are 2 problems IMO, and I really don't see from where they come :
- my {{html}} macro is not understood by the wiki engine
- even if not understood, the page understands the $htmlbody is html and
renders it like that. But it assumes wiki="true", and so, for example, all
links are broken (replaced by bunches of "http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Confusion on Differences

2010-01-15 Thread Guillaume Lerouge
Hi,

On Fri, Jan 15, 2010 at 4:26 PM, Ziggy  wrote:

> Hi,
>
> Is it possible to install workspaces on top of Xwiki Enterprise?
>

Not at this point nor in the foreseeable future. Right now XWiki Workspaces
is pretty much a standalone application.

Guillaume


> Thanks
>
> On Fri, Jan 15, 2010 at 1:36 PM, Guillaume Lerouge  >wrote:
>
> > Hi Ziggy,
> >
> > On Fri, Jan 15, 2010 at 2:22 PM, Ziggy  wrote:
> >
> > > Hi,
> > >
> > > I need to understand the differences between some of the modules in
> > XWIKI.
> > > What exactly are the differences between Xwiki Enterprise, Xwiki
> > Enterprise
> > > Manager and Workspaces.
> > >
> > > I downloaded Xwiki Enterprise + the the XAR file that came with it.
> When
> > i
> > > installed it i found that it already had the ability to create new
> > spaces.
> > > Does that mean that workspaces are already included in the Xwiki
> > Enterprise
> > > distribution?
> > >
> >
> > No. XWiki Workspaces offers more advanced space management than XWiki
> > Enterprise. Not all of its features have been ported back to XWiki
> > Enterprise.
> >
> > Is the Enterprise manager just a way of managing multiple Xwiki
> enterprise
> > > instance?
> >
> >
> > Yes.
> >
> >
> > > I seem to be a bit confused. When i looked at the manuals it says
> > > that enterprise manager allows you to manage multiple wikis but i
> thought
> > > that this was already possible using spaces in the "Xwiki Enterprise"
> > > installation that i tried.
> > >
> >
> > There's a difference between a space and a whole wiki, particularly at
> the
> > configuration and permission level.
> >
> > Guillaume
> >
> > Thanks
> > > ___
> > > users mailing list
> > > users@xwiki.org
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> >
> >
> >
> > --
> > Guillaume Lerouge
> > Product Manager - XWiki SAS
> > Skype: wikibc
> > Twitter: glerouge
> > http://guillaumelerouge.com/
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Confusion on Differences

2010-01-15 Thread Ziggy
Hi,

Is it possible to install workspaces on top of Xwiki Enterprise?

Thanks

On Fri, Jan 15, 2010 at 1:36 PM, Guillaume Lerouge wrote:

> Hi Ziggy,
>
> On Fri, Jan 15, 2010 at 2:22 PM, Ziggy  wrote:
>
> > Hi,
> >
> > I need to understand the differences between some of the modules in
> XWIKI.
> > What exactly are the differences between Xwiki Enterprise, Xwiki
> Enterprise
> > Manager and Workspaces.
> >
> > I downloaded Xwiki Enterprise + the the XAR file that came with it. When
> i
> > installed it i found that it already had the ability to create new
> spaces.
> > Does that mean that workspaces are already included in the Xwiki
> Enterprise
> > distribution?
> >
>
> No. XWiki Workspaces offers more advanced space management than XWiki
> Enterprise. Not all of its features have been ported back to XWiki
> Enterprise.
>
> Is the Enterprise manager just a way of managing multiple Xwiki enterprise
> > instance?
>
>
> Yes.
>
>
> > I seem to be a bit confused. When i looked at the manuals it says
> > that enterprise manager allows you to manage multiple wikis but i thought
> > that this was already possible using spaces in the "Xwiki Enterprise"
> > installation that i tried.
> >
>
> There's a difference between a space and a whole wiki, particularly at the
> configuration and permission level.
>
> Guillaume
>
> Thanks
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Guillaume Lerouge
> Product Manager - XWiki SAS
> Skype: wikibc
> Twitter: glerouge
> http://guillaumelerouge.com/
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Xwiki Enterprise

2010-01-15 Thread Ziggy
Hi,

When i create a new wiki, its default url is http://.
localdomain.com:8080/xwiki/bin/view/Main/

I am currently testing this on a local machine so the Enterprise manager is
running on localhost. How can i change it so that the default domain that is
used is localhost so that every wiki's url is http://
.localhost:8080/xwiki/bin/view/Main/

If the above is not possible, is it possible to change it to anything other
than localdomain.com?

Thanks
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Confusion on Differences

2010-01-15 Thread Guillaume Lerouge
Hi Ziggy,

On Fri, Jan 15, 2010 at 2:22 PM, Ziggy  wrote:

> Hi,
>
> I need to understand the differences between some of the modules in XWIKI.
> What exactly are the differences between Xwiki Enterprise, Xwiki Enterprise
> Manager and Workspaces.
>
> I downloaded Xwiki Enterprise + the the XAR file that came with it. When i
> installed it i found that it already had the ability to create new spaces.
> Does that mean that workspaces are already included in the Xwiki Enterprise
> distribution?
>

No. XWiki Workspaces offers more advanced space management than XWiki
Enterprise. Not all of its features have been ported back to XWiki
Enterprise.

Is the Enterprise manager just a way of managing multiple Xwiki enterprise
> instance?


Yes.


> I seem to be a bit confused. When i looked at the manuals it says
> that enterprise manager allows you to manage multiple wikis but i thought
> that this was already possible using spaces in the "Xwiki Enterprise"
> installation that i tried.
>

There's a difference between a space and a whole wiki, particularly at the
configuration and permission level.

Guillaume

Thanks
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Confusion on Differences

2010-01-15 Thread Ziggy
Hi,

I need to understand the differences between some of the modules in XWIKI.
What exactly are the differences between Xwiki Enterprise, Xwiki Enterprise
Manager and Workspaces.

I downloaded Xwiki Enterprise + the the XAR file that came with it. When i
installed it i found that it already had the ability to create new spaces.
Does that mean that workspaces are already included in the Xwiki Enterprise
distribution?

Is the Enterprise manager just a way of managing multiple Xwiki enterprise
instance? I seem to be a bit confused. When i looked at the manuals it says
that enterprise manager allows you to manage multiple wikis but i thought
that this was already possible using spaces in the "Xwiki Enterprise"
installation that i tried.

Thanks
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Lucene search "object:" not working ?

2010-01-15 Thread Jeremie BOUSQUET
It works now ! At least for XWiki.XWikiUsers. I believe it was a reindexing
problem. I had migrated and restarted the instance a while ago, but the
index maybe was not up to date still.

Anyway, thanks !
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Blogs in 2.1.1

2010-01-15 Thread Valdis Vītoliņš
http://test.odo.lv/Blog/ 
Credentials for testing I've sent separately.

Valdis

> Can you give me an example, so that I know what to look for?

...
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Blogs in 2.1.1

2010-01-15 Thread Sergiu Dumitriu
On 01/15/2010 01:28 PM, Jeremie BOUSQUET wrote:
> Hello,
>
> In this case I'm not sure full HTML is really needed, see the form part at
> the beginning of Blog.WebHome, with the create button :
>
> 
> class="wikimodel-freestanding"
> href="http://r-wiki/test/bin/view/Blog/CreatePost?xpage=plain
> http://r-wikiggs.gemalto.com/test/bin/view/Blog/CreatePost?xpage=plain>"> class="wikigeneratedlinkcontent">http://r-wiki/test/bin/view/Blog/CreatePost?xpage=plain"
> id="newBlogPost" method="post">

Ah, I see. This is a clash between HTML with wiki markup enabled and the 
rendering engine.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Blogs in 2.1.1

2010-01-15 Thread Jeremie BOUSQUET
Hello,

In this case I'm not sure full HTML is really needed, see the form part at
the beginning of Blog.WebHome, with the create button :


  http://r-wiki/test/bin/view/Blog/CreatePost?xpage=plain
http://r-wikiggs.gemalto.com/test/bin/view/Blog/CreatePost?xpage=plain>">http://r-wiki/test/bin/view/Blog/CreatePost?xpage=plain"
id="newBlogPost" method="post">
  


http://r-wiki/test/resources/icons/silk/add.gif)
http://r-wikiggs.gemalto.com/test/resources/icons/silk/add.gif%29>">http://r-wiki/test/resources/icons/silk/add.gif)
no-repeat left center;)">Create a new post 
  
  


See how the stylesheet and action part was corrupted by wiki links spans...
I think it's because in 2.0, when it sees a string starting with "http://...";,
wiki replaces it by a nice clickable link and injects s. In practice,
it breaks the html and scripts in many cases, and is painful to avoid when
programming in a page... Because not all urls returning methods in xwiki api
return correct urls (relative, and not absolute, that are not boxed).
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Blogs in 2.1.1

2010-01-15 Thread Sergiu Dumitriu
On 01/15/2010 01:03 PM, Valdis Vītoliņš wrote:
> I also use xwiki through apache proxy. Mention bug can be easily found
> but is not the only one.
> When I started to investigate and fix all broken HTML bugs, I got tired
> and downgraded Blog to previously used 1.8,
> because too many of "one-liner" 2.1.1 Blog constructs produced incorrect
> HTML through the proxy.

Can you give me an example, so that I know what to look for?

> We can join efforts, I you wish, to try to make it working.
>
> Valdis
>
>> Hi,
>>
>> I just migrated my instance from 2.0.3 to 2.1.1, and imported new xar,
>> including all Blog pages.
>>
>> My instance is available either directly, or through a reverse proxy for
>> larger scope:
>> Reverse Proxy (Apache)<->  Proxy (Apache)<->  Wiki (tomcat)
>>
>> Viewing, editing and posting new blog entries when using url of proxy or
>> directly tomcat works perfectly.
>>
>> Posting, when using url of reverse proxy, does not work because when
>> clicking "create" button, the following url is used :
>> http://r-wiki.company.com/test/bin/view/Blog/> class=?entrySpace=Blog&entryTitle=jbtests
>>
>> Browsing the wiki and editing pages through our reverse proxy always worked
>> perfectly, and posting blogs was not an issue since now. I think it's linked
>> to urls replacement in syntax 2.0, and the fact that it considers urls local
>> or external, but I'm not sure.
>>
>> Any help appreciated,


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Blogs in 2.1.1

2010-01-15 Thread Valdis Vītoliņš
I also use xwiki through apache proxy. Mention bug can be easily found
but is not the only one.
When I started to investigate and fix all broken HTML bugs, I got tired
and downgraded Blog to previously used 1.8,
because too many of "one-liner" 2.1.1 Blog constructs produced incorrect
HTML through the proxy.

We can join efforts, I you wish, to try to make it working. 

Valdis

> Hi,
> 
> I just migrated my instance from 2.0.3 to 2.1.1, and imported new xar,
> including all Blog pages.
> 
> My instance is available either directly, or through a reverse proxy for
> larger scope:
> Reverse Proxy (Apache) <-> Proxy (Apache) <-> Wiki (tomcat)
> 
> Viewing, editing and posting new blog entries when using url of proxy or
> directly tomcat works perfectly.
> 
> Posting, when using url of reverse proxy, does not work because when
> clicking "create" button, the following url is used :
> http://r-wiki.company.com/test/bin/view/Blog/ class=?entrySpace=Blog&entryTitle=jbtests
> 
> Browsing the wiki and editing pages through our reverse proxy always worked
> perfectly, and posting blogs was not an issue since now. I think it's linked
> to urls replacement in syntax 2.0, and the fact that it considers urls local
> or external, but I'm not sure.
> 
> Any help appreciated,
> 
> Thanks,
> Jeremie
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Project management

2010-01-15 Thread Ziggy
Hi Vincent,

I did see that link before but i wasnt sure whether it can be incorported
into an existing wiki instance.
I already have and installation of Xwiki Enterprise 2.1.

When i looked at Chronopolysis, i couldnt work out whether it can be added
to an existing instance of an Xwiki installation. When you try to download
it, it only offers an exe, a jar file and a zip which i think include fresh
installations of Xwiki.

Could you please give me some more information as to whether i can include
Chronopolysis on to an existing xwiki installation. If so how can i do that.


Thanks



On Fri, Jan 15, 2010 at 9:14 AM, Vincent Massol  wrote:

>
> On Jan 7, 2010, at 5:28 PM, Ziggy wrote:
>
> > Hi,
> >
> > Can Xwiki be used for project management of the development of a web
> based
> > software product? if so, could you point me to the relevant urls.
>
> Yes it can.
> Example: http://chronopolys.xwiki.org/xwiki/bin/view/Main/WebHome
>
> -Vincent
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to Find XE Environment Requests

2010-01-15 Thread Thomas Mortagne
On Thu, Jan 14, 2010 at 17:28, jackyork  wrote:
>
> our server doesn't have the latest lib/package installed. For example, we
> still use Tomcat5. This situation has likely caused 2 errors. Each error is
> time-consuming since it didn't give me clear information.
>
> So I am looking for a list of libs/packages that are used by XE. Is there
> such a list?

Well you can look directly in WEB-INF/lib/ folder. Or maybe i did not
fully understood fully your question.

>
>
> --
> View this message in context: 
> http://n2.nabble.com/How-to-Find-XE-Environment-Requests-tp4393659p4393659.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Blogs in 2.1.1

2010-01-15 Thread Sergiu Dumitriu
On 01/15/2010 11:42 AM, Jeremie BOUSQUET wrote:
> Hi,
>
> I just migrated my instance from 2.0.3 to 2.1.1, and imported new xar,
> including all Blog pages.
>
> My instance is available either directly, or through a reverse proxy for
> larger scope:
> Reverse Proxy (Apache)<->  Proxy (Apache)<->  Wiki (tomcat)
>
> Viewing, editing and posting new blog entries when using url of proxy or
> directly tomcat works perfectly.
>
> Posting, when using url of reverse proxy, does not work because when
> clicking "create" button, the following url is used :
> http://r-wiki.company.com/test/bin/view/Blog/ class=?entrySpace=Blog&entryTitle=jbtests
>
> Browsing the wiki and editing pages through our reverse proxy always worked
> perfectly, and posting blogs was not an issue since now. I think it's linked
> to urls replacement in syntax 2.0, and the fact that it considers urls local
> or external, but I'm not sure.
>
> Any help appreciated,

Could you put the full generated HTML for the create page on pastebin 
and send me the URL?

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Wiki syntax for code sections

2010-01-15 Thread Ziggy
Ok thanks Thomas. I will try and use any language to get the font correct.



On Fri, Jan 15, 2010 at 10:44 AM, Thomas Mortagne  wrote:

> On Fri, Jan 15, 2010 at 11:22, Ziggy  wrote:
> > Hi Thomas,
> >
> > Yes i did notice that it does put a box around it. It doesnt show the box
> > properly while editing but it does once you save it.
>
> That's perfectly normal. That's the goal of the WYSIWYG: show you the
> content as you would see it in view mode.
>
> > is it possible to the same without worrying about the language?
>
> If you don't put the language, code macro will try to find it itself.
> But it's not easy so it's not always right (plus it's a little slower
> since it has to determine the language before highlight the code
> snippet).
>
> >
> > I did try this
> >
> > {{code}}
> > Some clever code
> > goes here
> > {{/code}}
> >
> > It does work but the font defaults to "Arial" but i think in most wiki
> the
> > font defaults to courier.
> >
> > Thanks
> >
> > I tried this
> >
> > On Fri, Jan 15, 2010 at 9:49 AM, Thomas Mortagne
> > wrote:
> >
> >> On Fri, Jan 15, 2010 at 10:00, Ziggy  wrote:
> >> > Oh and also, when i use the "code" macro, it doesnt actually draw a
> box
> >> > around the code but it rather highlights the text which is not i want.
> >> >
> >> > Thanks
> >> >
> >> > On Fri, Jan 15, 2010 at 8:33 AM, Ziggy  wrote:
> >> >
> >> >> Hi Guys,
> >> >>
> >> >> What is the wiki syntax for display code in a page. Here is an
> example
> >> of
> >> >> what i would like to do.
> >> >> Look at this page
> http://15black.bluedepot.com/styles/tiddlypedia.htm ,
> >> >> Look at the TiddlyPediaPackage section half way through the page. The
> >> syntax
> >> >> to achieve that is as simple as typing this
> >> >>
> >> >> {{{
> >> >> HTML Structure
> >> >> var sidebar = document.getElementbyId('sidebar')
> >> >> }}}
> >> >>
> >> >> I tried to do the same for xwiki pages but it dont work. I think it
> is
> >> >> possible to do it using the "code" macro but this only works when you
> >> use
> >> >> the WYSIWYG editor. It doesnt work in WIKI edit mode. Is there a
> simple
> >> >> syntax that i can use to achieve this?
> >>
> >> Everything you can do in the WYSIWYG also works in wiki syntax
> >> (WYSIWYG only generate wiki syntax at the end). When you don't know
> >> how to do something WYSIWYG did, save an edit the page in wiki mode.
> >>
> >> And yes code macri is working well in wiki model also, for example:
> >>
> >> {{code language=html}}
> >> 
> >>  Cool!
> >> 
> >> {{/code}}
> >>
> >> and it does print a box around unless you have a special (wrong) skin.
> >> See http://tuska.myxwiki.org/xwiki/bin/view/Test/Code
> >>
> >> >>
> >> >> Thanks
> >> >>
> >> > ___
> >> > users mailing list
> >> > users@xwiki.org
> >> > http://lists.xwiki.org/mailman/listinfo/users
> >> >
> >>
> >>
> >>
> >> --
> >> Thomas Mortagne
> >> ___
> >> users mailing list
> >> users@xwiki.org
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Thomas Mortagne
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Wiki syntax for code sections

2010-01-15 Thread Thomas Mortagne
On Fri, Jan 15, 2010 at 11:22, Ziggy  wrote:
> Hi Thomas,
>
> Yes i did notice that it does put a box around it. It doesnt show the box
> properly while editing but it does once you save it.

That's perfectly normal. That's the goal of the WYSIWYG: show you the
content as you would see it in view mode.

> is it possible to the same without worrying about the language?

If you don't put the language, code macro will try to find it itself.
But it's not easy so it's not always right (plus it's a little slower
since it has to determine the language before highlight the code
snippet).

>
> I did try this
>
> {{code}}
> Some clever code
> goes here
> {{/code}}
>
> It does work but the font defaults to "Arial" but i think in most wiki the
> font defaults to courier.
>
> Thanks
>
> I tried this
>
> On Fri, Jan 15, 2010 at 9:49 AM, Thomas Mortagne
> wrote:
>
>> On Fri, Jan 15, 2010 at 10:00, Ziggy  wrote:
>> > Oh and also, when i use the "code" macro, it doesnt actually draw a box
>> > around the code but it rather highlights the text which is not i want.
>> >
>> > Thanks
>> >
>> > On Fri, Jan 15, 2010 at 8:33 AM, Ziggy  wrote:
>> >
>> >> Hi Guys,
>> >>
>> >> What is the wiki syntax for display code in a page. Here is an example
>> of
>> >> what i would like to do.
>> >> Look at this page http://15black.bluedepot.com/styles/tiddlypedia.htm ,
>> >> Look at the TiddlyPediaPackage section half way through the page. The
>> syntax
>> >> to achieve that is as simple as typing this
>> >>
>> >> {{{
>> >> HTML Structure
>> >> var sidebar = document.getElementbyId('sidebar')
>> >> }}}
>> >>
>> >> I tried to do the same for xwiki pages but it dont work. I think it is
>> >> possible to do it using the "code" macro but this only works when you
>> use
>> >> the WYSIWYG editor. It doesnt work in WIKI edit mode. Is there a simple
>> >> syntax that i can use to achieve this?
>>
>> Everything you can do in the WYSIWYG also works in wiki syntax
>> (WYSIWYG only generate wiki syntax at the end). When you don't know
>> how to do something WYSIWYG did, save an edit the page in wiki mode.
>>
>> And yes code macri is working well in wiki model also, for example:
>>
>> {{code language=html}}
>> 
>>  Cool!
>> 
>> {{/code}}
>>
>> and it does print a box around unless you have a special (wrong) skin.
>> See http://tuska.myxwiki.org/xwiki/bin/view/Test/Code
>>
>> >>
>> >> Thanks
>> >>
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>> >
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Blogs in 2.1.1

2010-01-15 Thread Jeremie BOUSQUET
Hi,

I just migrated my instance from 2.0.3 to 2.1.1, and imported new xar,
including all Blog pages.

My instance is available either directly, or through a reverse proxy for
larger scope:
Reverse Proxy (Apache) <-> Proxy (Apache) <-> Wiki (tomcat)

Viewing, editing and posting new blog entries when using url of proxy or
directly tomcat works perfectly.

Posting, when using url of reverse proxy, does not work because when
clicking "create" button, the following url is used :
http://r-wiki.company.com/test/bin/view/Blog/http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Wiki syntax for code sections

2010-01-15 Thread Ziggy
Hi Thomas,

Yes i did notice that it does put a box around it. It doesnt show the box
properly while editing but it does once you save it.
is it possible to the same without worrying about the language?

I did try this

{{code}}
Some clever code
goes here
{{/code}}

It does work but the font defaults to "Arial" but i think in most wiki the
font defaults to courier.

Thanks

I tried this

On Fri, Jan 15, 2010 at 9:49 AM, Thomas Mortagne
wrote:

> On Fri, Jan 15, 2010 at 10:00, Ziggy  wrote:
> > Oh and also, when i use the "code" macro, it doesnt actually draw a box
> > around the code but it rather highlights the text which is not i want.
> >
> > Thanks
> >
> > On Fri, Jan 15, 2010 at 8:33 AM, Ziggy  wrote:
> >
> >> Hi Guys,
> >>
> >> What is the wiki syntax for display code in a page. Here is an example
> of
> >> what i would like to do.
> >> Look at this page http://15black.bluedepot.com/styles/tiddlypedia.htm ,
> >> Look at the TiddlyPediaPackage section half way through the page. The
> syntax
> >> to achieve that is as simple as typing this
> >>
> >> {{{
> >> HTML Structure
> >> var sidebar = document.getElementbyId('sidebar')
> >> }}}
> >>
> >> I tried to do the same for xwiki pages but it dont work. I think it is
> >> possible to do it using the "code" macro but this only works when you
> use
> >> the WYSIWYG editor. It doesnt work in WIKI edit mode. Is there a simple
> >> syntax that i can use to achieve this?
>
> Everything you can do in the WYSIWYG also works in wiki syntax
> (WYSIWYG only generate wiki syntax at the end). When you don't know
> how to do something WYSIWYG did, save an edit the page in wiki mode.
>
> And yes code macri is working well in wiki model also, for example:
>
> {{code language=html}}
> 
>  Cool!
> 
> {{/code}}
>
> and it does print a box around unless you have a special (wrong) skin.
> See http://tuska.myxwiki.org/xwiki/bin/view/Test/Code
>
> >>
> >> Thanks
> >>
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
>
>
> --
> Thomas Mortagne
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XEM Setup over internet

2010-01-15 Thread Thomas Mortagne
On Thu, Jan 14, 2010 at 22:03, Dilipkumar Jadhav
 wrote:
> Hello guys,
> I ran into some difficulties with setting up a wiki farm again.
> The website address of the main wiki is (assume):
> http://internal.ext.com:8080/xwiki
> In the XWiki.XWikiServerClass the default value is localhost.
> The moment I restart the tomcat server after switching
> xwiki.virtual=1, I can no longer access the main wiki from
> http://internal.ext.com:8080/xwiki over the internet. But I can access
> it on server as http://localhost:8080/xwiki.
> I’ve gone through the documents for XEM setup & also setup the
> “property” in XWiki.XWikiServerClass as internal.ext.com, ext.com,
> internal.ext.com:8080, etc. But none of the values seem to help. The

As you can see in the documentation you have to set up the complete
domain names used to access the wiki (here "internal.ext.com") as
alias. Are you sure your domain even access the wiki server ?

> localhost value just allows me to access the wiki on localhost only.
> The setup worked for me over intranet (It was an internal IP address
> and not a domain name) and the xwiki farm worked fine. But on the
> internet it just doesn’t work.
> I am also planning to use URL path based xwiki access and have set
> xwiki.virtual.usepath to 1.
> Could someone please guide me in the right direction.

See http://manager.xwiki.org/xwiki/bin/view/AdminGuide/AccessWiki for
details on both multiwiki modes.

> Thank you for your time and consideration guys.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Wiki syntax for code sections

2010-01-15 Thread Thomas Mortagne
On Fri, Jan 15, 2010 at 10:00, Ziggy  wrote:
> Oh and also, when i use the "code" macro, it doesnt actually draw a box
> around the code but it rather highlights the text which is not i want.
>
> Thanks
>
> On Fri, Jan 15, 2010 at 8:33 AM, Ziggy  wrote:
>
>> Hi Guys,
>>
>> What is the wiki syntax for display code in a page. Here is an example of
>> what i would like to do.
>> Look at this page http://15black.bluedepot.com/styles/tiddlypedia.htm ,
>> Look at the TiddlyPediaPackage section half way through the page. The syntax
>> to achieve that is as simple as typing this
>>
>> {{{
>> HTML Structure
>> var sidebar = document.getElementbyId('sidebar')
>> }}}
>>
>> I tried to do the same for xwiki pages but it dont work. I think it is
>> possible to do it using the "code" macro but this only works when you use
>> the WYSIWYG editor. It doesnt work in WIKI edit mode. Is there a simple
>> syntax that i can use to achieve this?

Everything you can do in the WYSIWYG also works in wiki syntax
(WYSIWYG only generate wiki syntax at the end). When you don't know
how to do something WYSIWYG did, save an edit the page in wiki mode.

And yes code macri is working well in wiki model also, for example:

{{code language=html}}

  Cool!

{{/code}}

and it does print a box around unless you have a special (wrong) skin.
See http://tuska.myxwiki.org/xwiki/bin/view/Test/Code

>>
>> Thanks
>>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Project management

2010-01-15 Thread Vincent Massol

On Jan 7, 2010, at 5:28 PM, Ziggy wrote:

> Hi,
> 
> Can Xwiki be used for project management of the development of a web based
> software product? if so, could you point me to the relevant urls.

Yes it can.
Example: http://chronopolys.xwiki.org/xwiki/bin/view/Main/WebHome

-Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Wiki syntax for code sections

2010-01-15 Thread Ziggy
Oh and also, when i use the "code" macro, it doesnt actually draw a box
around the code but it rather highlights the text which is not i want.

Thanks

On Fri, Jan 15, 2010 at 8:33 AM, Ziggy  wrote:

> Hi Guys,
>
> What is the wiki syntax for display code in a page. Here is an example of
> what i would like to do.
> Look at this page http://15black.bluedepot.com/styles/tiddlypedia.htm ,
> Look at the TiddlyPediaPackage section half way through the page. The syntax
> to achieve that is as simple as typing this
>
> {{{
> HTML Structure
> var sidebar = document.getElementbyId('sidebar')
> }}}
>
> I tried to do the same for xwiki pages but it dont work. I think it is
> possible to do it using the "code" macro but this only works when you use
> the WYSIWYG editor. It doesnt work in WIKI edit mode. Is there a simple
> syntax that i can use to achieve this?
>
> Thanks
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Wiki syntax for code sections

2010-01-15 Thread Ziggy
Hi Guys,

What is the wiki syntax for display code in a page. Here is an example of
what i would like to do.
Look at this page http://15black.bluedepot.com/styles/tiddlypedia.htm , Look
at the TiddlyPediaPackage section half way through the page. The syntax to
achieve that is as simple as typing this

{{{
HTML Structure
var sidebar = document.getElementbyId('sidebar')
}}}

I tried to do the same for xwiki pages but it dont work. I think it is
possible to do it using the "code" macro but this only works when you use
the WYSIWYG editor. It doesnt work in WIKI edit mode. Is there a simple
syntax that i can use to achieve this?

Thanks
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] View content of attachment

2010-01-15 Thread Vincent Massol
Hi Anne,

There are 2 options:
1) import the document into the wiki. We have an office importer.
2) preview the document's content directly in the page

1) exists and works.
2) is in development and should be ready for XE 2.3 M1 (possibly earlier if we 
can but hard to commit to it). FYI 2.3M1 should be early March.

All that said the code is already available in svn. Thus if you're technical 
you can build it and install it in your wiki. It's in the sandbox right now:
http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/xwiki-officepreview/

Thanks
-Vincent

PS: Please answer the FAQ entry you've created and the comment you've left too 
on xwiki.org, now that you know the answer! :)

On Jan 15, 2010, at 9:02 AM, Anne Hoffmann wrote:

> Hi, 
> 
> 
> 
> can I somehow make the content of an attached document available on the
> page? 
> 
> I would like to view this content directly on the page, not just link to it,
> e.g. a Office or PDF file. 
> 
> 
> 
> Thanks!

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] View content of attachment

2010-01-15 Thread Anne Hoffmann
Hi, 

 

can I somehow make the content of an attached document available on the
page? 

I would like to view this content directly on the page, not just link to it,
e.g. a Office or PDF file. 

 

Thanks!

 

Anne Hoffmann

--

Technical Writer

parson communication

 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users