Hi Evelina, Vincent and all
Vincent Massol wrote:
> Hi Evelina,
>
> On Apr 28, 2007, at 10:43 PM, evelyne24(a)gmail.com wrote:
>
>> Hello,
>>
>> I have the following question regarding relationing 2 classes in
>> xwiki. I made a class Person with 2 properties (firstName,
>> lastName) and a class Media with a prop. (title) and then I made an
>> object "Richard Gere" of class person and 2 objects "Pretty Woman"
>> and "Autumn at New York" of class Media. Now I would like to link
>> somehow the 3 objects, i.e to say that Richard Gere played in
>> "Pretty Woman" and also in the other movie (media). How can I do
>> that? I don't seem to understand how to link the already created
>> objects one with another. For instance, I cannot create another
>> class with 2 properties, one of type Media and one of type Person,
>> because these types don't appear under "Type" on "Add Property"
>> panel. Please help me understand how can I do that in xwiki.
>>
>
> Not sure if it's the best solution but you could create a document
> containing "Richard Gere" + "Pretty Woman" and "Autumn at New York"
> objects. This document would answer the question: "show me the films
> with Richard Gere".
Indeed, or another possible option would be to add a property "playsIn"
of type "Database list" to the class "Person". The query associated with
that property would be something like the one below, for fetching all
the Media titles:
======
select distinct prop.value from BaseObject as obj, StringProperty as
prop where obj.className='XWiki.Media' and prop.id.id = obj.id and
prop.id.name='title' order by prop.value
======
Or third possibility: simply use plain wiki links between the documents:
create three documents "Richard Gere", "Pretty Woman", "Autumn in New
York", attach structured objects to each of them, then add a link to
"Pretty Woman" and "Autumn in New York" to the body of the document
"Richard Gere".
I hope this helps.
By the way, this type of question should rather be submitted to the
xwiki-users mailing-list! -> I propose we continue the discussion on
that list instead.
Cheers
Stéphane
> -Vincent
>
>> Ps. I heard something about attachments but I don't really
>> understand how... Thank you.
>>
>> Evelina Slatineanu
>
>
--
Stéphane Laurière
slauriere(a)xwiki.com
+33 6 83 04 49 03
skype: arkubb
XWiki Research
http://www.xwiki.comhttp://concerto.xwiki.comhttp://nepomuk.semanticdesktop.org
Hello,
I have managed to get 3 wiki's going the "main one" and two virtual
wikis.
First up, this message is not readable by the group, as there is a
problem with your Digital Sig. That's beyond the scope of this mail
list though, so you may need to contact your IT folks directly to fix
that.
From what I see here, it looks like you've added it correctly.
Are you sure that the case, spelling, etc are identical in the server
field and in the actual name (see
/xwiki/bin/view/Xwiki/XWikiServerXwikiemansio in the address field of
your browser to confirm this - the X from xwikiemansio should be in caps
even in the link)?
-----------------------COPIED POST-----------------------
I set-up both of the two virtual wikis "at the same time".
Trying to add a third virtual wiki....it is not recognized as a virtual
wiki....
This is what I did to add my third virtual wiki:
1. I created the DNS record for emansio.fireventures.com to CNAME
"my wiki host"
2. I created a DB schema in mySQL called xwikiemansio
3. Added full access rights to this schema for the xwiki db user in
mySQL
4. I created a page called:
/xwiki/bin/view/Xwiki/XWikiServerXwikiemansio
5. To this page I attached an object called:
XWiki.XWikiServerClass[0]: emansio.fireventures.com
6. I set the server to emansio.fireventures.com
7. and the owner to XWiki.Admin
8. I then restarted Tomcat
Trying to reach http://emansio.fireventures.com/xwiki/bin/view/Main/
I get redirected to the "this wiki does not exist page" in my main
wiki....
Any ideas are highly appreciated.....
// Jan Eldenmalm
---------------------END COPIED POST---------------------
Hi,
we are looking for a java based wiki. XWIKI seems to fulfill most of our requirements. The only drawback seems, that we are bound to using ORACLE as the database. Since this does not worked I tried a file based approach using jackrabbit.
The installation (ond tomcat 5.5.23) was no problem. When I go to the man page the system starts to create the file repository but suddenly falls over with the Exception shown at the bottom of this message.
I checked the archives but couldn't find a hint as to how to solve this problem.
The classes Field and NodeIndexer that seem to cause the problems are definitely loaded from the libraries deployed in the lib directory of XWIKI (checked with Class.forName(sClassName).getProtectionDomain().getCodeSource().getLocation().toString() for each class in a jsp I deployed into the XWIKI-application. Has anyone an idea what the reason for this problem is and/or how to solve it? Using MySQL or any other database than ORACLE is a no go.
Thanks in advance
Gy�rgy Magoss
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load store class com.xpn.xwiki.store.jcr.XWikiJcrStore
Wrapped Exception: org.apache.lucene.document.Field.<init>(Ljava/lang/String;Ljava/lang/String;ZZZ)V
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:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118)
root cause
com.xpn.xwiki.XWikiException: Error number 3 in 0: Could not initialize main XWiki context
Wrapped Exception: Error number 3001 in 3: Cannot load store class com.xpn.xwiki.store.jcr.XWikiJcrStore
Wrapped Exception: org.apache.lucene.document.Field.<init>(Ljava/lang/String;Ljava/lang/String;ZZZ)V
com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:291)
com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)
com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:96)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
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:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.23
In the stack trace of the server there is additional information about the wrapped exception
Wrapped Exception:
java.lang.NoSuchMethodError: org.apache.lucene.document.Field.<init>(Ljava/lang/String;Ljava/lang/String;ZZZ)V
at org.apache.jackrabbit.core.query.lucene.NodeIndexer.createDoc(NodeIndexer.java:130)
at org.apache.jackrabbit.core.query.lucene.NodeIndexer.createDocument(NodeIndexer.java:115)
at org.apache.jackrabbit.core.query.lucene.SearchIndex.createDocument(SearchIndex.java:459)
at org.apache.jackrabbit.core.query.lucene.MultiIndex.createDocument(MultiIndex.java:691)
at org.apache.jackrabbit.core.query.lucene.MultiIndex.createDocument(MultiIndex.java:782)
at org.apache.jackrabbit.core.query.lucene.MultiIndex.access$300(MultiIndex.java:74)
at org.apache.jackrabbit.core.query.lucene.MultiIndex$AddNode.execute(MultiIndex.java:1348)
at org.apache.jackrabbit.core.query.lucene.MultiIndex.executeAndLog(MultiIndex.java:810)
at org.apache.jackrabbit.core.query.lucene.MultiIndex.createIndex(MultiIndex.java:889)
at org.apache.jackrabbit.core.query.lucene.MultiIndex.<init>(MultiIndex.java:280)
at org.apache.jackrabbit.core.query.lucene.SearchIndex.doInit(SearchIndex.java:229)
at org.apache.jackrabbit.core.query.AbstractQueryHandler.init(AbstractQueryHandler.java:44)
at org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:524)
at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:268)
at org.apache.jackrabbit.core.RepositoryImpl.getSystemSearchManager(RepositoryImpl.java:578)
at org.apache.jackrabbit.core.RepositoryImpl.access$300(RepositoryImpl.java:90)
at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.getSearchManager(RepositoryImpl.java:1521)
at org.apache.jackrabbit.core.RepositoryImpl.initWorkspace(RepositoryImpl.java:558)
at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:255)
at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:498)
at org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:245)
at org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
at org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
at com.xpn.xwiki.store.jcr.JackRabbitJCRProvider.initWorkspace(JackRabbitJCRProvider.java:101)
at com.xpn.xwiki.store.jcr.XWikiJcrStore.createWiki(XWikiJcrStore.java:501)
at com.xpn.xwiki.store.jcr.XWikiJcrStore.<init>(XWikiJcrStore.java:87)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:586)
at com.xpn.xwiki.XWiki.<init>(XWiki.java:567)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:282)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:383)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:96)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)
The XWiki development team team is pleased to announce the
availability of the 1.0 RC 3 release.
Go grab it on http://www.xwiki.org/xwiki/bin/view/Main/Download
This release is planned to be promoted as the final 1.0 release next
week if no critical bug is found till then.
New in this release:
Bugs fixed:
* Filter conflict: external links can be rendered two times. This
fixes a problem with some absolute URLs in wiki pages that make XWiki
hang.
* The link to the user profile is broken for non-local users
* Links to virtual wikis broken when using XWiki behind a proxy
* The top menu entry shadow disappears when hovering
* Generated PDF loses paragraphs
Improvements:
* Make password type HASH by default
IMPORTANT: XWiki 1.0 RC 2 and RC 3 fix an important security issue in
past releases where passwords were stored in clear in the database.
Passwords are now hashed. If you are upgrading from a previous
version, any new user or any password update will automatically get
the password hashed. However existing users who do not change their
passwords will still have their passwords in clear in the database.
Thus, we are providing a tool to automatically hash all passwords
from an existing database.
See the full release notes on http://www.xwiki.org/xwiki/bin/view/
Main/ReleaseNotesXWiki10RC3
Enjoy
-The XWiki development team
Hello,
I followed Ludovic Dubost his Oracle Installation notes. I think that he missed a modification to the xwiki.cfg. In there the xwiki.store.hibernate.path points to the /WEB-INF/hibernate.cfg.hsql.xml instead of /WEB-INF/hibernate.cfg.xml.
I installed it on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0. It seems to work without a problem.
Then I also have a question. Can you define a different port for the Email server? We do not use port 25 and therefor we can not use the Email notification.
Regards,
Marco
Hi,
How can I remove some elements from an existing list(in velocity) in xwiki pages ?
{
Searching the web I found that IteratorTool can be used to remove elements from a list.
ref->http://velocity.apache.org/tools/releases/velocity-tools-1.2/javadoc/index.…
But I am not getting how to use this :(.
}
Thanks and Regards
Roopesh
Hi
In my xwiki, I am displaying the list of documents in a space using the code given below. I want to paginate the listing if the list is very big.
{{{
#foreach($subdoc in $xwiki.getSpaceDocsName("$doc.web"))
- [${subdoc}]
#end
}}}
I came across a macro that does pagination #pagedViewLinks(itemsPerPage totalPages crtPageNumber)
ref -> http://www.xwiki.org/xwiki/bin/view/Code/PagedViewLinksMacro
How can I get this macro work in my case ?
Thanks and Regards
Roopesh