[xwiki-users] How to fully delete a Space?

2009-07-15 Thread Loris Conedera
Hi All,
I have some problems to fully delete a Space from Xwiki, I think there
is a not update cache of pages list that contains moved/deleted pages,
here what i did:

I tried to move all pages from the space "A" to the space "B" and to
delete A.WebHome.
In this way it seems that the space is fully deleted and if I try to
open the url:

https://intranet.test.com/xwiki/A/

I get the message "The requested document could not be found", as i expected.

The problem is that the "A" space yet appears in the "listo of spaces"
that i can select in "Search", "Lucene Search", "Index", "Tree"...
If I Search in space "A"  i get some name of pages but if i click on
them i get the "The requested document could not be found" message
because i moved them on space "B"

Can you let me know where i'm wrong? is there any way to delete the
indexes that contain the space list? If not, Can i work directly on
database?

Thanks!

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


[xwiki-users] about to give in...

2009-07-15 Thread Edward Eldon
Hi

I have noticed that there has been more activity in the last couple of days
... so, here's one last attempt.

I have got to the stage where a captcha field is shown, and the page
(registerinline.vm) displays the correct errors if it isn't filled in (some
simple if statements)

However, the user is STILL registered even if the captcha is filled in
wrongly.

I have searched this news group, experimented and given up ... but if anyone
can suggest how to stop this my xwiki user would really appreciate it.
Happy to post code if anyone's interested!

thanks - hopefully

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


Re: [xwiki-users] How to fully delete a Space?

2009-07-15 Thread Sergiu Dumitriu
Loris Conedera wrote:
> Hi All,
> I have some problems to fully delete a Space from Xwiki, I think there
> is a not update cache of pages list that contains moved/deleted pages,
> here what i did:

Please use the Delete Space snippet: 
http://code.xwiki.org/xwiki/bin/Snippets/DeleteSpaceSnippet

> I tried to move all pages from the space "A" to the space "B" and to
> delete A.WebHome.
> In this way it seems that the space is fully deleted and if I try to
> open the url:
> 
> https://intranet.test.com/xwiki/A/
> 
> I get the message "The requested document could not be found", as i expected.
> 
> The problem is that the "A" space yet appears in the "listo of spaces"
> that i can select in "Search", "Lucene Search", "Index", "Tree"...
> If I Search in space "A"  i get some name of pages but if i click on
> them i get the "The requested document could not be found" message
> because i moved them on space "B"

This is probably because the document name ends with a space, and the 
wiki link syntax trims spaces.

> Can you let me know where i'm wrong? is there any way to delete the
> indexes that contain the space list? If not, Can i work directly on
> database?

You should not do that, although it's possible.

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


[xwiki-users] Page convert PDF error occurs

2009-07-15 Thread ArielWang

I use XWIKI 1.8.
There is a function that allows user to convert the WIKI page to PDF and
display on the screen.
Unfortunately, I have error again:


Error number 12002 in 12: Exception while exporting PDF
Wrapped Exception: org.apache.fop.fo.ValidationException: null:5:27:
Error(5/27): fo:block is not a valid child element of fo:root.
com.xpn.xwiki.XWikiException: Error number 12002 in 12: Exception while
exporting PDF
Wrapped Exception: org.apache.fop.fo.ValidationException: null:5:27:
Error(5/27): fo:block is not a valid child element of fo:root.
at 
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXMLFO(PdfExportImpl.java:212)
at 
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHtml(PdfExportImpl.java:169)
at 
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:219)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:250)
at com.xpn.xwiki.web.PDFAction.render(PDFAction.java:46)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:232)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:122)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)


Wrapped Exception:

org.apache.fop.fo.ValidationException: null:5:27: Error(5/27): fo:block is
not a valid child element of fo:root.
at org.apache.fop.fo.FONode.invalidChildError(FONode.java:435)
at org.apache.fop.fo.FONode.invalidChildError(FONode.java:420)
at org.apache.fop.fo.pagination.Root.validateChildNode(Root.java:126)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:271)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
at
org.apache.xalan.transformer.Tr

Re: [xwiki-users] Button Plugin in WYSIWYG editor

2009-07-15 Thread ArielWang

Now it works.

Thank you for all the help!
-- 
View this message in context: 
http://n2.nabble.com/Button-Plugin-in-WYSIWYG-editor-tp3229334p3261521.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] Groovy Errors

2009-07-15 Thread ArielWang

Now it works.

Thank you for all the help!
-- 
View this message in context: 
http://n2.nabble.com/Groovy-Errors-tp3254453p3261526.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] WYSIWYG editor link function cannot work

2009-07-15 Thread ArielWang

Now it works.

Thank you for all the help!
-- 
View this message in context: 
http://n2.nabble.com/WYSIWYG-editor-link-function-cannot-work-tp3254443p3261528.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] Page convert PDF error occurs

2009-07-15 Thread Sergiu Dumitriu
ArielWang wrote:
> I use XWIKI 1.8.
> There is a function that allows user to convert the WIKI page to PDF and
> display on the screen.
> Unfortunately, I have error again:

Could you send me the XAR export of that page?

Does it fail for every document, or just some?

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


Re: [xwiki-users] Page convert PDF error occurs

2009-07-15 Thread ArielWang

