[xwiki-users] AUTO: MaryEllen Coleman/Poughkeepsie/IBM is out of the office. (returning 11/29/2010)

2010-11-24 Thread MaryEllen Coleman

I am out of the office until 11/29/2010.

Enjoying the US Thanksgiving holiday ... back on Monday, 11/29.


Note: This is an automated response to your message  "users Digest, Vol 40,
Issue 58" sent on 11/24/10 16:43:00.

This is the only notification you will receive while this person is away.

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


Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action

2010-11-24 Thread Ludovic Dubost


You should check context.getUser() (print it in the logs).
If all the rights are set maybe you did not set it properly (the 
'XWiki.' prefix maybe)


Ludovic



Le 24/11/10 23:04, Scardino, Leonard R Jr ERDC-ITL-MS Contractor a écrit :

That's what I was thinking as well, though I don't get logged out, but I
can't see my users profile.  I removed the config line and logged in as the
administrator with the default login.  The user I created seemed to have the
correct permissions.  Also when not using my custom authenticator, I was able
to login as this new user and everything was fine.  But the minute I change
the config back to my authenticator I get the "Error  You are not allowed to
view..." error.

It does sound like a permissions thing, but I virtually have a fresh install
of XWiki, so I haven't changed any of the permissions or groups or anything.
So I would have thought the XWiki.createEmptyUser method would set my user up
as it needed to be.  Or I would have expected something in the documentation
to tell me to do something myself.

Any other ideas after knowing the above?

Lenny

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Sergiu Dumitriu
Sent: Wednesday, November 24, 2010 3:54 PM
To: XWiki Users
Subject: Re: [xwiki-users] Custom Authentication - Error: You are not allowed
to view this document or perform this action

On 11/24/2010 10:42 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:

I've been searching the archive, but coming up short here.

I'm trying to get custom authentication going on XWiki Enterprise 2.6.

I've successfully implemented the XWikiAuthService by extending
XwikiAuthServiceImpl as suggested here :
http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-o
racle-s
so/

I have also added the xwiki.authentication.authclass line to my xwiki.cfg.

I'm able to automatically create a new user in xwiki using the
XWiki.createEmptyUser method, and I get logged in.

However, when I get in as that user all I get is  "ErrorYou are not
allowed to view this document or perform this action."  No matter what
I try to look at, including the personal profile.

Can anyone tell me what I'm missing here?

The XWiki documentation says that you "can" implement your own right
management service, but it doesn't say that is necessary.  Is it?

Thanks,

If you can log in with this user, and you can click on your profile name
displayed in the top-right menu, and you're not logged out immediately after
that, then it's not a user authentication problem, but a rights issue. Make
sure the user is in the requested groups, and he does have the rights to
view/edit documents.




--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action

2010-11-24 Thread Ludovic Dubost


Either you see your name at the top right and then your authentication 
service is working, except that your user actually has not rights.
Maybe you forgot to make the calls to create the user page (when it does 
not exist) and add the user to XWiki.XWikiAllGroup


If you don't see your name then your auth service is not working. But I 
would guest is the first problem otherwise you'd probably get the login 
screen again


Once your OracleSSO works we'd love you to share it on the SVN sandbox

http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/

Ludovic

Le 24/11/10 22:42, Scardino, Leonard R Jr ERDC-ITL-MS Contractor a écrit :

I've been searching the archive, but coming up short here.

I'm trying to get custom authentication going on XWiki Enterprise 2.6.

I've successfully implemented the XWikiAuthService by extending
XwikiAuthServiceImpl as suggested here :
http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-oracle-s
so/

I have also added the xwiki.authentication.authclass line to my xwiki.cfg.

I'm able to automatically create a new user in xwiki using the
XWiki.createEmptyUser method, and I get logged in.

However, when I get in as that user all I get is  "ErrorYou are not
allowed to view this document or perform this action."  No matter what I try
to look at, including the personal profile.

Can anyone tell me what I'm missing here?

The XWiki documentation says that you "can" implement your own right
management service, but it doesn't say that is necessary.  Is it?

Thanks,

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




--
Ludovic Dubost
Blog: http://blog.ludovic.org/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost

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


Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action

