[xwiki-users] Xwiki templates

2015-09-27 Thread Mohit Gupta
Hi All,

 I want to develop website similar to http://www.artpal.com/ or any other
art website.
Basic requirements are :-

1)I can upload my painting images,
2)User can change  the painting background if somebody want
3)Allow user to purchase painting using card payment like in any other
site,
4) categorize different type of painting.


Are there some readymade template available which i can use as base and
then quickly develop on that? Just for info I am a java resource having
around 10 years of exp.

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


Re: [xwiki-users] Fwd: XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-09-22 Thread Mohit Gupta
Hi

Here is my relevant code snippter fro hibernate,cfg , my user name is
my_wiki

jdbc:mysql://localhost:3306/my_wiki
my_wiki
my_wiki
com.mysql.jdbc.Driver
org.hibernate.dialect.MySQL5InnoDBDialect
true
20







Here is the code snippet from xwiki.cfg

xwiki.db=my_wiki
xwiki.home=http://localhost:/myWiki/
xwiki.webapppath=myWiki


I used to work xwiki around 2 years back, it used to work like charm. But
with latest version , i am not able to start xwiki. First i tried with
oracle . Now i am trying with mysql.


Thanks
Mohit

On Mon, Sep 21, 2015 at 1:15 PM, Thomas Mortagne <thomas.morta...@xwiki.com>
wrote:

> He is using a different app name, not database name. And according to
> his mail he is setting the right property (xwiki.webapppath,
> xwiki.home is not used for this try disabling it back).
>
> Are you sure you removed the # and that it's the right xwiki.cfg you
> are modifying (sometimes in the battle... :)). If all is right then it
> looks like there is a bug somewhere in the URL factory.
>
> On Mon, Sep 21, 2015 at 8:33 AM, vinc...@massol.net <vinc...@massol.net>
> wrote:
> > Hi Mohit,
> >
> > Not sure why you needed to use a different database name for the main
> wiki but in case you need this you can configure xwiki to use this new
> name, see
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HConfigurethenamesofdatabaseschemas
> >
> > Thanks
> > -Vincent
> >
> > On 21 Sep 2015 at 07:22:37, Mohit Gupta (motgu...@gmail.com(mailto:
> motgu...@gmail.com)) wrote:
> >
> >> Hi,
> >>
> >> Any help on above ?
> >>
> >> Thanks
> >> Mohit
> >>
> >> On Sun, Sep 20, 2015 at 4:38 PM, Mohit Gupta wrote:
> >>
> >> > looks like for generated urls xwiki not appending right application
> >> > context name i.e "myWiki" but instead using "xwiki" . it should be
> >> > /myWiki/resources/uicomponents/logging/logging.js
> >> >
> >> >
> >> > i tried below configuration in xwiki.cfg but it did not help
> >> >
> >> > xwiki.home=http://localhost:/myWiki/
> >> > xwiki.webapppath=myWiki
> >> >
> >> > On Sun, Sep 20, 2015 at 4:19 PM, Mohit Gupta wrote:
> >> >
> >> >> Hi All,
> >> >>
> >> >> I switched to MySQL. Server starts without any error. But when i hit
> url
> >> >> in browser. Page is stuck(looks like its refreshing but not
> proceeding)
> >> >>
> >> >> XWiki is initializing (12%)...
> >> >>
> >> >>
> >> >> Here are the logs from localhost_access_log.2015-09-20 file
> >> >>
> >> >>
> >> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >> >> /myWiki/bin/view/Main/ HTTP/1.1" 503 2823
> >> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >> >>
> /xwiki/bin/webjars/resources/path?value=requirejs%2F2.1.15%2Frequire.min.js
> >> >> HTTP/1.1" 404 1015
> >> >> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> >> >> /xwiki/resources/uicomponents/logging/logging.js HTTP/1.1" 404 1045
> >> >>
> >> >> I am not getting what is missing here
> >> >>
> >> >> On Thu, Sep 17, 2015 at 3:20 PM, Clemens Klein-Robbenhaar <
> >> >> c.robbenh...@espresto.com> wrote:
> >> >>
> >> >>> Hi *,
> >> >>>
> >> >>> > Hi Mohit,
> >> >>> >
> >> >>> >
> >> >>> > On 1 Sep 2015 at 15:32:48, Mohit Gupta (motgu...@gmail.com
> (mailto:
> >> >>> motgu...@gmail.com)) wrote:
> >> >>> >
> >> >>> >> Hi Vincet,
> >> >>> >>
> >> >>> >> I took the latest war
> >> >>> file(xwiki-enterprise-web-7.2-20150828.151901-292.war
> >> >>> >> )
> >> >>> >> from the link
> >> >>> >>
> >> >>>
> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/7.2-SNAPSHOT/
> >> >>> >> but getting exception when i hit the wiki url in browser. Here
> is the
> >> >>> full
> >> >>> >> stack trace
> >> >>> >
> >> >>> > [snip]
> >> >>> >
> >&

Re: [xwiki-users] Fwd: XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-09-22 Thread Mohit Gupta
Yes its hardcoded in init.vm. It works fine after installing 7.2 version.
But looks like some issue is there with Admin rights as I installed one
application i.e bulletin board but when i try to add category it gives me
below error



Failed to execute the [velocity] macro. Click on this message for details.

org.xwiki.rendering.macro.MacroExecutionException: You don't have the right
to execute the script macro [velocity]
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:178)
at
org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
at
org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:269)
at
org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
at
org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:94)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:252)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:125)
at
org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:55)
at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
at
org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
at
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:113)
at
org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:50)
at
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:67)
at
org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:41)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1164)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1127)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1179)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:683)
at sun.reflect.GeneratedMethodAccessor635.invoke(Unknown Source)


Do i need to modify some right or some configuration is required here.



On Tue, Sep 22, 2015 at 2:20 PM, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> On Tue, Sep 22, 2015 at 11:41 AM, vinc...@massol.net <vinc...@massol.net>
> wrote:
> >
> >
> >
> > On 22 Sep 2015 at 10:33:40, Marius Dumitru Florea (
> mariusdumitru.flo...@xwiki.com(mailto:mariusdumitru.flo...@xwiki.com))
> wrote:
> >
> >> On Sun, Sep 20, 2015 at 2:08 PM, Mohit Gupta wrote:
> >> > looks like for generated urls xwiki not appending right application
> context
> >> > name i.e "myWiki" but instead using "xwiki" . it should be
> >> > /myWiki/resources/uicomponents/logging/logging.js
> >>
> >> If you're using XWiki 7.2M1+ then the right context path should be
> >> used. Sergiu fixed this with
> >>
> https://github.com/xwiki/xwiki-platform/commit/58295a36aa61a2a99956093b9571f033aecde912
> >
> > This commit seems to have be committed in 7.1 according to the JIRA
> issue: http://jira.xwiki.org/browse/XWIKI-12155
> >
>
> > Thus this commit should in 7.2M1+. Is the JIRA fix version wrong?
>
> Indeed, it has been committed in both 7.1 and 7.2 (master). I didn't
> check the jira, I just did a git blame.
>
> >
> >> . You can check init.vm to see whether the 'xwiiki' context path is
> >> hardcoded or not for logging.js .
> >>
> >> Note that 7.2 final is not released yet so I wouldn't recommend using
> >> 7.2M1/M2/M3/RC1 expect for testing because they are development
> >> versions. Moreover, during 7.2 we did a lot of changes required to add
> >> support for nested spaces/documents and thus the milestones are less
> >> stable than usual.
> >
> > I agree.
> >
> > OTOH it’s very good that you’re trying it and provide feedback for us
> since this allows us to fix things to release an as-stable-as-possible 7.2
> version :)
> >
> > Just don’t put it in production!
> >
> > Now we need to check if your problem still exist on 7.2RC1 and fix it. I
> don’t have the time right now but I’ll try to reproduce this week and fix
> the problem if I can. I’ll post back my findings.
> >
> > Thanks a lot for your help!
> > -Vincent
> >
> >>
> >> Hope this helps,
> >> Marius
> >>
> >> >
> >> >
> >> > i tried below configuration in xwiki.cfg but it

Re: [xwiki-users] Fwd: XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-09-20 Thread Mohit Gupta
looks like for generated urls xwiki not appending right application context
name i.e  "myWiki" but instead using "xwiki" . it should be
/myWiki/resources/uicomponents/logging/logging.js


i tried below configuration in xwiki.cfg but it did not help

xwiki.home=http://localhost:/myWiki/
xwiki.webapppath=myWiki

On Sun, Sep 20, 2015 at 4:19 PM, Mohit Gupta <motgu...@gmail.com> wrote:

> Hi All,
>
> I switched to MySQL. Server starts without any error. But when i hit url
> in browser. Page is stuck(looks like its refreshing  but not proceeding)
>
> XWiki is initializing (12%)...
>
>
> Here are the logs from localhost_access_log.2015-09-20 file
>
>
> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> /myWiki/bin/view/Main/ HTTP/1.1" 503 2823
> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> /xwiki/bin/webjars/resources/path?value=requirejs%2F2.1.15%2Frequire.min.js
> HTTP/1.1" 404 1015
> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
> /xwiki/resources/uicomponents/logging/logging.js HTTP/1.1" 404 1045
>
> I am not getting what is missing here
>
> On Thu, Sep 17, 2015 at 3:20 PM, Clemens Klein-Robbenhaar <
> c.robbenh...@espresto.com> wrote:
>
>> Hi *,
>>
>> > Hi Mohit,
>> >
>> >
>> > On 1 Sep 2015 at 15:32:48, Mohit Gupta (motgu...@gmail.com(mailto:
>> motgu...@gmail.com)) wrote:
>> >
>> >> Hi Vincet,
>> >>
>> >> I took the latest war
>> file(xwiki-enterprise-web-7.2-20150828.151901-292.war
>> >> )
>> >> from the link
>> >>
>> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/7.2-SNAPSHOT/
>> >> but getting exception when i hit the wiki url in browser. Here is the
>> full
>> >> stack trace
>> >
>> > [snip]
>> >
>> >> java.lang.NullPointerException
>> >>
>> org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)
>> >
>> > Strange, I don’t remember seeing this error before. It looks like an
>> Hibernate bug.
>> >
>>
>> Has been reported as such, and usually rejected, e.g.:
>>   https://hibernate.atlassian.net/browse/HHH-3715
>>
>> I feel that the problem is that the XWQL-Query is not translated to HQL
>> properly
>>
>> > The query we send is:
>> >
>> > "where doc.object(XWiki.XWikiServerClass).server = :wikiAlias and
>> doc.name like 'XWikiServer%’"
>> >
>>
>> This is a XWQL query, however, and the HQL that is created from it (I
>> guess its created from the query, as that is what is shown in the error
>> message):
>>
>> select doc.fullName from XWikiDocument as doc , BaseObject as _o1 where (
>> doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias
>>and doc.name like 'XWikiServer%' ) and doc.fullName=_o1.name and
>> _o1.className='XWiki.XWikiServerClass'
>>
>> Of course the "( doc.object ( XWiki.XWikiServerClass ) . server" is not
>> proper HQL, something must have gone amiss when translating the XWQL to HQL.
>>
>> What puzzles me is why this has something to do with the Oracle driver
>> (It is no general bug for sure, otherwise it would have blocked any
>> development ...)
>> I just checked and I get basically the same error message when I try to
>> execute the generated HQL "manually" (from a groovy script in a page),
>> but of course no such error when executing the XWQL (would not have been
>> able to start the server then).
>>
>>
>> Is it possible to direct the installation temporarily to e.g. HSQL-DB
>> (something along
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationHSQL )
>>  - just for testing if the issue goes away then? (It is sure not useful
>> for production use that way until switched back to Oracle ...)
>> If the issue does not go away, then it must be something else ...
>>
>>
>> > Do you still have the problem?
>> >
>> > Could you provide the exact JDBC driver and Oracle versions you use?
>> >
>> > Thanks
>> > -Vincent
>> >
>> > [snip]
>> >
>> > ___
>> > 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] Fwd: XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-09-20 Thread Mohit Gupta
Hi All,

I switched to MySQL. Server starts without any error. But when i hit url in
browser. Page is stuck(looks like its refreshing  but not proceeding)

XWiki is initializing (12%)...


Here are the logs from localhost_access_log.2015-09-20 file


0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
/myWiki/bin/view/Main/ HTTP/1.1" 503 2823
0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
/xwiki/bin/webjars/resources/path?value=requirejs%2F2.1.15%2Frequire.min.js
HTTP/1.1" 404 1015
0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
/xwiki/resources/uicomponents/logging/logging.js HTTP/1.1" 404 1045

I am not getting what is missing here

On Thu, Sep 17, 2015 at 3:20 PM, Clemens Klein-Robbenhaar <
c.robbenh...@espresto.com> wrote:

> Hi *,
>
> > Hi Mohit,
> >
> >
> > On 1 Sep 2015 at 15:32:48, Mohit Gupta (motgu...@gmail.com(mailto:
> motgu...@gmail.com)) wrote:
> >
> >> Hi Vincet,
> >>
> >> I took the latest war
> file(xwiki-enterprise-web-7.2-20150828.151901-292.war
> >> )
> >> from the link
> >>
> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/7.2-SNAPSHOT/
> >> but getting exception when i hit the wiki url in browser. Here is the
> full
> >> stack trace
> >
> > [snip]
> >
> >> java.lang.NullPointerException
> >> org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)
> >
> > Strange, I don’t remember seeing this error before. It looks like an
> Hibernate bug.
> >
>
> Has been reported as such, and usually rejected, e.g.:
>   https://hibernate.atlassian.net/browse/HHH-3715
>
> I feel that the problem is that the XWQL-Query is not translated to HQL
> properly
>
> > The query we send is:
> >
> > "where doc.object(XWiki.XWikiServerClass).server = :wikiAlias and
> doc.name like 'XWikiServer%’"
> >
>
> This is a XWQL query, however, and the HQL that is created from it (I
> guess its created from the query, as that is what is shown in the error
> message):
>
> select doc.fullName from XWikiDocument as doc , BaseObject as _o1 where (
> doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias
>and doc.name like 'XWikiServer%' ) and doc.fullName=_o1.name and
> _o1.className='XWiki.XWikiServerClass'
>
> Of course the "( doc.object ( XWiki.XWikiServerClass ) . server" is not
> proper HQL, something must have gone amiss when translating the XWQL to HQL.
>
> What puzzles me is why this has something to do with the Oracle driver (It
> is no general bug for sure, otherwise it would have blocked any development
> ...)
> I just checked and I get basically the same error message when I try to
> execute the generated HQL "manually" (from a groovy script in a page),
> but of course no such error when executing the XWQL (would not have been
> able to start the server then).
>
>
> Is it possible to direct the installation temporarily to e.g. HSQL-DB
> (something along
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationHSQL )
>  - just for testing if the issue goes away then? (It is sure not useful
> for production use that way until switched back to Oracle ...)
> If the issue does not go away, then it must be something else ...
>
>
> > Do you still have the problem?
> >
> > Could you provide the exact JDBC driver and Oracle versions you use?
> >
> > Thanks
> > -Vincent
> >
> > [snip]
> >
> > ___
> > 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] Fwd: XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-09-20 Thread Mohit Gupta
Hi,

Any help on above ?

Thanks
Mohit

On Sun, Sep 20, 2015 at 4:38 PM, Mohit Gupta <motgu...@gmail.com> wrote:

> looks like for generated urls xwiki not appending right application
> context name i.e  "myWiki" but instead using "xwiki" . it should be
> /myWiki/resources/uicomponents/logging/logging.js
>
>
> i tried below configuration in xwiki.cfg but it did not help
>
> xwiki.home=http://localhost:/myWiki/
> xwiki.webapppath=myWiki
>
> On Sun, Sep 20, 2015 at 4:19 PM, Mohit Gupta <motgu...@gmail.com> wrote:
>
>> Hi All,
>>
>> I switched to MySQL. Server starts without any error. But when i hit url
>> in browser. Page is stuck(looks like its refreshing  but not proceeding)
>>
>> XWiki is initializing (12%)...
>>
>>
>> Here are the logs from localhost_access_log.2015-09-20 file
>>
>>
>> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
>> /myWiki/bin/view/Main/ HTTP/1.1" 503 2823
>> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
>> /xwiki/bin/webjars/resources/path?value=requirejs%2F2.1.15%2Frequire.min.js
>> HTTP/1.1" 404 1015
>> 0:0:0:0:0:0:0:1 - - [20/Sep/2015:16:14:26 +0530] "GET
>> /xwiki/resources/uicomponents/logging/logging.js HTTP/1.1" 404 1045
>>
>> I am not getting what is missing here
>>
>> On Thu, Sep 17, 2015 at 3:20 PM, Clemens Klein-Robbenhaar <
>> c.robbenh...@espresto.com> wrote:
>>
>>> Hi *,
>>>
>>> > Hi Mohit,
>>> >
>>> >
>>> > On 1 Sep 2015 at 15:32:48, Mohit Gupta (motgu...@gmail.com(mailto:
>>> motgu...@gmail.com)) wrote:
>>> >
>>> >> Hi Vincet,
>>> >>
>>> >> I took the latest war
>>> file(xwiki-enterprise-web-7.2-20150828.151901-292.war
>>> >> )
>>> >> from the link
>>> >>
>>> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/7.2-SNAPSHOT/
>>> >> but getting exception when i hit the wiki url in browser. Here is the
>>> full
>>> >> stack trace
>>> >
>>> > [snip]
>>> >
>>> >> java.lang.NullPointerException
>>> >>
>>> org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)
>>> >
>>> > Strange, I don’t remember seeing this error before. It looks like an
>>> Hibernate bug.
>>> >
>>>
>>> Has been reported as such, and usually rejected, e.g.:
>>>   https://hibernate.atlassian.net/browse/HHH-3715
>>>
>>> I feel that the problem is that the XWQL-Query is not translated to HQL
>>> properly
>>>
>>> > The query we send is:
>>> >
>>> > "where doc.object(XWiki.XWikiServerClass).server = :wikiAlias and
>>> doc.name like 'XWikiServer%’"
>>> >
>>>
>>> This is a XWQL query, however, and the HQL that is created from it (I
>>> guess its created from the query, as that is what is shown in the error
>>> message):
>>>
>>> select doc.fullName from XWikiDocument as doc , BaseObject as _o1 where
>>> ( doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias
>>>and doc.name like 'XWikiServer%' ) and doc.fullName=_o1.name and
>>> _o1.className='XWiki.XWikiServerClass'
>>>
>>> Of course the "( doc.object ( XWiki.XWikiServerClass ) . server" is not
>>> proper HQL, something must have gone amiss when translating the XWQL to HQL.
>>>
>>> What puzzles me is why this has something to do with the Oracle driver
>>> (It is no general bug for sure, otherwise it would have blocked any
>>> development ...)
>>> I just checked and I get basically the same error message when I try to
>>> execute the generated HQL "manually" (from a groovy script in a page),
>>> but of course no such error when executing the XWQL (would not have been
>>> able to start the server then).
>>>
>>>
>>> Is it possible to direct the installation temporarily to e.g. HSQL-DB
>>> (something along
>>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationHSQL )
>>>  - just for testing if the issue goes away then? (It is sure not useful
>>> for production use that way until switched back to Oracle ...)
>>> If the issue does not go away, then it must be something else ...
>>>
>>>
>>> > Do you still have the problem?
>>> >
>>> > Could you provide the exact JDBC driver and Oracle versions you use?
>>> >
>>> > Thanks
>>> > -Vincent
>>> >
>>> > [snip]
>>> >
>>> > ___
>>> > 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] Fwd: XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-09-16 Thread Mohit Gupta
Yes Vincet,

I am still facing this issue and not able to start with wiki. Here is the
required info

oracle version :-11.2.0
jdbc driver :- oracle.jdbc.driver.OracleDriver
jar file :- ojdbc6

Thanks
Mohit

On Mon, Sep 14, 2015 at 12:29 PM, vinc...@massol.net <vinc...@massol.net>
wrote:

> Hi Mohit,
>
>
> On 1 Sep 2015 at 15:32:48, Mohit Gupta (motgu...@gmail.com(mailto:
> motgu...@gmail.com)) wrote:
>
> > Hi Vincet,
> >
> > I took the latest war
> file(xwiki-enterprise-web-7.2-20150828.151901-292.war
> > )
> > from the link
> >
> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/7.2-SNAPSHOT/
> > but getting exception when i hit the wiki url in browser. Here is the
> full
> > stack trace
>
> [snip]
>
> > java.lang.NullPointerException
> > org.hibernate.hql.ast.HqlSqlWalker.lookupProperty(HqlSqlWalker.java:560)
>
> Strange, I don’t remember seeing this error before. It looks like an
> Hibernate bug.
>
> The query we send is:
>
> "where doc.object(XWiki.XWikiServerClass).server = :wikiAlias and doc.name
> like 'XWikiServer%’"
>
> Do you still have the problem?
>
> Could you provide the exact JDBC driver and Oracle versions you use?
>
> Thanks
> -Vincent
>
> [snip]
>
> ___
> 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] Fwd: XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-09-01 Thread Mohit Gupta
va:135)
org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1770)

com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.createHibernateQuery(HqlQueryExecutor.java:208)

com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor$1.doInHibernate(HqlQueryExecutor.java:147)

com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor$1.doInHibernate(HqlQueryExecutor.java:142)

com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1299)

com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:1366)

com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:141)

org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71)
org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)

org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118)

org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71)
org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)

org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocumentReference(DefaultWikiDescriptorDocumentHelper.java:121)

org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocument(DefaultWikiDescriptorDocumentHelper.java:140)

org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager.getByAlias(DefaultWikiDescriptorManager.java:146)

org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:67)

org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)

org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.extract(DomainWikiReferenceExtractor.java:47)