Here's the XAR file of my place.

PS: it fails for all...
http://n2.nabble.com/file/n3261592/test111-150709.xar test111-150709.xar 
-- 
View this message in context: 
http://n2.nabble.com/Page-convert-PDF-error-occurs-tp3261515p3261592.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] How to fully delete a Space?

2009-07-15 Thread Loris Conedera
2009/7/15 Sergiu Dumitriu :
> Please use the Delete Space snippet:
> http://code.xwiki.org/xwiki/bin/Snippets/DeleteSpaceSnippet

I just tried "Delete Space snippet", all seems to work good but when i
check the space is not deleted.
Any other solution?
Thanks,

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


Re: [xwiki-users] How to fully delete a Space?

2009-07-15 Thread Sergiu Dumitriu
Loris Conedera wrote:
> 2009/7/15 Sergiu Dumitriu :
>> Please use the Delete Space snippet:
>> http://code.xwiki.org/xwiki/bin/Snippets/DeleteSpaceSnippet
> 
> I just tried "Delete Space snippet", all seems to work good but when i
> check the space is not deleted.
> Any other solution?
> Thanks,

Can you join me on IRC? http://dev.xwiki.org/xwiki/bin/view/IRC/

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


Re: [xwiki-users] about to give in...

2009-07-15 Thread Asiri Rathnayake
Hi Edward,

On Wed, Jul 15, 2009 at 12:35 PM, Edward Eldon
wrote:

> Hi
>
> I have noticed that there has been more activity in the last couple of days
> ... so, here's one last attempt.
>
> I have got to the stage where a captcha field is shown, and the page
> (registerinline.vm) displays the correct errors if it isn't filled in (some
> simple if statements)
>
> However, the user is STILL registered even if the captcha is filled in
> wrongly.


I think I found the problem. Still, I'm not a captcha expert so please bear
with me.

If you consider the CommentAction (
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/CommentAddAction.java)
you will see that there is a check for captcha.

That is, if you have displayed captcha somewhere in the comment section,
user will _HAVE_ to provide the correct input otherwise the action will not
complete.

On the other hand take the RegisterAction (
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/RegisterAction.java)
There is no captcha verification here at all :)

My guess is this is a bug of xwiki, not you doing something wrong.

Still, don't take my word, try to put captcha somehow into comment area and
see if it works... if it does, we cam make sure that no captcha is supported
for log-in action of xwiki, which needs fixing.

I'm trying to get captcha to work for comment action, I will inform you if i
succeed.

Thanks.

- Asiri


>
>
> I have searched this news group, experimented and given up ... but if
> anyone
> can suggest how to stop this my xwiki user would really appreciate it.
> Happy to post code if anyone's interested!
>
> thanks - hopefully
>
> Edward
> ___
> 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] about to give in...

2009-07-15 Thread Edward Laptop
Thanks for the reply!

I have been on this for ages and ages and ages.

I looked at the links below, and I think I see what you mean. To be honest,
its beyond my understanding.

I have been working with registerinline.vm - I  can get the captcha field to
veryify fine. In my page there is variable $reg which appears to be the key.

Please keep in touch - and I will too. Maybe one of us will crack it

Incidentally I used
http://n2.nabble.com/CAPTCHA-for-comments-and-registration-tp507976p507989.h
tml

as a basis and it seemed to work. Trouble was, its not a full solution. I
contact some people from the thread - but nobody seemed to be able to solve
it fully.



Perhaps there is a bug???



Has anyone got captcha to work on a registration page



-Original Message-
From: Asiri Rathnayake [mailto:asiri.rathnay...@gmail.com]
Sent: 15 July 2009 10:17
To: edw...@eldon.gotadsl.co.uk; XWiki Users
Subject: Re: [xwiki-users] about to give in...


  Hi Edward,


  On Wed, Jul 15, 2009 at 12:35 PM, Edward Eldon
 wrote:

Hi

I have noticed that there has been more activity in the last couple of
days
... so, here's one last attempt.

I have got to the stage where a captcha field is shown, and the page
(registerinline.vm) displays the correct errors if it isn't filled in
(some
simple if statements)

However, the user is STILL registered even if the captcha is filled in
wrongly.

  I think I found the problem. Still, I'm not a captcha expert so please
bear with me.

  If you consider the CommentAction
(http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/
java/com/xpn/xwiki/web/CommentAddAction.java) you will see that there is a
check for captcha.

  That is, if you have displayed captcha somewhere in the comment section,
user will _HAVE_ to provide the correct input otherwise the action will not
complete.

  On the other hand take the RegisterAction
(http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/
java/com/xpn/xwiki/web/RegisterAction.java) There is no captcha verification
here at all :)

  My guess is this is a bug of xwiki, not you doing something wrong.

  Still, don't take my word, try to put captcha somehow into comment area
and see if it works... if it does, we cam make sure that no captcha is
supported for log-in action of xwiki, which needs fixing.

  I'm trying to get captcha to work for comment action, I will inform you if
i succeed.

  Thanks.

  - Asiri



I have searched this news group, experimented and given up ... but if
anyone
can suggest how to stop this my xwiki user would really appreciate it.
Happy to post code if anyone's interested!

thanks - hopefully