2010-11-24 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
That's what I was thinking as well, though I don't get logged out, but I
can't see my users profile.  I removed the config line and logged in as the
administrator with the default login.  The user I created seemed to have the
correct permissions.  Also when not using my custom authenticator, I was able
to login as this new user and everything was fine.  But the minute I change
the config back to my authenticator I get the "Error  You are not allowed to
view..." error.

It does sound like a permissions thing, but I virtually have a fresh install
of XWiki, so I haven't changed any of the permissions or groups or anything.
So I would have thought the XWiki.createEmptyUser method would set my user up
as it needed to be.  Or I would have expected something in the documentation
to tell me to do something myself.

Any other ideas after knowing the above?

Lenny

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Sergiu Dumitriu
Sent: Wednesday, November 24, 2010 3:54 PM
To: XWiki Users
Subject: Re: [xwiki-users] Custom Authentication - Error: You are not allowed
to view this document or perform this action

On 11/24/2010 10:42 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
> I've been searching the archive, but coming up short here.
>
> I'm trying to get custom authentication going on XWiki Enterprise 2.6.
>
> I've successfully implemented the XWikiAuthService by extending 
> XwikiAuthServiceImpl as suggested here :
> http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-o
> racle-s
> so/
>
> I have also added the xwiki.authentication.authclass line to my xwiki.cfg.
>
> I'm able to automatically create a new user in xwiki using the 
> XWiki.createEmptyUser method, and I get logged in.
>
> However, when I get in as that user all I get is  "ErrorYou are not
> allowed to view this document or perform this action."  No matter what 
> I try to look at, including the personal profile.
>
> Can anyone tell me what I'm missing here?
>
> The XWiki documentation says that you "can" implement your own right 
> management service, but it doesn't say that is necessary.  Is it?
>
> Thanks,

If you can log in with this user, and you can click on your profile name
displayed in the top-right menu, and you're not logged out immediately after
that, then it's not a user authentication problem, but a rights issue. Make
sure the user is in the requested groups, and he does have the rights to
view/edit documents.

-- 
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


Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action

2010-11-24 Thread Marius Dumitru Florea
On 11/24/2010 11:42 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
> I've been searching the archive, but coming up short here.
>
> I'm trying to get custom authentication going on XWiki Enterprise 2.6.
>
> I've successfully implemented the XWikiAuthService by extending
> XwikiAuthServiceImpl as suggested here :
> http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-oracle-s
> so/
>
> I have also added the xwiki.authentication.authclass line to my xwiki.cfg.
>
> I'm able to automatically create a new user in xwiki using the
> XWiki.createEmptyUser method, and I get logged in.
>
> However, when I get in as that user all I get is  "ErrorYou are not
> allowed to view this document or perform this action."  No matter what I try
> to look at, including the personal profile.
>

> Can anyone tell me what I'm missing here?

I think you have to add that user to the XWiki.XWikiAllGroup .

Hope this helps,
Marius

>
> The XWiki documentation says that you "can" implement your own right
> management service, but it doesn't say that is necessary.  Is it?
>
> Thanks,
>
> Lenny
> ___
> 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] Custom Authentication - Error: You are not allowed to view this document or perform this action

2010-11-24 Thread Sergiu Dumitriu
On 11/24/2010 10:42 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
> I've been searching the archive, but coming up short here.
>
> I'm trying to get custom authentication going on XWiki Enterprise 2.6.
>
> I've successfully implemented the XWikiAuthService by extending
> XwikiAuthServiceImpl as suggested here :
> http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-oracle-s
> so/
>
> I have also added the xwiki.authentication.authclass line to my xwiki.cfg.
>
> I'm able to automatically create a new user in xwiki using the
> XWiki.createEmptyUser method, and I get logged in.
>
> However, when I get in as that user all I get is  "ErrorYou are not
> allowed to view this document or perform this action."  No matter what I try
> to look at, including the personal profile.
>
> Can anyone tell me what I'm missing here?
>
> The XWiki documentation says that you "can" implement your own right
> management service, but it doesn't say that is necessary.  Is it?
>
> Thanks,

If you can log in with this user, and you can click on your profile name 
displayed in the top-right menu, and you're not logged out immediately 
after that, then it's not a user authentication problem, but a rights 
issue. Make sure the user is in the requested groups, and he does have 
the rights to view/edit documents.

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