org.xwiki.url.internal.standard.entity.BinEntityResourceReferenceResolver.extractWikiReference(BinEntityResourceReferenceResolver.java:51)

org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:87)

org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:51)

org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:61)

org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:47)

org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:64)

org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:43)

org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:93)

org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:48)
com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:742)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:688)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:229)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)

org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)

com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)

org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)

org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)

org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)


If you can let me know, What is latest version that works well with oracle,
it will be helpful so that i can start with that ?

Thanks and Regards
Mohit Gupta


On Sun, Aug 30, 2015 at 3:23 PM, vinc...@massol.net <vinc...@massol.net>
wrote:

>
> On 30 Aug 2015 at 11:51:01, Mohit Gupta (motgu...@gmail.com(mailto:
> motgu...@gmail.com)) wrote:
>
> > Vincet,
> >
> > I believe i need take "7.2-SNAPSHOT/" from "
> http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-web/?C=N;O=A;.
> Is that correct ?
>
> Yes, if you need th

Re: [xwiki-users] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-08-30 Thread Mohit Gupta
Hi Vincet,

Which location i will get the 7.2-milestone-3 war file. i went to
http://enterprise.xwiki.org/xwiki/bin/view/Main/Download but latest version
to download is still xwiki-enterprise-web-7.2-milestone-2.war
http://www.xwiki.org/xwiki/bin/view/DownloadCode/DownloadFeedback?downloadLink=http://download.forge.ow2.org/xwiki/xwiki-enterprise-web-7.2-milestone-2.warprojectType=DevelopmentprojectVersion=7.2-milestone-2projectID=1

On Thu, Aug 27, 2015 at 4:33 PM, vinc...@massol.net vinc...@massol.net
wrote:

 Hi Mohit,

 My fix is NOT in 7.2-milestone-2!

 See http://jira.xwiki.org/browse/XWIKI-12425 it says fix version =
 7.2-milestone-3

 Thanks
 -Vincent

 PS: Please always reply to the list!


 On 27 Aug 2015 at 12:31:07, Mohit Gupta (motgu...@gmail.com(mailto:
 motgu...@gmail.com)) wrote:

  Thanks vincet.
 
  After applying your xwiki.oracle.hbm.xml in
 xwiki-platform-legacy-oldcore-7.2-milestone-2 .jar that problem went away
 But i am getting below error
 
 
  root cause
 
  org.xwiki.query.QueryException: Exception while executing query. Query
 statement = [ select doc.fullName from XWikiDocument as doc , BaseObject as
 _o1 where ( doc.object ( XWiki.XWikiServerClass ) . server = :wikiAlias and
 doc.name(http://doc.name) like 'XWikiServer%' ) and doc.fullName=_o1.name(
 http://o1.name) and _o1.className='XWiki.XWikiServerClass' ]
 
 com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:160)
 
 org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71)
  org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)
 
 org.xwiki.query.xwql.internal.XWQLQueryExecutor.execute(XWQLQueryExecutor.java:118)
 
 org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:71)
  org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:287)
 
 org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocumentReference(DefaultWikiDescriptorDocumentHelper.java:121)
 
 org.xwiki.wiki.internal.descriptor.document.DefaultWikiDescriptorDocumentHelper.findXWikiServerClassDocument(DefaultWikiDescriptorDocumentHelper.java:140)
 
 org.xwiki.wiki.internal.descriptor.DefaultWikiDescriptorManager.getByAlias(DefaultWikiDescriptorManager.java:146)
 
 org.xwiki.url.internal.standard.AbstractWikiReferenceExtractor.getWikiDescriptorByAlias(AbstractWikiReferenceExtractor.java:67)
 
 org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.resolveDomainBasedWikiReference(DomainWikiReferenceExtractor.java:61)
 
 org.xwiki.url.internal.standard.DomainWikiReferenceExtractor.extract(DomainWikiReferenceExtractor.java:47)
 
 org.xwiki.url.internal.standard.entity.BinEntityResourceReferenceResolver.extractWikiReference(BinEntityResourceReferenceResolver.java:51)
 
 org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:87)
 
 org.xwiki.url.internal.standard.entity.AbstractEntityResourceReferenceResolver.resolve(AbstractEntityResourceReferenceResolver.java:51)
 
 org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:61)
 
 org.xwiki.url.internal.GenericResourceReferenceResolver.resolve(GenericResourceReferenceResolver.java:47)
 
 org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:64)
 
 org.xwiki.url.internal.standard.StandardExtendedURLResourceReferenceResolver.resolve(StandardExtendedURLResourceReferenceResolver.java:43)
 
 org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:93)
 
 org.xwiki.url.internal.DefaultResourceReferenceResolver.resolve(DefaultResourceReferenceResolver.java:48)
  com.xpn.xwiki.XWiki.initializeResourceFromURL(XWiki.java:742)
  com.xpn.xwiki.XWiki.getXWiki(XWiki.java:688)
  com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:229)
  com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
  org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
  com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
 
 org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
  org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 
 org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
 
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66

Re: [xwiki-users] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-08-23 Thread Mohit Gupta
Thanks Thomas and Clemens.

I moved to java 7 and using ojdbc6.jar instead of  ojdbc14.jar. But i am
getting below error when i hit url http://localhost:/wiki/ in browser
after my tomcat start

Failed to extract Entity Resource Reference from URL [
http://localhost:/wiki/bin/view/Main/]] with root cause
java.sql.SQLException: ORA-01408: such column list already indexed

at
oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at
oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)


On Mon, Aug 17, 2015 at 2:46 PM, Thomas Mortagne thomas.morta...@xwiki.com
wrote:

 Yes the exact error looks more like jdbc issue but the first thing is
 to move to Java 7 instead of Java 6 in any case. I'm even surprised it
 went as far as trying to initialize the DB.

 On Mon, Aug 17, 2015 at 10:57 AM, Clemens Klein-Robbenhaar
 c.robbenh...@espresto.com wrote:
 
  Alternatively it might have something to do with the JDBC driver.
 
  XWiki wants a JDBC-4 driver for the 7.x series
  (This information can be found somewhere in the release notes for 7.0:
 
 http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki70#HIssuesspecifictoXWiki7.0
 )
 
  Maybe you have a somewhat older Oracle JDBC driver?
 
  (Somehow your tomcat must have found a new java version, btw, or it
 would fail to start up with a different error message than what you got:
 
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUnsupportedmajor.minorversion51.0
 )
 
 
  just a guess
  Clemens
 
 
  But this issue does not seems to be related to java 6/7. Looking at logs
  looks like its an issue related to database. Isn't it ?
 
  On Mon, Aug 17, 2015 at 11:52 AM, Thomas Mortagne 
 thomas.morta...@xwiki.com
  wrote:
 
  XWiki require Java 7 since 6.0.
 
  On Sun, Aug 16, 2015 at 3:11 PM, Mohit Gupta motgu...@gmail.com
 wrote:
  I download the xwiki war file i.e xwiki-enterprise-web-7.2-milestone-2
  with
  db as Oracle.
 
  Here the configuration in hibernate.cfg.file
 
  property name=connection.urljdbc:oracle:thin:@localhost
  :1521:orcl/property
  property name=connection.usernamexwiki/property
  property name=connection.passwordxwiki/property
  property
 
 name=connection.driver_classoracle.jdbc.driver.OracleDriver/property
  property
  name=dialectorg.hibernate.dialect.Oracle10gDialect/property
  property name=connection.SetBigStringTryClobtrue/property
  property name=jdbc.batch_size0/property
  property name=jdbc.use_streams_for_binaryfalse/property
  property name=dbcp.poolPreparedStatementstrue/property
  property name=dbcp.maxOpenPreparedStatements20/property
  mapping resource=xwiki.oracle.hbm.xml/
  mapping resource=feeds.oracle.hbm.xml/
  mapping resource=activitystream.hbm.xml/
  mapping resource=instance.hbm.xml/
  mapping resource=mailsender.oracle.hbm.xml/
 
  But when i hit the url in browser i get below error
 
 
 
 
  XWiki initialization failed!
 
  Exception thrown during job execution
  class java.lang.AbstractMethodError: null
  at
 
 
 org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
  at
 
 
 org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
  at
 
 
 org.apache.commons.dbcp2.PoolableConnection.validate(PoolableConnection.java:283)
  at
 
 
 org.apache.commons.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:357)
  at
 
 
 org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304)
  at
 
 
 org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2287)
  at
 
 
 org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2038)
  at
 
 
 org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
  at
 
 
 com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:215)
  at
 
 
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143)
  at
 
 
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84)
  at
 
 
 org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459)
  at
 
 org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90)
  at
 
 
 org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863

Re: [xwiki-users] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-08-17 Thread Mohit Gupta
But this issue does not seems to be related to java 6/7. Looking at logs
looks like its an issue related to database. Isn't it ?

On Mon, Aug 17, 2015 at 11:52 AM, Thomas Mortagne thomas.morta...@xwiki.com
 wrote:

 XWiki require Java 7 since 6.0.

 On Sun, Aug 16, 2015 at 3:11 PM, Mohit Gupta motgu...@gmail.com wrote:
  I download the xwiki war file i.e xwiki-enterprise-web-7.2-milestone-2
 with
  db as Oracle.
 
  Here the configuration in hibernate.cfg.file
 
  property name=connection.urljdbc:oracle:thin:@localhost
  :1521:orcl/property
  property name=connection.usernamexwiki/property
  property name=connection.passwordxwiki/property
  property
  name=connection.driver_classoracle.jdbc.driver.OracleDriver/property
  property
  name=dialectorg.hibernate.dialect.Oracle10gDialect/property
  property name=connection.SetBigStringTryClobtrue/property
  property name=jdbc.batch_size0/property
  property name=jdbc.use_streams_for_binaryfalse/property
  property name=dbcp.poolPreparedStatementstrue/property
  property name=dbcp.maxOpenPreparedStatements20/property
  mapping resource=xwiki.oracle.hbm.xml/
  mapping resource=feeds.oracle.hbm.xml/
  mapping resource=activitystream.hbm.xml/
  mapping resource=instance.hbm.xml/
  mapping resource=mailsender.oracle.hbm.xml/
 
  But when i hit the url in browser i get below error
 
 
 
 
  XWiki initialization failed!
 
  Exception thrown during job execution
  class java.lang.AbstractMethodError: null
  at
 
 org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
  at
 
 org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
  at
 
 org.apache.commons.dbcp2.PoolableConnection.validate(PoolableConnection.java:283)
  at
 
 org.apache.commons.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:357)
  at
 
 org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304)
  at
 
 org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2287)
  at
 
 org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2038)
  at
 
 org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
  at
 
 com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:215)
  at
 
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143)
  at
 
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84)
  at
 
 org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459)
  at
  org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90)
  at
 
 org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
  at
  org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)
  at
 
 org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
  at
 
 com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:253)
  at
 
 com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:681)
  at
 
 com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:842)
  at
 
 com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:299)
  at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1562)
  at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1609)
  at
 
 org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getBaseObject(AbstractDocumentConfigurationSource.java:209)
  at
 
 org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getBaseProperty(AbstractDocumentConfigurationSource.java:219)
  at
 
 org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getPropertyValue(AbstractDocumentConfigurationSource.java:315)
  at
 
 org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getProperty(AbstractDocumentConfigurationSource.java:272)
  at
 
 org.xwiki.annotation.internal.DefaultAnnotationConfiguration.getAnnotationClassReference(DefaultAnnotationConfiguration.java:120)
  at
 
 org.xwiki.annotation.internal.AnnotationClassDocumentInitializer.getDocumentReference(AnnotationClassDocumentInitializer.java:67)
  at
 com.xpn.xwiki.XWiki.initializeMandatoryDocument(XWiki.java:1042)
  at
 com.xpn.xwiki.XWiki.initializeMandatoryDocuments(XWiki.java:1021)
  at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:966)
  at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:887)
  at com.xpn.xwiki.XWiki.init(XWiki.java:876

[xwiki-users] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-08-16 Thread Mohit Gupta
I download the xwiki war file i.e xwiki-enterprise-web-7.2-milestone-2 with
db as Oracle.

Here the configuration in hibernate.cfg.file

property name=connection.urljdbc:oracle:thin:@localhost
:1521:orcl/property
property name=connection.usernamexwiki/property
property name=connection.passwordxwiki/property
property
name=connection.driver_classoracle.jdbc.driver.OracleDriver/property
property
name=dialectorg.hibernate.dialect.Oracle10gDialect/property
property name=connection.SetBigStringTryClobtrue/property
property name=jdbc.batch_size0/property
property name=jdbc.use_streams_for_binaryfalse/property
property name=dbcp.poolPreparedStatementstrue/property
property name=dbcp.maxOpenPreparedStatements20/property
mapping resource=xwiki.oracle.hbm.xml/
mapping resource=feeds.oracle.hbm.xml/
mapping resource=activitystream.hbm.xml/
mapping resource=instance.hbm.xml/
mapping resource=mailsender.oracle.hbm.xml/

But when i hit the url in browser i get below error




XWiki initialization failed!

Exception thrown during job execution
class java.lang.AbstractMethodError: null
at
org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
at
org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
at
org.apache.commons.dbcp2.PoolableConnection.validate(PoolableConnection.java:283)
at
org.apache.commons.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:357)
at
org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304)
at
org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2287)
at
org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2038)
at
org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
at
com.xpn.xwiki.store.DBCPConnectionProvider.configure(DBCPConnectionProvider.java:215)
at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143)
at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84)
at
org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459)
at
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90)
at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
at
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.initHibernate(XWikiHibernateBaseStore.java:253)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.checkHibernate(XWikiHibernateBaseStore.java:681)
at
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:842)
at
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:299)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1562)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1609)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getBaseObject(AbstractDocumentConfigurationSource.java:209)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getBaseProperty(AbstractDocumentConfigurationSource.java:219)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getPropertyValue(AbstractDocumentConfigurationSource.java:315)
at
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getProperty(AbstractDocumentConfigurationSource.java:272)
at
org.xwiki.annotation.internal.DefaultAnnotationConfiguration.getAnnotationClassReference(DefaultAnnotationConfiguration.java:120)
at
org.xwiki.annotation.internal.AnnotationClassDocumentInitializer.getDocumentReference(AnnotationClassDocumentInitializer.java:67)
at com.xpn.xwiki.XWiki.initializeMandatoryDocument(XWiki.java:1042)
at com.xpn.xwiki.XWiki.initializeMandatoryDocuments(XWiki.java:1021)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:966)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:887)
at com.xpn.xwiki.XWiki.init(XWiki.java:876)
at
com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:117)
at
org.xwiki.job.internal.AbstractJob.runInContext(AbstractJob.java:209)
at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:192)
at java.lang.Thread.run(Thread.java:724)


I am using jdk 6, tomcat 7


I am not sure what is missing here ?

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


Re: [xwiki-users] tutorial to develop full fledged websites on xwiki?

2013-09-21 Thread Mohit Gupta
Skin is good . But I always look to see xwiki to be competitive with
wordpresss where user can play a lot with UI.  So if there is brief
tutorial where we can see what are all common needs of any CMS site and how
xwiki handles that, it would be great.


On Sat, Sep 21, 2013 at 7:49 PM, Vincent Massol vinc...@massol.net wrote:


 On Jun 15, 2013, at 2:40 PM, Mohit Gupta motgu...@gmail.com wrote:

  If there is complete coding tutorial corresponding to any website example
  at  http://www.xwiki.org/xwiki/bin/view/References/WebHome, it would be
  very helpful

 I don't think there's any but someone ought to write one :)

 The easiest for you is to use a skin for a web site, for example:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Leiothrix+Skin

 Thanks
 -Vincent

  On Sat, Jun 15, 2013 at 6:08 PM, Mohit Gupta motgu...@gmail.com wrote:
 
  I know xwiki has lot of potential. i am looking forward to develop the
  full fledged website like
  http://www.albertdemun.net/xwiki/bin/view/NBSitePublic/. It would be
  helpful to know if there is some tutorial exists explaining how we can
  develop the full website  (For example website i pointed above) where we
  can separate type of UI components most of the website usually have. I
 know
  probably there are some different extension/plugin existing at different
  places but if we can have single page explaining how we can develop full
  fledged website it would be great. Thanks in advance.

 ___
 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] Hiding the Top Level Menu /Page Menu links?

2013-09-21 Thread Mohit Gupta
Hi All,
 If i want to hide top level menu(like Add,Space,Page,Wiki link) , i do not
find any way except changing in code. Similarly if i want to disable the
Page level menu(like Edit, Export,More Actions Link) for specific
group/user, did not find any way. Are these configurable or code
modification is only way?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Configuring Landing Page after login?

2013-09-21 Thread Mohit Gupta
Once user registers himself, registration gets successful and clicks login,
he is navigated to Main space  WebHome PageI want the user navigates to
Webhome page of MySpace . For this i mentioned below config element in
xwiki.cfg and restarted the server.

xwiki.authentication.defaultpage=/bin/view/MySpace/WebHome

But it did not help. Still user is navigated to Main space  WebHome
Page once user clicks the login after successful regstration?
Am i missing something here?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Getting Unknown database error with xwiki version 5.1?

2013-09-14 Thread Mohit Gupta
Hi All,

I installed the xwiki latest version i.e 5.1 war file under tomcat. Here is
my hibernate.cfg.xml
to use MySQL as databse. I named the DB as IP.


property name=connection.urljdbc:mysql://localhost/IP/property
property name=connection.usernameroot/property
property name=connection.passwordsa1234/property

Now,when i startup my tomcat container, it gives below error

INFO: SessionListener: contextInitialized()
Sep 14, 2013 5:35:56 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet action threw exception
*com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown
database 'IP'*

Then i created the empty mysql database with name as 'IP' from command
prompt, then it gives below error. i am not sure why its looking for
database 'xwiki' instead of 'IP'. Do i need to change some other config
file also apart from hibernate.cfg.xml ?



 INFO: SessionListener: contextInitialized()
Sep 14, 2013 5:35:56 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet action threw exception
*com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown
database 'xwiki'*
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Getting Unknown database error with xwiki version 5.1?

2013-09-14 Thread Mohit Gupta
I could resolve this issue by uncomment and setting below property to  IP
in xwiki.cfg. I don't is it really required as i never set it for
previously installed version i.e xwiki 3.5?
As i have already mentioned in hibernate.cfg.xml (property
name=connection.urljdbc:mysql://localhost/IP/property ), it should be
coming from there. Is n't it?

xwiki.db=IP


On Sat, Sep 14, 2013 at 5:56 PM, Mohit Gupta motgu...@gmail.com wrote:

 Hi All,

 I installed the xwiki latest version i.e 5.1 war file under tomcat. Here
 is my hibernate.cfg.xml
 to use MySQL as databse. I named the DB as IP.


 property name=connection.urljdbc:mysql://localhost/IP/property
 property name=connection.usernameroot/property
 property name=connection.passwordsa1234/property

 Now,when i startup my tomcat container, it gives below error

 INFO: SessionListener: contextInitialized()
 Sep 14, 2013 5:35:56 PM org.apache.catalina.core.StandardWrapperValve
 invoke
 SEVERE: Servlet.service() for servlet action threw exception
 *com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown
 database 'IP'*

 Then i created the empty mysql database with name as 'IP' from command
 prompt, then it gives below error. i am not sure why its looking for
 database 'xwiki' instead of 'IP'. Do i need to change some other config
 file also apart from hibernate.cfg.xml ?



  INFO: SessionListener: contextInitialized()
 Sep 14, 2013 5:35:56 PM org.apache.catalina.core.StandardWrapperValve
 invoke
 SEVERE: Servlet.service() for servlet action threw exception
 *com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown
 database 'xwiki'*

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


Re: [xwiki-users] Component manager has not been initialized before lookup for [org.xwiki.model.reference.DocumentReferenceResolver java.lang.String ] for hint [currentmixed]

2013-09-10 Thread Mohit Gupta
Hi Vincent,

This did not happen again as of now after restart.


On Tue, Sep 10, 2013 at 12:15 PM, Vincent Massol vinc...@massol.net wrote:

 Hi Mohit,

 Does this happen again if you restart again XWiki or is it a fluke?

 Thanks
 -Vincent

 On Sep 9, 2013, at 4:40 PM, Mohit Gupta motgu...@gmail.com wrote:

  Hi,
 
  I installed the xwiki latest version i.e 5.1 war file under tomcat and
  getting the below error when
  i hit the deployed  xwiki from browser. I am not sure what i missed here?
 
  java.lang.RuntimeException: Component manager has not been initialized
  before lookup for [org.xwiki.model.reference.DocumentReferenceResolver
  java.lang.String ] for hint [currentmixed]
  at com.xpn.xwiki.web.Utils.getComponent(Utils.java:700)
  at com.xpn.xwiki.XWikiContext.init(XWikiContext.java:151)
  at com.xpn.xwiki.web.Utils.prepareContext(Utils.java:382)
  at
 
 com.xpn.xwiki.web.XWikiAction.initializeXWikiContext(XWikiAction.java:418)
  at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:125)
  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:617)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
 
 org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
  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:66)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
 
 org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
 
 org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
  at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
  ___
  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


[xwiki-users] Component manager has not been initialized before lookup for [org.xwiki.model.reference.DocumentReferenceResolver java.lang.String ] for hint [currentmixed]

2013-09-09 Thread Mohit Gupta
Hi,

I installed the xwiki latest version i.e 5.1 war file under tomcat and
getting the below error when
i hit the deployed  xwiki from browser. I am not sure what i missed here?