Edward
___
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] about to give in...

2009-07-15 Thread Asiri Rathnayake
Hi,

Ok, I got captcha to work for commenting. I will explain how I did it:

* I could not find any helpful documentation so I went and looked at the
CaptchaPlugin.java class (
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/captcha/CaptchaPlugin.java
)

* Here I found that you need to have a preference parameter named like
_registered or _anonymous in your XWiki.XWikiPreference
object that defines the captcha mode to be used for validation. Possible
values are "image" and "text"

* Out of curiosity I fired up my local XE, navigated to
http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences and selected
edit->class. I looked for fields that looked like above and found the
following ones:

registration_anonymous : Captcha mode for new registrations

registration_registered: This is weired

edit_anonymous: Captcha mode for unregistered user edits

edit_registered: Captcha mode for registered user edits

comment_anonymous: Captcha mode for unregistered user comments

comment_registered: Captcha mode for registered user comments

These fields have pretty names that doesn't make much sense.

* Then I switched back to object edit mode and inside the
XWiki.XWikiPreferences object I found these fields and set them to "image"

* I don't know how I ended up looking at XWiki::hasCaptcha() method but
anyway I was looking at it after some time. Here I learnt that you need the
"xwiki.plugin.captcha" flag to be set to 1 if your captacha validations to
work.

* Then inside eclipse I did a search for all the references of
XWiki.hasCaptcha() method and leant following actions support captcha:

- CommentAddAction

- EditAction

- PreviewAction

- SaveAction

All of these actions only verify if captcha is enabled and if it validates
correctly. They do not display the captcha images, without that displaying
all of them validates to "true". So this means we need to edit the templates
and display captcha if these actions are to be restricted.

But as you can see, RegisterAction do not verify captcha, so we cannot use
captcha for validating registrations. But this is very easy to be added,
needs a small patch.

* Then I went and located commentsinline.vm and found the section which
displays the comment box:


#macro(displayCommentForm)
  #if($xwiki.hasAccessLevel('comment'))

  
$msg.get('core.viewers.comments.add.title')

#if($context.user != 'XWiki.XWikiGuest')
   $msg.get('core.viewers.comments.add.guestName.prompt')
$xwiki.getUserName($context.user)
   
#else
  $msg.get('core.viewers.comments.add.guestName.prompt')

#end




$msg.get('core.viewers.comments.add.comment.label')
   


  
  

  

  #end
#end


I added the captcha display code as bellow:


#macro(displayCommentForm)
  #if($xwiki.hasAccessLevel('comment'))

  
$msg.get('core.viewers.comments.add.title')

#if($context.user != 'XWiki.XWikiGuest')
   $msg.get('core.viewers.comments.add.guestName.prompt')
$xwiki.getUserName($context.user)
   
#else
  $msg.get('core.viewers.comments.add.guestName.prompt')

#end




$msg.get('core.viewers.comments.add.comment.label')
   

$xwiki.jcaptcha.displayCaptcha("comment", "myclass") ## Here

  
  

  

  #end
#end


* Restarted xwiki and logged in as a normal user (Admin user does not get
captcha anyway) and voila, I saw captcha display near the comment box. I
tried to post a comment with an invalid captcha input and it failed, but the
failiure was not that visible. Then I tried to post a comment with the
correct captcha input and it worked!!!

This is my experience but I'm not sure when captcha support will be fixed on
xwiki completely.

Thanks.

- Asiri

On Wed, Jul 15, 2009 at 3:02 PM, Edward Laptop
wrote:

>  Thanks for the reply!
>
> I have been on this for ages and ages and ages.
>
> I looked at the links below, and I think I see what you mean. To be honest,
> its beyond my understanding.
>
> I have been working with registerinline.vm - I  can get the captcha field
> to veryify fine. In my page there is variable $reg which appears to be the
> key.
>
> Please keep in touch - and I will too. Maybe one of us will crack it
>
> Incidentally I used
>
>
> http://n2.nabble.com/CAPTCHA-for-comments-and-registration-tp507976p507989.html
>
> as a basis and it seemed to work. Trouble was, its not a full solution. I
> contact some people from the thread - but nobody seemed to be able to solve
> it fully.
>
>
>
> Perhaps there is a bug???
>
>
>
> Has anyone got captcha to work on a registration page
>
>
> -Original Message-
> *From:* Asiri Rathnayake [mailto:asiri.rathnay...@gmail.com]
> *Sent:* 15 July 2009 10:17
> *To:* edw...@eldon.gotadsl.co.uk; XWiki Use

Re: [xwiki-users] about to give in...

2009-07-15 Thread Vincent Massol

On Jul 15, 2009, at 12:08 PM, Asiri Rathnayake wrote:

> Hi,
>
> Ok, I got captcha to work for commenting. I will explain how I did it:

[snip]

> This is my experience but I'm not sure when captcha support will be  
> fixed on
> xwiki completely.

It's planned for 2.0 final.

See http://enterprise.xwiki.org/xwiki/bin/view/Main/Roadmap

Thanks
-Vincent

