Forum Replies Created

Viewing 15 posts - 1,921 through 1,935 (of 4,243 total)
  • Author
    Posts
  • in reply to: Deployment / Configuration issues
    #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 cause

    java.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 cause

    java.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
    #29021

    Does 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
    #28986

    I 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
    #29022

    ok solved, no need to remove the jars..
    actually problem was in tomcat 6.0
    need to add jasper-el.jar to tomact/lib

    code works fine now.

    thank you!

    Prashant

    in reply to: HTML/CSS rendering issues
    #26736

    Hi

    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
    #29023

    Please send a generated PDF and its sources to support pd4ml com

    in reply to: Troubleshooting
    #26737

    UPDATE 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-error

    Again 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?


    JSP:
    <%@ taglib uri="http://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
    #26738

    We’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
    #26739

    hello,
    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
    #26740

    Hello,
    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"
    #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

    Also there are 3 new line characters before – 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
    #29028

    Probably the most straightforward approach: create a simple converter JSP and point it to XHTML page via
    [language=xml:2pe18qio]<%@ taglib prefix="pd4ml" uri="http://pd4ml.com/tlds/pd4ml/2.6" %>

    [/language:2pe18qio]

    in reply to: pd4ml:transform and "Didn’t meet stated Content-Length"
    #29025

    Thank 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
    #29027

    There are and tags intended for that.

    See http://pd4ml.com/cookbook/pdf_header_footer_generation.htm

    in reply to: Erratic NullPointerException in PD4ML.render()
    #29026

    Did you check if the problem exists in the most recent version of PD4ML?

Viewing 15 posts - 1,921 through 1,935 (of 4,243 total)