java.lang.RuntimeException: Component manager has not been initialized
before lookup for [org.xwiki.model.reference.DocumentReferenceResolver
java.lang.String ] for hint [currentmixed]
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:700)
at com.xpn.xwiki.XWikiContext.init(XWikiContext.java:151)
at com.xpn.xwiki.web.Utils.prepareContext(Utils.java:382)
at
com.xpn.xwiki.web.XWikiAction.initializeXWikiContext(XWikiAction.java:418)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:125)
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:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
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:66)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Component manager has not been initialized before lookup for [org.xwiki.model.reference.DocumentReferenceResolver java.lang.String ] for hint [currentmixed]

2013-09-09 Thread Mohit Gupta
Folks

Issue got resolved by deleting work folder under my tomcat directory. Looks
like it was some cache issue. as i was upgrading it from 3.5 to 5.1.


On Mon, Sep 9, 2013 at 8:10 PM, Mohit Gupta motgu...@gmail.com wrote:

 Hi,

 I installed the xwiki latest version i.e 5.1 war file under tomcat and
 getting the below error when
 i hit the deployed  xwiki from browser. I am not sure what i missed here?

 java.lang.RuntimeException: Component manager has not been initialized
 before lookup for [org.xwiki.model.reference.DocumentReferenceResolver
 java.lang.String ] for hint [currentmixed]
  at com.xpn.xwiki.web.Utils.getComponent(Utils.java:700)
 at com.xpn.xwiki.XWikiContext.init(XWikiContext.java:151)
  at com.xpn.xwiki.web.Utils.prepareContext(Utils.java:382)
 at
 com.xpn.xwiki.web.XWikiAction.initializeXWikiContext(XWikiAction.java:418)
  at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:125)
 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:617)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
 org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
 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:66)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
 org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
 org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt

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


Re: [xwiki-users] Uploading the file with message in Bulletin board?

2013-06-04 Thread Mohit Gupta
Thanks  Ecaterina Moraru.

The link you posted also does not have way to attach the file  while
creating/replying to any topic which i am looking for.

 I think forum application available at both the links below are more or
less same. Is it n't?

http://extensions.xwiki.org/xwiki/bin/view/Extension/SimpleForumApplication
http://extensions.xwiki.org/xwiki/bin/view/Extension/Bulletin+Board+Application



On Mon, Jun 3, 2013 at 2:15 PM, Ecaterina Moraru (Valica) vali...@gmail.com
 wrote:

 You can also check out
 http://extensions.xwiki.org/xwiki/bin/view/Extension/SimpleForumApplication

 Thanks,
 Caty


 On Sat, Jun 1, 2013 at 6:06 AM, Mohit Gupta motgu...@gmail.com wrote:

  Folks i am planning to have bulletin board application on xwiki. I came
  across link
 
 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Bulletin+Board+Application
   and i loved it. Is there a way user can also upload files while posting
  his message on bulletin board.
 
 
  Are there some other bulletin board applications also(apart from the
 
 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Bulletin+Board+Application
  )
  for xwiki
  so that i can select awhich serves best for my requirements?
  ___
  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


[xwiki-users] Integration of RSS reader with xwiki?

2013-05-21 Thread Mohit Gupta
i am looking for integration of RSS reader with xwiki where i can subscribe
to RSS feed to some external site( for example :-stackoverflow ) and get
the updates.
Any pointers in the direction will be great help?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki Integration with Active Directory

2013-05-11 Thread Mohit Gupta
Folks any pointers would be great help as  Invalid Credentials is wrong
error message (becoz i credentials). I am not sure where exactly a problem
is.


On Fri, May 10, 2013 at 8:18 PM, Mohit Gupta motgu...@gmail.com wrote:

 This issue is regarding my second try to integrate xwiki with my company
 active directory,but no success.I am getting the below issue

 com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP
 bind failed with LDAPException.
 Wrapped Exception: Invalid Credentials
 at
 com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:172)
 ~[xwiki-platform-legacy-oldcore-3.5.jar:na]
  at
 com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:101)
 ~[xwiki-platform-legacy-oldcore-3.5.jar:na]
 at
 com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateInContext(XWikiLDAPAuthServiceImpl.java:305)
 [xwiki-platform-legacy-oldcore-3.5.jar:na]
  at
 com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:182)
 [xwiki-platform-legacy-oldcore-3.5.jar:na]

 I contacted  my company ActiveDirectory Administrator and provided me the
 deatils required in xwiki.cfg file
 Here is my my configuration in xwiki.cfg file


 xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
 xwiki.authentication.ldap=1
 xwiki.authentication.ldap.server=int.myCompany.net
 xwiki.authentication.ldap.port=389
 xwiki.authentication.ldap.UID_attr=sAMAccountName

 xwiki.authentication.ldap.fields_mapping=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
 xwiki.authentication.ldap.update_user=1
 xwiki.authentication.ldap.base_DN=dc=int,dc=myCompany,dc=net

 for below below attribute, i was told New account will be created.
 Though i am ot sure what does it mean. So i tried both the
 options i.e keeping them default and also commented them out, but no help

 xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP
 xwiki.authentication.ldap.bind_pass={1}

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


Re: [xwiki-users] XWiki Integration with Active Directory

2013-05-11 Thread Mohit Gupta
Thanks Thomas. As per usecase link here is my updated configuration but
still i get the same issue i.e

com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP
bind failed with LDAPException.
Wrapped Exception: Invalid Credentials

Here is my configuration

xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
xwiki.authentication.ldap=1
xwiki.authentication.ldap.server=int.myCompany.net
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.base_DN=dc=int,dc=myCompany,dc=net
xwiki.authentication.ldap.bind_DN=int{0}
xwiki.authentication.ldap.bind_pass={1}
xwiki.authentication.ldap.UID_attr=sAMAccountName
xwiki.authentication.ldap.fields_mapping=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn

i am not sure , Am i still  missing  something?
I am also not sure value given against xwiki.authentication.My active
directory administrator just asked me to mention the value i stated above?





On Sat, May 11, 2013 at 4:20 PM, Thomas Mortagne
thomas.morta...@xwiki.comwrote:

 On Sat, May 11, 2013 at 12:18 PM, Mohit Gupta motgu...@gmail.com wrote:
  Folks any pointers would be great help as  Invalid Credentials is wrong
  error message (becoz i credentials). I am not sure where exactly a
 problem
  is.
 
 
  On Fri, May 10, 2013 at 8:18 PM, Mohit Gupta motgu...@gmail.com wrote:
 
  This issue is regarding my second try to integrate xwiki with my company
  active directory,but no success.I am getting the below issue
 
  com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP
  bind failed with LDAPException.
  Wrapped Exception: Invalid Credentials
  at
 
 com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:172)
  ~[xwiki-platform-legacy-oldcore-3.5.jar:na]
   at
 
 com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:101)
  ~[xwiki-platform-legacy-oldcore-3.5.jar:na]
  at
 
 com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateInContext(XWikiLDAPAuthServiceImpl.java:305)
  [xwiki-platform-legacy-oldcore-3.5.jar:na]
   at
 
 com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:182)
  [xwiki-platform-legacy-oldcore-3.5.jar:na]
 
  I contacted  my company ActiveDirectory Administrator and provided me
 the
  deatils required in xwiki.cfg file
  Here is my my configuration in xwiki.cfg file
 
 
 
 xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
  xwiki.authentication.ldap=1
  xwiki.authentication.ldap.server=int.myCompany.net
  xwiki.authentication.ldap.port=389
  xwiki.authentication.ldap.UID_attr=sAMAccountName
 
 
 xwiki.authentication.ldap.fields_mapping=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
  xwiki.authentication.ldap.update_user=1
  xwiki.authentication.ldap.base_DN=dc=int,dc=myCompany,dc=net
 
  for below below attribute, i was told New account will be created.
  Though i am ot sure what does it mean. So i tried both the
  options i.e keeping them default and also commented them out, but no
 help
 
 
 xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP
  xwiki.authentication.ldap.bind_pass={1}

 This setup means that XWiki will access the LDAP server with the
 following user:

 cn={whateveryouputintheloginform},department=USER,department=INFORMATIK,department=1230,o=MP
 and the password you indicate in the login form. This does not looks
 like proper setup for AD, expecially the cn since as you indicated
 yourself in xwiki.authentication.ldap.UID_attr the uid is in the field
 sAMAccountName.

 Did ou tried what's on

 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/LDAPAuthenticationUseCases#HActiveDirectory
 ? It generally working well.

 
  ___
  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] XWiki Integration with Active Directory

2013-05-11 Thread Mohit Gupta
Thanks Thomas. It seems to be working now.


On Sat, May 11, 2013 at 8:13 PM, Thomas Mortagne
thomas.morta...@xwiki.comwrote:

 On Sat, May 11, 2013 at 3:18 PM, Mohit Gupta motgu...@gmail.com wrote:
  Thanks Thomas. As per usecase link here is my updated configuration but
  still i get the same issue i.e
 
  com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP
  bind failed with LDAPException.
  Wrapped Exception: Invalid Credentials
 
  Here is my configuration
 
 
 xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
  xwiki.authentication.ldap=1
  xwiki.authentication.ldap.server=int.myCompany.net
  xwiki.authentication.ldap.port=389
  xwiki.authentication.ldap.base_DN=dc=int,dc=myCompany,dc=net

  xwiki.authentication.ldap.bind_DN=int{0}

 Shouldn't it be xwiki.authentication.ldap.bind_DN=int\\{0} instead ?

 The best you can do right now is to get a LDAP client an try various
 bind DN/password with it, when you find what is working then you can
 use that to setup XWiki.

  xwiki.authentication.ldap.bind_pass={1}
  xwiki.authentication.ldap.UID_attr=sAMAccountName
 
 xwiki.authentication.ldap.fields_mapping=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
 
  i am not sure , Am i still  missing  something?
  I am also not sure value given against xwiki.authentication.My active
  directory administrator just asked me to mention the value i stated
 above?
 
 
 
 
 
  On Sat, May 11, 2013 at 4:20 PM, Thomas Mortagne
  thomas.morta...@xwiki.comwrote:
 
  On Sat, May 11, 2013 at 12:18 PM, Mohit Gupta motgu...@gmail.com
 wrote:
   Folks any pointers would be great help as  Invalid Credentials is
 wrong
   error message (becoz i credentials). I am not sure where exactly a
  problem
   is.
  
  
   On Fri, May 10, 2013 at 8:18 PM, Mohit Gupta motgu...@gmail.com
 wrote:
  
   This issue is regarding my second try to integrate xwiki with my
 company
   active directory,but no success.I am getting the below issue
  
   com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5:
 LDAP
   bind failed with LDAPException.
   Wrapped Exception: Invalid Credentials
   at
  
 
 com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:172)
   ~[xwiki-platform-legacy-oldcore-3.5.jar:na]
at
  
 
 com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:101)
   ~[xwiki-platform-legacy-oldcore-3.5.jar:na]
   at
  
 
 com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateInContext(XWikiLDAPAuthServiceImpl.java:305)
   [xwiki-platform-legacy-oldcore-3.5.jar:na]
at
  
 
 com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:182)
   [xwiki-platform-legacy-oldcore-3.5.jar:na]
  
   I contacted  my company ActiveDirectory Administrator and provided me
  the
   deatils required in xwiki.cfg file
   Here is my my configuration in xwiki.cfg file
  
  
  
 
 xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
   xwiki.authentication.ldap=1
   xwiki.authentication.ldap.server=int.myCompany.net
   xwiki.authentication.ldap.port=389
   xwiki.authentication.ldap.UID_attr=sAMAccountName
  
  
 
 xwiki.authentication.ldap.fields_mapping=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
   xwiki.authentication.ldap.update_user=1
   xwiki.authentication.ldap.base_DN=dc=int,dc=myCompany,dc=net
  
   for below below attribute, i was told New account will be created.
   Though i am ot sure what does it mean. So i tried both the
   options i.e keeping them default and also commented them out, but no
  help
  
  
 
 xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP
   xwiki.authentication.ldap.bind_pass={1}
 
  This setup means that XWiki will access the LDAP server with the
  following user:
 
 
 cn={whateveryouputintheloginform},department=USER,department=INFORMATIK,department=1230,o=MP
  and the password you indicate in the login form. This does not looks
  like proper setup for AD, expecially the cn since as you indicated
  yourself in xwiki.authentication.ldap.UID_attr the uid is in the field
  sAMAccountName.
 
  Did ou tried what's on
 
 
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/LDAPAuthenticationUseCases#HActiveDirectory
  ? It generally working well.
 
  
   ___
   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-users] Giving rights to LDAP(Active Directory) user on a specific space ?

2013-05-11 Thread Mohit Gupta
I am able to login with my windows(active directory credentials) but issue
is ldap user does not have any rights on xwiki space.
My  question is : Is there a way i can give some rights(say view rights) on
specific space(say Welcome Space) to all my ldap(active directory) users.
I created the welcome space and navigated to administer Space, then to
rights, but do not see any way to give rights to all my active directory
user.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XWiki Integration with Active Directory

2013-05-10 Thread Mohit Gupta
This issue is regarding my second try to integrate xwiki with my company
active directory,but no success.I am getting the below issue

com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP
bind failed with LDAPException.
Wrapped Exception: Invalid Credentials
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:172)
~[xwiki-platform-legacy-oldcore-3.5.jar:na]
at
com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:101)
~[xwiki-platform-legacy-oldcore-3.5.jar:na]
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticateInContext(XWikiLDAPAuthServiceImpl.java:305)
[xwiki-platform-legacy-oldcore-3.5.jar:na]
at
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:182)
[xwiki-platform-legacy-oldcore-3.5.jar:na]

I contacted  my company ActiveDirectory Administrator and provided me the
deatils required in xwiki.cfg file
Here is my my configuration in xwiki.cfg file

xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
xwiki.authentication.ldap=1
xwiki.authentication.ldap.server=int.myCompany.net
xwiki.authentication.ldap.port=389
xwiki.authentication.ldap.UID_attr=sAMAccountName
xwiki.authentication.ldap.fields_mapping=sAMAccountName,last_name=sn,first_name=givenName,fullname=displayName,email=mail,ldap_dn=dn
xwiki.authentication.ldap.update_user=1
xwiki.authentication.ldap.base_DN=dc=int,dc=myCompany,dc=net

for below below attribute, i was told New account will be created. Though
i am ot sure what does it mean. So i tried both the
options i.e keeping them default and also commented them out, but no help
xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP
xwiki.authentication.ldap.bind_pass={1}
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Integrating xwiki with active directory?

2013-04-08 Thread Mohit Gupta
I want to integrate xwiki login with my active directory login.Basically i
want to use same credentials for xwiki that i am using for window
login.Here is my ldap configuration(as per examples given at
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/LDAPAuthenticationUseCases
)

xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl
xwiki.authentication.ldap=1
xwiki.authentication.ldap.server=10.215.30.20
xwiki.authentication.ldap.port=389
// all other values i have kept default
xwiki.authentication.ldap.bind_DN=cn={0},department=USER,department=INFORMATIK,department=1230,o=MP
xwiki.authentication.ldap.bind_pass={1}
xwiki.authentication.ldap.base_DN=
xwiki.authentication.ldap.UID_attr=cn

But when i login to xwiki with my window credentials , i get below
error(though i am able to ping
10.215.30.20 server):-

com.xpn.xwiki.plugin.ldap.XWikiLDAPException: Error number 0 in 5: LDAP
bind failed with LDAPException.
Wrapped Exception: Invalid Credentials


Any idea what can be probable reason for this?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] images are missing when running wiki in disk mode?

2012-10-29 Thread mohit gupta
i used the tool suggested at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter
.
I am xwiki 3.5 version. I created the page under main space and then pasted
V2.0 Script. In the end i clicked Start. It says it has imported the all
attachments to filesystem. But when i go to administer wiki link again,
still images like configuration.png,lf.png, are missing. Does it require
the server start-up?


Also after import,should not i see the all the imported
docs(like configuration.png ) under directory mentioned against element
'xwiki.work.dir'.But that directory contains the lucene folder which
contains the files like _2.fdt,_2.fdx etc.

On Mon, Oct 29, 2012 at 11:27 AM, mohit gupta motgu...@gmail.com wrote:

 Hi all,  I log in to wiki with my admin credentials. Now navigate to
 administer wiki but i do not see the wiki default images
 like configuration.png,lf.png,usersgroups.png etc

 When i go to firebug and inspect that image , i see the path as
 /mywiki/bin/download/XWiki/AdminSheet/configuration.png
 but there is no folder like this under mywiki (looks  like they are
  stored in db and returned thru servlet.Just a guess)


 Just for information, i am running my wiki instance in  disk mode  so that
 all my attachments are stored in file system instead of db.
 Below is the change i did for that:-

 xwiki.store.attachment.versioning=0
 # disable document recycling
 storage.attachment.recyclebin=0

 xwiki.store.attachment.hint = file
 xwiki.store.attachment.versioning.hint = file
 xwiki.store.attachment.recyclebin.hint = file


 *I am not sure what i am missing here? Is running wiki under disk mode
 the cause for it ?, If yes what is the right way to proceed?*

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


Re: [xwiki-users] images are missing when running wiki in disk mode?

2012-10-29 Thread mohit gupta
Thanks Guillaume. With setting  of
property environment.permanentDirectory in xwiki.properties, i
see  extension folder got created (at server start up )besides lucene.
Extension folder contains the repository folder which is empty. Then  I ran
the script V2.0 script at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter
but
still it did not import any  attachment files from db to repository folder
:(

On Mon, Oct 29, 2012 at 4:15 PM, Guillaume Fenollar 
guillaume.fenol...@xwiki.com wrote:

 Hello,

 You have two variables to check:
 * in xwiki.cfg, you have xwiki.work.dir.
 * in xwiki.properties, you have environment.permanentDirectory.

 Ensure you set the same directory for both variables. After a restart and
 after running the script you've mentionned above, you should have a
 directory name storage beside lucene you've noticed.
 If after that, storage dir is not created, check the rights for that
 directory, and the logs.

 Good luck :-)

 Guillaume Fenollar

 2012/10/29 mohit gupta motgu...@gmail.com

  i used the tool suggested at
 
 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter
  .
  I am xwiki 3.5 version. I created the page under main space and then
 pasted
  V2.0 Script. In the end i clicked Start. It says it has imported the all
  attachments to filesystem. But when i go to administer wiki link again,
  still images like configuration.png,lf.png, are missing. Does it require
  the server start-up?
 
 
  Also after import,should not i see the all the imported
  docs(like configuration.png ) under directory mentioned against element
  'xwiki.work.dir'.But that directory contains the lucene folder which
  contains the files like _2.fdt,_2.fdx etc.
 
  On Mon, Oct 29, 2012 at 11:27 AM, mohit gupta motgu...@gmail.com
 wrote:
 
   Hi all,  I log in to wiki with my admin credentials. Now navigate to
   administer wiki but i do not see the wiki default images
   like configuration.png,lf.png,usersgroups.png etc
  
   When i go to firebug and inspect that image , i see the path as
   /mywiki/bin/download/XWiki/AdminSheet/configuration.png
   but there is no folder like this under mywiki (looks  like they are
stored in db and returned thru servlet.Just a guess)
  
  
   Just for information, i am running my wiki instance in  disk mode  so
  that
   all my attachments are stored in file system instead of db.
   Below is the change i did for that:-
  
   xwiki.store.attachment.versioning=0
   # disable document recycling
   storage.attachment.recyclebin=0
  
   xwiki.store.attachment.hint = file
   xwiki.store.attachment.versioning.hint = file
   xwiki.store.attachment.recyclebin.hint = file
  
  
   *I am not sure what i am missing here? Is running wiki under disk mode
   the cause for it ?, If yes what is the right way to proceed?*
  
  ___
  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] images are missing when running wiki in disk mode?

2012-10-29 Thread mohit gupta
Thanks. It is working now. I was running in dry mode.

On Mon, Oct 29, 2012 at 7:50 PM, mohit gupta motgu...@gmail.com wrote:

 Thanks Guillaume. With setting  of
 property environment.permanentDirectory in xwiki.properties, i
 see  extension folder got created (at server start up )besides lucene.
 Extension folder contains the repository folder which is empty. Then  I ran
 the script V2.0 script at
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter
  but
 still it did not import any  attachment files from db to repository folder
 :(


 On Mon, Oct 29, 2012 at 4:15 PM, Guillaume Fenollar 
 guillaume.fenol...@xwiki.com wrote:

 Hello,

 You have two variables to check:
 * in xwiki.cfg, you have xwiki.work.dir.
 * in xwiki.properties, you have environment.permanentDirectory.

 Ensure you set the same directory for both variables. After a restart and
 after running the script you've mentionned above, you should have a
 directory name storage beside lucene you've noticed.
 If after that, storage dir is not created, check the rights for that
 directory, and the logs.

 Good luck :-)

 Guillaume Fenollar

 2012/10/29 mohit gupta motgu...@gmail.com

  i used the tool suggested at
 
 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Filesystem+Attachment+Porter
  .
  I am xwiki 3.5 version. I created the page under main space and then
 pasted
  V2.0 Script. In the end i clicked Start. It says it has imported the all
  attachments to filesystem. But when i go to administer wiki link again,
  still images like configuration.png,lf.png, are missing. Does it require
  the server start-up?
 
 
  Also after import,should not i see the all the imported
  docs(like configuration.png ) under directory mentioned against element
  'xwiki.work.dir'.But that directory contains the lucene folder which
  contains the files like _2.fdt,_2.fdx etc.
 
  On Mon, Oct 29, 2012 at 11:27 AM, mohit gupta motgu...@gmail.com
 wrote:
 
   Hi all,  I log in to wiki with my admin credentials. Now navigate to
   administer wiki but i do not see the wiki default images
   like configuration.png,lf.png,usersgroups.png etc
  
   When i go to firebug and inspect that image , i see the path as
   /mywiki/bin/download/XWiki/AdminSheet/configuration.png
   but there is no folder like this under mywiki (looks  like they are
stored in db and returned thru servlet.Just a guess)
  
  
   Just for information, i am running my wiki instance in  disk mode  so
  that
   all my attachments are stored in file system instead of db.
   Below is the change i did for that:-
  
   xwiki.store.attachment.versioning=0
   # disable document recycling
   storage.attachment.recyclebin=0
  
   xwiki.store.attachment.hint = file
   xwiki.store.attachment.versioning.hint = file
   xwiki.store.attachment.recyclebin.hint = file
  
  
   *I am not sure what i am missing here? Is running wiki under disk mode
   the cause for it ?, If yes what is the right way to proceed?*
  
  ___
  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


