Hi,
How can i list the document names with ascending order in date wise.
I used the following code to list the current document in the space.
I need to list those page in ASC/DESC order.
*#foreach($subdoc in $xwiki.getSpaceDocsName("$doc.web"))
- [${doc.web}.${subdoc}]
#end*
--
Prathap
Hi Jerome,
Thanks for quick reply and valuable input . Infect from last 20 days , I
am doing R&D on wiki, which are having free source code. During these
only, I came to know about xWiki workspace product. Definitely you have
relevant question, what I want?
I am developing one product. That product also having requirement of
workspace, where user can work.
My Requirement : Individual user is already logged in that my product
Profile.jsp page and now end user clicks the "wiki widget" at this page.
User should directly go to user page , where he can work with workspace.
It should be done without authenticating the user. Since we have already
done the authentication at boot level. We are using Ubentu.
Only due to this, I required source code and I want to understand that
how it is written. How session is maintained in "xWiki Workspace"? So I
have lot of question in my mind.
I hope , you all will guide me for doing this configuration with my
product. Please let me know if you have question about my requirement.
Since till date I am only studing the documents about xWiki. Now started
planning for configuring it with my product. Defnitely I hope your
guidence.
Regards & Thanks
Md Afzal Sharif
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Dear devs,
I would like to release XWiki Workspaces 1.1 Release Candidate 1 thursday
31, with the folling bugs fixed since 1.1M2 : http://tinyurl.com/6dscgf
Here is my +1
Thanks,
Jérôme.
Hi,
In the new rendering right now when a user type a new line the XHTML
renders a new line.
For example:
"
Welcome to your [[second generation wiki>http://www.xwiki.org/]]!
It is an online, shared workspace that will allow you to collaborate
effectively with others. You can use it for many purposes:
"
This renders on 2 lines. Previously it was rendering on one line, i.e.
new lines were ignored.
Personally I think I prefer to render on 2 lines and not have users
type \\ for forcing a new line.
WDYT?
Thanks
-Vincent
It would be nice if there was a way of using Apache Basic Authentication
API, alongside w/ mod_ssl <http://www.modssl.org/>,
as a concrete way of implementing "single sign on" across multiple
applications fronted by Apache HTTPD. This would allow
Xwiki to coexist better alongside other existing web-apps or existing
websites; in the future, such flexibility would ease transition into more
extensive use of Xwiki infrastructure, while coexisting with existing
implementations based on the predominant webserver.
This architecture further allows a simple partitioning of "static" and
"dynamic/java" content across servers and services, as well as the ability
to share logins across multiple web-apps (not all necessarily java)
integrated under one portal or website. The static/dynamic partitioning is
especially worthwhile for large content, say digital media, or software
distributions, where lots of long-running downloads translates to lots of
java memory churn and resulting bad performance...
An example of interoperability between apache-basic auth and Java:
Crowd<http://confluence.atlassian.com/display/CROWD/Crowd+Documentation>has
an apache basic authentication module:
http://confluence.atlassian.com/display/CROWDEXT/Apache+Basic+Authenticatio…
allows the same logins used for "JIRA, Confluence and Bamboo" to also work
as a basic gating mechanism for the web-server fronting java. This
particular usage of the apache basic authentication API permits non-Java
webapps, or
static files, to be "gated" by the same credentials used for
jira/confluence/bamboo.
The reason why I mention mod_ssl is because if you want to do real security,
or not be transmitting credentials in-the clear, you'll need it. A proper
security solution that is now becoming quite practical (and free) is the
use of X509 client certificates, for example, see
https://www.myopenid.com. Alongside mod_ssl's FakeBasicAuth (
http://www.modssl.org/docs/2.8/ssl_reference.html#SSLOptions ) this uses the
API of apache basic authentication, using credentials coming directly from
the certificate (usually the full-email address, which is part of the client
certificate data that is "signed").
When this option is enabled, the Subject Distinguished Name (DN) of the
Client X509 Certificate is translated into a HTTP Basic Authorization
username. This means that the standard Apache authentication methods can be
used for access control. The user name is just the Subject of the Client's
X509 Certificate (can be determined by running OpenSSL's openssl
x509command: openssl
x509 -noout -subject -in *certificate*.crt). Note that no password is
obtained from the user. Every entry in the user file needs this password: ``
xxj31ZMTZzkVA'', which is the DES-encrypted version of the word `password''.
Those who live under MD5-based encryption (for instance under FreeBSD or
BSD/OS, etc.) should use the following MD5 hash of the same word: ``
$1$OXLyS...$Owx8s2/m9/gfkcRVXzgoE/''.
If there was an "Apache basic auth" gateway into Xwiki, then Xwiki could
also easily use such a solution to obtain the login credentials from the
certificate, or simply use existing Apache-Basic-Auth credentials for
consistency and single-sign-on in a "portal." The reason why this is
important is that some fortune-500 companies won't allow external access to
their data (extranet portal scenario) w/o the security guarantees available
in x509 client-certificates. In particular, corporate security likes the
ability to be able to instantly revoke or invalidate certificates that pose
a security threat, and "two-factor" access: something you have -- the x509
cert, and something you know -- your password.
I elaborate along the lines of this solution here:
http://n2.nabble.com/Using-Apache-BasicAuth-or-mod_ssl%27s-%22FakeBasicAuth…http://dev.xwiki.org/xwiki/bin/view/GoogleSummerOfCode/SingleSignOnAuthenti…
PS: another apache/java trick that is very useful -- using
mod_auth_mda<http://www.frogdot.org/mod_auth_mda/>for passing
time-limited temporary "fine-grained" access control credentials
(in the form of a specially signed cryptographic cookie) from Java to
apache. In other words, one might login to an Xwiki-based system; within an
Xwiki "app" one would construct a specially formatted cryptographic
cookie<http://www.frogdot.org/mod_auth_mda/cookie.html>.
That cookie would permit temporary access to a particular
file/directory/application hosted on the apache webserver (e.g. a static
file that you only want accessbile to logged-in people). Without the cookie,
or if the cookie expires, a user cannot access directories files or
applications specificallly protected by mod_auth_mda. The following
flowchart illustrates the process:
-- <http://www.frogdot.org/logintools/pab/scheme1.gif>
--
Niels
http://nielsmayer.com
Dear Wincent,
Thank for your respose. Can u little clarify me ,why i dont need to build
up xwiki from source?..
I go with your advice.But can u little help me out in explaming where
should i get the database java files which require for user authentication
at the time of login.(means verifying user from the database).
I am asking this because i have technical manpower with me who has
knowledge of Maven n all. but the difficulty is i am not getting the way
,the user and admin authentication checking is goin on.
I read at your dev.xwiki.org.. about custom authentication that you need to
make changes only in conf file.
But our specific requirement to bypass this authentication ,as we already
have our database for user authentication. rest all your wiki will work as
it is.
Hope you understand my requirement.Because we are team,so my taskk is to
rectify the files and area need to change in Your xwiki in order to make
your wiki up to our requirement.
Thanks & regards,
Deepak Sharma
Assistant Software Engineer-T
Tata Consultancy Services
Cell:- 9911502444
Mailto: deepak24.s(a)tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Hi,
I need source code of recent stable version of "xWiki workspace". I want
to build this product from source at my system. For this, I also want to
know, what are the other required ("xwiki workspace" dependencies for
building it) software (exernal dependencies for building xWiki ), I
have eclipse 3.2.0 , SVN , Maven configured on my system
Please specify the svn link for downloading them.
Md Afzal Sharif
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Here i am defining the whole scnerio;
Task i have done;
1.maven is configured.
2.subeclipse plugin installed.
3.respositry is downloaded.
4. after this i tried command maven -clear....which start downloading alot
of files from maven.xwiki respository.
----but error came defining some artifacts are not found in any respository
---then i tried the maven -install on xwiki plateform specifically..its
also start downloading alot of .jar files...
Now my question is is the respository we copy from SVN version is not
complete enough ,though on calling maven -install ,it starts dowmloading of
more files..
and whr i should these newly downloaded files..it make me stuck at one
point.
please help me out .....
thanks and regards,
Deepak Sharma
Assistant Software Engineer-T
Tata Consultancy Services
Cell:- 9911502444
Mailto: deepak24.s(a)tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Hi
thnx for the suggestion. but for ur kind information i gone through this
link so many times.
i have short time to build this xwiki workspaces, thats why i am requesting
the steps.
As there is alot of pom.xml files are there..which i need to rectify the
dependencies.But due to short time ..i m seeking for help regarding
building.
Deepak Sharma
Assistant Software Engineer-T
Tata Consultancy Services
Cell:- 9911502444
Mailto: deepak24.s(a)tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Hi ALl,
Can anyone send me the step by step preocess of building xwiki from
sources.
then i need to import xwiki workspaces.
Please help me out in regarding this.
Deepak Sharma
Assistant Software Engineer-T
Tata Consultancy Services
Cell:- 9911502444
Mailto: deepak24.s(a)tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Hi devs,
For testing the new rendering and the new 2.0 syntax I'm going to
create a branch of XE wiki/ module. The idea is to migrate the pages
to the 2.0 syntax and use the resulting XAR to slowly make the new
rendering work fine on all pages of XE.
This is just a FYI, unless someone has an issue with this.
Thanks
-Vincent
Hi All,
Consider a PUT request on following resource:
http://<host>/xwiki-webdav/root/spaces/Main/WebHome/spacename.pagename
How can we determine whether "spacename.pagename" is a child page of
Main.WebHome or at attachment of Main.WebHome ?
This is not the only place this problem occurs. I'm working on a workaround
for this problem but i would like to have a better mechanism if it's
possible.
Note :- searching existing documents / attachments won't help because this
is a request to create a new resource.
Thanks.
- Asiri
Hi,
I'm currently implementing the last things to finish OpenID authentication
support but I have some problems with the query manager. I'm trying to get
the document (should be only one) which an attached OpenIdIdentifier object
whose "identifier" string property's value has some specific value. I didn't
found any documentation apart http://markmail.org/message/jt6m2huqr4r6hvk6
and
http://dev.xwiki.org/xwiki/bin/view/Design/XWiki+Query+Language+Specificati….
I tried to achieve this by the following code:
public static String findOpenIDUser(String openid_identifier,
XWikiContext context) throws XWikiException
{
XWiki xwiki = context.getWiki();
QueryManager qm = xwiki.getStore().getQueryManager();
Query search_user;
if (qm.hasLanguage(Query.HQL)) {
search_user =
qm.createQuery(", BaseObject as obj, StringProperty as prop
where doc.fullName = obj.name and obj.className = 'XWiki.OpenIdIdentifier'
and obj.id=prop.id.id and prop.id.name='identifier' and prop.value =
':identifier'", Query.HQL);
} else if (qm.hasLanguage(Query.XPATH)) {
search_user =
qm.createQuery("/*/*[obj/XWiki/OpenIdIdentifier/@xp:identifier =
':identifier'] ", Query.XPATH);
} else
throw new RuntimeException();
search_user.bindValue("identifier", openid_identifier);
List<XWikiDocument> found_users = search_user.setLimit(1).execute();
if (found_users.size() > 0) {
if (log.isDebugEnabled()) {
log.debug("OpenID " + openid_identifier + " already
registered.");
}
return found_users.get(0).getFullName();
}
return null;
}
but all I get is a NullPointerException when qm.createQuery(..., Query.HQL)
is called. What's wrong with my code?
java.lang.NullPointerException
at
com.xpn.xwiki.store.query.AbstractQueryManager.createQuery(AbstractQueryManager.java:73)
at
com.xpn.xwiki.user.impl.openid.OpenIDHelper.findOpenIDUser(OpenIDHelper.java:109)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:201)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:178)
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:205)
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3518)
at
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:139)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3526)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4432)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:190)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:287)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Hi,
The new svn authentication module is up and running, so
sandbox committers can now commit again.
Best regards,
--
Raffaello Pelagalli
XWiki.org - XWiki.com
Hi all,
I have more specific information to know...
1. What is the process in xwiki workspaces to access database for user
authentication?...i mean Api's or what.
2. how do we access the database directly for manual user authentication?
Please provide me the detailsed solution
thanks,
Deepak Sharma
Assistant Software Engineer-T
Tata Consultancy Services
Cell:- 9911502444
Mailto: deepak24.s(a)tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Hi
I want to use "xWiki workspace 1.0 " . I need the URL for downloading
"xWiki workspaces" source code, so that I can use its source code in my
application. I have SVN and Maven configured to Eclipse 3.2.0.
Please help me.
Thanks & Regards,
Md Afzal Sharif
Gurgaon,Haryana
India
Mailto: afzal.sharif(a)tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Hi Devs,
Currently I have my pom file as bellow,
<....>
.....
<dependency>
<groupId>com.xpn.xwiki.platform</groupId>
<artifactId>*xwiki-core*</artifactId>
<version>*1.5-milestone-2*</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>*xwiki-core-plexus*</artifactId>
<version>*1.5-SNAPSHOT*</version>
</dependency>
.....
</...>
And everything is working fine :)
But when i upgraded the pom file to use 1.6-SNAPSHOT versions of above
dependencies as bellow,
<....>
.....
<dependency>
<groupId>com.xpn.xwiki.platform</groupId>
<artifactId>*xwiki-core*</artifactId>
<version>*1.6-SNAPSHOT*</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>*xwiki-core-plexus*</artifactId>
<version>*1.6-SNAPSHOT*</version>
</dependency>
.....
</...>
I get the follwing exception when trying to access the xwiki-webdav servlet,
<dump>
[INFO] Started Jetty Server
java.lang.NullPointerException
at
org.xwiki.context.DefaultExecution.getContext(DefaultExecution.java:50)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.initialize(XWikiHibernateBaseStore.java:90)
at
org.xwiki.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:37)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:128)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:142)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:132)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:90)
at
org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponentLookupManager.java:147)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:277)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.PlexusContainerLocator.lookup(PlexusContainerLocator.java:51)
at
org.xwiki.plexus.manager.PlexusComponentManager.lookup(PlexusComponentManager.java:56)
at com.xpn.xwiki.web.Utils.getComponent(Utils.java:548)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:668)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:650)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:310)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:381)
at
com.xpn.xwiki.plugin.webdav.utils.XWikiDavParams.initXWikiContext(XWikiDavParams.java:99)
at
com.xpn.xwiki.plugin.webdav.utils.XWikiDavParams.<init>(XWikiDavParams.java:62)
at
com.xpn.xwiki.plugin.webdav.utils.XWikiResourceFactory.createResource(XWikiResourceFactory.java:97)
at
com.xpn.xwiki.plugin.webdav.utils.XWikiResourceFactory.createResource(XWikiResourceFactory.java:66)
at
com.xpn.xwiki.plugin.webdav.XWikiDavServlet.service(XWikiDavServlet.java:357)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:219)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:738)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:113)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:325)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:873)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:391)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
</dump>
Bellow is the way i initialize the xwiki context,
<code>
private void initXWikiContext(DavServletRequest drequest, DavServletResponse
dresponse, ServletContext servletContext) throws XWikiException
{
if (this.xwikiEngine == null) {
xwikiEngine = new XWikiServletContext(servletContext);
}
xwikiRequest = (this.xwikiRequest != null) ? this.xwikiRequest :
new XWikiServletRequest(drequest);
xwikiResponse = (this.xwikiResponse != null) ? this.xwikiResponse :
new XWikiXMLRPCResponse(dresponse);
xwikiContext = Utils.prepareContext("", xwikiRequest, xwikiResponse,
xwikiEngine);
xwikiContext.setMode(XWikiContext.MODE_GWT);
xwikiContext.setDatabase("xwiki");
* XWiki xwiki = XWiki.getXWiki(xwikiContext);
* ...............
}*
*</code>
The line "*XWiki xwiki = XWiki.getXWiki(xwikiContext);*" is where the
exception gets thrown.
Can any of you please help me fix this ? It would be a big help :)
Thanks a lot.
- Asiri
On Jul 29, 2008, at 4:43 PM, amelentev (SVN) wrote:
> Author: amelentev
> Date: 2008-07-29 16:43:19 +0200 (Tue, 29 Jul 2008)
> New Revision: 11544
>
> Modified:
> platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/test/
> AbstractBridgedXWikiComponentTestCase.java
> Log:
> [misc] make Abstract class abstract (to fix the tests)
> fix Id svn:keyword
Thanks Artem for the catch! :)
-Vincent
PS: I committed this class by error... I wanted to wait till I had
finished the shared test refactoring before committing it. Almost done
now.
> Modified: platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/
> test/AbstractBridgedXWikiComponentTestCase.java
> ===================================================================
> --- platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/test/
> AbstractBridgedXWikiComponentTestCase.java 2008-07-29 14:23:51 UTC
> (rev 11543)
> +++ platform/core/trunk/xwiki-core/src/test/java/com/xpn/xwiki/test/
> AbstractBridgedXWikiComponentTestCase.java 2008-07-29 14:43:19 UTC
> (rev 11544)
> @@ -30,10 +30,10 @@
> * the new Execution Context and the old XWikiContext. This allows
> code that uses XWikiContext to be
> * tested using this Test Case class.
> *
> - * @version $Id: $
> + * @version $Id$
> * @since 1.6M1
> */
> -public class AbstractBridgedXWikiComponentTestCase extends
> AbstractXWikiComponentTestCase
> +public abstract class AbstractBridgedXWikiComponentTestCase extends
> AbstractXWikiComponentTestCase
> {
> private XWikiContext context;
>
>
>
> Property changes on: platform/core/trunk/xwiki-core/src/test/java/
> com/xpn/xwiki/test/AbstractBridgedXWikiComponentTestCase.java
> ___________________________________________________________________
> Name: svn:keywords
> + Id
Hi Guillaume Lerouge,
"Guillaume Lerouge" <guillaume(a)xwiki.com>.....
Thnx for your reply here i am giving you the details about my specific
requirement:
1. We are trying to build a collaborative appliance which includes widgets.
2. This CA(collaborative appliance) is connected to users through
server(you take it as tomcat server).
3.The user will login at this CA n get the page which includes all
widgets(including Xwiki widget) specially xwiki workspaces.
4.So our specific requirement is to bypass the user login and admin login
which usualy are the steps at the Xwiki because users already logged IN.
5.So we want at this the user click on xwiki icon and will get the desired
space page.
Thats all dear,so my specific problem is ;
1. I am not getting the files which i need to change.
Idea:
1.need to bypass the database checking which default done at xwiki .
2.also need to change the Admin api so that i can handle the admin
authentication at my server side.
I hope this much information gives u little idea of what i trying to do.
Please giv me valuable solution about the structure.
Pre-condition;
1. I have your source code resporitry with me.
2. maven and all that steps i have already done.
Please look at my another mail inwhich i mention the error i got when i try
to build project wsing maven.
thanks and Regards,
Deepak Sharma
Assistant Software Engineer-T
Tata Consultancy Services
Cell:- 9911502444
Mailto: deepak24.s(a)tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Hi,
The svn link:https://svn.xwiki.org/svnroot/xwiki/trunks
maven version: 2.x
directory; xwiki plateform-core
maven command from eclipse; maven install
I am trying to change the way as xwiki works according to my usage
requirement.
Requirement:
1. i dont want login from users and admin at first deploy.
2. Reason: my application is running on server where i have already
authenticated my all users.
please reply me with valuable suggestion. Rest you can find more posts of
mine in this context
Regards,
Deepak Sharma
Assistant Software Engineer-T
Tata Consultancy Services
Cell:- 9911502444
Mailto: deepak24.s(a)tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Hello Arpit and everyone,
I've looked over your presentation prototype implementation. I works good,
however the risk with such an implementation is that it is a new
javascript WYSIWYG, potentially hard to maintain. For the second period of
the SoC, focus should be, according to me, on the implementation of
presentation management (slides creation, ordering, transitions, etc.) and
its integration within XWiki. This implementation should be very
independent of the underlaying slide prototype, so that it's possible for
us to plug for example our new GWT editor. I propose you first implement
this part of the application using the work you have done in the first
part as slide implementation, but keeping in mind it should be easily
switchable.
My idea of the integration with XWiki is the following : slides HTML
content should be stored as wiki content, on the basis of one wiki
document per slide. To manage slide ordering in a presentation, I propose
you also have a wiki document for the presentation itself, which contains
N XWiki slides objects (of class XWiki.Slide for example), in which you
can store order and links to actual slides wiki pages. This presentation
document should also contain a presentation object (for example
XWiki.Presentation), with metadata regarding the presentation : title,
author, date, etc. This part of the program is very XWiki related, so
don't hesitate to ask many questions as you need on this list ;)
Here is the calendar I propose you :
* until August 1st : Presentation management (creating slides, saving
slides, deleting slides, moving slides) inside XWiki
* August 1st/ August 8th : Integration with Slidy (running presentations)
* August 8th/August 18th : Documentation, tests, debugging.
Further possible steps:
* Changing slide implementation (with new GWT WYSIWYG for example)
* Integration as a XWiki Workspaces application
WDYT ?
Regards,
Jerome
Hi,
When i am trying to buils the svnroot resporitry ,i am getting this error
from maven.
------------------------------------------------------------------------------[ERROR]
Maven encountered an error while trying to resolve an the direct
dependencies for a build extension used in your project.
Project:
Group-Id: com.xpn.xwiki.platform
Artifact-Id: xwiki-externals
Version: UNVERSIONED
Type: pom
Scope: null
Extension:
Group-Id: com.xpn.xwiki.platform.tools
Artifact-Id: xwiki-xar-handlers
Version: 1.9-SNAPSHOT
Type: jar
Scope: null
Failed Artifact:
Group-Id: com.xpn.xwiki.platform.tools
Artifact-Id: xwiki-xar-handlers
Version: 1.9-SNAPSHOT
Type: jar
Scope: null
Error message: Unable to read the metadata file for artifact
'com.xpn.xwiki.platform.tools:xwiki-xar-handlers:jar': POM
'com.xpn.xwiki.platform.tools:xwiki-xar-handlers' not found in repository:
Unable to download the artifact from any repository
com.xpn.xwiki.platform.tools:xwiki-xar-handlers:pom:1.9-SNAPSHOT
from the specified remote repositories:
xwiki-externals (http://maven.xwiki.org/externals),
xwiki-snapshots (http://maven.xwiki.org/snapshots),
central (http://repo1.maven.org/maven2),
xwiki-releases (http://maven.xwiki.org/releases)
for project com.xpn.xwiki.platform.tools:xwiki-xar-handlers
Root error message: Unable to download the artifact from any repository
------------------------------------------------------------------------------
Please help me out regarding.
Thanks & Regards,
Deepak Sharma
Assistant Software Engineer-T
Tata Consultancy Services
Cell:- 9911502444
Mailto: deepak24.s(a)tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you