Re: [xwiki-users] H2 support in xwiki 2.6

2010-11-24 Thread Nicolas Jouanin
Yes, thanks for the feedback, I also forgot to import the default XAR.

Also I had a problem with tomcat 6.0.29 : I couldn't login with this version. I 
got invalid credentials message and this message in the log :
2010-11-24 22:28:43,269 
[http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] WARN  
xwiki.MyPersistentLoginManager  - Login cookie validation hash mismatch! 
Cookies have been tampered with 

I moved my xwiki installation to tomcat 6.0.26 and it works fine. 
I've seen on google that issue XWIKI-2119 sound like this problem but it's an 
old issue. So you should have a look, maybe it's coming back with tomcat 6.0.29 
(see bug https://issues.apache.org/bugzilla/show_bug.cgi?id=49598).

Regards,


Le 24 nov. 2010 à 22:44, Sergiu Dumitriu a écrit :

> On 11/24/2010 10:16 PM, Nicolas Jouanin wrote:
>> Now it works, except that I cant' login. I use Admin/admin and I get invalid 
>> credentials error. I'll investigate.
> 
> This is normal, by default the database is empty, no user is 
> automatically created. You should have access to the administration 
> though, just import the default XE XAR.
> -- 
> 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


Re: [xwiki-users] H2 support in xwiki 2.6

2010-11-24 Thread Sergiu Dumitriu
On 11/24/2010 10:16 PM, Nicolas Jouanin wrote:
> Now it works, except that I cant' login. I use Admin/admin and I get invalid 
> credentials error. I'll investigate.

This is normal, by default the database is empty, no user is 
automatically created. You should have access to the administration 
though, just import the default XE XAR.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [Investigation] User Statuses

2010-11-24 Thread Sergiu Dumitriu
On 11/24/2010 04:12 PM, Fabio Mancinelli wrote:
> Hi Caty,
>
> a mail to share my vision about the User Status feature.
>
> The main idea is to have a mechanism for users to broadcast messages
> concerning their activities.
> The key use cases for this are:
>
> 1) Fast communication between enterprise members which can replace IMs
> and mails with user status
> 1.1) Communicate what you are working on

Obvious, +1.

> 1.2) Quick question answering and feedback gathering

You mean something like:

BigBoss says:
   How do we get through the crisis?
Jimmy says:
   @BigBoss reduce costs!
Mike says:
   @BigBoss sell more!

And:

Jimmy says:
   @Timmy where can I get a W80 form?
Timmy says:
   @Jimmy room 404

> 1.3) Interesting  material dissemination

You mean link sharing?

> 2) Focused discussions about a given topic

I'm not sure this is the best way to communicate. It might work if it 
behaves a bit like instant messaging, with updates being refreshed in 
real time. Also, for it to make sense as a discussion, it should be 
threaded. So this starts to look like Google Wave, which somehow failed. 
It might work in an intranet, but still it would diverge too much from a 
simple status update, and I'm not sure how it can be integrated nicely 
inside the current Activity UI (nor the implementation, but that's not 
critical).

> 3) Fast communication with external clients to keep them up-to-date

I'm not sure I get this. Isn't an *intra*net supposed to be internal, 
inaccessible to external parties?

Do you mean closed group messages, visible only in a given space?

> In order to realize these use cases we need something that resembles
> to Facebook's Wall or, if we look at more enterprise oriented
> products, to SalesForce chatter (http://www.salesforce.com/chatter)

This is getting too far from the initial ideas. It was supposed to be 
integrated in the recent activity, as little user messages mixed among 
wiki activity. Now it looks like the main goal is user communication, 
with wiki activity on the second place. Going the Chatter way would 
imply many changes in the ActivityStream implementation, the 
{{activity}} macro, and the Recent Activity UI.

I'm not saying we shouldn't try to go there, I'm only asking if we want 
to do it as the "User Statuses" sub-feature inside the Activity feature.

> In particular:
>
> 1) The feature should be implemented as an internal subsystem that
> takes advantage of the Wiki underlying model for exposing information

That's always the case.

> 1.1) User status can contain reference to Wiki entities (i.e., page,
> attachments, comments) and external links. As Jerome said in a
> previous email, this is key. An autocompletion mechanism could help
> making this feature more usable.

