Hi !
I recently installed xWiki.
Everything goes fine except when i want to add a gadget in my dashboard.
I got this message. (Be sure that ived try a lot of thing to fix it)
404 Not Found <html><head><title>Apache Tomcat/7.0.42 - Error report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color :
black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 -
/resources/js/xwiki/wysiwyg/xwe/MacroService.gwtrpc</h1><HR size="1"
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
<u>/resources/js/xwiki/wysiwyg/xwe/MacroService.gwtrpc</u></p><p><b>description</b> <u>The requested
resource is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/7.0.42</h3></body></html>
If i remove html tag
404 Not Found Apache Tomcat/7.0.42 - Error report
HTTP Status 404 - /resources/js/xwiki/wysiwyg/xwe/MacroService.gwtrpc
type Status report
message /resources/js/xwiki/wysiwyg/xwe/MacroService.gwtrpc
description
The requested resource is not available.
i red about something like the path of ressources of "gwtrpc" in web.xml but i'm not sure what to
do.
someone have a idea ?
thx a lot
Jean-François Boily
Technicien Informatique
Téléphone : 418 683-1591
( tel:4186831591) , poste 2134
Télécopieur : 418 682-8938
( tel:4186828938)
Sans frais : 1 800 208-1463
( tel:18002081463)
I would like to customize the solr schema.xml and solrconfig.xml used
for our instance of xwiki (enterprise 6.1) to provide some additional
fields and to customize (and enforce) search behaviors.
My first attempt at modifying xwiki's data/solr/xwiki/conf/*.xml seemed
successful at first, but after xwiki restarts the solr index appeared
flawed in some way (all search gave zero results) even after full index
rebuilds.
I see clues in xwiki.properties that custom solr config dirs and even
external solr instances are supported, but have not found any specific
documentation. I'm not certain the above implies that solr configuration
customization is supported. Is it possible and, if so, is there any
general guidance on utilizing custom schemas or external solrs?
Thanks,
Mike
> >
> > Then i think, I found the solution to get
> prefix in a sheet:
> >
> >
> #set ($DocClass= 'MySpace.MydocClass')
> > #set($class =
> $doc.getObject(${DocClass}).xWikiClass)
> >
> ##Boucle sur toutes les properties de la classe DocClass
> > #foreach($prop in $class.properties)
>
> > *
> ${escapetool.xml($class.name)}_${class.number}_$prop.Name
>
> The XML escaping is needed
> above because the class name is used inside
> HTML. In your case you seem to have only wiki
> syntax (unless you have
> a {{html
> wiki="true"}} somewhere).
Yes I don't need escapetool.xml even I use {{html wiki="true"}} because I know my docClass name (without space and special characters)
And the $class
> doesn't have any
> number. As I said in my
MyClass use only one XWiki.ClassSheetBinding object: MySpace.MySheet.
/bin/edit/MySpace/MyClass?editor=object indicate "ClassSheetBinding 0: MySheet sheet docclass object"
I suppose ClassSheetBinding 0 indicate my _0_?
_0_ in the id of input field in my form is not
#set ($object = $doc.getObject('MySpace.MyClass'))
$object.number ?
It is the only way I found in #macro(displayObject $obj $class $props $firstField) of skins/flamingo/editobject.vm
> first reply and as Clemens has emphasized the
> object has the number, because you can have
> multiple objects of the
> same type/class on
> the same wiki page.
Thxs
>
> >
> #end
> >
> > Notice: sorry
> about miss formating mail, I think it is yahoo webmail
> fault?
> >
> > Pascal
> B.
> >
> >
> --------------------------------------------
> > En date de : Mar 3.2.15, Clemens
> Klein-Robbenhaar <c.robbenhaar(a)espresto.com>
> a écrit :
> >
> >
> Objet: Re: [xwiki-users] Howto getprefix in a Sheet?
> > À: users(a)xwiki.org
> > Date: Mardi 3 février 2015, 10h38
> >
> >
> > The
> > number is not
> the number of the property in the class, but
> > the number of the object on the page.
> > I.e.
> > you can have
> one, two, or manye objects of the same type
> > MySpace.MyClass on the same page.
> >
> > A Macro where you
> can see how the ID gets
> > rendered is
> in templates/editobject.vm and/or
> >
> webapps/xwiki/skins/flamingo/editobject.vm
> > see the #macro displayObject
> >
> >
> > On 02/03/2015
> >
> 10:12 AM, Pascal BASTIEN wrote:
> > >
> ThxsI
> > verified and it seem it is
> always _0_ for each properties
> >
> (even for multiple properties of same type)ie If I have 2
> > properties with 'date' type in
> MySpace.MyClass
> > (date_entry and
> birthday), $doc.display($prop.getName() will
> > generate this form
> > > <input
> >
> id="MySpace.MyClass_0_date_entry" xxxx<input
> >
> id="MySpace.MyClass_0_birthday" xx
> > > But If I have a 'database
> list'
> > with checkbox property
> "BirthdayYear" in
> >
> MySpace.MyClass, $doc.display($prop.getName() will
> generate
> > this form (with 2 similar
> hidden input field ! Maybe a bug?)
> >
> :<label class="xwiki-form-listclass"
> >
> for="xwiki-form-A_Expert-0-0"><input
> >
> id="xwiki-form-A_Expert-0-0"
> > type="checkbox"
> value="1980"
> >
> name="MySpace.MyClass_0_BirthdayYear">1980</label><label
> >
> class="xwiki-form-listclass"
> >
> for="xwiki-form-BirthdayYear-0-1"><input
> >
> id="xwiki-form-A_Expert-0-1"
> > type="checkbox"
> value="1981"
> >
> name="MySpace.MyClass_0_BirthdayYear">1981</label>...
> > > <label
> >
> class="xwiki-form-listclass"
> >
> for="xwiki-form-BirthdayYear-0-n"><input
> >
> id="xwiki-form-A_Expert-0-n"
> > type="checkbox"
> value="20nn"
> >
> name="MySpace.MyClass_0_BirthdayYear">
> > 20nn</label><input
> type="hidden"
> >
> value=""
> >
> name="MySpace.MyClass_0_BirthdayYear"><input
> > type="hidden"
> value=""
> >
> name="MySpace.MyClass_0_BirthdayYear"> I
> > didn't find what is generate this
> _0_ (macro or java
> > stuf)
> > > ThxsPascal B
> >
> >
> >
> > >
> De : Marius Dumitru
> >
> Florea <mariusdumitru.florea(a)xwiki.com>
> > > À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>;
> > XWiki Users <users(a)xwiki.org>
> >
> > > Envoyé le :
> Mardi 3 février 2015
> > 8h16
> > > Objet : Re: [xwiki-users]
> Howto
> > getprefix in a Sheet?
> > >
> > > ...
> > >> If any have
> > an (or many) idea how I can obtain this
> prefix in my
> > Sheet
> > >
> > >> (If
> not
> > I can concanet
> MySpace.docClass_0_$prop.Name but I'm not
> > sure about _0_)
> >
> >
> > >
> >
> I'm afraid you have to compute the prefix yourself. 0
> > represents the
> >
> > object number. So
> >
> MySpace.MyClass_4_age refers to the 'age'
> > property
> > > of
> the MySpace.MyClass object
> > with
> number 4 (normally the fifth object
> >
> > of that type from the target document).
> > >
> > > Hope
> this helps,
> > > Marius
> > >
> > >
> > >
> > >>
> > >> Thxs
> >
> >> Pascal B
> > >>
> >
> _______________________________________________
> > >> users mailing list
> > >> users(a)xwiki.org
> > >> http://lists.xwiki.org/mailman/listinfo/users
> > >
> > >
> > >
> >
> _______________________________________________
> > > users mailing list
> > > users(a)xwiki.org
> > > http://lists.xwiki.org/mailman/listinfo/users
> > >
> >
> >
> >
> > mit freundlichen Grüßen
> > Clemens Klein-Robbenhaar
> >
> > --
> > Clemens Klein-Robbenhaar
> > Software Development
> > EsPresto
> > AG
> > Breite Str. 30-31
> >
> 10178
> > Berlin/Germany
> > Tel: +49.(0)30.90 226.763
> > Fax: +49.(0)30.90 226.760
> > robbenhaar(a)espresto.com
> >
> > HRB 77554 B -
> > Berlin-Charlottenburg
> > Vorstand: Maya
> >
> Biersack, Peter Biersack
> > Vorsitzender
> des
> > Aufsichtsrats:
> Dipl.-Wirtsch.-Ing. Winfried Weber
> >
> Zertifiziert nach ISO 9001:2008
> >
> _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> >
> _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
Hello,I have a docClass with some properties and use a linked Sheet to display my data.On this thread http://xwiki.475771.n2.nabble.com/Help-with-custom-display-td508630.htmlI saw we can get this value in "custom display" field of docClass properties.- $name = the name of the displayed field
- $prefix = a prefix for the form field
- $object = the displayed object
- $type = the intended display mode (view, edit, hidden, search...)
- $value = the property value
I try to have same value from mydocSheet (in particulary prefix the id of the field in edit form)
There Velocity code in my docSheet:
#set($class = $doc.getObject('MySpace.docClass').xWikiClass)
#foreach($prop in $class.properties)
* "$prop.Name" * $prop.?????? How to obtain the prefix ??? * $object (it doesn't matter) * $xcontext.action * $doc.getValue($prop.Name)
$prop.prettyName $doc.display($prop.getName())
#end
#break
If any have an (or many) idea how I can obtain this prefix in my Sheet
(If not I can concanet MySpace.docClass_0_$prop.Name but I'm not sure about _0_)
Thxs
Pascal B
How can I create spaces and pages from a component in Java?
I've just tried with this code but doesn't work..
XWikiContext context = getXWikiContext();
XWiki wiki = context.getWiki();
DocumentReference doc = new DocumentReference("Home","MySpace","MyPage");
try {
wiki.getDocument(doc, context);
return 0;
} catch (XWikiException e) {
e.printStackTrace();
return 1;
}
--
View this message in context: http://xwiki.475771.n2.nabble.com/Create-spaces-and-pages-from-a-component-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi,
I'd like to create a new panel and place it in the sidebar of every wiki in
my wiki farm. Is there a way to automatically make panels that I create for
the main wiki available to subwikis, or do I have to manually copy them
over?
Thanks,
Jamal
--
View this message in context: http://xwiki.475771.n2.nabble.com/Creating-a-panel-for-all-wikis-tp7593806.…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello xWikiers,
I’ve just registered to the mailing list and I’m pleased to introduce you the site http://apice.unibo.it,
developed by the APICe Research Group, which belong to The Department of Information Engineering and Computer Science (DISI)
of University of bologna, Italy.
The site is up since 2007, starting from xwiki 1.1.
Since then it has been migrated step by step and is now powered by xwiki 2.1.2.
It’s my aim to migrate to latest version, but I’m stuck in the middle of the process,
because of a problem during migration to 2.2.6 with the rendering of the comments, attachments, history and Information
Here's what happens:
http://apice.unibo.it/xwiki/bin/download/Sandbox/WebHome/bug226.jpg
As can be seen, I use a cloned test site to simulate every upgrade task;
I’ve injected some debug code in the docextra.vm template (as in attachmentsinline.vm)
To solve the bug, I’m focusing on docextra.vm template: the $doc and the $tdoc variables are “undefined”
when the *inline.vm template are called inside the javascrit,
with document.observe or Event.observe that run XWiki.displayDocExtra("${extraAnchor}", "${extraTemplate}", false);
for instance ${extraAnchor} = “attachments”, ${extraTemplate} = “attachmentsinline.vm”
From the log it’s clear that this is the problem ($tdoc variable is “undefined”) because I find in the log:
https://test.apice.unibo.it/xwiki/bin/view/Publications/undefined?xpage=xpa…
instead the correct url should be, for example:
https://test.apice.unibo.it/xwiki/bin/view/Publications/BioSac2012?xpage=xp…
that actually works!
I do not can understand why The $doc and the $tdoc variable is “undefined” at runtime…
Any suggestion?
Thank you very much
Nazzareno Pompei
PS: I’m experiencing a problem with import page too, is it entangled?
http://apice.unibo.it/xwiki/bin/download/Sandbox/WebHome/importBug.png
--------------------------------------------------------------------------------------------+
Ing. Nazzareno Pompei
DISI - Dipartimento di Informatica: Scienze ed Ingegneria
e-mail :nazzareno.pompei@unibo.it
Tel. : +39 0547339205 Fax. : +39 0547339208
Il presente messaggio ed i suoi allegati devono intendersi
di tipo confidenziale ad uso esclusivo dei suoi destinatari.
Il mittente declina ogni responsabilità in caso di intercettazione o modifica.
In caso di ricezione per errore del messaggio, si prega di cancellarlo,
di distruggerne ogni copia e di darne opportuno avviso al mittente.
--------------------------------------------------------------------------------------------+
Hello all,
I migrated Xwiki to 6.3 to 6.4 but I have this issue : http://jira.xwiki.org/browse/XE-1463 <http://jira.xwiki.org/browse/XE-1463>
I try to delete data/solr but I deleted the wrong dir and I destroy the dir containing “org.xwiki.search.solr.internal.EmbeddedSolrInstance”.
Obviously… When I start XWiki, I have this error :p
2015-02-02 17:56:39,567 [main] ERROR o.x.s.s.i.SolrInstanceProvider -
org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.search.solr.internal.EmbeddedSolrInstance] identified by [role = [interface org.xwiki.search.solr.internal.api.SolrInstance] hint = [embedded]]
How do in order to desactived solr and reinstall this with extension manager? Or another solution?
Thanks!
Marc
Hi,
I’m trying to build a docker container (https://registry.hub.docker.com/u/njouanin/xwiki/ <https://registry.hub.docker.com/u/njouanin/xwiki/>) for xwiki and being able to link it to a database container.
So, I’ve created a dockerfile which install xwiki .deb package on debian image. Because I just need tomcat + wiki installation i’m installing xwiki-enterprise-tomcat-common package.
The problem is that apt-get tries to install mysql server. I guess there’s a dependency between xwiki-enterprise-tomcat-common package and mysql, which is not needed here :
# apt-get install xwiki-enterprise-tomcat-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
dbconfig-common fonts-dejavu fonts-dejavu-extra libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysql-java libmysqlclient18 libterm-readkey-perl mysql-client-5.5
mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 psmisc ttf-dejavu ttf-dejavu-core ttf-dejavu-extra xwiki-enterprise-common xwiki-enterprise-mysql-common
xwiki-enterprise-tomcat7-mysql
Suggested packages:
virtual-mysql-client mysql-client postgresql-client libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libipc-sharedcache-perl libslf4j-java mailx tinyca
The following NEW packages will be installed:
dbconfig-common fonts-dejavu fonts-dejavu-extra libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysql-java libmysqlclient18 libterm-readkey-perl mysql-client-5.5
mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 psmisc ttf-dejavu ttf-dejavu-core ttf-dejavu-extra xwiki-enterprise-common xwiki-enterprise-mysql-common
xwiki-enterprise-tomcat-common xwiki-enterprise-tomcat7-mysql
Nicolas.