PDFs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

PDFs

Michael Irving
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.

 

Reply | Threaded
Open this post in threaded view
|

Re: PDFs

Walter Vaughan
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 [hidden email] 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

Reply | Threaded
Open this post in threaded view
|

Re: PDFs

Christian Geisert
In reply to this post by Michael Irving
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
Reply | Threaded
Open this post in threaded view
|

RE: PDFs

Michael Irving
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:[hidden email]]
Sent: Thursday, June 07, 2007 3:48 PM
To: [hidden email]
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