>
> Thanks.
>
> - Asiri
>
> On Wed, Jul 15, 2009 at 3:02 PM, Edward Laptop
> wrote:
>
>> Thanks for the reply!
>>
>> I have been on this for ages and ages and ages.
>>
>> I looked at the links below, and I think I see what you mean. To be  
>> honest,
>> its beyond my understanding.
>>
>> I have been working with registerinline.vm - I  can get the captcha  
>> field
>> to veryify fine. In my page there is variable $reg which appears to  
>> be the
>> key.
>>
>> Please keep in touch - and I will too. Maybe one of us will crack it
>>
>> Incidentally I used
>>
>>
>> http://n2.nabble.com/CAPTCHA-for-comments-and-registration-tp507976p507989.html
>>
>> as a basis and it seemed to work. Trouble was, its not a full  
>> solution. I
>> contact some people from the thread - but nobody seemed to be able  
>> to solve
>> it fully.
>>
>>
>>
>> Perhaps there is a bug???
>>
>>
>>
>> Has anyone got captcha to work on a registration page
>>
>>
>> -Original Message-
>> *From:* Asiri Rathnayake [mailto:asiri.rathnay...@gmail.com]
>> *Sent:* 15 July 2009 10:17
>> *To:* edw...@eldon.gotadsl.co.uk; XWiki Users
>> *Subject:* Re: [xwiki-users] about to give in...
>>
>> Hi Edward,
>>
>> On Wed, Jul 15, 2009 at 12:35 PM, Edward Eldon >> wrote:
>>
>>> Hi
>>>
>>> I have noticed that there has been more activity in the last  
>>> couple of
>>> days
>>> ... so, here's one last attempt.
>>>
>>> I have got to the stage where a captcha field is shown, and the page
>>> (registerinline.vm) displays the correct errors if it isn't filled  
>>> in
>>> (some
>>> simple if statements)
>>>
>>> However, the user is STILL registered even if the captcha is  
>>> filled in
>>> wrongly.
>>
>>
>> I think I found the problem. Still, I'm not a captcha expert so  
>> please bear
>> with me.
>>
>> If you consider the CommentAction (
>> http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/CommentAddAction.java)
>> you will see that there is a check for captcha.
>>
>> That is, if you have displayed captcha somewhere in the comment  
>> section,
>> user will _HAVE_ to provide the correct input otherwise the action  
>> will not
>> complete.
>>
>> On the other hand take the RegisterAction (
>> http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/RegisterAction.java)
>> There is no captcha verification here at all :)
>>
>> My guess is this is a bug of xwiki, not you doing something wrong.
>>
>> Still, don't take my word, try to put captcha somehow into comment  
>> area and
>> see if it works... if it does, we cam make sure that no captcha is  
>> supported
>> for log-in action of xwiki, which needs fixing.
>>
>> I'm trying to get captcha to work for comment action, I will inform  
>> you if
>> i succeed.
>>
>> Thanks.
>>
>> - Asiri
>>
>>
>>>
>>>
>>> I have searched this news group, experimented and given up ... but  
>>> if
>>> anyone
>>> can suggest how to stop this my xwiki user would really appreciate  
>>> it.
>>> Happy to post code if anyone's interested!
>>>
>>> thanks - hopefully
>>>
>>> Edward
>>> ___
>>> 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] about to give in...

2009-07-15 Thread Edward Laptop
Well, its great that someone, somewhere has got it to work!!!

You wrote this
"But as you can see, RegisterAction do not verify captcha, so we cannot use
captcha for validating registrations. But this is very easy to be added,
needs a small patch."

Where does this patch go?




---Original Message-
From: Asiri Rathnayake [mailto:asiri.rathnay...@gmail.com]
Sent: 15 July 2009 11:09
To: edw...@eldon.gotadsl.co.uk
Cc: XWiki Users
Subject: Re: [xwiki-users] about to give in...


  Hi,

  Ok, I got captcha to work for commenting. I will explain how I did it:

  * I could not find any helpful documentation so I went and looked at the
CaptchaPlugin.java class
(http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/
java/com/xpn/xwiki/plugin/captcha/CaptchaPlugin.java)

  * Here I found that you need to have a preference parameter named like
_registered or _anonymous in your XWiki.XWikiPreference
object that defines the captcha mode to be used for validation. Possible
values are "image" and "text"

  * Out of curiosity I fired up my local XE, navigated to
http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences and selected
edit->class. I looked for fields that looked like above and found the
following ones:

  registration_anonymous : Captcha mode for new registrations

  registration_registered: This is weired

  edit_anonymous: Captcha mode for unregistered user edits

  edit_registered: Captcha mode for registered user edits

  comment_anonymous: Captcha mode for unregistered user comments

  comment_registered: Captcha mode for registered user comments

  These fields have pretty names that doesn't make much sense.

  * Then I switched back to object edit mode and inside the
XWiki.XWikiPreferences object I found these fields and set them to "image"

  * I don't know how I ended up looking at XWiki::hasCaptcha() method but
anyway I was looking at it after some time. Here I learnt that you need the
"xwiki.plugin.captcha" flag to be set to 1 if your captacha validations to
work.

  * Then inside eclipse I did a search for all the references of
XWiki.hasCaptcha() method and leant following actions support captcha:

  - CommentAddAction

  - EditAction

  - PreviewAction

  - SaveAction

  All of these actions only verify if captcha is enabled and if it validates