The full wiki syntax might be available, which includes links to 
documents/attachment. If we do that, then should the WYSIWYG be 
displayed as well?

> 1.2) I am not sure that we need to provide an upload mechanism to
> associate an artifact to a user status. Linking an attachment in a
> Wiki page is sufficient in my opinion.

+1 for links to existing data only. We could provide a "notify this" 
checkbox in the edit/upload UI.

> 2) It should be possible to define one or more "neighborhoods", i.e.,
> people that will receive our status updates

We could have activities for a space, and activities for a group. This 
means that in the group UI we could integrate a "say something" widget.

Another idea is a panel which allows you to specify where to post the 
update: global (default), current space, specific space (with suggest), 
group of users (with suggest), specific user (with suggest).

My fear is that the UI will be too complex, which increases the 
likelihood of users abandoning their update. If something takes too much 
to accomplish, or there are too many knobs to tinker with, then people 
will avoid that.

> 2.1) This is something that is more powerful wrt to what we have in
> Facebook because it would allow us to create different social-graphs
> that can be targeted when a user status is updated
>
> 3) It should be possible to comment on a status update (e.g., quick
> question answering and feedback gathering use case)

Is a simple "reply to this" enough?

> 4) The user status are not tweets... I think that the number of
> character should be limited to a reasonable high threshold (e.g.,
> 2048)

The current activity stream allows for 2000 characters (which usually is 
rounded to something more), so this should be OK.

> 5) User statuses should be visible only to the users belonging to the
> "neighborhood" targeted by the status

This can be done at the UI level, but it's going to be hard to protect 
it at the API level. We can do it if we change the activitystream plugin 
to expose more high level methods, like getEventsForCurrentSpace and 
getEventsForCurrentGroup, while keeping the generic methods protected 
(as they are now). I don't like this, since it introduces details about 
the hi

[xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action

2010-11-24 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
I've been searching the archive, but coming up short here.

I'm trying to get custom authentication going on XWiki Enterprise 2.6.

I've successfully implemented the XWikiAuthService by extending
XwikiAuthServiceImpl as suggested here :
http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-oracle-s
so/

I have also added the xwiki.authentication.authclass line to my xwiki.cfg.

I'm able to automatically create a new user in xwiki using the
XWiki.createEmptyUser method, and I get logged in.

However, when I get in as that user all I get is  "ErrorYou are not
allowed to view this document or perform this action."  No matter what I try
to look at, including the personal profile.

Can anyone tell me what I'm missing here?  

The XWiki documentation says that you "can" implement your own right
management service, but it doesn't say that is necessary.  Is it?

Thanks,

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


Re: [xwiki-users] H2 support in xwiki 2.6

2010-11-24 Thread Nicolas Jouanin
OK, my mistake, I copied/paste the hibernate properties shown on the webpage, 
but I forgot to add the three mapping files : 




Now it works, except that I cant' login. I use Admin/admin and I get invalid 
credentials error. I'll investigate.

Le 24 nov. 2010 à 15:52, Arnaud bourree a écrit :

> 2010/11/24 Nicolas Jouanin :
>> Hi,
>> 
>> As was wondering if H2 database was still supported as database from xwiki.
>> According to this page (
>> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationH2), this
>> should work but here is the exception I get whe using this configuration :
>> 
>> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error
>> number 3 in 0: Could not initialize main XWiki context
>> Wrapped Exception: Error number 3001 in 3: Cannot load class
>> com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
>> from param xwiki.store.migration.manager.class
>> Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
>> Wrapped Exception: Errors in named queries: getAllPublicDocuments,
>> listGroupsForUserInOtherWiki, getSpaceDocsName, listGroupsForUser,
>> getAllUsers, getAllDocuments, getAllSpaceDocuments, getSpaces
>>
>> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
>>
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
>>
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
>>
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
>>org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
>>
>> com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
>>
>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
>>
>> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
>>
>> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
>> 
>> 
>> I'm using h2-1.2.147.jar and here is wat I put in hibernate config file:
>>jdbc:h2:wiki
>>xwiki
>>xwiki
>>org.h2.Driver
>>org.hibernate.dialect.H2Dialect
>>> name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider
>>20
>> 
>> 
>> Can anyone help ?
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>> 
> 
> Did you add H2 jars in WEB-INF/lib ?
> 
> Arnaud.
> ___
> 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] component manager not initialized after install