[xwiki-users] images are missing when running wiki in disk mode?

2012-10-28 Thread mohit gupta
Hi all,  I log in to wiki with my admin credentials. Now navigate to
administer wiki but i do not see the wiki default images
like configuration.png,lf.png,usersgroups.png etc

When i go to firebug and inspect that image , i see the path as
/mywiki/bin/download/XWiki/AdminSheet/configuration.png
but there is no folder like this under mywiki (looks  like they are  stored
in db and returned thru servlet.Just a guess)


Just for information, i am running my wiki instance in  disk mode  so that
all my attachments are stored in file system instead of db.
Below is the change i did for that:-

xwiki.store.attachment.versioning=0
# disable document recycling
storage.attachment.recyclebin=0

xwiki.store.attachment.hint = file
xwiki.store.attachment.versioning.hint = file
xwiki.store.attachment.recyclebin.hint = file


*I am not sure what i am missing here? Is running wiki under disk mode the
cause for it ?, If yes what is the right way to proceed?*
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Inclusion of e-learning tutorial within wiki?

2012-09-10 Thread mohit gupta
I have one  e-learning tutorial for my application created through
articulate storyline. My question is is there any
way i can include the e-learning application with in wiki page? I did not
came across any kind of this utility.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Accessing the macro parameter in velocity code?

2012-08-09 Thread mohit gupta
Hi All,

i am on xwiki 3.5. i have created a macro and included in my TestPage with
below code
*{{RecentChangesMacro rcSpace=MySpaceName}}{{/RecentChangesMacro}}*

Now in RecentChangesMacro ,  i have below code , which tries to access the
above passed parameter inside velocity template
*#set($rcSpace1 = $xontext.macro.params.rcSpace)*
but when i print it with below snippet
*Value of rcSpace1 is $rcSpace1*

the output is *Value of rcSpace1 is $rcSpace1 *where expected  the output
is * Value of rcSpace1 is MySpaceName.*

I am not sure why i am able to access the parameter rcSpace in macro?

For information, i have also attached the object of
WikiMacroParameterClass with parameter name  rcSpace as explained at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial.

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


Re: [xwiki-users] Accessing the macro parameter in velocity code?

2012-08-09 Thread mohit gupta
Thanks Thomas and Marius. It was typo mistake.

On Thu, Aug 9, 2012 at 12:29 PM, Thomas Mortagne
thomas.morta...@xwiki.comwrote:

 On Thu, Aug 9, 2012 at 8:42 AM, mohit gupta motgu...@gmail.com wrote:
  Hi All,
 
  i am on xwiki 3.5. i have created a macro and included in my TestPage
 with
  below code
  *{{RecentChangesMacro rcSpace=MySpaceName}}{{/RecentChangesMacro}}*
 
  Now in RecentChangesMacro ,  i have below code , which tries to access
 the
  above passed parameter inside velocity template
  *#set($rcSpace1 = $xontext.macro.params.rcSpace)*

 Is this a bad copy past or you really used $xontext insead of $xcontext ?

  but when i print it with below snippet
  *Value of rcSpace1 is $rcSpace1*
 
  the output is *Value of rcSpace1 is $rcSpace1 *where expected  the
 output
  is * Value of rcSpace1 is MySpaceName.*
 
  I am not sure why i am able to access the parameter rcSpace in macro?
 
  For information, i have also attached the object of
  WikiMacroParameterClass with parameter name  rcSpace as explained at
  http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial.
 
  Regards
  ___
  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


[xwiki-users] Hiding the History section from wiki?

2012-07-11 Thread mohit gupta
Hi All,

I want to hide history section which i see between attachments and
information section. As per link  i tried  using below  code snippet at
various places(like view.vm,menuview.vm and xwikivars.vm) but nothing
worked. I am on wiki 3.5.
 #set ($showhistory = no)


Could you point me how to hide the history section from wiki?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Hiding the History section from wiki?

2012-07-11 Thread mohit gupta
Thanks Ecaterina. Actually i want to do hide it for all users except admin
user. With the solution you suggested, it hides the history section for all
users including admin.  Is there a way i can hide history section for all
users except admin.

On Wed, Jul 11, 2012 at 3:23 PM, Ecaterina Moraru (Valica) 
vali...@gmail.com wrote:

 Hi,

 Administration  LookFeel  Page Elements  Document metadata visibility 
 Show History
 should work.

 Thanks,
 Caty

 On Wed, Jul 11, 2012 at 12:32 PM, mohit gupta motgu...@gmail.com wrote:

  Hi All,
 
  I want to hide history section which i see between attachments and
  information section. As per link  i tried  using below  code snippet at
  various places(like view.vm,menuview.vm and xwikivars.vm) but nothing
  worked. I am on wiki 3.5.
   #set ($showhistory = no)
 
 
  Could you point me how to hide the history section from wiki?
  ___
  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] Hiding the History section from wiki?

2012-07-11 Thread mohit gupta
This is how i figured it out

 if  we want to do it for all users except admin, open  docextra.vm and
 replace #if ($showhistory)  with  #if ($xcontext.user==XWiki.Admin 
$showhistory). This will ensure history section shows up only for admin
user.

On Wed, Jul 11, 2012 at 3:37 PM, mohit gupta motgu...@gmail.com wrote:

 Thanks Ecaterina. Actually i want to do hide it for all users except admin
 user. With the solution you suggested, it hides the history section for all
 users including admin.  Is there a way i can hide history section for all
 users except admin.


 On Wed, Jul 11, 2012 at 3:23 PM, Ecaterina Moraru (Valica) 
 vali...@gmail.com wrote:

 Hi,

 Administration  LookFeel  Page Elements  Document metadata visibility
 
 Show History
 should work.

 Thanks,
 Caty

 On Wed, Jul 11, 2012 at 12:32 PM, mohit gupta motgu...@gmail.com wrote:

  Hi All,
 
  I want to hide history section which i see between attachments and
  information section. As per link  i tried  using below  code snippet at
  various places(like view.vm,menuview.vm and xwikivars.vm) but nothing
  worked. I am on wiki 3.5.
   #set ($showhistory = no)
 
 
  Could you point me how to hide the history section from wiki?
  ___
  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


[xwiki-users] Setting view deny permission on specific page?

2012-05-28 Thread mohit gupta
Hi All,

I want to set the view  deny permission on specific page for group
XWikiAllGroup through groovy script. This is my groovy script i tried

Document docSetSearchableRights=xwiki.getDocument(Xwiki.User1)
  if(docSetSearchableRights!=null)
  {
   com.xpn.xwiki.api.Object
rightsToSearchObject=docSetSearchableRights.newObject(XWiki.XWikiRights)
   rightsToSearchObject.set(groups, XWiki.XWikiAllGroup)
   rightsToSearchObject.set(levels, view)
   rightsToSearchObject.set(allow, 0) // also tried value 2 but does
not work.
   docSetSearchableRights.save()
  }

Above i am trying to set view deny permission to group XWiki.XWikiAllGroup
on page Xwiki.User1. But when i go access rights section of User1 page, i
do not see deny permission set on view for group XWikiAllGroup.

For information, The reason i am doing it is i do not want user profiles
visible in serach results. i was able to do it from xwiki ui   by edit the
access rights of that  page  and deny the view permission of that user
profile page to XWikiAllGoup . But in the question, i am trying to do it
from groovy script.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] xwiki-importexport-1.3 missing some pages like webhome?

2012-05-25 Thread mohit gupta
Hi Folks,

i want to export the specific space.For this i was suggested
xwiki-importexport-1.3 application at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Import+Export+Application.
But as upload this application and go to export page. Then select the space
, no page appears  from selected space. Basically on selection of space in
dropdown, nothing happens.
Then i tried to look in to issue and looks like application at above link
does not contain all pages like webhome. Because when go dashboard page , i
see question mark(?) in front
of admin space.  Probably this can be the reason that this application is
not working for me.

For your information , after import of  xwiki-importexport-1.3 application
, i just see 7 xml files and here are the names:-
1)Export
2)ExportFromDate
3)ExportFromDateGroovy
4)ExportPage
5)ExportPageSuggest
6)ExportSpaceSuggest
7)ImportPage


Let me know if this application contains only 7 pages. If more , can
someone point me to right link for application or send me the application
as attachment.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Process to bring the application developed thru wiki classes, objects on new wiki instance .

2012-05-24 Thread mohit gupta
Hi All,

I created  an application using xwiki classes and objects similar like FAQ
application explained in wiki tutorial at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial. I develop it
on my local box. Now i want to take it this complete application to another
instance of wiki on different machine. What should be my next steps. what
are the pages i need to take to another instance(as wiki must be creating
the pages internally also which i may not be aware of ). As during
this application creation process, did various steps which created
different docs,classes and objects in different spaces(i am aware of only
two spaces that  contains docs related to this process i.e DataTypes space
which contains the newly created class etc  and the space under which i
created my application  which  contains the templates etc ) If somebody can
explain simply how the FAQ application developed on one wiki instance can
be taken to  another wiki instance, it would be great

Can it  be done just after importing the newly created space under which
application exists and then amporting it to new wiki instance?  if yes how
should i export the specific space. I tried
http://extensions.xwiki.org/xwiki/bin/view/Extension/Multipage+Export+Application
but
It does not work. I enter any space name even existing space i.e  blog,
search button does not seem to be working and does not search any page
inside any space .As i am working on xwiki 3.5 i just downloaded this
application  and visited the MultiPageExport.Install page to finish the
install  as suugested in doc. Then i navigated to
localhost/wiki/bin/view/Admin/Export  but search button does not work.Let
me know if i need to do some other stuff.

Xwiki version is 3.5

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


[xwiki-users] Check for edit mode to exclude velocity macro?

2012-05-23 Thread mohit gupta
Hi

i dont want to show a specific velocity macro when in edit mode. How should
i check for edit mode on page?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How end user can capitalize on groovy/velocity fscript in xwiki?

2012-05-18 Thread mohit gupta
Hi all,

i have seen xwiki can do lot of stuff with groovy and velocity.I am new to
groovy so trying to understand how groovy and velocty can benefit xwiki and
ultimately end user. As most of the site says groovy and java are almost
similar. so why xwiki is using groovy when it built upon java. As per my
understanding xwiki is using groovy as scripting language where admin can
write groovy scripts at run time from UI which needs not nto be compiled
but work like in the similar fashion to java. Internally we are passing
this grrovy script as string to server which is compilinh it and executing
it at run time. Right?

Now second part is why velocity in xwiki? Velocity is used in similar
fashin to groovy in xwiki but difference is that any user without
programming rights also can write velocity scripts as it has access to
limited set of apis . Apart from that we can also write front end in
velocity script like if i write
{velocity}Hello:$xContext.getUser(){velocity} it will simply say
Hello:Scott on UI
but inside groovy scriplets everything will be taken as java code. Right?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How end user can capitalize on groovy/velocity fscript in xwiki?

2012-05-18 Thread mohit gupta
Thanks Caleb . Actually i am  more interested in groovy usage in xwiki. If
you have any idea, can you comment on grrovy part of original post so that
i can use it in right sense.

On Fri, May 18, 2012 at 2:34 PM, Caleb James DeLisle 
calebdeli...@lavabit.com wrote:

 Hi,

 I think of Velocity as a templating language.
 You can write:
 {{velocity}}
 Your username is $xcontext.getUser(), welcome to the site.
 {{/velocity}}

 Combining code and text in a natural way.
 You can even include XWiki markup in your velocity script since the output
 from velocity will go to the rendering engine.

 In groovy the same example would look like this:

 {{groovy}}
 println(Your username is  + xcontext.getUser() +  welcome to the
 site.);
 {{/groovy}}

 Also possible but not as easy.
 We usually use velocity for everything unless there is a compelling reason
 for
 groovy (there are some things such as the import keyword which are not
 available in velocity)



 Caleb




 On 05/18/2012 04:31 AM, mohit gupta wrote:
  Hi all,
 
  i have seen xwiki can do lot of stuff with groovy and velocity.I am new
 to
  groovy so trying to understand how groovy and velocty can benefit xwiki
 and
  ultimately end user. As most of the site says groovy and java are almost
  similar. so why xwiki is using groovy when it built upon java. As per my
  understanding xwiki is using groovy as scripting language where admin can
  write groovy scripts at run time from UI which needs not nto be compiled
  but work like in the similar fashion to java. Internally we are passing
  this grrovy script as string to server which is compilinh it and
 executing
  it at run time. Right?
 
  Now second part is why velocity in xwiki? Velocity is used in similar
  fashin to groovy in xwiki but difference is that any user without
  programming rights also can write velocity scripts as it has access to
  limited set of apis . Apart from that we can also write front end in
  velocity script like if i write
  {velocity}Hello:$xContext.getUser(){velocity} it will simply say
  Hello:Scott on UI
  but inside groovy scriplets everything will be taken as java code. Right?
  ___
  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


[xwiki-users] Fwd: How end user can capitalize on groovy/velocity fscript in xwiki?

2012-05-18 Thread mohit gupta
 As i said in original post and as per my understanding xwiki is using
groovy as scripting language where admin can write groovy scripts at run
time from UI which needs not not be compiled but Internally we are passing
this groovy script as string to server which is compiling it and executing
it at run time. In fact thats why it is called scripting language  and
which seems to me the biggest advantage of groovy. Right?

-- Forwarded message --
From: mohit gupta motgu...@gmail.com
Date: Fri, May 18, 2012 at 3:18 PM
Subject: Re: [xwiki-users] How end user can capitalize on groovy/velocity
fscript in xwiki?
To: XWiki Users users@xwiki.org


Thanks Caleb . Actually i am  more interested in groovy usage in xwiki. If
you have any idea, can you comment on grrovy part of original post so that
i can use it in right sense.


On Fri, May 18, 2012 at 2:34 PM, Caleb James DeLisle 
calebdeli...@lavabit.com wrote:

 Hi,

 I think of Velocity as a templating language.
 You can write:
 {{velocity}}
 Your username is $xcontext.getUser(), welcome to the site.
 {{/velocity}}

 Combining code and text in a natural way.
 You can even include XWiki markup in your velocity script since the output
 from velocity will go to the rendering engine.

 In groovy the same example would look like this:

 {{groovy}}
 println(Your username is  + xcontext.getUser() +  welcome to the
 site.);
 {{/groovy}}

 Also possible but not as easy.
 We usually use velocity for everything unless there is a compelling reason
 for
 groovy (there are some things such as the import keyword which are not
 available in velocity)



 Caleb




 On 05/18/2012 04:31 AM, mohit gupta wrote:
  Hi all,
 
  i have seen xwiki can do lot of stuff with groovy and velocity.I am new
 to
  groovy so trying to understand how groovy and velocty can benefit xwiki
 and
  ultimately end user. As most of the site says groovy and java are almost
  similar. so why xwiki is using groovy when it built upon java. As per my
  understanding xwiki is using groovy as scripting language where admin can
  write groovy scripts at run time from UI which needs not nto be compiled
  but work like in the similar fashion to java. Internally we are passing
  this grrovy script as string to server which is compilinh it and
 executing
  it at run time. Right?
 
  Now second part is why velocity in xwiki? Velocity is used in similar
  fashin to groovy in xwiki but difference is that any user without
  programming rights also can write velocity scripts as it has access to
  limited set of apis . Apart from that we can also write front end in
  velocity script like if i write
  {velocity}Hello:$xContext.getUser(){velocity} it will simply say
  Hello:Scott on UI
  but inside groovy scriplets everything will be taken as java code. Right?
  ___
  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


[xwiki-users] Not able to execute some groovy scrip even after given programming rights to admin user?

2012-05-17 Thread mohit gupta
I am trying to execute below groovy script thru one of the UI Page

String xwikiUser = xwiki.getUser(Scott)//line1 executing
String wikiname = xwiki.getXWiki().clearName(Scott, true, true,
xcontext.getContext())//line2
// other code which is also not executing

but line 2 never executes becoz i dont get control in clearName method.
After debugging it i found while
 xwiki.getXWiki() it checks whether user has  programming right  rights
which returns null. But i have explicitly given the admin user program
rights at
 wiki administartion level.

 For more debugging information control goes to  method i.e  public boolean
hasProgrammingRights(XWikiContext context) of xwikiAuthServiceImpl.java
 and line 3 returns false


 // Once dropPermissions has been called, the document in the
// context cannot have programming permission.
if (context.hasDroppedPermissions()) {
return false;//;line 3
}

Not getting how to give proper programming rights to admin user here?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Not able to execute some groovy scrip even after given programming rights to admin user?

2012-05-17 Thread mohit gupta
Hi Sergiu,

i am writing it as part of groovy code i.e inside the groovy scriplets.

You said You should write a script service in Java that does all the
restricted work, and then you can just call it from Velocity without
programming rights.


Do i need to write any service script in java to execute the groovy code.
If yes can point me to some example.For your information this is my code
inside page on wiki

{{include document=FAQ1.FAQ1ClassSheet/}}
{{groovy}}
import org.xwiki.observation.*
import org.xwiki.observation.event.*
import com.xpn.xwiki.web.*
import com.xpn.xwiki.*
import java.util.HashMap
import java.util.List
import java.util.Map

 class OrgDataEventListener implements EventListener
{
def xwiki
def context
OrgDataEventListener(xwiki, context)
{
this.xwiki = xwiki
this.context = context
}
String getName()
{
// The unique name of this event listener
return orgDataListener
}
ListEvent getEvents()
{
// The list of events this listener listens to
return Arrays.asList(new DocumentUpdateEvent(), new
DocumentSaveEvent())
}
 // Called by the Observation Manager when an event matches the list of
events returned
 // by getEvents()
 void onEvent(Event event, Object source, Object data)
 {
String orgAdminUser=XWiki.Question1AdminUser
String displayAdminUser= Question1AdminDisplayUser
   String xwikiUser1 = xwiki.getUser(orgAdminUser)
   String wikiname = xwiki.getXWiki().clearName(orgAdminUser, true,
true, xcontext.getContext())
 MapString, String map = new HashMapString, String()
   map.put(active, 1)
   map.put(first_name, displayAdminUser)
xwiki.getXWiki().createUser(wikiname , map,  edit,
xcontext.getContext()
 }
}
// Register against the Observation Manager
def observation = Utils.getComponent(ObservationManager.class)
observation.removeListener(orgDataListener)
def listener = new OrgDataEventListener(xwiki, xcontext)
observation.addListener(listener)
{{/groovy}}



On Thu, May 17, 2012 at 8:24 PM, Sergiu Dumitriu ser...@xwiki.com wrote:

 On 05/17/2012 05:13 AM, mohit gupta wrote:

 I am trying to execute below groovy script thru one of the UI Page

 String xwikiUser = xwiki.getUser(Scott)//line1 executing
 String wikiname = xwiki.getXWiki().clearName(**Scott, true, true,
 xcontext.getContext())//line2
 // other code which is also not executing

 but line 2 never executes becoz i dont get control in clearName method.
 After debugging it i found while
  xwiki.getXWiki() it checks whether user has  programming right  rights
 which returns null. But i have explicitly given the admin user program
 rights at
  wiki administartion level.

  For more debugging information control goes to  method i.e  public
 boolean
 hasProgrammingRights(**XWikiContext context) of xwikiAuthServiceImpl.java
  and line 3 returns false


  // Once dropPermissions has been called, the document in the
 // context cannot have programming permission.
 if (context.**hasDroppedPermissions()) {


 If the code enters here, it means that you're trying to execute code
 outside the page content, which isn't allowed. You should write a script
 service in Java that does all the restricted work, and then you can just
 call it from Velocity without programming rights.


  return false;//;line 3
 }

 Not getting how to give proper programming rights to admin user here?



 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/

 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users

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


[xwiki-users] Exact Source code location for xwiki 3.5 version and issues?

2012-05-16 Thread mohit gupta
i have deployed the xwiki 3.5. I am trying to debug the
com.xpn.xwiki.xwiki.java file(inside xwiki-platform-legacy-oldcore-3.5.jar
file)  but as soon as debugger comes to break point, it skips some line.
Basically seems like i dont not have correct 3.5 source code for the
classfile deployed .Then i got the 3.5 version of source code from
https://github.com/xwiki/xwiki-platform/tree/stable-3.5.x.
But again there are some discrepencies. Like if i open the decompiled
com.xpn.xwiki.xwiki.java from wikiDeployedDirectory/lib, i dont see any
file with name
AbstractXWikiMigrationManager but in downloaded 3.5 version of xwiki.java i
can see ocurrences of AbstractXWikiMigrationManager file wich is not any
where in my deployed
3.5 wiki.Looks like i am not refeering to correct 3.5 version of
com.xpn.xwiki.xwiki.java. Could you point me the right link where i can get
the correct file?Thanks in advance.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Java api/method th get the text content of xwiki page?

2012-05-14 Thread mohit gupta
Hi All,

i created a space i.e MySpace1. On WebHome, i put the some content i.e
This is my latest content. Now in my java class, i want to get the content
of MySpace1.WebHome page . Here  is the code snippet i tried to get the
content of page but i get the document1 as null though the page exists.

   com.xpn.xwiki.api.XWiki xwikiApi= new
com.xpn.xwiki.api.XWiki(context.getWiki(),context);
 Document document1=null;
 try {
  document1 = xwikiApi.getDocument(MySpace1.WebHome);//
getting document1  as null
 } catch (XWikiException e) {
log.info(did not find OrgDataCreation.WebHome page);

 }
 String contentStr=;
 if(document1!=null)
 {
  contentStr=document1.getContent();

 }

