I have downloded the war distribution of xwiki-workspaces-web-1.0.war. Can you tell me what version of repository corresponds to this war distribution version? I need to modify some files in xwiki core.
Currently, i have repository downloaded from trunk url, and when i try to modify some files xwiki core and update in war distribution, i get version mismatch errors.
TIA
ac
Hello,
I try to compile XWiki platform trunk and when compiling
xwiki-xmldoc-update-plugin, the tests fail:
-------------------------------------------------------------------------------
Test set: com.xpn.xwiki.tool.doc.AbstractDocumentMojoTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.086 sec
<<< FAILURE!
testXMLDocumentLoading(com.xpn.xwiki.tool.doc.AbstractDocumentMojoTest)
Time elapsed: 0.019 sec <<< ERROR!
java.lang.NoClassDefFoundError: com/xpn/xwiki/XWikiContext
at
com.xpn.xwiki.tool.doc.AbstractDocumentMojo.<init>(AbstractDocumentMojo.java:79)
at com.xpn.xwiki.tool.doc.AttachMojo.<init>(AttachMojo.java:38)
at
com.xpn.xwiki.tool.doc.AbstractDocumentMojoTest.testXMLDocumentLoading(AbstractDocumentMojoTest.java:43)
Caused by: java.lang.ClassNotFoundException: com.xpn.xwiki.XWikiContext
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 29 more
which is quite strange... seems Maven is not able to resolve dependencies!
Do you have the same problems?
regards
Pascal
Hi,
I just finish start up a openoffice server in java code using
Process oooProcess = Runtime.getRuntime().exec(oooCommand);
The process's name is "soffice". But later the process change its name
to "soffice.bin"(or the old "soffice" process end and start a new
process named "soffice.bin". I'
m not sure). I found that I can't use oooProcess.destroy() to close
the "soffice.bin" process.
How to close it by java programming?
Thanks.
Wang Ning
Something to look at: http://jsecurity.org/
I've heard good feedback from Jason Van Zyl (Maven). They've used it
in Nexus.
Might be a good move from us to use it for XWiki's security in general.
Anyone interested in this?
Thanks
-Vincent
Hi devs!
I would like access to the svn sandbox please in order to commit some of my
work.
User: Enygma
P.S.: I suppose it's the same user/pass as on www.xwiki.org.
Thanks!
Hi ,
Now I have studied most of the source code for using "xWiki Workspace" .
Now I want to integrate xwiki workspace features with my application. Can
any give idea how to plan and start my work at coding level. Now I
understand architecture of this application and how it is written.
My Requirement :
I have one 'UserProfile' page. User is already login in that page. The
same user now want to click the 'widget of wiki' at 'UserProfile' and he
should directly enter to workspace page , where he can create and work in
workspace.
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
Can someone tell me which actionclass is fired when the applicaiton starts. I want to know this to understand how the 'xwiki-context' is generated so that I can customise it.
ac
Jerome,
You shouldn't name your test with Abstract as classes starting with
Abstract are excluded from tests by default.
Thanks
-Vincent
On Aug 11, 2008, at 12:38 PM, jvelociter (SVN) wrote:
> Author: jvelociter
> Date: 2008-08-11 12:38:43 +0200 (Mon, 11 Aug 2008)
> New Revision: 11747
>
> Added:
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/AbstractDocumentMojoTest.java
> Removed:
> platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java
> Log:
> Renamed UpdateDocumentMojoTest to AbstractDocumentMojoTest to match
> the tested class
>
>
> Copied: platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/
> test/java/com/xpn/xwiki/tool/doc/AbstractDocumentMojoTest.java (from
> rev 11746, platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/
> test/java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java)
> ===================================================================
> --- platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/
> AbstractDocumentMojoTest.java (rev 0)
> +++ platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/AbstractDocumentMojoTest.java 2008-08-11
> 10:38:43 UTC (rev 11747)
> @@ -0,0 +1,68 @@
> +/*
> + * See the NOTICE file distributed with this work for additional
> + * information regarding copyright ownership.
> + *
> + * This is free software; you can redistribute it and/or modify it
> + * under the terms of the GNU Lesser General Public License as
> + * published by the Free Software Foundation; either version 2.1 of
> + * the License, or (at your option) any later version.
> + *
> + * This software is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with this software; if not, write to the Free
> + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
> + * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
> + */
> +package com.xpn.xwiki.tool.doc;
> +
> +import java.io.File;
> +import java.io.FileReader;
> +import java.net.URL;
> +
> +import com.xpn.xwiki.doc.XWikiDocument;
> +
> +import junit.framework.TestCase;
> +
> +/**
> + * Tests for {@link AbstractDocumentMojo}.
> + *
> + * @version $Id: $
> + */
> +public class AbstractDocumentMojoTest extends TestCase
> +{
> + /**
> + * Test that a document loaded in memory from XML by the mojo
> then written back to XML does not lose any
> + * information/is not affected by the process
> + */
> + public void testXMLDocumentLoading() throws Exception
> + {
> + AttachMojo mojo = new AttachMojo();
> +
> + URL resURL = this.getClass().getResource("/
> SampleWikiXMLDocument.input");
> + File resourceFile = new File(resURL.getPath());
> + FileReader fr = new FileReader(resourceFile);
> + char[] bytes = new char[(int) resourceFile.length()];
> + fr.read(bytes);
> + String inputContent = new String(bytes);
> +
> + assertTrue(inputContent.contains("<class>"));
> +
> + XWikiDocument doc = mojo.loadFromXML(resourceFile);
> + assertEquals(doc.getName(), "Install");
> +
> + File outputFile = File.createTempFile("output", "xml");
> + mojo.writeToXML(doc, outputFile);
> +
> + fr = new FileReader(outputFile);
> + bytes = new char[(int) outputFile.length()];
> + fr.read(bytes);
> + String outputContent = new String(bytes);
> +
> + // Check that we did not lose the class definition during
> the loading from XML/writing to XML process.
> + assertTrue(outputContent.contains("<class>"));
> + }
> +}
>
> Deleted: platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/
> test/java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java
> ===================================================================
> --- platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java 2008-08-11
> 08:15:58 UTC (rev 11746)
> +++ platform/xwiki-tools/trunk/xwiki-xmldoc-update-plugin/src/test/
> java/com/xpn/xwiki/tool/doc/UpdateDocumentMojoTest.java 2008-08-11
> 10:38:43 UTC (rev 11747)
> @@ -1,68 +0,0 @@
> -/*
> - * See the NOTICE file distributed with this work for additional
> - * information regarding copyright ownership.
> - *
> - * This is free software; you can redistribute it and/or modify it
> - * under the terms of the GNU Lesser General Public License as
> - * published by the Free Software Foundation; either version 2.1 of
> - * the License, or (at your option) any later version.
> - *
> - * This software is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this software; if not, write to the Free
> - * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
> - * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
> - */
> -package com.xpn.xwiki.tool.doc;
> -
> -import java.io.File;
> -import java.io.FileReader;
> -import java.net.URL;
> -
> -import com.xpn.xwiki.doc.XWikiDocument;
> -
> -import junit.framework.TestCase;
> -
> -/**
> - * Tests for {@link AbstractDocumentMojo}.
> - *
> - * @version $Id: $
> - */
> -public class UpdateDocumentMojoTest extends TestCase
> -{
> - /**
> - * Test that a document loaded in memory from XML by the mojo
> then written back to XML does not lose any
> - * information/is not affected by the process
> - */
> - public void testXMLDocumentLoading() throws Exception
> - {
> - AttachMojo mojo = new AttachMojo();
> -
> - URL resURL = this.getClass().getResource("/
> SampleWikiXMLDocument.input");
> - File resourceFile = new File(resURL.getPath());
> - FileReader fr = new FileReader(resourceFile);
> - char[] bytes = new char[(int) resourceFile.length()];
> - fr.read(bytes);
> - String inputContent = new String(bytes);
> -
> - assertTrue(inputContent.contains("<class>"));
> -
> - XWikiDocument doc = mojo.loadFromXML(resourceFile);
> - assertEquals(doc.getName(), "Install");
> -
> - File outputFile = File.createTempFile("output", "xml");
> - mojo.writeToXML(doc, outputFile);
> -
> - fr = new FileReader(outputFile);
> - bytes = new char[(int) outputFile.length()];
> - fr.read(bytes);
> - String outputContent = new String(bytes);
> -
> - // Check that we did not lose the class definition during
> the loading from XML/writing to XML process.
> - assertTrue(outputContent.contains("<class>"));
> - }
> -}
>
> _______________________________________________
> notifications mailing list
> notifications(a)xwiki.org
> http://lists.xwiki.org/mailman/listinfo/notifications