Hi Asiri,

Thanks for the advice.
I put the jodconverter beta jar in the WEB-INF/lib and the server is able to 
start but not to import a file

I started Open Office like said on the page (i checked both windows process 
run). If i use the version 1.8 of both jar i have the bug we discussed about.
If i stop the xwiki server (keep ooffice started) and replace the both jar 
(snapshot and beta) and restart the server, when i try to import a file i have 
as result an error box with only "$officeimporter.getMessage()" in it
The stack trace in the server is :

[ERROR] OpenOffice server is unavailable.
org.xwiki.officeimporter.OfficeImporterException: OpenOffice server is unavailab
le.
        at org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(
DefaultOfficeImporter.java:128)
        at org.xwiki.officeimporter.internal.OfficeImporterVelocityBridge.import
Document(OfficeImporterVelocityBridge.java:94)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in
voke(UberspectImpl.java:295)
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j
ava:245)
        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer
ence.java:203)
        at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReferen
ce.java:419)
        at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpres
sion.java:73)
        at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSet
Directive.java:125)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java
:74)
        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt
atement.java:88)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java
:74)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.
java:318)
        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt
atement.java:107)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.
java:318)
        at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngi
ne.java:178)
        at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngi
ne.java:143)
        at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend
erer.java:108)
        at com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRender
er.java:85)
        at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXW
ikiRenderingEngine.java:272)
        at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXW
ikiRenderingEngine.java:202)
        at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXW
ikiRenderingEngine.java:170)
        at com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(Defau
ltXWikiRenderingEngine.java:159)
        at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java
:484)
        at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:454)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in
voke(UberspectImpl.java:295)
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j
ava:245)
        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer
ence.java:203)
        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere
nce.java:294)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.
java:318)
        at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngi
ne.java:178)
        at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngi
ne.java:143)
        at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend
erer.java:108)
        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
        at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:655)
        at sun.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.in
voke(UberspectImpl.java:295)
        at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j
ava:245)
        at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer
ence.java:203)
        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere
nce.java:294)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.
java:318)
        at org.apache.velocity.runtime.directive.VelocimacroProxy.render(Velocim
acroProxy.java:194)
        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirect
ive.java:170)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java
:74)
        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt
atement.java:88)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java
:74)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.
java:318)
        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfSt
atement.java:107)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.
java:318)
        at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngi
ne.java:178)
        at org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngi
ne.java:143)
        at com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRend
erer.java:108)
        at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1612)
        at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:226)
        at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
        at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:431)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:236)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502
)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1124)
        at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1115)
        at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.ja
va:68)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1115)
        at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(Convers
ionFilter.java:145)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1115)
        at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRes
torerFilter.java:295)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1115)
        at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc
odingFilter.java:112)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1115)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
61)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
66)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)

        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:230)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:53
5)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio
n.java:880)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:746)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:409)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.j
ava:522)
Caused by: org.xwiki.officeimporter.OfficeImporterException: OpenOffice server i
s unavailable.
        at org.xwiki.officeimporter.internal.openoffice.DefaultOpenOfficeDocumen
tConverter.convert(DefaultOpenOfficeDocumentConverter.java:78)
        at org.xwiki.officeimporter.internal.DefaultOfficeImporter.importStream(
DefaultOfficeImporter.java:110)
        ... 98 more
 
If i do the reverse operation, keeping open office running i will have the 
usual bug. 
Maybe it needs another jar from the 1.9 to connect to ooffice server but not 
sure about that.


-----Message d'origine-----
De : users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] De la part de 
Asiri Rathnayake
Envoyé : mercredi 25 mars 2009 11:56
À : XWiki Users
Objet : Re: [xwiki-users] Office importer application error

Hi Christophe,


Hello,
>
> I downloaded the repository of Xwiki and rebuild it and it created the
> JAR file for the office importer
> (xwiki-core-officeimporter-1.9-SNAPSHOT.jar) .
>
> Is it possible to use this jar file with a 1.8 release ? Or is it
> possible to rebuild it for 1.8 release. I really would like to use the
> import from office functionnality, without the bug of the folder.


Yes, you should be able to do that AFAIK


>
> Thank you all
>
> I tried to copy it in the WEB-INF/lib folder but i got this error
> message :
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java
> :522)
> Caused by: java.lang.NoClassDefFoundError:
> net/sf/jodconverter/office/OfficeManager
>        at java.lang.Class.getDeclaredConstructors0(Native Method)
>        at java.lang.Class.privateGetDeclaredConstructors(Unknown
> Source)
>        at java.lang.Class.getConstructor0(Unknown Source)
>        at java.lang.Class.newInstance0(Unknown Source)
>        at java.lang.Class.newInstance(Unknown Source)
>        at
> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInsta
> nce(JavaComponentFactory.java:66)
>        ... 61 more
> Caused by: java.lang.ClassNotFoundException:
> net.sf.jodconverter.office.OfficeManager
>        at java.net.URLClassLoader$1.run(Unknown Source)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at
>

This is strange, it seems like jodconverter jar is missing.

Try downloading
http://maven.xwiki.org/externals/net/sf/jodconverter/jodconverter/3.0-beta-1/jodconverter-3.0-beta-1.jarand
placing it inside your WEB-INF/lib folder and restart your server.

Hopefully this should fix the issue.

- Asiri
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--------------------------------------------------------------------------------

This e-mail is intended only for the addressee named above. It does not bind 
the sender, except in the case of an existing written convention with the 
addressee. This e-mail may contain material that is confidential and privileged 
for the sole use of the intended recipient. Any review, reliance or 
distribution by others or forwarding without express permission is strictly 
prohibited and may be unlawful. If you are not the intended recipient, please 
contact the sender and delete all copies.

While reasonable precautions have been taken to ensure that this e-mail and any 
attachments are free from any computer virus or similar defect, no liability 
will be accepted in that respect. Anyone accessing this e-mail must take their 
own precautions as to security and virus protection.

KBL European Private Bankers S.A., 43 boulevard Royal L-2955 Luxembourg, R.C.S. 
Luxembourg B 6395, T (352) 47 97 1
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to