correctly. They do not display the captcha images, without that displaying
all of them validates to "true". So this means we need to edit the templates
and display captcha if these actions are to be restricted.

  But as you can see, RegisterAction do not verify captcha, so we cannot use
captcha for validating registrations. But this is very easy to be added,
needs a small patch.

  * Then I went and located commentsinline.vm and found the section which
displays the comment box:

  
  #macro(displayCommentForm)
#if($xwiki.hasAccessLevel('comment'))
  

  $msg.get('core.viewers.comments.add.title')
  
  #if($context.user != 'XWiki.XWikiGuest')
 $msg.get('core.viewers.comments.add.guestName.prompt')
$xwiki.getUserName($context.user)
 
  #else
$msg.get('core.viewers.comments.add.guestName.prompt')

  #end
  
  
  
 $msg.get('core.viewers.comments.add.comment.label')
 
  
  


  

  
#end
  #end
  

  I added the captcha display code as bellow:

  
  #macro(displayCommentForm)
#if($xwiki.hasAccessLevel('comment'))
  

  $msg.get('core.viewers.comments.add.title')
  
  #if($context.user != 'XWiki.XWikiGuest')
 $msg.get('core.viewers.comments.add.guestName.prompt')
$xwiki.getUserName($context.user)
 
  #else
$msg.get('core.viewers.comments.add.guestName.prompt')

  #end
  
  
  
 $msg.get('core.viewers.comments.add.comment.label')
 
  
  $xwiki.jcaptcha.displayCaptcha("comment", "myclass") ## Here
  


  

  
#end
  #end
  

  * Restarted xwiki and logged in as a normal user (Admin user does not get
captcha anyway) and voila, I saw captcha display near the comment box. I
tried to post a comment with an invalid captcha input and it failed, but the
failiure was not that visible. Then I tried to post a comment with the
correct captcha input and it worked!!!

  This is my experience but I'm not sure when captcha support will be fixed
on xwiki completely.

  Thanks.

  - Asiri


  On Wed, Jul 15, 2009 at 3:02 PM, Edward Laptop
 wrote:

Thanks for the reply!

I have been on this for ages and ages and ages.

I looked at the links below, and I think I see what you mean. To be
honest, its beyond my understanding.

I have been working with registerinline.vm - I  can get the captcha
field to veryify fine. In my page the

Re: [xwiki-users] about to give in...

2009-07-15 Thread Asiri Rathnayake
Hi,

On Wed, Jul 15, 2009 at 3:51 PM, Edward Laptop
wrote:

>  Well, its great that someone, somewhere has got it to work!!!
>
> You wrote this
> "But as you can see, RegisterAction do not verify captcha, so we cannot
> use captcha for validating registrations. But this is very easy to be added,
> needs a small patch."
>
>  Where does this patch go?
>

If you need a quick and dirty solution you can look at:
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/CommentAddAction.javaand
repeat the same thing for
http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/RegisterAction.java

But this requires compiling a new xwiki-core module and installing it inside
WEB-INF/lib. This is bit hard specially if you are not a java developer. I'd
rather wait for 2.0 final release :)

Thanks.

- Asiri



>
>
>
> ---Original Message-
> *From:* Asiri Rathnayake [mailto:asiri.rathnay...@gmail.com]
> *Sent:* 15 July 2009 11:09
> *To:* edw...@eldon.gotadsl.co.uk
> *Cc:* XWiki Users
> *Subject:* Re: [xwiki-users] about to give in...
>
> Hi,
>
> Ok, I got captcha to work for commenting. I will explain how I did it:
>
> * I could not find any helpful documentation so I went and looked at the
> CaptchaPlugin.java class (
> http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/captcha/CaptchaPlugin.java
> )
>
> * Here I found that you need to have a preference parameter named like
> _registered or _anonymous in your XWiki.XWikiPreference
> object that defines the captcha mode to be used for validation. Possible
> values are "image" and "text"
>
> * Out of curiosity I fired up my local XE, navigated to
> http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences and selected
> edit->class. I looked for fields that looked like above and found the
> following ones:
>
> registration_anonymous : Captcha mode for new registrations
>
> registration_registered: This is weired
>
> edit_anonymous: Captcha mode for unregistered user edits
>
> edit_registered: Captcha mode for registered user edits
>
> comment_anonymous: Captcha mode for unregistered user comments
>
> comment_registered: Captcha mode for registered user comments
>
> These fields have pretty names that doesn't make much sense.
>
> * Then I switched back to object edit mode and inside the
> XWiki.XWikiPreferences object I found these fields and set them to "image"
>
> * I don't know how I ended up looking at XWiki::hasCaptcha() method but
> anyway I was looking at it after some time. Here I learnt that you need the
> "xwiki.plugin.captcha" flag to be set to 1 if your captacha validations to
> work.
>
> * Then inside eclipse I did a search for all the references of
> XWiki.hasCaptcha() method and leant following actions support captcha:
>
> - CommentAddAction
>
> - EditAction
>
> - PreviewAction
>
> - SaveAction
>
> All of these actions only verify if captcha is enabled and if it validates
> correctly. They do not display the captcha images, without that displaying
> all of them validates to "true". So this means we need to edit the templates
> and display captcha if these actions are to be restricted.
>
> But as you can see, RegisterAction do not verify captcha, so we cannot use
> captcha for validating registrations. But this is very easy to be added,
> needs a small patch.
>
> * Then I went and located commentsinline.vm and found the section which
> displays the comment box:
>
> 
> #macro(displayCommentForm)
>   #if($xwiki.hasAccessLevel('comment'))
> 
>   
> $msg.get('core.viewers.comments.add.title')
>  value="${doc.getURL('view')}#Comments" />
> #if($context.user != 'XWiki.XWikiGuest')
>$msg.get('core.viewers.comments.add.guestName.prompt')
> $xwiki.getUserName($context.user)
> value="$context.user"/>
> #else
>   $msg.get('core.viewers.comments.add.guestName.prompt')
>  value="$msg.get('core.viewers.comments.add.guestName.default')"/>
> #end
> 
>  value="$!{request.replyto}"/>
> 
>
> $msg.get('core.viewers.comments.add.comment.label')
> name='${xCommentClass}_comment'>
> 
> 
>value="$msg.get('core.viewers.comments.add.submit')" class="button"/>
>'') type="reset" #else type="submit" #end
> value="$msg.get('core.viewers.comments.add.cancel')" class="button"
> name="action_cancel"/>
> 
>   
> 
>   #end
> #end
> 
>
> I added the captcha display code as bellow:
>
> 
> #macro(displayCommentForm)
>   #if($xwiki.hasAccessLevel('comment'))
> 
>   
> $msg.get('core.viewers.comments.add.title')
>  value="${doc.getURL('view')}#Comments" />
> #if($context.user != 'XWiki.XWikiGuest')
>$msg.get('core.viewers.comments.add.guestName.prompt')
> $xwiki.getUserName($context.user)
> value="$context.user"/>
> #else
>  