 I am not sure what i am missing here?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Configuration to restrict all activities including search on specific space?

2012-05-13 Thread mohit gupta
Hi All,

I dont the *Invitation* space visible for any user . Basically i want no
user should be able to do any operation*( including should not be able
search any page inside invitation space) *on invitation space .

*What i tried for this*
**
I tried blacklisting the invitation space  with following code snippet in
xwikivars.vm

*#if ($hasAdmin || $isAdvancedUser)
  #set ($blacklistedSpaces = ['Invitation'])
#else
  #set ($blacklistedSpaces = ['Import', 'Panels', 'Scheduler', 'Stats',
'XAppClasses', 'XAppSheets', 'XAppTemplates', 'XWiki', 'WatchCode',
'WatchSheets', 'XApp', 'WatchAdmin', 'Watch', 'ColorThemes',
'AnnotationCode','Invitation'])
#end*

what it does only is Invitation space is not visible on dasshboard.  *But
still i can do search for all pages inside invitation space  and navigate
to invitation space.*
What i also tried is denying all rights on invitation space for all users.
But still users can searc the pages inside invitation space.

*Kindly let me know the configuration to restrict any activity(including
search) on Invitation space.*

Last option i can think of is delete the invitation space but i don't want
to go this way keeping in mind it may be required in future.


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


[xwiki-users] API/Configuration to refer the newly added property in xwiki.cfg without server restart?

2012-05-08 Thread mohit gupta
Whenever i add a new property in xwiki.cfg file, to refer that property in
my java code, i need tomcat server restart otherwise that property is not
visible.
Is there a api/configuration can refer the newly added property  in
xwiki.cfg file without server restart? Here is how i get the newly added
property from xwiki.cfg file

String
adminData=xwikiContext.getWiki().getConfig().getProperty(adminData);

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


[xwiki-users] check in the fixed version of tab extension

2012-05-01 Thread mohit gupta
Hi All,
i imported the tab extension from
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tabs+Macro. But it
does not work fine. Switch tab does not work and content of all tab shows
under first tab.  I have fixed the issue as it required the small
modification. How should i check in the fixed version or is there any point
of contact whom i can intimate about the change.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuration to use log4j instead of logback for xwiki 3.1 and beyond?

2012-04-29 Thread mohit gupta
Thanks Vincet and Sergiu. But After doing suggested steps and i hit the url
https://localhost/mywiki/. I get http status 404 error(requested resource
not found). What i  did is this

inside WEB-INF\lib
1)placed log4j-1.2.8 and slf4j-log4j12-1.6.1
2)removed log4j-over-slf4j-1.6.2,logback-classic-0.9.30 and
logback-core-0.9.30

inside WEB-INF\classes
placed  log4j.properties

On startup, inside the tomcat logs

28-Apr-2012 18:50:05.468 SEVERE
org.apache.catalina.core.StandardContext.start Error listenerStart
28-Apr-2012 18:50:05.468 SEVERE
org.apache.catalina.core.StandardContext.start Context [/mywiki] startup
failed due to previous errors

Looks like there is some other jar too which is conflicting. As soons as
reverted back above steps , application runs fine.

On Sun, Apr 29, 2012 at 12:01 PM, Vincent Massol vinc...@massol.net wrote:


 On Apr 29, 2012, at 5:24 AM, Sergiu Dumitriu wrote:

  On 04/28/2012 04:40 PM, Vincent Massol wrote:
 
  On Apr 28, 2012, at 8:48 PM, Sergiu Dumitriu wrote:
 
  On 04/28/2012 08:02 AM, Vincent Massol wrote:
  Hi Mohit,
 
  On Apr 28, 2012, at 1:34 PM, mohit gupta wrote:
 
  At http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging, it
 is
  stated that By default XWiki is configured so that SLF4J uses
 Logback.
  XWiki's
  Logback configuration is located in the WEB-INF/classes/logback.xml
 file
  for For XWiki 3.1 and beyond. But if user want to use log4j instaed
 of
  logback,
  where it needs to be configured.
 
  I did not find any property related to that in xwiki.cfg or
  xwiki.properties.What i tried deleting the logback.xml and putting my
  log4j.properties instaed. But xwiki
  does not pick log4j.properties. As per my understanding, xwiki is
 using
  SLF4J, there should be hook somewhere where we should be able to
 change to
  log4j insteadd
  of logback.
 
  I've updated
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging
 
  Some feedback on the documentation you just added:
 
  I wonder if log4j-over-slf4j should be removed or not, since it might
 conflict with the real log4j library (they define the same classes).
 
  It must be there or the bridging won't work. Our build automatically
 verifies that no 3rd party dependency we drag includes log4J. We handle
 this by usingexclusions  when a jar includes log4J transitively.
 
  What bridging? From log4j to slf4j? But when slf4j will try to write
 back to log4, won't it cycle back through this bridge? As I said, this jar
 defines the same classes as the real log4j jar. One can't have two classes
 with the same name in the classpath.

 You're right. I thought you wanted to do this for our build. I didn't
 understand you meant fixing the doc…

 Fixed now.

 Thanks
 -Vincent

  Also, should the documentation mention that the log4j jar must be
 included as well? slf4j-log4j12 declares it as a dependency, so it's not
 included in that jar.
 
  Indeed, fixed, thanks.
 
  Thanks
  -Vincent
 
  You could also have read about how SLF4J works at
 http://www.slf4j.org/ ;)
 
  --
  Sergiu Dumitriu
  http://purl.org/net/sergiu/
  ___
  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


[xwiki-users] Customizing xwiki to blog application/any website with these common features ?

2012-04-29 Thread mohit gupta
 Hi All,
I had a look on projects powered with xwiki. Really i am completely
amazed!!!.  Just to start with,I am planning to use the xwiki site to use
it as my blog page.i have created the DivBlog space and gave Unregistered
Users the view rights on DivBlog.Everything looks great here. But i want to
hide icons like WIKI,Space and Page name (all on top left corner of global
menu bar), LOGIN(on top right corner) for unregistered users.
Similary  iwant to hide the Export and More Action options for unregistered
users(on menu bar of page). On top of it, i want to introduce 3 tabs(or
links) on top of page (exactly
in the palce of global menu bar showing space name and page name). Can i do
such configuration in xwiki?How should i go about it.?
Just a suggestion if there is document which can state these kind of
customization , i am
sure it will help the masses.

Like Tabs mentioned at
http://www.xwiki.org/xwiki/bin/view/References/ALPHABib
Like Home,Repository,Blog,WikiLinks are mentioned at
https://ec.europa.eu/employment_social/anticipedia/xwiki/bin/view/Main/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Configuration to use log4j instead of logback for xwiki 3.1 and beyond?

2012-04-29 Thread mohit gupta
Thanks Vincet, i will debug it :).

On Sun, Apr 29, 2012 at 2:45 PM, Vincent Massol vinc...@massol.net wrote:


 On Apr 29, 2012, at 10:50 AM, mohit gupta wrote:

  Thanks Vincet and Sergiu. But After doing suggested steps and i hit the
 url
  https://localhost/mywiki/. I get http status 404 error(requested
 resource
  not found). What i  did is this
 
  inside WEB-INF\lib
  1)placed log4j-1.2.8 and slf4j-log4j12-1.6.1
  2)removed log4j-over-slf4j-1.6.2,logback-classic-0.9.30 and
  logback-core-0.9.30
 
  inside WEB-INF\classes
  placed  log4j.properties
 
  On startup, inside the tomcat logs
 
  28-Apr-2012 18:50:05.468 SEVERE
  org.apache.catalina.core.StandardContext.start Error listenerStart
  28-Apr-2012 18:50:05.468 SEVERE
  org.apache.catalina.core.StandardContext.start Context [/mywiki] startup
  failed due to previous errors
 
  Looks like there is some other jar too which is conflicting. As soons as
  reverted back above steps , application runs fine.

 Well you need to find out why it's failing…. :)

 See
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat#HSEVERE:ErrorlistenerStart

 Thanks
 -Vincent

  On Sun, Apr 29, 2012 at 12:01 PM, Vincent Massol vinc...@massol.net
 wrote:
 
 
  On Apr 29, 2012, at 5:24 AM, Sergiu Dumitriu wrote:
 
  On 04/28/2012 04:40 PM, Vincent Massol wrote:
 
  On Apr 28, 2012, at 8:48 PM, Sergiu Dumitriu wrote:
 
  On 04/28/2012 08:02 AM, Vincent Massol wrote:
  Hi Mohit,
 
  On Apr 28, 2012, at 1:34 PM, mohit gupta wrote:
 
  At http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging, it
  is
  stated that By default XWiki is configured so that SLF4J uses
  Logback.
  XWiki's
  Logback configuration is located in the WEB-INF/classes/logback.xml
  file
  for For XWiki 3.1 and beyond. But if user want to use log4j instaed
  of
  logback,
  where it needs to be configured.
 
  I did not find any property related to that in xwiki.cfg or
  xwiki.properties.What i tried deleting the logback.xml and putting
 my
  log4j.properties instaed. But xwiki
  does not pick log4j.properties. As per my understanding, xwiki is
  using
  SLF4J, there should be hook somewhere where we should be able to
  change to
  log4j insteadd
  of logback.
 
  I've updated
  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging
 
  Some feedback on the documentation you just added:
 
  I wonder if log4j-over-slf4j should be removed or not, since it might
  conflict with the real log4j library (they define the same classes).
 
  It must be there or the bridging won't work. Our build automatically
  verifies that no 3rd party dependency we drag includes log4J. We handle
  this by usingexclusions  when a jar includes log4J transitively.
 
  What bridging? From log4j to slf4j? But when slf4j will try to write
  back to log4, won't it cycle back through this bridge? As I said, this
 jar
  defines the same classes as the real log4j jar. One can't have two
 classes
  with the same name in the classpath.
 
  You're right. I thought you wanted to do this for our build. I didn't
  understand you meant fixing the doc…
 
  Fixed now.
 
  Thanks
  -Vincent
 
  Also, should the documentation mention that the log4j jar must be
  included as well? slf4j-log4j12 declares it as a dependency, so it's not
  included in that jar.
 
  Indeed, fixed, thanks.
 
  Thanks
  -Vincent
 
  You could also have read about how SLF4J works at
  http://www.slf4j.org/ ;)
 
  --
  Sergiu Dumitriu
  http://purl.org/net/sergiu/
  ___
  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

 ___
 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] Configuration to use log4j instead of logback for xwiki 3.1 and beyond?

2012-04-28 Thread mohit gupta
At http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging, it is
stated that By default XWiki is configured so that SLF4J uses Logback.
XWiki's
Logback configuration is located in the WEB-INF/classes/logback.xml file
for For XWiki 3.1 and beyond. But if user want to use log4j instaed of
logback,
where it needs to be configured.

I did not find any property related to that in xwiki.cfg or
xwiki.properties.What i tried deleting the logback.xml and putting my
log4j.properties instaed. But xwiki
does not pick log4j.properties. As per my understanding, xwiki is using
SLF4J, there should be hook somewhere where we should be able to change to
log4j insteadd
of logback.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Inserting the image between macro

2012-04-27 Thread mohit gupta
Hi ,

How can insert the image between the macro. For example i want to display
the image on the page just after login.e
https://loaclhost/myWiki/bin/view/Main/WebHome.
The location i want to display is along the side of welcome message. But as
i click WYSIWYG. i see the velocity macro, and i click
image--attachedImage but it does not insert the image anywhere. Is it
possible to insert the image at any intended position because content is
generated at run time. Looking for from both editors i.e WYSIWYG and wiki
editor

I know the way to insert the image on newly created page, But what about
to insert the existing page using macros.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] BulletinBoard-Specific to each space

2012-04-26 Thread mohit gupta
Thanks Guillaume.

On Thu, Apr 26, 2012 at 2:07 PM, Guillaume Lerouge guilla...@xwiki.comwrote:

 Hi Mohit,

 go to the .../xwiki/bin/view/BBCode/Admin page. From there, you'll be able
 to create new bulletin boards. Each bulletin board will be created as a
 space of its own.

 Guillaume

 On Wed, Apr 25, 2012 at 19:21, mohit gupta motgu...@gmail.com wrote:

  Hi All,
 
  This mail is regarding Bulletin Board application at
 
 
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Bulletin+Board+Application
  .
   I successfully  imported the application and worked great. But i want to
  configure it not at xwiki space level but under spaces i created manually
  like MySpace1,MySpace2 etc because i want to create the bulletrin board
 for
  specific to each space.  But looks like nested spaces are not supported
 as
  of now as per http://jira.xwiki.org/browse/XWIKI-354.
 
  So how i can create multiple bulletin boards specific to each space?
 
  *What i tried*
 
  I thought of importing the multiple bulletin board XAR  file multiple
 times
  and giving each bulletin board different name. Then i can give rights on
 a
  specific bulletin board application to group/users created for my
  space(like MySpace1). But itimporting the multiple bulletin board XAR
  does
  not work as it always import on top of existing one and at the end there
 is
  only one bulletin board application. Thanks in advance.
  ___
  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] org.infinispan.jmx.JmxDomainConflictException: Domain already registered org.infinispan Exception?

2012-04-25 Thread mohit gupta
Thanks Thomas.

On Tue, Apr 24, 2012 at 6:21 PM, Thomas Mortagne
thomas.morta...@xwiki.comwrote:

 At init Infinispan register its cache manager to JMX server and does
 not really like much when something is already registered with the
 same domain name (IMO they should probably just print a warning).

 In you case I think the best is to have a different JMX domain for
 each instance of XWiki. You can configure it in
 WEB-INF/cache/infinispan/config.xml, search for JMX.

 On Tue, Apr 24, 2012 at 1:12 PM, mohit gupta motgu...@gmail.com wrote:
  Hi All,
 
  i have my application deployed as myApp1 on tomcat 6 service. Due to some
  requirement, i copied myApp1 and pasted under webapp as myApp2.Now i
  restarted tomcat
  and hit my url for myApp1. Worked fine . But on hitting the url for app2
 ,
  i get org.infinispan.jmx.JmxDomainConflictException: Domain already
  registered org.infinispan
  .Below is the root cause section in exception stack trace
 
 
 
   root cause
 
 org.infinispan.jmx.JmxDomainConflictException: Domain already
  registered org.infinispan
  org.infinispan.jmx.JmxUtil.buildJmxDomain(JmxUtil.java:73)
 
 org.infinispan.jmx.CacheManagerJmxRegistration.updateDomain(CacheManagerJmxRegistration.java:92)
 
 org.infinispan.jmx.CacheManagerJmxRegistration.buildRegistrar(CacheManagerJmxRegistration.java:86)
 
 org.infinispan.jmx.AbstractJmxRegistration.registerMBeans(AbstractJmxRegistration.java:46)
 
 org.infinispan.jmx.CacheManagerJmxRegistration.start(CacheManagerJmxRegistration.java:62)
 
 org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:637)
 
 org.infinispan.manager.DefaultCacheManager.init(DefaultCacheManager.java:319)
 
 org.infinispan.manager.DefaultCacheManager.init(DefaultCacheManager.java:283)
 
 org.xwiki.cache.infinispan.internal.InfinispanCacheFactory.initialize(InfinispanCacheFactory.java:134)
 
 org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
 
 org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:295)
 
 org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:358)
 
 org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:324)
 
 org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:147)
 
 org.xwiki.component.internal.DefaultComponentManager.lookup(DefaultComponentManager.java:72)
 
 org.xwiki.cache.internal.DefaultCacheManager.getCacheFactory(DefaultCacheManager.java:79)
 
 org.xwiki.cache.internal.DefaultCacheManager.getCacheFactory(DefaultCacheManager.java:61)
  com.xpn.xwiki.XWiki.getCacheFactory(XWiki.java:5887)
 
  For the information,I am running the tomcat as service.
  ___
  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


[xwiki-users] BulletinBoard-Specific to each space

2012-04-25 Thread mohit gupta
Hi All,

This mail is regarding Bulletin Board application at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Bulletin+Board+Application.
 I successfully  imported the application and worked great. But i want to
configure it not at xwiki space level but under spaces i created manually
like MySpace1,MySpace2 etc because i want to create the bulletrin board for
specific to each space.  But looks like nested spaces are not supported as
of now as per http://jira.xwiki.org/browse/XWIKI-354.

So how i can create multiple bulletin boards specific to each space?

*What i tried*

I thought of importing the multiple bulletin board XAR  file multiple times
and giving each bulletin board different name. Then i can give rights on a
specific bulletin board application to group/users created for my
space(like MySpace1). But itimporting the multiple bulletin board XAR  does
not work as it always import on top of existing one and at the end there is
only one bulletin board application. Thanks in advance.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] org.infinispan.jmx.JmxDomainConflictException: Domain already registered org.infinispan Exception?

2012-04-24 Thread mohit gupta
Hi All,

i have my application deployed as myApp1 on tomcat 6 service. Due to some
requirement, i copied myApp1 and pasted under webapp as myApp2.Now i
restarted tomcat
and hit my url for myApp1. Worked fine . But on hitting the url for app2 ,
i get org.infinispan.jmx.JmxDomainConflictException: Domain already
registered org.infinispan
.Below is the root cause section in exception stack trace



  root cause

org.infinispan.jmx.JmxDomainConflictException: Domain already
registered org.infinispan
org.infinispan.jmx.JmxUtil.buildJmxDomain(JmxUtil.java:73)
org.infinispan.jmx.CacheManagerJmxRegistration.updateDomain(CacheManagerJmxRegistration.java:92)
org.infinispan.jmx.CacheManagerJmxRegistration.buildRegistrar(CacheManagerJmxRegistration.java:86)
org.infinispan.jmx.AbstractJmxRegistration.registerMBeans(AbstractJmxRegistration.java:46)
org.infinispan.jmx.CacheManagerJmxRegistration.start(CacheManagerJmxRegistration.java:62)
org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:637)
org.infinispan.manager.DefaultCacheManager.init(DefaultCacheManager.java:319)
org.infinispan.manager.DefaultCacheManager.init(DefaultCacheManager.java:283)
org.xwiki.cache.infinispan.internal.InfinispanCacheFactory.initialize(InfinispanCacheFactory.java:134)
org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:295)
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:358)
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:324)
org.xwiki.component.embed.EmbeddableComponentManager.lookup(EmbeddableComponentManager.java:147)
org.xwiki.component.internal.DefaultComponentManager.lookup(DefaultComponentManager.java:72)
org.xwiki.cache.internal.DefaultCacheManager.getCacheFactory(DefaultCacheManager.java:79)
org.xwiki.cache.internal.DefaultCacheManager.getCacheFactory(DefaultCacheManager.java:61)
com.xpn.xwiki.XWiki.getCacheFactory(XWiki.java:5887)

For the information,I am running the tomcat as service.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Fwd: Redirecting logs to a file instead of console on tomcat?

2012-04-21 Thread mohit gupta
Thanks Sergiu.

On Thu, Apr 19, 2012 at 11:27 PM, Sergiu Dumitriu ser...@xwiki.com wrote:

 On 04/19/2012 01:51 PM, mohit gupta wrote:

 Now as per 
 http://logback.qos.ch/manual/**joran.htmlhttp://logback.qos.ch/manual/joran.html,
  i tried to use file
 Appender to log the message to file* but no help*. Here is added code

 snippet in logback.xml

  appender name=FILE class=ch.qos.logback.core.**FileAppender
 filemyApp.log/file


 You should use an absolute file path, since this filename could end up
 anywhere, depending on how Tomcat was started and what it considers the
 current directory. Make sure the location you provide is writable by the
 owner of the tomcat process.

  layout class=ch.qos.logback.core.**ConsoleAppendert


 ^ typo here, ConsoleAppender[t]


Pattern%date %level [%thread] %logger{10} [%file:%line]
 %msg%n/Pattern
 /layout
   /appender

  root level=debug
 appender-ref ref=FILE /
  /root

 -- Forwarded message --
 From: mohit guptamotgu...@gmail.com
 Date: Thu, Apr 19, 2012 at 10:06 PM
 Subject: Redirecting logs to a file instead of console on tomcat?
 To: XWiki Usersusers@xwiki.org


 I have gone thru
 http://platform.xwiki.org/**xwiki/bin/view/AdminGuide/**Logginghttp://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging.
 As per
 logback.xml(inside in MyApp/WEB_INF/classes), looks like it relies on the
 fact that container will redirect all the console to logfile
 automaticcaly.
 But it is not happening. I am using tomcat 6.  i want to put all the
 possible logs i.e  log.info.log.warn,log.error,**log.debug,log.fatal
 inside
 log file

 For logging i am using below code snippet
 private static final Log log =
 org.apache.commons.logging.**LogFactory.getLog(**
 AuthServiceImpl.class);//
 declared as insiance variable under AuthServiceImpl.class


 You shouldn't use commons-logging, but slf4j:

 private static final Logger LOGGER = LoggerFactory.getLogger(**
 AuthServiceImpl.class);

 I don't understand what you mean by declared as instance variable. If
 it's static final, then it's not an instance variable, but a static
 constant member.


  then in my public method i am doing the logging as

 log.error(Testing AuthServiceImpl  Reply = );

 But its printing the  logs on tomcat console. Guys really i have no idea
 how to print the  to file instead of console.Inside logback.xml(inside in
 MyApp/WEB_INF/classes)
 i can see below  setting. I have really no idea what is happening?

 Thanks in advance.



 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users

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


Re: [xwiki-users] Developing Discussion Forum using xwiki?

2012-04-19 Thread mohit gupta
Thanks Anca