2010-11-24 Thread Scott McMasters
Thanks, Marius, but it is registered in web.xml.  I'll check the logs for
when the application starts to see if there are any errors at that point.


On Thu, Nov 18, 2010 at 6:54 PM, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> Hi Scott,
>
> On 11/18/2010 01:50 PM, Scott McMasters wrote:
> > Any thoughts on this problem?
>
> It looks like XWikiServletContextListener (which is responsible for
> initialising the component manager) is not called. Do you have it in
> your web.xml?
>
> Hope this helps,
> Marius
>
> >
> > Thanks,
> >
> > Scott
> >
> >
> > On Tue, Nov 16, 2010 at 11:30 AM, Scott McMasters<
> scott.mcmast...@gmail.com
> >> wrote:
> >
> >> Hi, Jerome, this is the only stack trace I have in my system log:
> >>
> >> Exception thrown : javax.servlet.ServletException: Component manager has
> >> not been initialized before lookup for
> >> [org.xwiki.model.reference.DocumentReferenceResolver] for hint
> >> [currentmixed]
> >>  at
> >>
> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
> >>  at
> >>
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
> >>  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:743)
> >>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >>  at
> >>
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1143)
> >>  at
> >>
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1084)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
> >>  at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
> >>  at
> >>
> com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
> >>  at
> >>
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
> >>  at
> >>
> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
> >>  at
> >>
> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
> >>  at
> >>
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
> >>  at
> >>
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:587)
> >>  at
> >>
> com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:481)
> >>  at
> >> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3453)
> >>  at
> >> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
> >>  at
> >>
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)
> >>  at
> >>
> com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1466)
> >>  at
> >>
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:119)
> >>  at
> >>
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
> >>  at
> >>
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
> >>  at
> >>
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
> >>  at
> >>
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futur

Re: [xwiki-users] Share by email

2010-11-24 Thread Arnaud bourree
2010/11/24 Sergiu Dumitriu :
> On 11/24/2010 04:05 PM, Arnaud bourree wrote:
>> Hello,
>>
>> I want to used "Share by email" but I've the following error in log:
>> 2010-11-24 15:48:39,986
>> [http://localhost:8080/xwiki/bin/get/abourree/Weekly1046?xpage=shareinline]
>> ERROR mailsender.MailSenderPlugin     - sendEmailFromTemplate:
>> XWiki.SharePage vcontext: org.apache.velocity.velocitycont...@72d833
>> com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not
>> have permissions to send as this sender
>>
>> To solved it, I need to specify the from field.
>>
>> I update in XWiki.XWikiPreferences General Admin email to my own =>
>> without success.
>> Note that I able to send invitation with invitation application and
>> Email "from" address set to mine
>>
>> Regards,
>
> The email is sent as "no-reply@". You either have to
> configure the mail server to accept mails from that address, or change
> the shareinline.vm template to use a different address.
>
> In the future the used address should be configurable, either as the
> sender's email address configured in his profile, or as the current
> no-reply, or as the system email address configured in the wiki preferences.
>
> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>

Thanks, I've uncomment line fetching admin's email and comment noreply one

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


Re: [xwiki-users] Share by email

2010-11-24 Thread Sergiu Dumitriu
On 11/24/2010 04:05 PM, Arnaud bourree wrote:
> Hello,
>
> I want to used "Share by email" but I've the following error in log:
> 2010-11-24 15:48:39,986
> [http://localhost:8080/xwiki/bin/get/abourree/Weekly1046?xpage=shareinline]
> ERROR mailsender.MailSenderPlugin - sendEmailFromTemplate:
> XWiki.SharePage vcontext: org.apache.velocity.velocitycont...@72d833
> com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not
> have permissions to send as this sender
>
> To solved it, I need to specify the from field.
>
> I update in XWiki.XWikiPreferences General Admin email to my own =>
> without success.
> Note that I able to send invitation with invitation application and
> Email "from" address set to mine
>
> Regards,

The email is sent as "no-reply@". You either have to 
configure the mail server to accept mails from that address, or change 
the shareinline.vm template to use a different address.

In the future the used address should be configurable, either as the 
sender's email address configured in his profile, or as the current 
no-reply, or as the system email address configured in the wiki preferences.

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


Re: [xwiki-users] H2 support in xwiki 2.6

2010-11-24 Thread Nicolas Jouanin
Yes,
the file h2-1.2.147.jar is in webapps/xwiki/WEB-INF/lib.  (tomcat container)


2010/11/24 Arnaud bourree 

> 2010/11/24 Nicolas Jouanin :
> > Hi,
> >
> > As was wondering if H2 database was still supported as database from
> xwiki.
> > According to this page (
> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationH2),
> this
> > should work but here is the exception I get whe using this configuration
> :
> >
> > javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error
> > number 3 in 0: Could not initialize main XWiki context
> > Wrapped Exception: Error number 3001 in 3: Cannot load class
> > com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
> > from param xwiki.store.migration.manager.class
> > Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
> > Wrapped Exception: Errors in named queries: getAllPublicDocuments,
> > listGroupsForUserInOtherWiki, getSpaceDocsName, listGroupsForUser,
> > getAllUsers, getAllDocuments, getAllSpaceDocuments, getSpaces
> >
>  
> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
> >
>  
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
> >
>  org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
> >
>  org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
> >
>  org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
> >
>  
> com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
> >
>  com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
> >
>  
> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
> >
>  
> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
> >
> >
> > I'm using h2-1.2.147.jar and here is wat I put in hibernate config file:
> >jdbc:h2:wiki
> >xwiki
> >xwiki
> >org.h2.Driver
> >org.hibernate.dialect.H2Dialect
> > >
> name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider
> >20
> >
> >
> > Can anyone help ?
> > ___
> > users mailing list
> > users@xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
>
> Did you add H2 jars in WEB-INF/lib ?
>
> Arnaud.
> ___
> 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] [Investigation] User Statuses

2010-11-24 Thread Fabio Mancinelli
Hi Caty,

a mail to share my vision about the User Status feature.

The main idea is to have a mechanism for users to broadcast messages
concerning their activities.
The key use cases for this are:

1) Fast communication between enterprise members which can replace IMs
and mails with user status
1.1) Communicate what you are working on
1.2) Quick question answering and feedback gathering
1.3) Interesting  material dissemination