Re: [xwiki-users] about to give in...

2009-07-15 Thread Edward Laptop
thanks for you time Asiri - much apprecaited



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


Re: [xwiki-users] Dynamic Content

2009-07-15 Thread Oana Tabaranu
Hi Roney,

You can try using a JavaScript Skin Extension to observe the user's 
"change" event (you should choose the event according to your needs, I 
usually use "click" because it is supported by all major browsers) and 
update the innerHTML of a div below the dropdown list.
Hope this helps: 
http://code.xwiki.org/xwiki/bin/view/Plugins/SkinExtensionsPlugin

Oana

CASTRO roney wrote:
> Hello everyone,
> I was trying to create a page in xwiki with the following functionality: The 
> user could select an option in a dropdown list, and depending on this 
> selection, the text below the drop down list would change accordingly to the 
> option selected in the drop down list.
> Does anyone have any idea on how could I do this?
> Thanks in advance!
> BR,
> Roney Castro
>
> ___
> 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] manager 1.7.1 compatible with enterprise 2.0?

2009-07-15 Thread Thomas Mortagne
On Mon, Jul 13, 2009 at 23:35, Kelly Lakas wrote:
> Hi -
>
>
>
> Is xwiki manager 1.7.1 compatible with the enterprise version 2.0
> Milestone 1?

Yes there should not be any issue for the XEM particular part but make
sure to not import the whole XEM xar (which include XE 1.9.1 xar). See
http://manager.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HConvertanexistingXWikiEnterpriseinstance

>
>
>
> Kelly
>
>
>
> Kelly Lakas
>
> Project Manager
>
>
>
> next wave logistics inc.
>
> 28377 davis parkway, suite 607a
>
> warrenville, il 60555
>
> 
>
>
>
> [office]          847.798.8897
>
> [mobile]        312.307.2079
>
> [web]     www.nwlinc.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


[xwiki-users] Passing variables between context

2009-07-15 Thread Lewis Denizen
Hi xwiki-users,

I have a simple macro defined in velocity:

{{velocity}}
{{{
#macro( addDate $timeZone $date )
  #set( $script = "
tz = '$timeZone'
date = '$date'

timezone = java.util.TimeZone.getTimeZone( timezone )
cal = java.util.Calendar.getInstance( timezone )
// etc...
  " )

  #set( $runnable = $xwiki.parseGroovyFromString( $script ) )

  $runnable.run()
#end
}}}
{{/velocity}}

Currently, the velocity macro parameters $timeZone and $date have to be
Strings.  I want to be able to pass "real objects" rather than just strings
into the groovy script, though.  I can easily return an Object back into
Velocity space by returning from the groovy script, but is there a way to go
the other way around?  I guess what I really need is some "context" object
shared by groovy and Velocity...

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


Re: [xwiki-users] Can't get XWiki to work with Oracle

2009-07-15 Thread Dean Weber

I appreciate the comments. I'm using Jetting (which came with the XWiki
installation) instead of Tomcat. What war are you referencing? 

I'm using the ojdbc5.jar file downloaded from Oracle's site. It works fine
for us in allowing our Groovy scripts to connect to a different Oracle DB to
obtain record data. I believe the our jar file is more recent than
ojdbc14.jar. I'm not sure if it's even a factor here.

I've made the appropriate changes within the hibernate.cfg.xml just as you
stated. 

Perhaps my stacktrace output in a separate post to this thread will provide
more insight.

Please let me know if you see something that can help get past this problem.

