From: "Markus Stockhausen" <stockhausen(a)collogia.de>
To: "Juan Hernández" <jhernand(a)redhat.com>, users(a)ovirt.org, "Tomas
Jelinek" <tjelinek(a)redhat.com>
Sent: Thursday, February 19, 2015 1:45:12 PM
Subject: AW: [ovirt-users] movirt -> ovirt 3.5.1 -> server error 500
> Von: Juan Hernández [jhernand(a)redhat.com]
> Gesendet: Donnerstag, 19. Februar 2015 12:53
> An: Markus Stockhausen; users(a)ovirt.org
> Betreff: Re: [ovirt-users] movirt -> ovirt 3.5.1 -> server error 500
>
> On 02/19/2015 12:22 PM, Markus Stockhausen wrote:
> > Hi,
> >
> > just installed movirt on my mobile. Upon connection it breaks with the
> > attached error in the 3.5.1 engine server logs.
> >
> > Something I'm missing?
> >
> > Markus
> >
> > 2015-02-19 12:21:19,757 ERROR
> >
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ovirt-engine/api]]
> > (ajp--127.0.0.1-8702-11) StandardWrapper.Throwable:
> > java.lang.RuntimeException: > java.lang.RuntimeException: Unable to
> > instantiate MessageBodyWriter
> > at
> >
org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:35)
> > [resteasy-jaxrs-2.3.2.Final.jar:]
> > at
> >
org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:211)
> > [resteasy-jaxrs-2.3.2.Final.jar:]
> > at
> >
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)
> > [resteasy-jaxrs-2.3.2.Final.jar:]
> > at
> >
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
> > [resteasy-jaxrs-2.3.2.Final.jar:]
> > at
> >
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> >
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> >
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> >
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> >
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> >
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
> > [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
> > at
> >
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> >
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> > org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:466)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> >
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> >
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> > org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> >
org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:445)
> > [jbossweb-7.0.13.Final.jar:]
> > at
> >
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
> > [jbossweb-7.0.13.Final.jar:]
> > at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_55]
> > Caused by: java.lang.RuntimeException: Unable to instantiate
> > MessageBodyWriter
> > at
> >
org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:772)
> > [resteasy-jaxrs-2.3.2.Final.jar:]
> > at
> >
org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(RegisterBuiltin.java:70)
> > [resteasy-jaxrs-2.3.2.Final.jar:]
> > at
> >
org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:31)
> > [resteasy-jaxrs-2.3.2.Final.jar:]
> > ... 18 more
> > Caused by: java.lang.RuntimeException: Failed to construct public
> > org.ovirt.engine.api.pdf.FOPMessageBodyWriter()
> > at
> >
org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:144)
> > [resteasy-jaxrs-2.3.2.Final.jar:]
> > at
> >
org.jboss.resteasy.spi.ResteasyProviderFactory.getProviderInstance(ResteasyProviderFactory.java:1039)
> > [resteasy-jaxrs-2.3.2.Final.jar:]
> > at
> >
org.jboss.resteasy.spi.ResteasyProviderFactory.addMessageBodyWriter(ResteasyProviderFactory.java:519)
> > [resteasy-jaxrs-2.3.2.Final.jar:]
> > at
> >
org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:768)
> > [resteasy-jaxrs-2.3.2.Final.jar:]
> > ... 20 more
> > Caused by: java.lang.NoClassDefFoundError: org/apache/fop/apps/FopFactory
> >
>
> This probably means that you have the xmlgraphics-batik RPM installed
> from the jpackage repository, which doesn't work correctly with oVirt.
> Please remove it and install the batik RPM instead. See here for details:
>
>
http://lists.ovirt.org/pipermail/users/2014-October/028308.html
Thanks, that did the trick.
jpackage.repo:
exclude=xmlgraphics-batik
rpm -e xmlgraphics-batik-1.7-14.jpp6.noarch --nodeps
yum instal batik
@Tomas: Does movirt something that you do not expect?
I don't think so - I'd say it was a general exception when accessing the REST
API.