<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><div><span name="x"></span>Im trying to upload an image using the engine-image-uploader and im receiving the following error on the cli<br></div><div><br></div><div>[root@saturn home]# engine-image-uploader -e SaturnExport upload vm.ova<br>ERROR: Unable to connect to REST API at https://xxx.xxx.net:443/api<br>Reason: Internal Server Error<br><br></div><div><br></div><div>engine.log is also attached<br></div><div>SELinux is disabled<br></div><div>Firewall is disabled<br></div><div><br></div><div>When I try to access that link in a browser I get the following<br></div><div><br></div><div><h1>HTTP Status 500 -</h1><hr noshade="noshade" size="1"><p style="margin: 0px;" data-mce-style="margin: 0px;"><b>type</b> Exception report</p><p style="margin: 0px;" data-mce-style="margin: 0px;"><b>message</b></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><b>description</b> <span style="text-decoration: underline;" data-mce-style="text-decoration: underline;">The server encountered an internal error () that prevented it from fulfilling this request.</span></p><p style="margin: 0px;" data-mce-style="margin: 0px;"><b>exception</b></p><pre>javax.servlet.ServletException: Servlet.init() for servlet org.ovirt.engine.api.restapi.BackendApplication threw exception
        org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
        org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:466)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
        org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505)
        org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:445)
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
        java.lang.Thread.run(Thread.java:745)
</pre><p style="margin: 0px;" data-mce-style="margin: 0px;"><b>root cause</b></p><pre>java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate MessageBodyWriter
        org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:35)
        org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:211)
        org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)
        org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
        org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
        org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:466)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
        org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505)
        org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:445)
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
        java.lang.Thread.run(Thread.java:745)
</pre><p style="margin: 0px;" data-mce-style="margin: 0px;"><b>root cause</b></p><pre>java.lang.RuntimeException: Unable to instantiate MessageBodyWriter
        org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:772)
        org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(RegisterBuiltin.java:70)
        org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:31)
        org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:211)
        org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)
        org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
        org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
        org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:466)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
        org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505)
        org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:445)
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
        java.lang.Thread.run(Thread.java:745)
</pre><p style="margin: 0px;" data-mce-style="margin: 0px;"><b>root cause</b></p><pre>java.lang.RuntimeException: Failed to construct public org.ovirt.engine.api.pdf.FOPMessageBodyWriter()
        org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:144)
        org.jboss.resteasy.spi.ResteasyProviderFactory.getProviderInstance(ResteasyProviderFactory.java:1039)
        org.jboss.resteasy.spi.ResteasyProviderFactory.addMessageBodyWriter(ResteasyProviderFactory.java:519)
        org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:768)
        org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(RegisterBuiltin.java:70)
        org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:31)
        org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:211)
        org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)
        org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
        org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
        org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:466)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
        org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505)
        org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:445)
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
        java.lang.Thread.run(Thread.java:745)
</pre><p style="margin: 0px;" data-mce-style="margin: 0px;"><b>root cause</b></p><pre>java.lang.NoClassDefFoundError: org/apache/fop/apps/FopFactory
        org.ovirt.engine.api.pdf.FOPMessageBodyWriter.<init>(FOPMessageBodyWriter.java:51)
        sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:132)
        org.jboss.resteasy.spi.ResteasyProviderFactory.getProviderInstance(ResteasyProviderFactory.java:1039)
        org.jboss.resteasy.spi.ResteasyProviderFactory.addMessageBodyWriter(ResteasyProviderFactory.java:519)
        org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:768)
        org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(RegisterBuiltin.java:70)
        org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:31)
        org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:211)
        org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:67)
        org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
        org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489)
        org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:466)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
        org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:505)
        org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:445)
        org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
        java.lang.Thread.run(Thread.java:745)
</pre><p style="margin: 0px;" data-mce-style="margin: 0px;"><b>note</b> <span style="text-decoration: underline;" data-mce-style="text-decoration: underline;">The full stack trace of the root cause is available in the JBoss Web/7.0.13.Final logs.</span></p><hr noshade="noshade" size="1"><h3>JBoss Web/7.0.13.Final</h3><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></body></html>