On Wed, Apr 18, 2012 at 2:39 PM, Anca Luca lu...@xwiki.com wrote:

 On 04/18/2012 08:13 AM, mohit gupta wrote:

 Seems great. *But looks one severity1 exist here. whenever i post any
 message i get below warning*


 Warning

 This request contains an invalid authentication information.

 This might happen in the following situations:

- You left the editor open in another window/tab and logged off and on
again
- Your authentication token exipired after a long period of inactivity
- Somebody tried to perform a CSRF attack


 If you are sure that none of these situations apply in your case, you
 might
 have found a bug. We are sorry about that, please report it on XWiki
 JIRAhttp://jira.xwiki.org/

 Do you want to resend the request? If unsure, say *No*.


 I would say this is because the application is a bit older and you
 installed it on new wiki instance, which requires csrf tokens in forms.
 You'll need to modify the application yourself to add the csrf tokens (see
 http://jira.xwiki.org/browse/**XWIKI-5463http://jira.xwiki.org/browse/XWIKI-5463about
  how this was fixed for the default xwiki applications -- check the
 depends on issues and the commits that were done for these issues in the
 subversion commits tab).

 Also you can disable csrf protection for your wiki in xwiki.properties,
 which should fix your issue.

 Have fun,
 Anca


 *As for me  i am not in any of the situation mentioned above?*



 On Tue, Apr 17, 2012 at 4:37 PM, Vincent Massolvinc...@massol.net
  wrote:

  Hi,

 On Apr 17, 2012, at 12:47 PM, mohit gupta wrote:

  Hi Folks,

 Looking at extensiility of xwiki, i am looking to make a typical forum
 application on top of xwiki. The forum will be basically a discussion

 forum

 where each user will be given user id and password. There will be
 pre-defined topics like Realestate,Sale-Purchase,**miscellaneous,etc .
 Each
 user can start a thread on any forum and continue the discussion. It

 would

 be a great help , if some can point me to reference  project where

 similar

 stuff has been done or
 guide me how to start with? Thanks in advance.

 See
 http://extensions.xwiki.org/**xwiki/bin/view/Extension/**
 Bulletin+Board+Applicationhttp://extensions.xwiki.org/xwiki/bin/view/Extension/Bulletin+Board+Application

 Thanks
 -Vincent

 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users

  __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users


 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users

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


[xwiki-users] Redirecting logs to a file instead of console on tomcat?

2012-04-19 Thread mohit gupta
I have gone thru
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging. As per
logback.xml(inside in MyApp/WEB_INF/classes), looks like it relies on the
fact that container will redirect all the console to logfile automaticcaly.
But it is not happening. I am using tomcat 6.  i want to put all the
possible logs i.e  log.info.log.warn,log.error,log.debug,log.fatal inside
log file

For logging i am using below code snippet
private static final Log log =
org.apache.commons.logging.LogFactory.getLog(AuthServiceImpl.class);//
declared as insiance variable under AuthServiceImpl.class

then in my public method i am doing the logging as

log.error(Testing AuthServiceImpl  Reply = );

But its printing the  logs on tomcat console. Guys really i have no idea
how to print the  to file instead of console.Inside logback.xml(inside in
MyApp/WEB_INF/classes)
i can see below  setting. I have really no idea what is happening?

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


[xwiki-users] Fwd: Redirecting logs to a file instead of console on tomcat?

2012-04-19 Thread mohit gupta
Now as per http://logback.qos.ch/manual/joran.html , i tried to use file
Appender to log the message to file* but no help*. Here is added code
snippet in logback.xml

 appender name=FILE class=ch.qos.logback.core.FileAppender
filemyApp.log/file

layout class=ch.qos.logback.core.ConsoleAppendert
  Pattern%date %level [%thread] %logger{10} [%file:%line]
%msg%n/Pattern
/layout
  /appender

 root level=debug
appender-ref ref=FILE /
 /root

-- Forwarded message --
From: mohit gupta motgu...@gmail.com
Date: Thu, Apr 19, 2012 at 10:06 PM
Subject: Redirecting logs to a file instead of console on tomcat?
To: XWiki Users users@xwiki.org


I have gone thru
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging. As per
logback.xml(inside in MyApp/WEB_INF/classes), looks like it relies on the
fact that container will redirect all the console to logfile automaticcaly.
But it is not happening. I am using tomcat 6.  i want to put all the
possible logs i.e  log.info.log.warn,log.error,log.debug,log.fatal inside
log file

For logging i am using below code snippet
private static final Log log =
org.apache.commons.logging.LogFactory.getLog(AuthServiceImpl.class);//
declared as insiance variable under AuthServiceImpl.class

then in my public method i am doing the logging as

log.error(Testing AuthServiceImpl  Reply = );

But its printing the  logs on tomcat console. Guys really i have no idea
how to print the  to file instead of console.Inside logback.xml(inside in
MyApp/WEB_INF/classes)
i can see below  setting. I have really no idea what is happening?

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


Re: [xwiki-users] Developing Discussion Forum using xwiki?

2012-04-18 Thread mohit gupta
Seems great. *But looks one severity1 exist here. whenever i post any
message i get below warning*

Warning

This request contains an invalid authentication information.

This might happen in the following situations:

   - You left the editor open in another window/tab and logged off and on
   again
   - Your authentication token exipired after a long period of inactivity
   - Somebody tried to perform a CSRF attack

If you are sure that none of these situations apply in your case, you might
have found a bug. We are sorry about that, please report it on XWiki
JIRAhttp://jira.xwiki.org/

Do you want to resend the request? If unsure, say *No*.

*As for me  i am not in any of the situation mentioned above?*


On Tue, Apr 17, 2012 at 4:37 PM, Vincent Massol vinc...@massol.net wrote:

 Hi,

 On Apr 17, 2012, at 12:47 PM, mohit gupta wrote:

  Hi Folks,
 
  Looking at extensiility of xwiki, i am looking to make a typical forum
  application on top of xwiki. The forum will be basically a discussion
 forum
  where each user will be given user id and password. There will be
  pre-defined topics like Realestate,Sale-Purchase,miscellaneous,etc . Each
  user can start a thread on any forum and continue the discussion. It
 would
  be a great help , if some can point me to reference  project where
 similar
  stuff has been done or
  guide me how to start with? Thanks in advance.

 See
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Bulletin+Board+Application

 Thanks
 -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] On Space Created Event

2012-04-18 Thread mohit gupta
Just to give you heads up you can mention  below property in xwiki.cfg file

xwiki.authentication.authclass=com.MyAuthClass.

Now in MyAuthClass  you can check
XWikiContext.getAction().equals(create)// it means user is creating some
doc. I am not sure if we have some variable in  XWikiContext thru which you
can distinguish if it is a space or not(may be some yo can check the parent
of doc to be created). If Not, you can follow the convention that user
always create the space document suffixed with MySpace and one more check
in this custom class

(XWikiContext.getURL().toString().contains(MySpace/)).

Hope it helps.

On Tue, Apr 17, 2012 at 7:01 PM, _diego diego.a.r...@gmail.com wrote:

 Hi,

 How can I register a java event listener against a space created event? I
 would need this to add some stuff to another database everytime a new space
 was created.

 Thanks

 --
 View this message in context:
 http://xwiki.475771.n2.nabble.com/On-Space-Created-Event-tp7473505p7473505.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


[xwiki-users] Developing Discussion Forum using xwiki?

2012-04-17 Thread mohit gupta
Hi Folks,

Looking at extensiility of xwiki, i am looking to make a typical forum
application on top of xwiki. The forum will be basically a discussion forum
where each user will be given user id and password. There will be
pre-defined topics like Realestate,Sale-Purchase,miscellaneous,etc . Each
user can start a thread on any forum and continue the discussion. It would
be a great help , if some can point me to reference  project where similar
stuff has been done or
guide me how to start with? Thanks in advance.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Looking for these xwiki java API'S or java class containing these functionality?

2012-04-08 Thread mohit gupta
Hi Recardo,
After implementation i  successfully created the space *but could not
assgin the assign the rights successfully(point 2 in below mail trail)*.
Here is the code snippet that created the space and assign the rights to
user (MySpaceUser) on this created space. I am trying to give admin rights
to user MySpaceUser on space MySpace but when  i go  space preferences of
MySpace, i do not see admin right checkbox as checked. Not sure am i
missing something here?

*com.xpn.xwiki.api.XWiki xwikiApi= new
com.xpn.xwiki.api.XWiki(context.getWiki(),context);
Document doc=xwikiApi.getDocument(MySpace.WebHome);
doc.setContent(Created the space programmatically);
doc.save();
com.xpn.xwiki.api.Object
rightsObject=doc.getObject(XWiki.XWikiGlobalRights, true);
rightsObject.set(users, XWiki.MySpaceUser);
rightsObject.set(levels, admin);
rightsObject.set(allow, 1);
doc.save();
*
On Sat, Apr 7, 2012 at 3:29 AM, ricardo.julio.rodriguez.fernan...@sergas.es
 wrote:

 Hi!

  
  From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
 mohit gupta [motgu...@gmail.com]
  Sent: 06 April 2012 19:42
  To: XWiki Users
  Subject: [xwiki-users] Looking for these xwiki java API'S or java class
 containing these functionality?
 

 The first thing I would like to understand someday is what does API apply
 to! I mean, has XWiki a single API? Or has it a lot of them? Perhaps it is
 only a matter of taste, but I do really like to know how to correctly use
 this concept.

 Can Method and API be indistinctly used?

  Hi Folks,
 
  I am looking for three xwiki java api's that do the following
 functionality
  1) I give the space name to api and it creates the space with default
 home
  page .

 Perhaps this could be useful:

 {{velocity}}
 #set ($mydoc = $xwiki.getDocument(Dummy.WebHome))
 $mydoc.setContent(content)
 $mydoc.save()
 {{/velocity}}

  2)I give userName,SpaceName and rightsName(like view,edit,delete,admin)
 to
  api and it gives these rights on given space name for the given username

 Does this page through any light to your doubt?

 http://extensions.xwiki.org/xwiki/bin/view/Extension/Setting+Rights

  3)I give spaceName to api and it gives me whether the given space exists
 or
  not?

 I don't know how XWiki checks if a space exists when entered in an URL,
 but perhaps this could help...

 $xwiki.getSpaceDocsName('YourSpaceHere).size()

 If size  0 does mean that YourSpace exists!

  I was  looking for three apis in classes ---com.xpn.xwiki.xwiki.java and
  com.xpn.xwiki.api.xwiki.java but i could not locate these. But i am sure
  these api's must
  be existing (as user is able to do these stuff from user interface). I
 will
  be grateful if i can be directed to these apis?
 
  Thanks in advance.

 HTH!

 Ricardo

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

 Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
 adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
 destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe,
 por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
 autorizada.

 Nota: La informaci?n contenida en este mensaje y sus posibles documentos
 adjuntos es privada y confidencial y est? dirigida ?nicamente a su
 destinatario/a. Si usted no es el/la destinatario/a original de este
 mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
 est? autorizada.

 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 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] Fwd: Looking for these xwiki java API'S or java class containing these functionality?

2012-04-08 Thread mohit gupta
I tried using thbelow lines also

com.xpn.xwiki.api.Object rightsObject=doc.getObject(XWiki.XWikiRights,
true); instead of
com.xpn.xwiki.api.Object
rightsObject=doc.getObject(XWiki.XWikiGlobalRights, true);[Though i want
to use XWiki.XWikiGlobalRights as i want to set the rights at space level
instead of page level]

Also i tried
rightsObject.set(levels, view,comment,edit,delete,admin); instead  of
rightsObject.set(levels, admin);


But still i do not see any rights assigned to mu user.



-- Forwarded message --
From: mohit gupta motgu...@gmail.com
Date: Sun, Apr 8, 2012 at 5:41 PM
Subject: Re: [xwiki-users] Looking for these xwiki java API'S or java class
containing these functionality?
To: XWiki Users users@xwiki.org


Hi Recardo,
After implementation i  successfully created the space *but could not
assgin the assign the rights successfully(point 2 in below mail trail)*.
Here is the code snippet that created the space and assign the rights to
user (MySpaceUser) on this created space. I am trying to give admin rights
to user MySpaceUser on space MySpace but when  i go  space preferences of
MySpace, i do not see admin right checkbox as checked. Not sure am i
missing something here?

*com.xpn.xwiki.api.XWiki xwikiApi= new
com.xpn.xwiki.api.XWiki(context.getWiki(),context);
Document doc=xwikiApi.getDocument(MySpace.WebHome);
doc.setContent(Created the space programmatically);
doc.save();
com.xpn.xwiki.api.Object
rightsObject=doc.getObject(XWiki.XWikiGlobalRights, true);
rightsObject.set(users, XWiki.MySpaceUser);
rightsObject.set(levels, admin);
rightsObject.set(allow, 1);
doc.save();
*
On Sat, Apr 7, 2012 at 3:29 AM, ricardo.julio.rodriguez.fernan...@sergas.es
 wrote:

 Hi!

  
  From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
 mohit gupta [motgu...@gmail.com]
  Sent: 06 April 2012 19:42
  To: XWiki Users
  Subject: [xwiki-users] Looking for these xwiki java API'S or java class
 containing these functionality?
 

 The first thing I would like to understand someday is what does API apply
 to! I mean, has XWiki a single API? Or has it a lot of them? Perhaps it is
 only a matter of taste, but I do really like to know how to correctly use
 this concept.

 Can Method and API be indistinctly used?

  Hi Folks,
 
  I am looking for three xwiki java api's that do the following
 functionality
  1) I give the space name to api and it creates the space with default
 home
  page .

 Perhaps this could be useful:

 {{velocity}}
 #set ($mydoc = $xwiki.getDocument(Dummy.WebHome))
 $mydoc.setContent(content)
 $mydoc.save()
 {{/velocity}}

  2)I give userName,SpaceName and rightsName(like view,edit,delete,admin)
 to
  api and it gives these rights on given space name for the given username

 Does this page through any light to your doubt?

 http://extensions.xwiki.org/xwiki/bin/view/Extension/Setting+Rights

  3)I give spaceName to api and it gives me whether the given space exists
 or
  not?

 I don't know how XWiki checks if a space exists when entered in an URL,
 but perhaps this could help...

 $xwiki.getSpaceDocsName('YourSpaceHere).size()

 If size  0 does mean that YourSpace exists!

  I was  looking for three apis in classes ---com.xpn.xwiki.xwiki.java and
  com.xpn.xwiki.api.xwiki.java but i could not locate these. But i am sure
  these api's must
  be existing (as user is able to do these stuff from user interface). I
 will
  be grateful if i can be directed to these apis?
 
  Thanks in advance.

 HTH!

 Ricardo

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

 Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
 adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
 destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe,
 por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
 autorizada.

 Nota: La informaci?n contenida en este mensaje y sus posibles documentos
 adjuntos es privada y confidencial y est? dirigida ?nicamente a su
 destinatario/a. Si usted no es el/la destinatario/a original de este
 mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
 est? autorizada.

 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 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] Fwd: Looking for these xwiki java API'S or java class containing these functionality?

2012-04-08 Thread mohit gupta
I figured out what was the issue It needs to be

Document doc=xwikiApi.getDocument(MySpace.
WebPreferences);* instead of* Document
doc=xwikiApi.getDocument(MySpace.WebHome);

After this worked perfectly for assigning the rights to single. But in my
scneario i need to assign different rights to different users.Like i need
to assign all possible rights to admin user but only view rights to general
user.  For this i have below code snippet


doc=xwikiApi.getDocument(MySpace.WebPreferences);
com.xpn.xwiki.api.Object
rightsObject=doc.getObject(XWiki.XWikiGlobalRights,
true);//XWiki.XWikiRightsXWiki.XWikiGlobalRights
rightsObject.set(users, XWiki.MySpaceAdminUser);
rightsObject.set(levels, view,comment,edit,delete,admin);
rightsObject.set(allow, 1);
doc.save();//line1
// Till here i see on UI all rights are assigned to MySpaceAdminUser

Document doc1=xwikiApi.getDocument(MySpace.WebPreferences);
com.xpn.xwiki.api.Object
rightsObject1=doc1.getObject(XWiki.XWikiGlobalRights,
true);//XWiki.XWikiRightsXWiki.XWikiGlobalRights
rightsObject1.set(users, XWiki.XWiki.MySpaceGeneralUser);
rightsObject1.set(levels, view);
rightsObject1.set(allow, 1);
doc1.save();//line2

// But here i see on UI all rights are revoked from  MySpaceAdminUser and
view right is assigned to MySpaceGeneralUser. Not sure why  line 2 is
revoking the rights given at line 1


-- Forwarded message --
From: mohit gupta motgu...@gmail.com
Date: Sun, Apr 8, 2012 at 7:34 PM
Subject: Fwd: [xwiki-users] Looking for these xwiki java API'S or java
class containing these functionality?
To: XWiki Users users@xwiki.org


I tried using thbelow lines also

com.xpn.xwiki.api.Object rightsObject=doc.getObject(XWiki.XWikiRights,
true); instead of
com.xpn.xwiki.api.Object
rightsObject=doc.getObject(XWiki.XWikiGlobalRights, true);[Though i want
to use XWiki.XWikiGlobalRights as i want to set the rights at space level
instead of page level]

Also i tried
rightsObject.set(levels, view,comment,edit,delete,admin); instead  of
rightsObject.set(levels, admin);


But still i do not see any rights assigned to mu user.



-- Forwarded message --
From: mohit gupta motgu...@gmail.com
Date: Sun, Apr 8, 2012 at 5:41 PM
Subject: Re: [xwiki-users] Looking for these xwiki java API'S or java class
containing these functionality?
To: XWiki Users users@xwiki.org


Hi Recardo,
After implementation i  successfully created the space *but could not
assgin the assign the rights successfully(point 2 in below mail trail)*.
Here is the code snippet that created the space and assign the rights to
user (MySpaceUser) on this created space. I am trying to give admin rights
to user MySpaceUser on space MySpace but when  i go  space preferences of
MySpace, i do not see admin right checkbox as checked. Not sure am i
missing something here?

*com.xpn.xwiki.api.XWiki xwikiApi= new
com.xpn.xwiki.api.XWiki(context.getWiki(),context);
Document doc=xwikiApi.getDocument(MySpace.WebHome);
doc.setContent(Created the space programmatically);
doc.save();
com.xpn.xwiki.api.Object
rightsObject=doc.getObject(XWiki.XWikiGlobalRights, true);
rightsObject.set(users, XWiki.MySpaceUser);
rightsObject.set(levels, admin);
rightsObject.set(allow, 1);
doc.save();
*
On Sat, Apr 7, 2012 at 3:29 AM, ricardo.julio.rodriguez.fernan...@sergas.es
 wrote:

 Hi!

  
  From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
 mohit gupta [motgu...@gmail.com]
  Sent: 06 April 2012 19:42
  To: XWiki Users
  Subject: [xwiki-users] Looking for these xwiki java API'S or java class
 containing these functionality?
 

 The first thing I would like to understand someday is what does API apply
 to! I mean, has XWiki a single API? Or has it a lot of them? Perhaps it is
 only a matter of taste, but I do really like to know how to correctly use
 this concept.

 Can Method and API be indistinctly used?

  Hi Folks,
 
  I am looking for three xwiki java api's that do the following
 functionality
  1) I give the space name to api and it creates the space with default
 home
  page .

 Perhaps this could be useful:

 {{velocity}}
 #set ($mydoc = $xwiki.getDocument(Dummy.WebHome))
 $mydoc.setContent(content)
 $mydoc.save()
 {{/velocity}}

  2)I give userName,SpaceName and rightsName(like view,edit,delete,admin)
 to
  api and it gives these rights on given space name for the given username

 Does this page through any light to your doubt?

 http://extensions.xwiki.org/xwiki/bin/view/Extension/Setting+Rights

  3)I give spaceName to api and it gives me whether the given space exists
 or
  not?

 I don't know how XWiki checks if a space exists when entered in an URL,
 but perhaps this could help...

 $xwiki.getSpaceDocsName('YourSpaceHere).size()

 If size  0 does mean that YourSpace exists!

  I was  looking for three apis in classes ---com.xpn.xwiki.xwiki.java and
  com.xpn.xwiki.api.xwiki.java but i could not locate these. But i am sure
  these api's must
  be existing

Re: [xwiki-users] Fwd: Looking for these xwiki java API'S or java class containing these functionality?

2012-04-08 Thread mohit gupta
Thanks sergiu. I just figured it out :)