2) Focused discussions about a given topic

3) Fast communication with external clients to keep them up-to-date

In order to realize these use cases we need something that resembles
to Facebook's Wall or, if we look at more enterprise oriented
products, to SalesForce chatter (http://www.salesforce.com/chatter)

In particular:

1) The feature should be implemented as an internal subsystem that
takes advantage of the Wiki underlying model for exposing information
1.1) User status can contain reference to Wiki entities (i.e., page,
attachments, comments) and external links. As Jerome said in a
previous email, this is key. An autocompletion mechanism could help
making this feature more usable.
1.2) I am not sure that we need to provide an upload mechanism to
associate an artifact to a user status. Linking an attachment in a
Wiki page is sufficient in my opinion.

2) It should be possible to define one or more "neighborhoods", i.e.,
people that will receive our status updates
2.1) This is something that is more powerful wrt to what we have in
Facebook because it would allow us to create different social-graphs
that can be targeted when a user status is updated

3) It should be possible to comment on a status update (e.g., quick
question answering and feedback gathering use case)

4) The user status are not tweets... I think that the number of
character should be limited to a reasonable high threshold (e.g.,
2048)

5) User statuses should be visible only to the users belonging to the
"neighborhood" targeted by the status

6) User statuses could be displayed using an activity stream in the
user's profile page and also on the home activity stream
6.1) The user statuses should also appear in the Workspace home pages.
In this case they are configured to display the statuses of the
"neighborhood" implicitly defined by all the members of the workspace.

Feedback is welcome.

Thanks,
Fabio

On Mon, Nov 22, 2010 at 2:20 PM, Ecaterina Moraru (Valica)
 wrote:
> On Mon, Nov 22, 2010 at 15:19, Ecaterina Moraru (Valica)
> wrote:
>
>> Hi,
>>
>> There are some features that need to be investigated during the XE 2.7
>> timeframe in order to be able to integrate them in XE 3.0.
>> One of them is **User Statuses** and a main definition for it is: "On top
>> of activity 
>> stream,
>> create a User status & twitter integration feature"
>>
>> The question is what should we integrate and cover if we want to have user
>> statuses in XE.
>> In order to deploy mockups I need to have some clear requirements and uses
>> cases.
>> I create some pages on incubator that will gather this mail discussions at:
>> Requirements:
>> http://incubator.myxwiki.org/xwiki/bin/view/Improvements/UserStatusRequirements
>> Use Cases:
>> http://incubator.myxwiki.org/xwiki/bin/view/Improvements/UserStatusUseCases
>>
>> While discussing Activity Stream design we had some design scraps for the
>> status casting part
>> http://incubator.myxwiki.org/xwiki/bin/view/Improvements/UserStatusScrap
>>
>> Please share your vision.
>>
>>
> Hi,
>
> Some questions I have:
> - is it worth it to make our own status casting or can we use directly the
> Twitter API?
>    -- do we plan to integrate other services beside Twitter in the future?
>    -- if we have our own service, do we plan to display Twitter logo to
> identify Twitter entries?
> - what are the actions other users can make on a user status?
>    -- They can comment/respond to it? right away or in the status page?
>    -- Can they like it?
>    -- Can they attach something to it?
> - what actions should the casting box have?
>    -- The user can enter just characters?
>    -- How many chars?
>    -- Can he upload a file?
> - what is the visibility of user statuses?
>    -- are they available for anyone with view/edit right?
> - what is the location where we display the status?
>    -- Home Activity Stream?
>    -- User Profile?
>    -- special gadget/macro?
>    -- future: his vcard?
> http://incubator.myxwiki.org/xwiki/bin/download/Improvements/AvatarsProposal/vcard.png
>
> Thanks,
> Caty
> ___
> 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] Share by email

2010-11-24 Thread Arnaud bourree
Hello,

I want to used "Share by email" but I've the following error in log:
2010-11-24 15:48:39,986
[http://localhost:8080/xwiki/bin/get/abourree/Weekly1046?xpage=shareinline]
ERROR mailsender.MailSenderPlugin - sendEmailFromTemplate:
XWiki.SharePage vcontext: org.apache.velocity.velocitycont...@72d833
com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not
have permissions to send as this sender

To solved it, I need to specify the from field.

I update in XWiki.XWikiPreferences General Admin email to my own =>
without success.
Note that I able to send invitation with invitation application and
Email "from" address set to mine

Regards,

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


Re: [xwiki-users] H2 support in xwiki 2.6

2010-11-24 Thread Arnaud bourree
2010/11/24 Nicolas Jouanin :
> Hi,
>
> As was wondering if H2 database was still supported as database from xwiki.
> According to this page (
> http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationH2), this
> should work but here is the exception I get whe using this configuration :
>
> javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error
> number 3 in 0: Could not initialize main XWiki context
> Wrapped Exception: Error number 3001 in 3: Cannot load class
> com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
> from param xwiki.store.migration.manager.class
> Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
> Wrapped Exception: Errors in named queries: getAllPublicDocuments,
> listGroupsForUserInOtherWiki, getSpaceDocsName, listGroupsForUser,
> getAllUsers, getAllDocuments, getAllSpaceDocuments, getSpaces
>        
> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
>        
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
>        
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
>        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
>        org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)
>        
> com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
>        
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
>        
> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:218)
>        
> org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
>
>
> I'm using h2-1.2.147.jar and here is wat I put in hibernate config file:
>    jdbc:h2:wiki
>    xwiki
>    xwiki
>    org.h2.Driver
>    org.hibernate.dialect.H2Dialect
>     name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider
>    20
>
>
> Can anyone help ?
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>

Did you add H2 jars in WEB-INF/lib ?

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


[xwiki-users] H2 support in xwiki 2.6

2010-11-24 Thread Nicolas Jouanin
Hi,

As was wondering if H2 database was still supported as database from xwiki.
According to this page (
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationH2), this
should work but here is the exception I get whe using this configuration :

javax.servlet.ServletException: com.xpn.xwiki.XWikiException: Error
number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load class
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager
from param xwiki.store.migration.manager.class
Wrapped Exception: Error number 0 in 3: Exception while hibernate execute
Wrapped Exception: Errors in named queries: getAllPublicDocuments,
listGroupsForUserInOtherWiki, getSpaceDocsName, listGroupsForUser,
getAllUsers, getAllDocuments, getAllSpaceDocuments, getSpaces

