You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Michael Irving <mi...@keynetx.com> on 2007/06/07 20:55:02 UTC

PDFs

I'm able to get PDFs to render in the development environment (Windows XP),
but when I move to the production box (Redhat) , I get the following error.
I've been spinning my wheels on this all day.  Any help or pointers would be
appreciated.

 

-Mike

 

 

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

javax.servlet.ServletException: Servlet execution threw an exception
 
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)

root cause 

java.lang.NoSuchMethodError:
org.apache.xmlgraphics.util.Service.providers(Ljava/lang/Class;Z)Ljava/util/
Iterator;
 
org.apache.fop.fo.ElementMappingRegistry.setupDefaultMappings(ElementMapping
Registry.java:72)
 
org.apache.fop.fo.ElementMappingRegistry.<init>(ElementMappingRegistry.java:
64)
        org.apache.fop.apps.FopFactory.<init>(FopFactory.java:134)
        org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:144)
 
org.ofbiz.webapp.view.ApacheFopFactory.<clinit>(ApacheFopFactory.java:41)
 
org.ofbiz.widget.screen.ScreenFopPdfViewHandler.render(ScreenFopPdfViewHandl
er.java:54)
 
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:668)
 
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:452)
 
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
 
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.20 logs.

 


Re: PDFs

Posted by Walter Vaughan <wv...@steelerubber.com>.
Michael Irving wrote:

> I'm able to get PDFs to render in the development environment (Windows XP),
> but when I move to the production box (Redhat) , I get the following error.
> I've been spinning my wheels on this all day.  Any help or pointers would be
> appreciated.

First, questions like this belong on the user@ofbiz.apache.org mailing list.

Secondly, you haven't really got an apples to apples comparison.
   - What version of redhat are you running? RHEL? FedoraCore? Old-timey Redhat?
   - What version of java are you running on the Redhat Box?

--
Walter


RE: PDFs

Posted by Michael Irving <mi...@keynetx.com>.
Christian,

I verified that xmlgraphics-commons-1.1.jar is on my production box.  I also
saw xmlgraphics-commons-1.0.jar was in framework/webapp/lib.  When I moved
1.0 out of that directory and restarted OFBiz, PDFs worked.

Thanks for your help.

-----Original Message-----
From: Christian Geisert [mailto:christian.geisert@isu-gmbh.de] 
Sent: Thursday, June 07, 2007 3:48 PM
To: dev@ofbiz.apache.org
Subject: Re: PDFs

Michael Irving schrieb:
> I'm able to get PDFs to render in the development environment (Windows
XP),
> but when I move to the production box (Redhat) , I get the following
error.
> I've been spinning my wheels on this all day.  Any help or pointers would
be
> appreciated.

[..]
> root cause 
> 
> java.lang.NoSuchMethodError:
>
org.apache.xmlgraphics.util.Service.providers(Ljava/lang/Class;Z)Ljava/util/
> Iterator;

This looks like a classpath issue, make sure that you have 
xmlgraphics-commons-1.1.jar (and not 1.0) on the production box.

Christian


Re: PDFs

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Michael Irving schrieb:
> I'm able to get PDFs to render in the development environment (Windows XP),
> but when I move to the production box (Redhat) , I get the following error.
> I've been spinning my wheels on this all day.  Any help or pointers would be
> appreciated.

[..]
> root cause 
> 
> java.lang.NoSuchMethodError:
> org.apache.xmlgraphics.util.Service.providers(Ljava/lang/Class;Z)Ljava/util/
> Iterator;

This looks like a classpath issue, make sure that you have 
xmlgraphics-commons-1.1.jar (and not 1.0) on the production box.

Christian