On Sun, Apr 8, 2012 at 9:15 PM, Sergiu Dumitriu ser...@xwiki.com wrote:

 On 04/08/2012 11:34 AM, mohit gupta wrote:

 I figured out what was the issue It needs to be

 Document doc=xwikiApi.getDocument(**MySpace.
 WebPreferences);* instead of* Document

 doc=xwikiApi.getDocument(**MySpace.WebHome);

 After this worked perfectly for assigning the rights to single. But in my
 scneario i need to assign different rights to different users.Like i need
 to assign all possible rights to admin user but only view rights to
 general
 user.  For this i have below code snippet


 doc=xwikiApi.getDocument(**MySpace.WebPreferences);
 com.xpn.xwiki.api.Object
 rightsObject=doc.getObject(**XWiki.XWikiGlobalRights,
 true);//XWiki.**XWikiRightsXWiki.**XWikiGlobalRights
 rightsObject.set(users, XWiki.MySpaceAdminUser);
 rightsObject.set(levels, view,comment,edit,delete,**admin);
 rightsObject.set(allow, 1);
 doc.save();//line1
 // Till here i see on UI all rights are assigned to MySpaceAdminUser

 Document doc1=xwikiApi.getDocument(**MySpace.WebPreferences);
 com.xpn.xwiki.api.Object
 rightsObject1=doc1.getObject(**XWiki.XWikiGlobalRights,
 true);//XWiki.**XWikiRightsXWiki.**XWikiGlobalRights
 rightsObject1.set(users, XWiki.XWiki.**MySpaceGeneralUser);
 rightsObject1.set(levels, view);
 rightsObject1.set(allow, 1);
 doc1.save();//line2

 // But here i see on UI all rights are revoked from  MySpaceAdminUser and
 view right is assigned to MySpaceGeneralUser. Not sure why  line 2 is
 revoking the rights given at line 1


 doc.getObject and doc1.getObject return the exact same object, not a new
 one. So instead of adding a new rights object for general users, you
 replace the values for the admin users. You should use doc.newObject(XWiki.
 **XWikiGlobalRights).

 You should also reuse the same document, no need to get it twice, and only
 call save once at the end.


 -- Forwarded message --
 From: mohit guptamotgu...@gmail.com
 Date: Sun, Apr 8, 2012 at 7:34 PM
 Subject: Fwd: [xwiki-users] Looking for these xwiki java API'S or java
 class containing these functionality?
 To: XWiki Usersusers@xwiki.org


 I tried using thbelow lines also

 com.xpn.xwiki.api.Object rightsObject=doc.getObject(**
 XWiki.XWikiRights,
 true); instead of
 com.xpn.xwiki.api.Object
 rightsObject=doc.getObject(**XWiki.XWikiGlobalRights, true);[Though i
 want
 to use XWiki.XWikiGlobalRights as i want to set the rights at space level
 instead of page level]

 Also i tried
 rightsObject.set(levels, view,comment,edit,delete,**admin); instead
  of
 rightsObject.set(levels, admin);


 But still i do not see any rights assigned to mu user.



 -- Forwarded message --
 From: mohit guptamotgu...@gmail.com
 Date: Sun, Apr 8, 2012 at 5:41 PM
 Subject: Re: [xwiki-users] Looking for these xwiki java API'S or java
 class
 containing these functionality?
 To: XWiki Usersusers@xwiki.org


 Hi Recardo,
 After implementation i  successfully created the space *but could not
 assgin the assign the rights successfully(point 2 in below mail trail)*.

 Here is the code snippet that created the space and assign the rights to
 user (MySpaceUser) on this created space. I am trying to give admin rights
 to user MySpaceUser on space MySpace but when  i go  space preferences of
 MySpace, i do not see admin right checkbox as checked. Not sure am i
 missing something here?

 *com.xpn.xwiki.api.XWiki xwikiApi= new

 com.xpn.xwiki.api.XWiki(**context.getWiki(),context);
 Document doc=xwikiApi.getDocument(**MySpace.WebHome);
 doc.setContent(Created the space programmatically);
 doc.save();
 com.xpn.xwiki.api.Object
 rightsObject=doc.getObject(**XWiki.XWikiGlobalRights, true);
 rightsObject.set(users, XWiki.MySpaceUser);
 rightsObject.set(levels, admin);
 rightsObject.set(allow, 1);
 doc.save();
 *
 On Sat, Apr 7, 2012 at 3:29 AM,Ricardo.Julio.Rodriguez.**
 fernan...@sergas.es ricardo.julio.rodriguez.fernan...@sergas.es

 wrote:


  Hi!

  __**__
 From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of

 mohit gupta [motgu...@gmail.com]

 Sent: 06 April 2012 19:42
 To: XWiki Users
 Subject: [xwiki-users] Looking for these xwiki java API'S or java class

 containing these functionality?



 The first thing I would like to understand someday is what does API apply
 to! I mean, has XWiki a single API? Or has it a lot of them? Perhaps it
 is
 only a matter of taste, but I do really like to know how to correctly use
 this concept.

 Can Method and API be indistinctly used?

  Hi Folks,

 I am looking for three xwiki java api's that do the following

 functionality

 1) I give the space name to api and it creates the space with default

 home

 page .


 Perhaps this could be useful:

 {{velocity}}
 #set ($mydoc = $xwiki.getDocument(Dummy.**WebHome))
 $mydoc.setContent(content)
 $mydoc.save()
 {{/velocity}}

  2)I give userName,SpaceName and rightsName(like view,edit,delete

Re: [xwiki-users] Looking for these xwiki java API'S or java class containing these functionality?

2012-04-07 Thread mohit gupta
Thanks Ricardo. I really appreciate your precise and quick replies. That
should solve my issues. Once i implement, will let you know. *Again i thank
you from bottom of my heart. I  can not express my gratitude in words.
*
On Sat, Apr 7, 2012 at 3:29 AM, ricardo.julio.rodriguez.fernan...@sergas.es
 wrote:

 Hi!

  
  From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
 mohit gupta [motgu...@gmail.com]
  Sent: 06 April 2012 19:42
  To: XWiki Users
  Subject: [xwiki-users] Looking for these xwiki java API'S or java class
 containing these functionality?
 

 The first thing I would like to understand someday is what does API apply
 to! I mean, has XWiki a single API? Or has it a lot of them? Perhaps it is
 only a matter of taste, but I do really like to know how to correctly use
 this concept.

 Can Method and API be indistinctly used?

  Hi Folks,
 
  I am looking for three xwiki java api's that do the following
 functionality
  1) I give the space name to api and it creates the space with default
 home
  page .

 Perhaps this could be useful:

 {{velocity}}
 #set ($mydoc = $xwiki.getDocument(Dummy.WebHome))
 $mydoc.setContent(content)
 $mydoc.save()
 {{/velocity}}

  2)I give userName,SpaceName and rightsName(like view,edit,delete,admin)
 to
  api and it gives these rights on given space name for the given username

 Does this page through any light to your doubt?

 http://extensions.xwiki.org/xwiki/bin/view/Extension/Setting+Rights

  3)I give spaceName to api and it gives me whether the given space exists
 or
  not?

 I don't know how XWiki checks if a space exists when entered in an URL,
 but perhaps this could help...

 $xwiki.getSpaceDocsName('YourSpaceHere).size()

 If size  0 does mean that YourSpace exists!

  I was  looking for three apis in classes ---com.xpn.xwiki.xwiki.java and
  com.xpn.xwiki.api.xwiki.java but i could not locate these. But i am sure
  these api's must
  be existing (as user is able to do these stuff from user interface). I
 will
  be grateful if i can be directed to these apis?
 
  Thanks in advance.

 HTH!

 Ricardo

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

 Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
 adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
 destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe,
 por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
 autorizada.

 Nota: La informaci?n contenida en este mensaje y sus posibles documentos
 adjuntos es privada y confidencial y est? dirigida ?nicamente a su
 destinatario/a. Si usted no es el/la destinatario/a original de este
 mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
 est? autorizada.

 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 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] Configuration to user different database schema for a particular space?

2012-04-07 Thread mohit gupta
Hi Folks, i want to use different database schema for a particular space
due to  some requirement, though everything else will remain same.I am not
sure how i can go
for this.I mean is there a way  among below options:-

1)Can I mention connection.url in xwikiContext at request level
or
2)Can I keep two hibernate.cfg files and specify to pick one of these on
the basis of space name?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Looking for these xwiki java API'S or java class containing these functionality?

2012-04-06 Thread mohit gupta
Hi Folks,

I am looking for three xwiki java api's that do the following functionality
1) I give the space name to api and it creates the space with default home
page .
2)I give userName,SpaceName and rightsName(like view,edit,delete,admin) to
api and it gives these rights on given space name for the given username
3)I give spaceName to api and it gives me whether the given space exists or
not?
I was  looking for three apis in classes ---com.xpn.xwiki.xwiki.java and
com.xpn.xwiki.api.xwiki.java but i could not locate these. But i am sure
these api's must
be existing (as user is able to do these stuff from user interface). I will
be grateful if i can be directed to these apis?

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


Re: [xwiki-users] How to the restrict the user name and group name serach?

2012-04-06 Thread mohit gupta
Thanks Recardo.

On Sat, Mar 31, 2012 at 5:00 AM, 
ricardo.julio.rodriguez.fernan...@sergas.es wrote:

 Hi! Sorry for being late at following this issue!

  
  From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
 mohit gupta [motgu...@gmail.com]
  Sent: 28 March 2012 08:10
  To: XWiki Users
  Subject: Re: [xwiki-users] How to the restrict the user name and group
 name serach?
 
  Hi Racardo,
 
  in templates/xwikivars.vm i  already see below code
 
  #if ($hasAdmin || $isAdvancedUser)
#set ($blacklistedSpaces = [])
  #else
#set ($blacklistedSpaces = ['Import', 'Panels', 'Scheduler', 'Stats',
  'XAppClasses', 'XAppSheets', 'XAppTemplates', 'XWiki', 'WatchCode',
  'WatchSheets', 'XApp', 'WatchAdmin', 'Watch', 'ColorThemes',
  'AnnotationCode'])
  #end
 
  As per above code looks like 'XWiki' space is already a blacklisted
 space
  nor user other than admin rights.But still i am able to search user and
  group  name?

 Well, as far as I see here, xwikivars.vm is woking as expected. Please,
 are you sure you are using a simple user that is not an Admin? As you see
 in the if clausule, for Admin and Advanceduser, $blacklistedSpaces is set
 to a blank list. Thus, documents in all spaces are in the result set of any
 given search.

 HTH!

 Ricardo

 
  On Wed, Mar 28, 2012 at 3:16 AM, 
  ricardo.julio.rodriguez.fernan...@sergas.es wrote:

  Hi!
 
   
   From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
  mohit gupta [motgu...@gmail.com]
   Sent: 27 March 2012 13:49
   To: XWiki Users
   Subject: [xwiki-users] How to the restrict the user name and group name
  serach?
  
   Hi All,
   I dont want to allow the user name or group name search on xwiki(either
  it
   is on click of search button and  search sugest). *Basically what  i
 want
   is if any user
   put some user name or user group name in search text box , it should
 not
   return any results. Looking for your expert suggestion how i can go for
  it?*
  
   I am sure it should be possible in xwiki looking at its flexibility but
   could not figure it out how. Even if i have to make some modification
 in
   code iam open for that. Thanks in advance.
 
  By default, users and groups are created in XWiki space. Perhaps could it
  be useful and enough for you to blacklist XWiki space as stated here...?
 
  http://jira.xwiki.org/browse/XWIKI-6679
 
  HTH!
 
  Ricardo
 
   ___
   users mailing list
   users@xwiki.org
   http://lists.xwiki.org/mailman/listinfo/users
 
  Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
  adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
  destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta
 mensaxe,
  por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
  autorizada.
 
  Nota: La informaci?n contenida en este mensaje y sus posibles documentos
  adjuntos es privada y confidencial y est? dirigida ?nicamente a su
  destinatario/a. Si usted no es el/la destinatario/a original de este
  mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
  est? autorizada.
 
  See more languages: http://www.sergas.es/aviso_confidencialidad.htm
  ___
  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

 Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
 adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
 destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe,
 por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
 autorizada.

 Nota: La informaci?n contenida en este mensaje y sus posibles documentos
 adjuntos es privada y confidencial y est? dirigida ?nicamente a su
 destinatario/a. Si usted no es el/la destinatario/a original de este
 mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
 est? autorizada.

 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 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 the restrict the user name and group name serach?

2012-03-28 Thread mohit gupta
Hi Racardo,

in templates/xwikivars.vm i  already see below code

#if ($hasAdmin || $isAdvancedUser)
  #set ($blacklistedSpaces = [])
#else
  #set ($blacklistedSpaces = ['Import', 'Panels', 'Scheduler', 'Stats',
'XAppClasses', 'XAppSheets', 'XAppTemplates', 'XWiki', 'WatchCode',
'WatchSheets', 'XApp', 'WatchAdmin', 'Watch', 'ColorThemes',
'AnnotationCode'])
#end

As per above code looks like 'XWiki' space is already a blacklisted space
nor user other than admin rights.But still i am able to search user and
group  name?

On Wed, Mar 28, 2012 at 3:16 AM, 
ricardo.julio.rodriguez.fernan...@sergas.es wrote:

 Hi!

  
  From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
 mohit gupta [motgu...@gmail.com]
  Sent: 27 March 2012 13:49
  To: XWiki Users
  Subject: [xwiki-users] How to the restrict the user name and group name
 serach?
 
  Hi All,
  I dont want to allow the user name or group name search on xwiki(either
 it
  is on click of search button and  search sugest). *Basically what  i want
  is if any user
  put some user name or user group name in search text box , it should not
  return any results. Looking for your expert suggestion how i can go for
 it?*
 
  I am sure it should be possible in xwiki looking at its flexibility but
  could not figure it out how. Even if i have to make some modification in
  code iam open for that. Thanks in advance.

 By default, users and groups are created in XWiki space. Perhaps could it
 be useful and enough for you to blacklist XWiki space as stated here...?

 http://jira.xwiki.org/browse/XWIKI-6679

 HTH!

 Ricardo

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

 Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
 adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
 destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe,
 por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
 autorizada.

 Nota: La informaci?n contenida en este mensaje y sus posibles documentos
 adjuntos es privada y confidencial y est? dirigida ?nicamente a su
 destinatario/a. Si usted no es el/la destinatario/a original de este
 mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
 est? autorizada.

 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 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] How to the restrict the user name and group name serach?

2012-03-27 Thread mohit gupta
Hi All,
I dont want to allow the user name or group name search on xwiki(either it
is on click of search button and  search sugest). *Basically what  i want
is if any user
put some user name or user group name in search text box , it should not
return any results. Looking for your expert suggestion how i can go for it?*

I am sure it should be possible in xwiki looking at its flexibility but
could not figure it out how. Even if i have to make some modification in
code iam open for that. Thanks in advance.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How to capitalize on XWiki Classes, Objects, and Properties at presentation level?

2012-03-23 Thread mohit gupta
I went thru XWiki Classes, Objects, and Properties  topic given at
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel. I understand
the concept
of Classes, Objects, and Properties as i am familiar with java. Here is the
statement given at the same link

*This area explains XWiki's data model of Classes, Properties, and Objects
for those users who want to build applications primarily at the
presentation level.
(which makes it second generation wiki). It will help you understand how
you can achieve significant features by programming at this level alone.*

Basically i want to understand how i can capitalize the concept of Classes,
Properties, and Object at presentation level. To understand this throrouly
i created
two scenarios:-

First i created the space MySpace and created two pages i.e page1  under
this space. here are th scenarios

scenario1:- i edit the class MySpace.page1 and added a property password
ang gave some values for field Name, Pretty Name,Custom Display etc and
saved it.
*But i did not see any change at presentation level of MySpace.page1.*

scenario1:- Similarily i edit the objects for  MySpace.page1 and added a
class  mail  ang gave some values for field  Subject,Language, Text,HTML
etc and saved it.
*But again i did not see any change at presentation level of MySpace.page1.*

*It would be great if somebody can explain with small example what i can
achieve with edit the class and editing the object.* *For Example :-Like
what i can expect after edition in my scenarios.*
*I think its a vey useful feature but somehow it is not documented in
detail at that link or may be i am not able to understand. Looking for your
expert somments.*
**
**
Thanks
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Xwiki Enterprise Vs Platform

2012-03-22 Thread mohit gupta
At link http://www.xwiki.org/xwiki/bin/view/Main/Forge  I see the XWiki
Enterprise http://enterprise.xwiki.org/xwiki/bin/view/Main/WebHome and XWiki
Platform http://platform.xwiki.org/xwiki/bin/view/Main/WebHome as two
differnt projects.  But features explained at below two links looks almost
same to me.As per my understanding basic war file(
xwiki-enterprise-web-3.2-war ) is considered as platform project and when
we import XAR file on top of that it becomes enterprise project. This is
just a guess. Probably you folks can provide better inside what is the
basuc difference between these two projects.

http://enterprise.xwiki.org/xwiki/bin/view/Main/Features
http://platform.xwiki.org/xwiki/bin/view/Main/WebHome
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Xwiki Enterprise Vs Platform

2012-03-22 Thread mohit gupta
Thanks Sergiu,Ricardo .It brings lot of clarity

On Fri, Mar 23, 2012 at 9:41 AM, Sergiu Dumitriu ser...@xwiki.com wrote:

 On 03/22/2012 07:06 AM, mohit gupta wrote:

 At link 
 http://www.xwiki.org/xwiki/**bin/view/Main/Forgehttp://www.xwiki.org/xwiki/bin/view/Main/Forge
  I see the XWiki
 Enterprisehttp://enterprise.**xwiki.org/xwiki/bin/view/Main/**WebHomehttp://enterprise.xwiki.org/xwiki/bin/view/Main/WebHome
  and XWiki
 Platformhttp://platform.**xwiki.org/xwiki/bin/view/Main/**WebHomehttp://platform.xwiki.org/xwiki/bin/view/Main/WebHome
  as two

 differnt projects.  But features explained at below two links looks almost
 same to me.As per my understanding basic war file(
 xwiki-enterprise-web-3.2-war ) is considered as platform project and when
 we import XAR file on top of that it becomes enterprise project. This is
 just a guess. Probably you folks can provide better inside what is the
 basuc difference between these two projects.

 http://enterprise.xwiki.org/**xwiki/bin/view/Main/Featureshttp://enterprise.xwiki.org/xwiki/bin/view/Main/Features
 http://platform.xwiki.org/**xwiki/bin/view/Main/WebHomehttp://platform.xwiki.org/xwiki/bin/view/Main/WebHome


 The platform is all that can be found in http://maven.xwiki.org/**
 releases/org/xwiki/platform/http://maven.xwiki.org/releases/org/xwiki/platform/

 There is no final package that one can install to get the XWiki
 Platform running. The platform consists of all the different modules that
 are developed by the XWiki community and included by the committers in the
 official repository. The real outcome of the platform is this collection of
 modules that can be combined together to make useful applications. Each
 module serves a different purpose and brings one or more features to the
 XWiki Platform offering.

 XWiki Enterprise is just a way to group some platform modules, in order to
 get a usable product. All the built packages available under
 http://maven.xwiki.org/**releases/org/xwiki/enterprise/http://maven.xwiki.org/releases/org/xwiki/enterprise/are
  XE, even if they don't include the default set of documents (the
 Enterprise XAR).

 All the features of XWiki Enterprise are actually features provided by the
 platform. But the platform provides more feature than what XE includes. For
 example, the IRC application allows a wiki to connect to an IRC channel and
 communicate in both ways: log in the wiki what happens on IRC, and notify
 in the IRC of what happens in the wiki. But this application isn't included
 in XWiki Enterprise, since it's too specific and doesn't match the goal of
 the XE distribution.
 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/

 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users

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


Re: [xwiki-users] Forgot Admin Password?

2012-03-20 Thread mohit gupta
Hi Dmitry,

As per  link i uncommented  the line *xwiki.superadminpassword=system and
set  *xwiki.superadminpassword = mar@2012.
But now i login as superadmin as username and password as mar@2012. It logs
me in with error at top Error number 4001 in 4: Error while parsing
velocity page /templates/menuview.vm Wrapped Exception: Failed to evaluate
content with id [/templates/menuview.vm]. When i click on it it says
XWiki.superadmin does not exist. *here is caused by stack trace*


Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 5: User
[XWiki.superadmin] does not exists
at
com.xpn.xwiki.plugin.watchlist.WatchListStore.getWatchListObject(WatchListStore.java:537)
at
com.xpn.xwiki.plugin.watchlist.WatchListStore.getWatchedElements(WatchListStore.java:401)
at
com.xpn.xwiki.plugin.watchlist.WatchListPluginApi.isDocumentWatched(WatchListPluginApi.java:73)
at sun.reflect.GeneratedMethodAccessor339.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
... 97 more


*What is the usernae of superadmin?*

On Tue, Mar 20, 2012 at 10:08 AM, Dmitry Bakbardin haru_mamb...@mail.ruwrote:

 Hi!

 Vincent already gave the answer:  You can also log as superadmin if you
 don't have any admin user set.

 Check this for details
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security

 Kind Regards,

 Dmitry


 Tue, 20 Mar 2012 09:42:54 +0530 от mohit gupta motgu...@gmail.com:
  *You can log in as an Admin and change the password.*
  **
  I had only one Admin created in database . My question is how will i
 login
  as admin and change the password, if i have already forgotten the
 password.
 
  On Mon, Mar 19, 2012 at 11:32 PM, Vincent Massol vinc...@massol.net
 wrote:
 
   Hi,
  
   On Mar 19, 2012, at 7:00 PM, mohit gupta wrote:
  
Hi All,
   
i for got my 11 digit admin password. Kindly let me know how can i
   recover
it ?
  
   You can log in as an Admin and change the password.
   You can also log as superadmin if you don't have any admin user set.
  
Also want to know is there a way i can direct get from database in
decrypted form.
  
   No you cannot. That would be unsafe to be able to do this!
  
   Thanks
   -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
 
 Kind regards,

 Dmitry
 ___
 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] Forgot Admin Password?

2012-03-20 Thread mohit gupta
Hi paul,
just wanted to confirm that user name is superadmin.Right?

