Hi, No i am not using WEBDAV. Its a fresh installation of Xwiki and i have only created about 4 pages so far. Here are the steps i took to install it. - Installed Tomcat 6.0 - Installed Xwiki Enterprise 2.1.1 - set up the hibernate configuration to mysql - Installed the default set of wiki pages which provide the blog, spaces etc (i.e. xwiki-enterprise-wiki-2.1.1.xar ) - Created a couple of wiki pages to test it. Thats all i have done so far and is what i am trying to export. I must mention that i did not change any configuration in Tomcat in terms of how much memory is allocated to tomcat. Everything is at their default values. I have seen in several wiki configuration that they recommend increasing the amount of memory allocated to tomcat. Do you think that maybe i need to play around with the memory allocation within Tomcat? Thanks On Tue, Jan 12, 2010 at 10:25 AM, Thomas Mortagne <[email protected]
wrote:
On Tue, Jan 12, 2010 at 11:25, Thomas Mortagne <[email protected]> wrote:
On Tue, Jan 12, 2010 at 11:21, Thomas Mortagne <[email protected]> wrote:
On Tue, Jan 12, 2010 at 10:20, Ziggy <[email protected]> wrote:
Hi,
I cleared the log file and tried it again today. Same thing happened with the corrupt zip file. here is what was on the log file.
2010-01-12 09:07:08,261 [http://localhost:8080/xwiki/bin/view/Main/] INFO .AbstractXWikiMigrationManager - No storage migration required since current version is [15429] 2010-01-12 09:13:09,995 [
http://localhost:8080/xwiki/bin/export/Space/Page?format=html&pages=%25]
ERROR internal.DefaultVelocityEngine - Exception in macro #template at /templates/documentTags.vm[line 1, column 1] 2010-01-12 09:13:23,786 [
http://localhost:8080/xwiki/bin/export/Space/Page?format=html&pages=%25]
ERROR internal.DefaultVelocityEngine - Exception in macro #template at <unknown template>[line 6, column 3] 2010-01-12 09:14:16,283 [
http://localhost:8080/xwiki/bin/export/Space/Page?format=html&pages=%25]
WARN web.XWikiAction - Uncaught exception: Error number 0 in 11: Uncaught exception Wrapped Exception: Java heap space com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception Wrapped Exception: Java heap space at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:238) 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.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
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.ActionFilter.doFilter(ActionFilter.java:117) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
This is weird, are you accessing the wiki in webdav at the same time ?
Ha no it has nothing to do with WebDav i think, it's just that there is a webdav filter looking at all requests if i understood well what is in web.xml
So indeed the issue is that the JVM doe snot have enouth memory to finish the export it seems. Make you have a page very big or
*very big page
something.
You should try to allocate more.
Anyway since the error here is that there is no memory left i guess that's what also make export fail.
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.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
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:191)
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:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Unknown Source)
Wrapped Exception: java.lang.OutOfMemoryError: Java heap space
Thanks
On Mon, Jan 11, 2010 at 6:45 PM, Ziggy <[email protected]> wrote:
Hi,
Thanks for your help. I am at home now so i dont have my laptop with me. I will check the log as soon i get to work tomorrow.
Thanks
On Mon, Jan 11, 2010 at 6:06 PM, Thomas Mortagne < [email protected]> wrote:
On Mon, Jan 11, 2010 at 17:43, Ziggy <[email protected]> wrote: > Hi, > > I tried > http://localhost:8080/xwiki/bin/export/Space/Page?format=html&pages=%25and > it is still generating a corrupt zip file.
I see only one cause for corrupted zip: an error during the export. You should have something in the log I think.
> > Thanks > > > > On Mon, Jan 11, 2010 at 4:25 PM, Thomas Mortagne > <[email protected]>wrote: > >> On Mon, Jan 11, 2010 at 17:19, Thomas Mortagne >> <[email protected]> wrote: >> > On Mon, Jan 11, 2010 at 13:52, Ziggy <[email protected]> wrote: >> >> Hi, >> >> >> >> Many thanks for your response. I think the example on >> >> http://platform.xwiki.org/xwiki/bin/view/Features/Exports were exactly >> what >> >> i needed. >> >> >> >> Unfortunately i tried >> >> >>
http://localhost:8080/xwiki/bin/export/Space/Page?format=html&pages=.*:%25to
>> > >> > Could you try >>
http://localhost:8080/xwiki/bin/export/Space/Page?format=html&pages=%25to
>> >> Note: http://platform.xwiki.org/xwiki/bin/view/Features/Exportsis >> wrong about wiki name handling, as far as i can see in the code, you >> can't use pattern mayching for wiki names. I'm updating the >> documentation. >> >> > >> >> export all wikis. It does create a zip file but it seems to be >> >> corrupt. I >> >> tried it 3 times and every time the zip files is about 530KB in size. I >> >> think this is wrong because when i use the normal export link, the zip >> file >> >> that is generated for a single page is more than 1MB. >> >> >> >> Do you know why the exported zip archive gets corrupted? >> >> >> >> Thanks >> >> >> >> On Mon, Jan 11, 2010 at 9:12 AM, Vincent Massol < [email protected] > >> wrote: >> >> >> >>> Hi, >> >>> >> >>> Please see: >> >>> >> >>> - http://platform.xwiki.org/xwiki/bin/view/Features/Exports >> >>> - http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup >> >>> >> >>> Thanks >> >>> -Vincent >> >>> >> >>> On Jan 11, 2010, at 10:00 AM, Ziggy wrote: >> >>> >> >>> > Hi guys, >> >>> > >> >>> > What is the best way to backup an XWIKI instance? I am using XWiki >> >>> > Enterprise 2.1.1.25889. I have seen a couple of options that are >> >>> available >> >>> > but i couldnt find one that suits my needs. >> >>> > >> >>> > On every wiki page, there is an option to export as pdf, html, rtf or >> as >> >>> > XAR. This is quite good but when i tried to export as html it only >> >>> exports >> >>> > the current page i am looking at. >> >>> > >> >>> > There is also the import/export tool ( >> >>> > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/ImportExport ). >> >>> > Unfortunately this exports as XAR but i want to export as html. >> >>> > >> >>> > What i would like to do is backup the content of my wiki as html >> pages. >> >>> It >> >>> > would be usefull if i can export the whole wiki as html pages. The >> reason >> >>> > for this is i want to be able to backup the contents incase my xwiki >> >>> > instance is not accessible. I would like to still be able to access >> the >> >>> > content. The best way for this is to backup the content as html which >> >>> will >> >>> > make it independent of any wiki engine. >> >>> > >> >>> > Is there a way to export everything as html pages? (Not single pages >> but >> >>> the >> >>> > whole wiki and for all users). >> >>> > >> >>> > Thanks >> >>> _______________________________________________ >> >>> users mailing list >> >>> [email protected] >> >>> http://lists.xwiki.org/mailman/listinfo/users >> >>> >> >> _______________________________________________ >> >> users mailing list >> >> [email protected] >> >> http://lists.xwiki.org/mailman/listinfo/users >> >> >> > >> > >> > >> > -- >> > Thomas Mortagne >> > >> >> >> >> -- >> Thomas Mortagne >> _______________________________________________ >> users mailing list >> [email protected] >> http://lists.xwiki.org/mailman/listinfo/users >> > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
-- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users