org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)

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

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:129)

com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)

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

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

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


I'm using h2-1.2.147.jar and here is wat I put in hibernate config file:
jdbc:h2:wiki
xwiki
xwiki
org.h2.Driver
org.hibernate.dialect.H2Dialect
com.xpn.xwiki.store.DBCPConnectionProvider
20


Can anyone help ?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki Class and Javascript

2010-11-24 Thread Sergiu Dumitriu
On 11/24/2010 02:59 PM, Pidoux75 wrote:
> I use this code in the second Class Sheet, all is ok in 'view' mode but
> problem come when I go in 'inline' mode. I get problem with result from
> $obj.get(objectname) apparently.

$obj.get('propname') is equivalent to $doc.display('propname', $obj) 
which changes the display mode according to the current mode: view, edit.

Use $obj.getProperty('propname').getValue() instead.

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


[xwiki-users] XWiki Class and Javascript

2010-11-24 Thread Pidoux75

Hello,

I've a problem to integrate and use Javascript in XWiki when I use Class and
Sheet, in 'inline' mode.

I've a second class, called IGCountriesClass, with 2 properties: a static
list called countryzone (contains "EU|AP|LA|NA|WW" for Europe, Asian
Pacific, North America, Latina America and WorldWide) and a string property
called countryname for the country name.

This Class is used to create some documents with format EU/France,
EU/Espagne, EU/Italie, LA/Brasil, etc... to add more countries if needed.

I've also another Class with 2 lists properties (called intergeozone and
intergeocountry), first is static with "EU|AP|LA|NA|WW" like countryzone
from first Class. The second list is a database list property which is
filled with hibernate query "select doc.name, doc.title from
com.xpn.xwiki.doc.XWikiDocument as doc where doc.web = 'EtudeIGCountries'
and doc.name != 'WebHome' order by doc.name"

Well, my problem, I need to control the filling of the second list with
countries belonging to the selected zone in the first list. It's really so
easy to do this with using javascript in normal web use, easy to with xwiki
in 'view' mode but I've a problem to do it with javascript when I go to
'inline' mode.

I use this code in the second Class Sheet, all is ok in 'view' mode but
problem come when I go in 'inline' mode. I get problem with result from
$obj.get(objectname) apparently.

Could someone help me, please? :)

[code]

{{html}}


function initZone()
{
  var selObj = document.getElementById('countriesSelect');
  selObj.options[0] = new Option('---','');
  selObj.selectedIndex = 0;
}

function changeListe()
{
  choix = document.getElementById("zonesList").value
  populateCountries(choix)
}

function populateCountries(newzone)
{
  var countObj = 0;
  var selObj = document.getElementById('countriesSelect');

  for (var i = 0; i < selObj.options.length; i++)
  {
selObj.options[i] = null;
  }
  selObj.options.length=null;
  selObj.options[countObj++] = new Option('---','');
  selObj.selectedIndex = 0;

#set ($filespace = "EtudeIGCountries")
#set ($recherche = $xwiki.searchDocuments("where doc.name != 'WebHome' and
doc.space = ? order by doc.name asc",[${filespace}]))
#foreach($entry in $sorttool.sort($recherche))
  #set ($tempdoc = "${entry}")
  #set ($doctemp = $xwiki.getDocument($tempdoc))
  #set ($obj = $doctemp.getObject('EtudeCode.EtudeIGCountriesClass'))
  #set ($entryDoc = $xwiki.getDocument($entry))
  #if($entryDoc.getObject('EtudeCode.EtudeIGCountriesClass'))
if ((newzone == "${obj.get('countryzone')}") || (newzone == "WW"))
{
  selObj.options[countObj++] = new Option("${obj.get('countryname')}",
"${obj.get('countryname')}");
}
  #end
#end
}



#foreach($listitem in $list)
##   * value: $listitem displayed value: $map.get($listitem).getValue()
  #if ($map.get($listitem).getValue() == "NA")
$map.get($listitem).getValue()
  #else
$map.get($listitem).getValue()
  #end
#end





{{/html}}


[/code]


-- 
View this message in context: 
http://xwiki.475771.n2.nabble.com/XWiki-Class-and-Javascript-tp5770427p5770427.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