On Tue, Mar 20, 2012 at 12:48 PM, Paul Libbrecht p...@hoplahup.net wrote:

 Mohit,

 this surely appears as a bug.
 But I would attempt going elsewhere, it has a chance to work.

 paul


 Le 20 mars 2012 à 08:00, mohit gupta a écrit :

  Hi Dmitry,
 
  As per  link i uncommented  the line *xwiki.superadminpassword=system and
  set  *xwiki.superadminpassword = mar@2012.
  But now i login as superadmin as username and password as mar@2012. It
 logs
  me in with error at top Error number 4001 in 4: Error while parsing
  velocity page /templates/menuview.vm Wrapped Exception: Failed to
 evaluate
  content with id [/templates/menuview.vm]. When i click on it it says
  XWiki.superadmin does not exist. *here is caused by stack trace*
 
 
  Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 5: User
  [XWiki.superadmin] does not exists
  at
 
 com.xpn.xwiki.plugin.watchlist.WatchListStore.getWatchListObject(WatchListStore.java:537)
  at
 
 com.xpn.xwiki.plugin.watchlist.WatchListStore.getWatchedElements(WatchListStore.java:401)
  at
 
 com.xpn.xwiki.plugin.watchlist.WatchListPluginApi.isDocumentWatched(WatchListPluginApi.java:73)
  at sun.reflect.GeneratedMethodAccessor339.invoke(Unknown Source)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
  at
 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
  at
 
 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
  ... 97 more
 
 
  *What is the usernae of superadmin?*
 
  On Tue, Mar 20, 2012 at 10:08 AM, Dmitry Bakbardin haru_mamb...@mail.ru
 wrote:
 
  Hi!
 
  Vincent already gave the answer:  You can also log as superadmin if you
  don't have any admin user set.
 
  Check this for details
  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Security
 
  Kind Regards,
 
  Dmitry
 
 
  Tue, 20 Mar 2012 09:42:54 +0530 от mohit gupta motgu...@gmail.com:
  *You can log in as an Admin and change the password.*
  **
  I had only one Admin created in database . My question is how will i
  login
  as admin and change the password, if i have already forgotten the
  password.
 
  On Mon, Mar 19, 2012 at 11:32 PM, Vincent Massol vinc...@massol.net
  wrote:
 
  Hi,
 
  On Mar 19, 2012, at 7:00 PM, mohit gupta wrote:
 
  Hi All,
 
  i for got my 11 digit admin password. Kindly let me know how can i
  recover
  it ?
 
  You can log in as an Admin and change the password.
  You can also log as superadmin if you don't have any admin user set.
 
  Also want to know is there a way i can direct get from database in
  decrypted form.
 
  No you cannot. That would be unsafe to be able to do this!
 
  Thanks
  -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
 
  Kind regards,
 
  Dmitry
  ___
  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

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


Re: [xwiki-users] java heap out of memory error during import of 72MB XAR file?

2012-03-20 Thread mohit gupta
Hi Recardo,

At step 6 i.e the moment i save code snippet, gets below error.Looks like
there a issue in code snippet. Can you send it as attachment, if you have
it or pint me to correct code snippet location.Thanks in advance.

*Wrapped Exception:*

* org.apache.velocity.runtime.parser.TemplateParseException: Encountered
:395)rntat org.apache.velocity.util.introspection.UberspectImpl at
xwiki:MySpace.ImportXAR**line 46, column
106?*https://localhost/fipwiki/bin/edit/FIP/line+46%2C+column+106?parent=FIP.ImportXAR
* Was expecting one of: [ … , … ) … WHITESPACE ...*

* *at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:131) at
org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1226)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:179)
at
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:152)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:117)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:94)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:291)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:221)

On Tue, Mar 20, 2012 at 4:11 AM, 
ricardo.julio.rodriguez.fernan...@sergas.es wrote:

 Hi!

  
  From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
 mohit gupta [motgu...@gmail.com]
  Sent: 19 March 2012 18:28
  To: XWiki Users
  Subject: Re: [xwiki-users] java heap out of memory error during import
 of 72MB XAR file?
 
  Thanks Ricardo for reply. But want to confirm few questions about how to
  install it.I would be really grateful if you can answer them. Let me
 tell
  you what i did
 
  1)Create a new page with name myImportXARPage
  2)Then i put the complete code snippet given at
  http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Importunder
  this page. But pagge looks totally weird and dont know how to proceed
 with
  this. PFA the screenshot of that.
  It would be helpful if you can let me know how to exactly follow the
 steps
  at
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import.
  Like in install section it says *Edit a page in wiki mode, make sure the
  syntax of the page is xwiki/1.0 and save it. * i am not sure which page
  needs to be edited.

 You have to create a new XWiki document, let's say,
 YourSpace/myImportXARPage. As it probably doesn't exist on your wiki, the
 system will offer you the posibility to create it. Thus, create it! And do
 it using XWiki 1.0 syntax! The easiest and simples way of doing this is:

 1. Copy the code of the snippet. It is available at
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import#HSnippet
 2. Login with an admin account in your system.
 3. Point your browser to the new page. Let's say
 http://yourhostname/bin/ICT/yourImportXARPage
 4. Edit the page, select XWiki 1.0 as Page Syntax (right column).
 5. Paste the code of the snippet and save it.
 6. You must see, more or less, this...

 http://atriumkm.idisantiago.es/bin/download/ICT/Images/myImportXARPage.png


  Then in* how to use * section it says
  *Once installed, indicate the full server file system path of the XAR
 you
  wish to import. A confirmation will be asked. *

 Well, this is self-explaining!

  What needs to be installed here and where i am expected to mention the
 path
  of XAR file. At One place it also says *The snippet requires programming
  rights to run.* Whatexactly needs to be run.

 Nothing to be installed! XWiki is a great framework that a allows you to
 develop great application at presentation level! Thus, in this case, you
 have only to copy and paste the snippet code to have a great application to
 import big XARs.

  Sorry Ricardo, too many questions here, but really looking what are the
  exact steps to execute this code snippet. Again thanks for your
 patience.

 Glad to be useful! i do hope other correct me if I'm wrong at any
 step/comment! Thanks to eveybody!

 HTH!

 Ricardo

 
  On Mon, Mar 19, 2012 at 1:38 AM, 
  ricardo.julio.rodriguez.fernan...@sergas.es wrote:

  Hi!
 
  Have you tried this?
 
  http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import
 
  HTH!
 
  Ricardo
 
  
  From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
  mohit gupta [motgu...@gmail.com]
  Sent: 18 March 2012 13:26
  To: XWiki Users
  Subject: [xwiki-users] java heap out of memory error during import of
 72MB
   XAR file?
 
   I have XAR file of 72MB . When i Import it thru XWI UI i get java heap
 out
  of memory error. I have mentioened the value of JAVA_OPTS
   as -Xms1024m -Xmx1024m. My hardware specification is  32 bit windows
  operating system and 4 GB RAM.  and using the  tomcat as webserver.
   If i increase the value of JAVA_OPTS

[xwiki-users] Forgot Admin Password?

2012-03-19 Thread mohit gupta
Hi All,

i for got my 11 digit admin password. Kindly let me know how can i recover
it ? Also want to know is there a way i can direct get from database in
decrypted form.

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


[xwiki-users] java heap out of memory error during import of 72MB XAR file?

2012-03-18 Thread mohit gupta
 I have XAR file of 72MB . When i Import it thru XWI UI i get java heap out
of memory error. I have mentioened the value of JAVA_OPTS
 as -Xms1024m -Xmx1024m. My hardware specification is  32 bit windows
operating system and 4 GB RAM.  and using the  tomcat as webserver.
 If i increase the value of JAVA_OPTS to -Xms1536m -Xmx1536m, tomcat does
not even start(Probably reason is 32 bit operating system and
 4 GB RAM).  I can not increase change the  server  configuration
somehow.How should i go about resolving this issue?

 The only thing i can take help for now is do all the set up stuff  on 8GB
machine and do restore of database on 4GB machine.
 But again i am worried with some repurcussion of this approach i.e if
there is a  deltion/rename of some column etc ,
 on new xwiki version an. then it will be hard time for me to restore the
databse.

 Looking for quick response. i am sure you guys also must had faced this
issue in past. Kindly share your experiences


 For your information same xar file gets imported on 64 bit operating
system and 8GB RAM but how should i successfully resolve
 import of 72MB XAR file on 32 bit OS and 4 GB RAM? i can not upgrade this
client machine due to some restrictions.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Fwd: How to support date format localization on xwiki?

2012-03-17 Thread mohit gupta
Hi Folks,

It would be very helpful if you can answer below query as its really
important to support localization.even if it is not possible to support
local date format, please let me know.Thanks in advance.

-- Forwarded message --
From: mohit gupta motgu...@gmail.com
Date: Fri, Mar 16, 2012 at 10:27 PM
Subject: How to support date format localization on xwiki?
To: XWiki Users users@xwiki.org


i can change the date format thru localization. But this format is
applicable to all locales. Is there a way i can configure the date format
speific to locale.
For example:- For US, i want to make define the date format as MM/dd/
and for UK want to define it dd/MM/. Is there a way i can do it?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to make forgot Password link working?

2012-03-16 Thread mohit gupta
Thanks Edo. I also expect  the same functionality as you stated below. But
as i told earlier. when i click on forgot your password, nothing happens,
Just the login page refreshed. Thats it. Looks like a issue to me in xwiki.
I am on xwiki 3.2

On Fri, Mar 16, 2012 at 12:44 AM, Edo Beutler ebeut...@synventis.comwrote:

 Hi Mohit

 Since we use this feature for a long time and I don't remember how
 much there was in XWiki then and how much we had to develop ourselves
 I am not sure how XWiki does this in detail, but I think I can give
 you an idea of the general steps:
 1. on clicking forgot password you are directed to a form where you
 can enter your username (we use the user's email as username and
 activation, thus we have a valid email address)
 2. for the entered user you generate a validation key (like the one
 for account activation) and send a mail to the user's email address
 containing a link to a page with the validation key as parameter
 3. when the user follows the link in the mail he gets taken to a page
 where he can change his password.

 Hope this clarifies at least the how will he login part of the
 question and I'm sure someone will correct me if XWiki does something
 completely different.

 Edo

 On Thu, Mar 15, 2012 at 6:05 PM, mohit gupta motgu...@gmail.com wrote:
  Hi Folks,
 
  On login page there is a link forgot username and forgot password. When i
  click nothing happens.Same page gets refreshed. I am not sure do we need
 to
  do any configuration to make it work?
 
  What i observed, first i clicked forgot password  and then did the
 login. I
  an directly taken to reset password page. Where i click reset password,
  Again nothing happens? I am not sure what is the thinking behind this
  functianlity. If user forgets the password how he will do the login ?.
 
 
  Thanks.
  ___
  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


[xwiki-users] How to support date format localization on xwiki?

2012-03-16 Thread mohit gupta
i can change the date format thru localization. But this format is
applicable to all locales. Is there a way i can configure the date format
speific to locale.
For example:- For US, i want to make define the date format as MM/dd/
and for UK want to define it dd/MM/. Is there a way i can do it?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How to provide the backlinks if user land up on accessdenied page. Question :- How to provide the backlinks if user land up on accessdenied page.

2012-03-09 Thread mohit gupta
I want to configure the accessdenied.vm( it is the page where i see the
message You are not allowed to view this document or perform this action.).
i want to provide the backlink on accessdenied.vm page which takes the user
back to page where he is coming from. If it is not possible , even if
backlink  takes to home page of the space
he is coming from will be fine.*Please provide me the inputs if it is
configurable or with the small code snippet which i can iclude in
accessdenied.vm*

Intention of doing this is if user lands up on accessdenied page he has to
go back by click on back button on browser but  to make the application
better i want the  back link on accessdenied page itself . Thanks in
advance.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Xwiki log4j setting

2012-03-09 Thread mohit gupta
Thanks Thomas and Recardo

On Tue, Mar 6, 2012 at 3:33 AM, ricardo.julio.rodriguez.fernan...@sergas.es
 wrote:

 Hi!

 
 From: users-boun...@xwiki.org [users-boun...@xwiki.org] On Behalf Of
 mohit gupta [motgu...@gmail.com]
 Sent: 05 March 2012 09:27
 To: XWiki Users
 Subject: [xwiki-users] Xwiki log4j setting

  As of  now all xwiki logs like log.error etc print the error on tomcat
  console. I want to redirect it to some file instead of server console.I
  don't see any setting in xwiki.cfg .Please let me know setting to
 redirect
  to some file. Thanks in advance.
 

 Please, have you checked this?

 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Logging

 HTH!

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

 Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
 adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
 destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe,
 por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
 autorizada.

 Nota: La informaci?n contenida en este mensaje y sus posibles documentos
 adjuntos es privada y confidencial y est? dirigida ?nicamente a su
 destinatario/a. Si usted no es el/la destinatario/a original de este
 mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
 est? autorizada.

 See more languages: http://www.sergas.es/aviso_confidencialidad.htm
 ___
 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 log4j setting

2012-03-05 Thread mohit gupta
As of  now all xwiki logs like log.error etc print the error on tomcat
console. I want to redirect it to some file instead of server console.I
don't see any setting in xwiki.cfg .Please let me know setting to redirect
to some file. Thanks in advance.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Getting java.io.IOException: Server returned HTTP response code: 403 for URL… But thru browser it works fine?

2012-02-29 Thread mohit gupta
I have two web application  hosted on two different tomcat instances say T1
and T2(xwiki is on T2). I  am making below method
in a java class on T1 to retrieve  java xwikiUserObject named  from T2


private Properties checkContentChanges() {

Properties reply = null;
try {
String urlStr = 
http://myApp:8080/wiki/bin/view/?checkContent=trueName=dummy;;
  URL url;
  reply = new Properties();
  try {
url = new URL(urlStr);
//sun.net.www.protocol.http.HttpURLConnection conn =
(sun.net.www.protocol.http.HttpURLConnection) url
.openConnection();//line 1
  URLConnection conn =  url
.openConnection();// line 2
conn.addRequestProperty(User-Agent,
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64;
Trident/5.0));
InputStream is = conn.getInputStream();// line3
reply.load(conn.getInputStream());
  }
  catch (MalformedURLException e) {
e.printStackTrace();
  }
  catch (IOException e) {
e.printStackTrace();//line 5
  }

}



But at line 3 i am getting error  java.io.IOException: Server returned HTTP
response code: 403 for URL: http://myApp:8080/wiki/... Though the call goes
to method on T2 and
it returns expected  user object. So T2 side works fine but once it return
i get above exception at line 5 at T1 . I tried line 1 too instead of line
2 but same exception? As i tried to find it out on net especially on
http://en.wikipedia.org/wiki/HTTP_403 looks like its due to some config on
xwiki side. Not getting whats the exact issue?


Though thru the brower same url works fine

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


[xwiki-users] Fwd: Getting java.io.IOException: Server returned HTTP response code: 403 for URL… But thru browser it works fine?

2012-02-29 Thread mohit gupta
Let me also tell what i am trying to do here is

My first web application wants to get some information from wiki. So it
sends a call to Wiki and on wiki side i get it in to checkAuth method of
MyClass Extends XWikiAuthServiceImpl.  Here  return type of checkAuth
method is xwikiuser so i am returning info as
 return new XWikiUser(MyInformation);  But in my web application at T1 i
get exception as Getting java.io.IOException: Server returned HTTP response
code: 403 for URL. Hope it clarifies. May be i can do it in some other way
in  xwiki. Looking for your valuable inputs.

-- Forwarded message --
From: mohit gupta motgu...@gmail.com
Date: Wed, Feb 29, 2012 at 3:28 PM
Subject: Getting java.io.IOException: Server returned HTTP response code:
403 for URL… But thru browser it works fine?
To: XWiki Users users@xwiki.org


I have two web application  hosted on two different tomcat instances say T1
and T2(xwiki is on T2). I  am making below method
in a java class on T1 to retrieve  java xwikiUserObject named  from T2


private Properties checkContentChanges() {

Properties reply = null;
try {
String urlStr = 
http://myApp:8080/wiki/bin/view/?checkContent=trueName=dummy;;
  URL url;
  reply = new Properties();
  try {
url = new URL(urlStr);
//sun.net.www.protocol.http.HttpURLConnection conn =
(sun.net.www.protocol.http.HttpURLConnection) url
.openConnection();//line 1
  URLConnection conn =  url
.openConnection();// line 2
conn.addRequestProperty(User-Agent,
Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64;
Trident/5.0));
InputStream is = conn.getInputStream();// line3
reply.load(conn.getInputStream());
  }
  catch (MalformedURLException e) {
e.printStackTrace();
  }
  catch (IOException e) {
e.printStackTrace();//line 5
  }

}



But at line 3 i am getting error  java.io.IOException: Server returned HTTP
response code: 403 for URL: http://myApp:8080/wiki/... Though the call goes
to method on T2 and
it returns expected  user object. So T2 side works fine but once it return
i get above exception at line 5 at T1 . I tried line 1 too instead of line
2 but same exception? As i tried to find it out on net especially on
http://en.wikipedia.org/wiki/HTTP_403 looks like its due to some config on
xwiki side. Not getting whats the exact issue?


Though thru the brower same url works fine

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


[xwiki-users] Fwd: How to set the max unsuccessful login attempts to some numbaer say 4?

2012-02-25 Thread mohit gupta
Hi Folks,

Need help on below query. Thanks in advance.

-- Forwarded message --
From: mohit gupta motgu...@gmail.com
Date: Fri, Feb 24, 2012 at 9:57 AM
Subject: How to set the max unsuccessful login attempts to some numbaer say
4?
To: XWiki Users users@xwiki.org


I had put this question earlier too but knowing that its not configurable
in xwiki as of now as OOB feature. So started implementing this feature
myself with
some modification in code. I did modifications in checkPassword method of
XWikiAuthServiceImpl. Basically i want to put the *passwordLockCount *as
name and *1* as value
in xwikiintegers table(when user tries any unsuccessful login attempt). For
this i used the api i.e userObject.setIntValue(passwordLockCount, 1)
where userObject
is of type BaseObject. But it does not put the value in xwikiintegers table
rather it put in cache. Please recommend me the right API the to put this
number
property in xwikiintegers table?

*i also tried *
NumberProperty passwordLockCount = new IntegerProperty();
passwordLockCount.setName(passwordLockCount);
passwordLockCount.setValue(1);
userObject.addField(passwordLockCount, passwordLockCount);

But it also does not put the property in database?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] How to import the XAR file greater than 32 MB?

2012-02-24 Thread mohit gupta
Hi

When i try to import the XAR file of size 60MB i get below error message:-

The wiki administrators have set a limit of 32.0Mb for attached files.
Please make sure the size of the files you try to attach does not exceed
this limit.

I am not getting where to increase the size of XAR file to be imported ? i
dont see any option under xwikipreferences.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] How to import the XAR file greater than 32 MB?

2012-02-24 Thread mohit gupta
Thanks All it worked. Though i had to increase the limit of environment
variable  java_opts to 1536

On Fri, Feb 24, 2012 at 3:28 PM, Thomas Mortagne
thomas.morta...@xwiki.comwrote:

 See
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Attachments#HSizeLimit
 to change the size limit.

 Now as Guillaume suggested you might have issues with the standard
 import tool with big xar. If if it does not work you should probably
 use the large xar import.

 On Fri, Feb 24, 2012 at 10:38 AM, mohit gupta motgu...@gmail.com wrote:
  Hi
 
  When i try to import the XAR file of size 60MB i get below error
 message:-
 
  The wiki administrators have set a limit of 32.0Mb for attached files.
  Please make sure the size of the files you try to attach does not exceed
  this limit.
 
  I am not getting where to increase the size of XAR file to be imported ?
 i
  dont see any option under xwikipreferences.
  ___
  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


[xwiki-users] How to set the max unsuccessful login attempts to some numbaer say 4?

2012-02-23 Thread mohit gupta
I had put this question earlier too but knowing that its not configurable
in xwiki as of now as OOB feature. So started implementing this feature
myself with
some modification in code. I did modifications in checkPassword method of
XWikiAuthServiceImpl. Basically i want to put the *passwordLockCount *as
name and *1* as value
in xwikiintegers table(when user tries any unsuccessful login attempt). For
this i used the api i.e userObject.setIntValue(passwordLockCount, 1)
where userObject
is of type BaseObject. But it does not put the value in xwikiintegers table
rather it put in cache. Please recommend me the right API the to put this
number
property in xwikiintegers table?

*i also tried *
NumberProperty passwordLockCount = new IntegerProperty();
passwordLockCount.setName(passwordLockCount);
passwordLockCount.setValue(1);
userObject.addField(passwordLockCount, passwordLockCount);

But it also does not put the property in database?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] custom index

2012-02-23 Thread mohit gupta
Hi Marius,

Can i do similar kind of stuff  to exclude a certain userfrom showing up in
search results at all programmatically. Basically what i want is if the
logged in user is A  and belongs to GroupA only users under GroupA should
appear on results not the users belong to any other group.

On Wed, Feb 22, 2012 at 8:54 PM, Marius Dumitru Florea 
mariusdumitru.flo...@xwiki.com wrote:

 On Wed, Feb 22, 2012 at 4:25 PM, O Voss richyfourtyth...@yahoo.com
 wrote:
  Hi,
 
  I want to exclude a certain space from showing up in search results at
 all. I thought it might be possible to do that using the HQL based filter
 query hinted at here:
 http://extensions.xwiki.org/xwiki/bin/view/Extension/Search+Application#HSearchAdministration
 
  (I thought about something like not doc.fullName like 'spacename.%',
 which I have used successfully on MyRecentModifications.)
 
  Unfortunately the search administration looks a bit different to me, I
 can't find HQL filter, all I see is 'Custom index' (or rather
 'Benutzerdefiniert indizieren', since I'm running it in German).
 

  Where do I define the custom indexing? Am I on the right track at all,
 or is there a simpler way? (Be aware, I want to get rid of that space
 everywhere in searches, not just on Main.Search. On Main.Search I have done
 it successfully already. But the document search within the WYSIWYG editor
 seems to work independently from that. So I thought I'd take a more radical
 approach by throwing the space out of the index!)

 The WYSIWYG content editor uses a custom database search which takes
 into account the list of blacklisted spaces. So if you edit the
 xwikivars.vm Velocity template and add your space(s) to the value of
 the $blacklistedSpaces variable then pages from that space shouldn't
 appear anymore in the search results.

 Hope this helps,
 Marius

 
  Cheers,
 
  Olaf
  ___
  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


[xwiki-users] How to rename the main space?

2012-02-21 Thread mohit gupta
I want to rename the main space to some other name but i dont fine a link
which helps me to do that. I am on xwiki 3.2.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


  1   2   >