Thanks
Dean 


Gallois Frédéric wrote:
> 
> Hi
> 
> I'm running Xwiki with Tomcat5.5 and Oracle 10g. 
> Here's what I've done :
> - unpack the war under the webapps directory of Tomcat
> - change the ojdbc.jar because of a bad version
> - change the hibernate.cfg.xml file :
>   - uncomment only the oracle part
>   - change connection.url, connection.username and connection.password
> 
> As long as I remember, the "Error number 3..." came because of a bad
> version of ojdc14.jar.
> 
> Hope This Helps
> 
> Frédéric
> 
>> -Message d'origine-
>> De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] 
>> De la part de Dean Weber
>> Envoyé : mardi 14 juillet 2009 22:29
>> À : users@xwiki.org
>> Objet : Re: [xwiki-users] Can't get XWiki to work with Oracle
>> 
>> 
>> 
>> 
>> I ran a diff and found only cosmetic changes. However, I 
>> pulled that copy
>> down and replaced mine to guarantee I had the most up to date 
>> one. Nothing
>> changed. I still got:
>> 
>> HTTP ERROR: 500
>> Error number 3 in 0: Could not initialize main XWiki context
>> Wrapped Exception: Error number 3001 in 3: Cannot load class
>> com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigratio
>> nManager from
>> param xwiki.store.migration.manager.class
>> Wrapped Exception: Error number 0 in 3: Exception while 
>> hibernate execute
>> Wrapped Exception: Could not parse mapping document from resource
>> xwiki.oracle.hbm.xml
>> 
>> I am not the only one that has seen this problem. I found 
>> another posting
>> similar to mine:
>> http://n2.nabble.com/Problems-with-Xwiki-Enterprise-1.8-on-Ora
>> cle---get-Error-number-3001-in-3-td2517809.html#a2518188
>> 
>> It didn't have a resolution as well. 
>> 
>> If there are more details needed to help my situation please 
>> let me know and
>> I will provide any information I can. 
>> 
>> Thanks
>> Dean
>> 
>> 
>> Marius Dumitru Florea wrote:
>> > 
>> > Hi Dean,
>> > 
>> > 
>> > Is this 
>> > 
>> http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-c
> ore/src/main/resources/xwiki.oracle.hbm.xml 
>> > the same as your xwiki.oracle.hbm.xml ?
>> > 
>> > Hope this helps,
>> > Marius
>> > 
>> > ___
>> > users mailing list
>> > users@xwiki.org
>> > http://lists.xwiki.org/mailman/listinfo/users
>> > 
>> > 
>> 
>> -- 
>> View this message in context: 
>> http://n2.nabble.com/Can%27t-get-XWiki-to-work-with-Oracle-tp3
>> 228059p3259203.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
>> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Can%27t-get-XWiki-to-work-with-Oracle-tp3228059p3264532.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] Passing variables between context

2009-07-15 Thread Vincent Massol
Hi Lewis,

Maybe this will help:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyClassHelloWorldTutorial

In the shown example there are objects passed from Velocity to Groovy.

-Vincent

On Jul 15, 2009, at 5:30 PM, Lewis Denizen wrote:

> Hi xwiki-users,
>
> I have a simple macro defined in velocity:
>
> {{velocity}}
> {{{
> #macro( addDate $timeZone $date )
>  #set( $script = "
>tz = '$timeZone'
>date = '$date'
>
>timezone = java.util.TimeZone.getTimeZone( timezone )
>cal = java.util.Calendar.getInstance( timezone )
>// etc...
>  " )
>
>  #set( $runnable = $xwiki.parseGroovyFromString( $script ) )
>
>  $runnable.run()
> #end
> }}}
> {{/velocity}}
>
> Currently, the velocity macro parameters $timeZone and $date have to  
> be
> Strings.  I want to be able to pass "real objects" rather than just  
> strings
> into the groovy script, though.  I can easily return an Object back  
> into
> Velocity space by returning from the groovy script, but is there a  
> way to go
> the other way around?  I guess what I really need is some "context"  
> object
> shared by groovy and Velocity...
>
> Thanks in advance!
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Can't get XWiki to work with Oracle

2009-07-15 Thread Sergiu Dumitriu
Dean Weber wrote:
> Here's the pertinent error output and stacktrace:  
> (Sorry for its length but I didn't want to cut out any important
> information.)
> 
...
> org.apache.commons.dbcp.SQLNestedException: Cannot create
> PoolableConnectionFactory (The Network Adapter could not establish the
> connection)
...
> Caused by: java.net.ConnectException: Connection refused

Are you sure you wrote the correct server address? Are you sure the host 
where the wiki server runs has access to the database server?
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Class Properties Documentation?

2009-07-15 Thread Holger Dick
Hi,
I've been trying to find a overview/documentation on what the
specifications, formats, and/or usage scenarios for the different class
properties.

In particular, I'm looking for a way store a list of users (currently stored
in an arrayList) as the property of a class. I cannot find any documentation
on how to use the properties "list of users" or "static list"...

Any ideas/suggestions/links?

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


Re: [xwiki-users] Set Active to false in User class - developers

