Forum Replies Created
-
AuthorPosts
-
in reply to: Deployment / Configuration issues June 11, 2012 at 07:17#26735
Hello,
i am tryng to deploy taglib example to tomcat 6.0 but after running tomcat i get following errors,javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:268)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root causejava.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl
org.apache.jasper.JspCompilationContext.getServletClassName(JspCompilationContext.java:374)
org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:514)
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:453)
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:399)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root causejava.lang.ClassNotFoundException: org.apache.el.ExpressionFactoryImpl
java.net.URLClassLoader$1.run(URLClassLoader.java:202)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:190)
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
java.lang.ClassLoader.loadClass(ClassLoader.java:247)
org.apache.jasper.JspCompilationContext.getServletClassName(JspCompilationContext.java:374)
org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:514)
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:453)
org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:399)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)can you please tell me where am i getting wrong?
Prashant
in reply to: pd4ml for jsp deployment in tomcat 6.0 is not working June 11, 2012 at 14:29#29021Does the exception disappear if you remove pd4ml_demo.jar and ss_css2.jar from WEB-INF/lib ?
in reply to: Spaces being stripped in final PDF June 11, 2012 at 22:00#28986I am also experiencing this problem with PD4ML 380fx3 Pro — when span tags occur, spacing at that point is either too wide, or too narrow (to the point that sometimes the text can overlap). This seems to only occur when we are forcing TrueType fonts. If it makes a difference, we’ve been playing around the Arial Unicode MS Regular ttf, which has something like 50,000 glyphs.
in reply to: pd4ml for jsp deployment in tomcat 6.0 is not working June 12, 2012 at 04:14#29022ok solved, no need to remove the jars..
actually problem was in tomcat 6.0
need to add jasper-el.jar to tomact/libcode works fine now.
thank you!
Prashant
in reply to: HTML/CSS rendering issues June 12, 2012 at 15:37#26736Hi
We have discovered that using PNG images corrupts the colours on the pages they’re shown on. Our application which uses Pd4ml is due for launch tomorrow. We are in urgent need of assistance (We have already purchased the pro edition of the software).
in reply to: PNG Rendering June 12, 2012 at 16:02#29023Please send a generated PDF and its sources to support pd4ml com
in reply to: Troubleshooting June 12, 2012 at 16:44#26737UPDATE 06.14.2012
Here is the most relevant post on stackoverflow. I don’t have the pd4ml source to look into this:
http://stackoverflow.com/questions/1664996/weblogic-exceeded-stated-content-length-errorAgain the same code works fine on other J2EE servers, it’s specific to web logic and the workaround is to stop setting the content length. Does PD4ML set the content length?
After upgrading to Oracle 11g Weblogic from Oracle’s OC4J 10g based application server I’m encountering an issue with a page we use pd4ml to generate a PDF. the error message is listed below. This error seems to be encountered by WebLogic users in general when outputting a response that is actually a PDF. Has anyone else experienced this and found a solution?
<Jun 12, 2012 12:21:54 PM EDT> <Error> <HTTP> <BEA-101083> <Connection failure. java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '94944' bytes instead of stated: '86669' bytes. at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:457) at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1448) at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1530) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1498) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) Truncated. see log file for complete stacktrace > <Jun 12, 2012 12:21:54 PM EDT> <Error> <HTTP> <BEA-101104> <Servlet execution in servlet context "ServletContext@3499281[app:taa module:taa path:/taa spec-version:2.5]" failed, java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '94944' bytes instead of stated: '86669' bytes.. java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '94944' bytes instead of stated: '86669' bytes. at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:457) at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1448) at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1530) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1498) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) Truncated. see log file for complete stacktrace >
JSP:
<%@ taglib uri="https://pd4ml.com/tlds/pd4ml/2.6" prefix="pd4ml"%><br /> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %><br /> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><br /> <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %><pd4ml:transform screenWidth="1000" pageFormat="LETTER" pageOrientation="landscape" pageInsets="24,36,24,36,points"><br /> <html><br /> <head><br /> <meta http-equiv="content-type" content="text/html; charset=utf-8" /><br /> <title><br /> Teacher Authorization and Authentication<br /> </title><br /> <link href="${pageContext.request.contextPath}/include/css/style.css" rel="stylesheet" type="text/css" media="screen"/><br /> <link href="${pageContext.request.contextPath}/include/css/display-tag.css" rel="stylesheet" type="text/css" media="screen"/><br /> <link rel="icon" type="image/png" href="${pageContext.request.contextPath}/favicon.ico" /><br /> </head><br /> <br /> <body><br /> <div id="wrapper"><br /> <div id="topheader"><br /> <div id="logo"></div><br /> <h2 class="title"><tiles:getAsString name="title" /></h2><br /> </div><br /> </div><br /> <div style="clear: both;"></div><br /> <div id="page"><br /> <div id="print_content_full"><br /> <div style="clear: both;"></div><br /> <tiles:insertAttribute name="body" /><br /> </div><br /> <br /> <div style="clear: both;"></div><br /> </div><br /> <br /> <br /> </body><br /> </html></pd4ml:transform>in reply to: Troubleshooting June 13, 2012 at 08:00#26738We’re using PD4ML 3.70fx4 in a servlet running in a Tomcat container and PD4ML.render(URL, ByteArrayOutputStream) causes an erratic NullPointerException with the following stacktrace:
java.lang.NullPointerException
at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)
at PDFGeneratorServlet.doPdfGeneration(PDFGeneratorServlet.java:142)
…Sadly, the stacktrace does not provide enough information to locate the root cause.
This behaviour is erratic. As a matter of fact, the same request does usually succeed upon retry just a second later. But responding with a 404 is still not feasible from the customers’ perspective.
Any suggestions appreciated!
in reply to: PD4ML Tips & Tricks June 13, 2012 at 09:55#26739hello,
i have html with header and footer. when i print it to the pdf the table data in html looks fine but html header printed on first page and html footer prints on last page.is there is any solution so that html header and footer is printed on every pdf page?
Note: i dont want to use it programmatically. i know with pd4ml header and footer methods it is possible.
Thanks in advance
Prashant.
in reply to: General questions / FAQ June 14, 2012 at 11:32#26740Hello,
i am trying to convert xhtml to pdf. i have generated xhtml file through jsf componants so that in xhtml jsf tags are present . can you tell how do i get with it as i am totally confused with the tag 🙁Prashant
in reply to: pd4ml:transform and "Didn’t meet stated Content-Length" June 14, 2012 at 18:09#29024> Does PD4ML set the content length?
Of course, yes. PDF is binary data, so it always makes sense to set it.
The problem, you faced with, most probably caused by an undesired text encoding conversion, applied to PDF bytes. For example Latin-1 to UTF-8 – that explains why the actual data amount has grown. Obviously UTF-8 became a default file encoding after you upgraded to Oracle 11g.
What to do?
1. Try to run Oracle with file.encoding set to the same value as it was in previous installation
2. If #1 is not possible, try to add encoding=”UTF-8″ or encoding=”default” attribute to<pd4ml:transform>Also there are 3 new line characters before
<pd4ml:transform>– they will be sent before PD4ML started to send PDF bytes. It is a good idea to remove them.in reply to: Xhtml to pdf conversion June 14, 2012 at 18:30#29028Probably the most straightforward approach: create a simple converter JSP and point it to XHTML page via
<jsp:include>
<%@ taglib prefix="pd4ml" uri="https://pd4ml.com/tlds/pd4ml/2.6" %><pd4ml:transform screenWidth="1000"> <jsp:include page="xhtml.jsp"> </pd4ml:transform>
in reply to: pd4ml:transform and "Didn’t meet stated Content-Length" June 14, 2012 at 18:30#29025Thank you. Setting the encoding to default fixed it. My point about the call to setContentLength is many forum users, including the sample code I linked to on stackoverflow.com showed a solution involved removing calls to setContentLength. I knew that was not an option for me because the call would be in the pd4ml. So I was hoping to find a solution that didn’t involve removing calls to setContentLength.
in reply to: html header and footer in every pdf page not displays June 14, 2012 at 18:41#29027There are and tags intended for that.
See https://pd4ml.com/cookbook/pdf_header_footer_generation.htm
in reply to: Erratic NullPointerException in PD4ML.render() June 14, 2012 at 18:48#29026Did you check if the problem exists in the most recent version of PD4ML?
-
AuthorPosts
