Hello,
our XWiki installation isn't running anymore. After restarting Tomcat, there
is always the stacktrace below. No change to content has been made, afaik.
Any help is most welcome. The XWiki version is 5.2.1 according to the
"version.properties" file.
Matthias
--
View this message in context: http://xwiki.475771.n2.nabble.com/General-XWiki-Exception-after-Tomcat-Star…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Dear all,
I'm new to the list and I would like to enter this community with a
little contribution from my side to thank you all for the very nice wiki
platform XWiki is. We are using it for some weeks by now and we are
finding it very nice and useful.
To install and configure XWiki for a project, I developed this Ansible
playbook:
https://github.com/rastandy/xwiki-ansible-playbook
I'm happily sharing it with you, hoping someone could find it useful.
Thank you and happy wiking,
Andrea.
--
Andrea Russo, Junior Research Associate
Fondazione CMCC
Centro Euro Mediterraneo sui Cambiamenti Climatici (http://www.cmcc.it)
Address: via Augusto Imperatore, 16 - 73100 Lecce
Phone: +39 0832 671064 - Fax: 0039 0832 671064
Dear,
I'm looking in a way to display a Masonry style page in XWiki for blog or
application.
The masonry style (often called "grid") is something like this :
http://mariustheme.tumblr.com/
// Why ?
In termes of ergonomics it show it full potential when images speak better
than text. This is why Google images and Pinterest use it.
Typical applications for XWiki could be :
- Physicial products database : the image help finding the product quicly
when not sure of the name.
- Designs database : not just an image, a design goes with some description
and data so it is usefull to link to a page.
- Physicial defects database : in industry, to quicly caracterise a defect
that appears visually on a part.
- ...
My need is for a nice looking collaborative product designs database.
This database would be one app in a Wiki that has other uses.
// The question :
What would be a simple way to make it in XWiki with a minimum coding ?
// My current search state and ideas :
I already searched the plugin database and couldn't find someting already
build. But I could have missed something.
Then, I thinked in making an app with App Within Minuts and modifing
LiveTable.
First step would be to edit the code to display only the first attachement
as a bigguer image.
It could be a quick fix waiting for the second step, more complex, to
display the LiveTable as a masonry view. There is already existing code
that could be adapted. However this would be at the limit of my few
programming skills and then taking a lot of time.
Also I'm not sure if LiveTable can be modified on the context of one
application only (not modifiing the others applications).
- If yes, would it still be possible to use Apps Within Minutes to modify
other parts of the app, not reversing the handmade code modifications ?
- If not I gess this mean I need a more complex plugin to add a "massonery
view" option to LiveTable and another option to Apps Within Minuts to
display it by default ?
This is only a XWiki beginner ideas so maybe someone has an idea of a
simpler way to do it ?
Regards
--
Thibaut DEVERAUX
+33 (0)6 75 51 20 80
Hello, I'm writing a macro extension in groovy. I need to use services
rendiring.parse () and i get an exception every time I try to use it. Can
anyone give a good example as to how to use it in a groovy script ? Thanks!
Dan.
--
View this message in context: http://xwiki.475771.n2.nabble.com/Can-t-make-a-groovy-macro-work-tp7599001.…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I wanted to assess how difficult it might be to disable all javascript
execution in HTML macros on XWiki. My main concern would be to avoid
breaking any important XWiki pages that utilize javascript within the HTML
macro (as referenced here:
http://lists.xwiki.org/pipermail/users/2009-June/012226.html). Is there any
XWiki functionality that is still dependent on executing javascript via
{{html}}?
I also noticed in the comments on this JIRA issue
(https://jira.xwiki.org/browse/XRENDERING-27?jql=text%20~%20%22html%20macro%…),
Vincent Massol mentioned that wiki macros 2.0 will be designed in such a way
that we can override the HTML macro and filter out javascript usages. I was
wondering if this was still the best solution to disabling future javscript
usage within {{html}}. Thank you!
--
View this message in context: http://xwiki.475771.n2.nabble.com/Disabling-javascript-in-HTML-macro-tp7599…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
You can use the new version of Apache's HTTP library, as follows, hope
it'll help you.
public class RestTest {
/**
* Create and initialize the http client.
*
* @return an HttpClient object
*/
HttpClient getClient(host, port, username, password) {
HttpClient httpClient = new HttpClient();
httpClient.getParams().setAuthenticationPreemptive(true);
httpClient.getState().setCredentials(
new AuthScope(host, port, AuthScope.ANY_REALM),
new UsernamePasswordCredentials(username, password)
);
return httpClient;
}
public static void main(String[] args) throws IOException {
// Get request example
HttpClient httpClient = getClient(yourHost, yourPort, yourUsername,
yourPassword);
GetMethod getMethod = new GetMethod(getURL);
getMethod.addRequestHeader("Accept", "application/json");
getMethod.setDoAuthentication( true );
String getURL = "your get url";
try {
int status = httpClient.executeMethod(getMethod);
System.out.println(getMethod.getResponseBodyAsString());
} catch (Exception e) {
//...
} finally {
// release any connection resources used by the method
getMethod.releaseConnection();
}
// Put request example
String putURL = "your put url";
PutMethod putMethod = new PutMethod(putURL);
putMethod.addRequestHeader("Accept", "application/json");
putMethod.setDoAuthentication( true );
try {
int status = httpClient.executeMethod(putMethod);
System.out.println(putMethod.getResponseBodyAsString());
} catch (Exception e) {
// ...
} finally {
// release any connection resources used by the method
putMethod.releaseConnection();
}
}
}
Best regards,
Mohamed.
On Sun, Apr 17, 2016 at 9:24 PM, Mohamed Boussaa <mohamed.boussaa(a)xwiki.com>
wrote:
> Hi,
>
> You can use the new version of Apache's HTTP library, as follows, hope
> it'll help you.
>
> public class RestTest {
> /**
> * Create and initialize the http client.
> *
> * @return an HttpClient object
> */
> HttpClient getClient(host, port, username, password) {
> HttpClient httpClient = new HttpClient();
> httpClient.getParams().setAuthenticationPreemptive(true);
> httpClient.getState().setCredentials(
> new AuthScope(host, port, AuthScope.ANY_REALM),
> new UsernamePasswordCredentials(username, password)
> );
> return httpClient;
> }
>
> public static void main(String[] args) throws IOException {
> // Get request example
> HttpClient httpClient = getClient(yourHost, yourPort, yourUsername,
> yourPassword);
> GetMethod getMethod = new GetMethod(getURL);
> getMethod.addRequestHeader("Accept", "application/json");
> getMethod.setDoAuthentication( true );
> String getURL = "your get url";
> try {
> int status = httpClient.executeMethod(getMethod);
> System.out.println(getMethod.getResponseBodyAsString());
> } catch (Exception e) {
> //...
> } finally {
> // release any connection resources used by the method
> getMethod.releaseConnection();
> }
>
> // Put request example
> String putURL = "your put url";
> PutMethod putMethod = new PutMethod(putURL);
> putMethod.addRequestHeader("Accept", "application/json");
> putMethod.setDoAuthentication( true );
> try {
> int status = httpClient.executeMethod(putMethod);
> System.out.println(putMethod.getResponseBodyAsString());
> } catch (Exception e) {
> // ...
> } finally {
> // release any connection resources used by the method
> putMethod.releaseConnection();
> }
> }
> }
>
>
>
>
> Best regards,
> Mohamed.
>
> On Sun, Apr 17, 2016 at 7:25 PM, Tobi <gman007(a)yandex.ru> wrote:
>
>> Hello,
>>
>> I was trying to write a program which would upload new pages on my wiki. I
>> was following these instructions
>> http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI , but
>> unfortunately most of the examples use old version of Apache's HTTP
>> library,
>> so they are not very useful for me.
>>
>> So I decided to try writing a program by following Apache's examples, but
>> when I was testing connectivity I realised that I can't even get access to
>> admin-only pages.
>>
>> Here's my code:
>>
>> import java.io.IOException;
>> import org.apache.http.auth.AuthScope;
>> import org.apache.http.auth.UsernamePasswordCredentials;
>> import org.apache.http.client.CredentialsProvider;
>> import org.apache.http.client.methods.CloseableHttpResponse;
>> import org.apache.http.client.methods.HttpGet;
>> import org.apache.http.impl.client.BasicCredentialsProvider;
>> import org.apache.http.impl.client.CloseableHttpClient;
>> import org.apache.http.impl.client.HttpClients;
>> import org.apache.http.util.EntityUtils;
>>
>> public class RestTest {
>>
>> public static void main(String[] args) throws IOException {
>> CredentialsProvider credsProvider = new
>> BasicCredentialsProvider();
>> credsProvider.setCredentials(
>> new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT,
>> AuthScope.ANY_REALM, AuthScope.ANY_SCHEME),
>> new UsernamePasswordCredentials("Tobi", "mypass"));
>> CloseableHttpClient httpclient = HttpClients.custom()
>> .setDefaultCredentialsProvider(credsProvider)
>> .build();
>> try {
>> HttpGet httpget = new
>> HttpGet("http://xwiki.aircr.ru/xwiki/bin/edit/Main/WebHome");
>>
>> System.out.println("Executing request " +
>> httpget.getRequestLine());
>> CloseableHttpResponse response = httpclient.execute(httpget);
>> try {
>>
>> System.out.println("----------------------------------------");
>> System.out.println(response.getStatusLine());
>> EntityUtils.consume(response.getEntity());
>> } finally {
>> response.close();
>> }
>> } finally {
>> httpclient.close();
>> }
>> }
>>
>> }
>>
>> It gives me:
>> Executing request GET http://xwiki.aircr.ru/xwiki/bin/edit/Main/WebHome
>> HTTP/1.1 <http://xwiki.aircr.ru/xwiki/bin/edit/Main/WebHomeHTTP/1.1>
>> ----------------------------------------
>> HTTP/1.1 401 Unauthorized
>>
>>
>> I would really appreciate any help! Also, it would be great if you show me
>> more examples of using PUT method for xWiki RESTful!
>>
>>
>>
>> --
>> View this message in context:
>> http://xwiki.475771.n2.nabble.com/xWiki-RESTful-HTTP-Connection-tp7599026.h…
>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>> _______________________________________________
>> users mailing list
>> users(a)xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>>
>
>
Hello my fellow XWIKI-people.
I would like to create a button to generate some content.
Pseudo-code example
{{velocity}}
#set(button=false)
Click this Button causes #set(button=true)
#if($button)
script starts
#end
{{/velocity}}
Any ideas? I am pretty new to WIKI
Mit freundlichen Grüßen / Best regards
Oleg Rochlin | Werkstudent | System implementation
SSI SCHÄFER | SSI Schäfer Noell GmbH | i_Park Klingholz 18/19 | 97232 Giebelstadt | Germany
oleg.rochlin(a)ssi-schaefer.com<mailto:oleg.rochlin@ssi-schaefer.com>
Website<http://www.ssi-schaefer.de/> | Blog<http://www.ssi-schaefer.de/blog> | YouTube<http://youtube.com/lagerlogistik1> | Facebook<http://facebook.com/SSI.SCHAEFER.DE>
SSI Schäfer Noell GmbH | 97232 Giebelstadt | Germany
Incorporated in Würzburg | Commercial Register B 6936 | VAT no. DE170860279
Managing Directors: Rudolf Keller, Henricus Swinkels
Hello,
I was trying to write a program which would upload new pages on my wiki. I
was following these instructions
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI , but
unfortunately most of the examples use old version of Apache's HTTP library,
so they are not very useful for me.
So I decided to try writing a program by following Apache's examples, but
when I was testing connectivity I realised that I can't even get access to
admin-only pages.
Here's my code:
import java.io.IOException;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.BasicCredentialsProvider;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
public class RestTest {
public static void main(String[] args) throws IOException {
CredentialsProvider credsProvider = new
BasicCredentialsProvider();
credsProvider.setCredentials(
new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT,
AuthScope.ANY_REALM, AuthScope.ANY_SCHEME),
new UsernamePasswordCredentials("Tobi", "mypass"));
CloseableHttpClient httpclient = HttpClients.custom()
.setDefaultCredentialsProvider(credsProvider)
.build();
try {
HttpGet httpget = new
HttpGet("http://xwiki.aircr.ru/xwiki/bin/edit/Main/WebHome");
System.out.println("Executing request " +
httpget.getRequestLine());
CloseableHttpResponse response = httpclient.execute(httpget);
try {
System.out.println("----------------------------------------");
System.out.println(response.getStatusLine());
EntityUtils.consume(response.getEntity());
} finally {
response.close();
}
} finally {
httpclient.close();
}
}
}
It gives me:
Executing request GET http://xwiki.aircr.ru/xwiki/bin/edit/Main/WebHome
HTTP/1.1
----------------------------------------
HTTP/1.1 401 Unauthorized
I would really appreciate any help! Also, it would be great if you show me
more examples of using PUT method for xWiki RESTful!
--
View this message in context: http://xwiki.475771.n2.nabble.com/xWiki-RESTful-HTTP-Connection-tp7599026.h…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi All,
i want to count over different document a $counter in velocity. Do you have
an easy way that i can store and read that value so i can use it on all
documents (with different context)?
Is there a macro for such a job? I not found anything.
Regards,
Matthias
--
View this message in context: http://xwiki.475771.n2.nabble.com/Parameter-in-different-contexts-tp7598994…
Sent from the XWiki- Users mailing list archive at Nabble.com.