2009-07-15 Thread Sergiu Dumitriu
AjdinBrandic wrote:
> Is there a way / method to allow me to set Active param of User class to
> false after registration?  I want users to register then I vet the
> registration and only after that activate if I wish so.  Similar to Email
> activation at the moment except I want to have abitilty to activate users???

You can write a plugin that watches for the /register/ action and sets 
that field after a successful registration.

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


Re: [xwiki-users] Class Properties Documentation?

2009-07-15 Thread Sergiu Dumitriu
Holger Dick wrote:
> Hi,
> I've been trying to find a overview/documentation on what the
> specifications, formats, and/or usage scenarios for the different class
> properties.
> 
> In particular, I'm looking for a way store a list of users (currently stored
> in an arrayList) as the property of a class. I cannot find any documentation
> on how to use the properties "list of users" or "static list"...
> 
> Any ideas/suggestions/links?

Unfortunately we lack good documentation for this. You can ask on the 
mailing list for further details, and I'll answer.

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


[xwiki-users] Difficulties on first launch workspaces

2009-07-15 Thread Hervé Agnoux
Hi,

I'm trying to install and use XWiki Workspace.

First, the install instructions on xwiki.org are not present : 
http://www.xwiki.org/xwiki/bin/view/Main/Download#HXWikiWorkspaces, then 
"Instructions" link gives 
http://workspaces.xwiki.org/xwiki/bin/view/Main/GettingStarted which is not 
very intersting, in my opinion.

Second, when I launch xwiki worspace, I see this exception :

00:40:15.011 INFO   [main] 
org.mortbay.jetty.servlet.ServletHandler$Context.log(ServletHandler.java:1134) 
>17> resource = file:/home/herve/onwork/xwiki-workspaces-distribution-
hsqldb-1.1.1/webapps/xwiki/WEB-INF/plexus.xml 
00:40:15.178 INFO   [main] 
org.mortbay.jetty.servlet.ServletHandler$Context.log(ServletHandler.java:1134) 
>16> Plexus initialized.
>
java.lang.UnsatisfiedLinkError: 
/home/herve/java/jdk1.6.0_14/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: 
cannot open shared object file: No such file or directory   
 
at java.lang.ClassLoader$NativeLibrary.load(Native Method)  
 
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
 
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1674) 
 
at java.lang.Runtime.load0(Runtime.java:770)
 
at java.lang.System.load(System.java:1003)  
 
at java.lang.ClassLoader$NativeLibrary.load(Native Method)  
 
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
 
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1695) 
 
at java.lang.Runtime.loadLibrary0(Runtime.java:823) 
 
at java.lang.System.loadLibrary(System.java:1028)   
 
at 
sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
  
at java.security.AccessController.doPrivileged(Native Method)   
 
at java.awt.image.ColorModel.loadLibraries(ColorModel.java:188) 
 
at java.awt.image.ColorModel.(ColorModel.java:196)  
 
at com.jhlabs.image.WholeImageFilter.(WholeImageFilter.java)  
 
at com.jhlabs.image.WaterFilter.(WaterFilter.java)
 
at 
com.octo.captcha.engine.image.gimpy.DefaultGimpyEngine.buildInitialFactories(DefaultGimpyEngine.java:503)
 
at 
com.octo.captcha.engine.image.ListImageCaptchaEngine.(ListImageCaptchaEngine.java:493)
  
at 
com.octo.captcha.engine.image.gimpy.DefaultGimpyEngine.(DefaultGimpyEngine.java:494)


...etc, etc, etc. I don't know if it is important ?

And, when I look at my workspace, at get :

>Error 404 - Not Found.
>No context on this server matched or handled this request.
>Contexts known to this server are:
>
>* WebApplicationContext[/xwiki,xwiki]
>
>The links above may not work if a virtual host is configured

and, if I clic on the link :

>HTTP ERROR: 404
>
>/xwiki/ Not Found
>
>RequestURI=/xwiki/
>
>Powered by Jetty://

Thank for yout help.

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


Re: [xwiki-users] Can't get XWiki to work with Oracle

2009-07-15 Thread Gallois Frédéric
Hi Dean 

> De la part de Dean Weber

> Here's the pertinent error output and stacktrace:  

> Caused by: java.sql.SQLException: The Network Adapter could 
> not establish the connection 

This sounds like a connection problem. Did you test the connection with the 
same parameters (user, host) but outside Xwiki in Jetty ?

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


Re: [xwiki-users] Can't get XWiki to work with Oracle

2009-07-15 Thread Gallois Frédéric
Hi Dean 

> De la part de Dean Weber

> I appreciate the comments. I'm using Jetting (which came with 
> the XWiki
> installation) instead of Tomcat. What war are you referencing? 

Within the Tocat's installation, the xwiki application is provided as a war 
file (web archive), which is the Tomcat's file format for web application.

> I'm using the ojdbc5.jar file downloaded from Oracle's site. 
> It works fine
> for us in allowing our Groovy scripts to connect to a 
> different Oracle DB to
> obtain record data. I believe the our jar file is more recent than
> ojdbc14.jar. I'm not sure if it's even a factor here.

So you're right with your jdbc driver, I think.

> Perhaps my stacktrace output in a separate post to this 
> thread will provide
> more insight.

Exact. The stack trace shows a net error. Maybe a mistake in the parameters ?

Frédéric
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users