From: Alexander Peshkov (peshkov@renderx.com)
Date: Tue Mar 23 2004 - 03:29:43 PST
Hello Raj,
You message has bounced from xep-support list because of the big
attachment.
In order to operate properly XEP needs a writable temporary directory.
You have to set it inside your application (usually at the same place
where you set ROOT) using appropriate XEP property: com.renderx.xep.TMPDIR
Best regards,
Alexander Peshkov mailto:peshkov@renderx.com
RenderX
NG> ----- Original Message -----
NG> From: <svenkataramany@chubb.com>
NG> To: <xep-support@renderx.com>
NG> Sent: Monday, March 22, 2004 6:47 PM
NG> Subject: Error running XEP from within EAR
NG> Hi Alex,
NG> I followed your advice and jarred up the /etc, /afm and the other dirs and
NG> included them in my lib dir. But i get the following errors:
NG> [3/22/04 10:40:35:029 EST] 75d829bc SystemErr R [error] File '~/tmp/'
NG> expanded to 'resource:\xep37\tmp' does not exist
NG> [error] Parameter will not be set
NG> Do i also need a /tmp dir in my jar file?
NG> Also, the xep process seems to be geberating the PDF, but at the very end,
NG> throws a null pointer expecption. I've attached a stack trace.
NG> Also, this is the jar file I have in my lib dir:
NG> (See attached file: xep_inst_jar.jar)
NG> Any ideas?
NG> Regards,
NG> Raj
NG> [warning] file:/c:/Program%20Files/IBM/WebSphere%20Studio/untitled: line
NG> 3583: End-indent is not specified neither on 'fo:list-item-label' nor on
NG> 'fo:list-item-body': list subcomponents will overlap
NG> [validation total: 167 warnings])
NG> (compile
NG> [warning] System ID 'untitled' cannot be used as base URL:
NG> java.net.MalformedURLException: Invalid URL or non-existent file: untitled
NG> (masters
NG> (sequence-master [master-name cover])
NG> (sequence-master [master-name main])
NG> (sequence-master [master-name app]))
NG> (sequence [master-reference cover]
NG> (static-content [flow-name xsl-region-before])
NG> (static-content [flow-name xsl-region-after])
NG> (flow [flow-name xsl-region-body]
NG> [error] com.renderx.graphics.ImageFormatException: Cannot process
NG> interlaced GIF image 'c:\abl\print\chubblogo.gif' because of patent
NG> restrictions on LZW decoding algorithm
NG> ))
NG> (sequence [master-reference main]
NG> (static-content [flow-name xsl-region-before])
NG> (static-content [flow-name xsl-region-after])
NG> (flow [flow-name xsl-region-body]))
NG> (sequence [master-reference main]
NG> (static-content [flow-name xsl-region-before])
NG> (static-content [flow-name xsl-region-after])
NG> (flow [flow-name xsl-region-body]))
NG> (sequence [master-reference main]
NG> (static-content [flow-name xsl-region-before])
NG> (static-content [flow-name xsl-region-after])
NG> (flow [flow-name xsl-region-body]))
NG> (sequence [master-reference main]
NG> (static-content [flow-name xsl-region-before])
NG> (static-content [flow-name xsl-region-after])
NG> (flow [flow-name xsl-region-body]))
NG> (sequence [master-reference main]
NG> (static-content [flow-name xsl-region-before])
NG> (static-content [flow-name xsl-region-after])
NG> (flow [flow-name xsl-region-body]))
NG> (sequence [master-reference main]
NG> (static-content [flow-name xsl-region-before])
NG> (static-content [flow-name xsl-region-after])
NG> (flow [flow-name xsl-region-body]))
NG> (sequence [master-reference app]
NG> (static-content [flow-name xsl-region-before])
NG> (static-content [flow-name xsl-region-after])
NG> (flow [flow-name xsl-region-body]
NG> [error] com.renderx.graphics.ImageFormatException:
NG> com.renderx.util.Magic$UnknownMIMETypeException: cannot determine mime type
NG> for file 'c:\Program Files\IBM\WebSphere Studio\cache0\1.tmp'
NG> )))
NG> (format
NG> (sequence [master-reference cover]
NG> (flow [1])
NG> (static-content [1]|xsl-region-after||xsl-region-before|))
NG> (sequence [master-reference main]
NG> (flow [2])
NG> (static-content [2]|xsl-region-after||xsl-region-before|))
NG> (sequence [master-reference main]
NG> (flow [3])
NG> (static-content [3]|xsl-region-after||xsl-region-before|))
NG> (sequence [master-reference main]
NG> (flow [4])
NG> (static-content [4]|xsl-region-after||xsl-region-before|))
NG> (sequence [master-reference main]
NG> (flow [5][6][7][8])
NG> (static-content [5]|xsl-region-after||xsl-region-before|[6]
NG> |xsl-region-after||xsl-region-before|[7]
NG> |xsl-region-after||xsl-region-before|[8]
NG> |xsl-region-after||xsl-region-before|))
NG> (sequence [master-reference main]
NG> (flow [9])
NG> (static-content [9]|xsl-region-after||xsl-region-before|))
NG> (sequence [master-reference main]
NG> (flow
NG> [10][11][12][13][14][15][16][17][18][19][20][21][22][23][24][25][26][27][28][29][30])
NG> (static-content [10]|xsl-region-after||xsl-region-before|[11]
NG> |xsl-region-after||xsl-region-before|[12]
NG> |xsl-region-after||xsl-region-before|[13]
NG> |xsl-region-after||xsl-region-before|[14]
NG> |xsl-region-after||xsl-region-before|[15]
NG> |xsl-region-after||xsl-region-before|[16]
NG> |xsl-region-after||xsl-region-before|[17]
NG> |xsl-region-after||xsl-region-before|[18]
NG> |xsl-region-after||xsl-region-before|[19]
NG> |xsl-region-after||xsl-region-before|[20]
NG> |xsl-region-after||xsl-region-before|[21]
NG> |xsl-region-after||xsl-region-before|[22]
NG> |xsl-region-after||xsl-region-before|[23]
NG> |xsl-region-after||xsl-region-before|[24]
NG> |xsl-region-after||xsl-region-before|[25]
NG> |xsl-region-after||xsl-region-before|[26]
NG> |xsl-region-after||xsl-region-before|[27]
NG> |xsl-region-after||xsl-region-before|[28]
NG> |xsl-region-after||xsl-region-before|[29]
NG> |xsl-region-after||xsl-region-before|[30]
NG> |xsl-region-after||xsl-region-before|))
NG> (sequence [master-reference app]
NG> (flow [31]
NG> [warning] no space for an element, trying to recover
NG> [31][32])
NG> (static-content [31]|xsl-region-after||xsl-region-before|[32]
NG> |xsl-region-after||xsl-region-before|)))
NG> (generate [output-format pdf]java.lang.NullPointerException
NG> [3/22/04 10:40:55:357 EST] 75d829bc SystemErr R at
NG> com.renderx.xep.gen.backends.H4PDF.initDocument(Unknown Source)
NG> [3/22/04 10:40:55:357 EST] 75d829bc SystemErr R at
NG> com.renderx.xep.gen.backends.H4PDF.startElement(Unknown Source)
NG> [3/22/04 10:40:55:357 EST] 75d829bc SystemErr R at
NG> com.renderx.xep.gen.SAX.startElement(Unknown Source)
NG> [3/22/04 10:40:55:357 EST] 75d829bc SystemErr R at
NG> com.renderx.xep.gen.SAX.traverse(Unknown Source)
NG> [3/22/04 10:40:55:357 EST] 75d829bc SystemErr R at
NG> com.renderx.xep.FormatterCore.render(Unknown Source)
NG> [3/22/04 10:40:55:357 EST] 75d829bc SystemErr R at
NG> com.renderx.xep.FormatterImpl.render(Unknown Source)
NG> [3/22/04 10:40:55:357 EST] 75d829bc SystemErr R at
NG> com.renderx.xep.FormatterImpl.render(Unknown Source)
NG> [3/22/04 10:40:55:357 EST] 75d829bc SystemErr R at
NG> com.renderx.xep.FormatterImpl.render(Unknown Source)
NG> [3/22/04 10:40:55:357 EST] 75d829bc SystemErr R at
NG> XepTest.main(XepTest.java:94)
NG> [3/22/04 10:40:55:357 EST] 75d829bc SystemErr R at
NG> FopTestServlet.processHTML(FopTestServlet.java:19)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> chubb.infinet.base.servlet.userInterface.InfinetHttpServlet.performTask(InfinetHttpServlet.java:181)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> chubb.infinet.base.servlet.userInterface.InfinetHttpServlet.doGet(InfinetHttpServlet.java:60)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.
NG> _service(StrictLifecycleServlet.java:174)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
NG> [3/22/04 10:40:55:372 EST] 75d829bc SystemErr R at
NG> com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
NG> This E-mail (which includes any attachment) is intended to be read only by
NG> the person(s) to whom it is addressed and may contain confidential or
NG> proprietary information. If you have received this E-mail in error, do not
NG> print it, forward it or disseminate it or its contents. In such event,
NG> please notify the sender by return E-mail and delete the E-mail file
NG> immediately thereafter. Thank you for your cooperation.
NG> Alexander Peshkov
NG> <peshkov@renderx.c To: "svenkataramany@chubb.com" <xep-support@renderx.com>
NG> om> cc:
NG> Sent by: Subject: Re: [xep-support] Packaging XEP into Ear file
NG> owner-xep-support@
NG> renderx.com
NG> 03/17/04 04:41 AM
NG> Please respond to
NG> xep-support
NG> Hello Raj,
NG> XEP supports a special 'resource:' URL scheme that allows you to
NG> search for files along the Java classpath. You can use this feature to
NG> specify XEP configuration options as described in Section "3.3.XEP
NG> Core Options" of "XEP 3.7 User Guide" (userguide.pdf). The 'resource:'
NG> protocol will also allow you to address images packed into ear file
NG> from XSL-FO.
NG> In general, the simplest way to use XEP as a single JAR incudes three
NG> steps:
NG> 1. Wrap all XEP configuration files (contents of etc/, afm/, and
NG> hyphen/ subdirs in XEP installation) into a single jar, preserving
NG> the directory structure. You may want to add some top-level catalog
NG> as well, i.e. you can create xepresource.jar with a following structure:
NG> xep37/etc/
NG> license.txt
NG> fonts.xml
NG> ....
NG> xep37/afm/
NG> Courier.afm
NG> ...
NG> xep37/hyphen/
NG> hyphen.tex
NG> ...
NG> 2. Include xepresource.jar into the server classpath.
NG> 3. In your application set com.renderx.xep.ROOT="resource:/xep37/"
NG> In this case all the relative URLs used for other configuration
NG> options will refer to the objects inside xepresource.jar relative
NG> to its root directory 'xep37'.
NG> Hope this helps.
NG> Best regards,
NG> Alexander Peshkov mailto:peshkov@renderx.com
NG> RenderX
scc>> Hi,
scc>> I need to package XEP into an Ear file. I've moved all the jar files
NG> into
scc>> the lib dir under WEB-INF. Where do i put the files under XEP_ROOT/etc
NG> ?
scc>> What do i specify as the xep root in my code?
scc>> Also, I have images in the Web Content dir of my ear file. How do i
NG> access
scc>> them from within my xsl?
scc>> Regards,
scc>> Raj
scc>> -------------------
scc>> (*) To unsubscribe, send a message with words 'unsubscribe
NG> xep-support'
scc>> in the body of the message to majordomo@renderx.com from the address
scc>> you are subscribed from.
scc>> (*) By using the Service, you expressly agree to these Terms of
NG> Service http://www.renderx.com/tos.html
NG> -------------------
NG> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
NG> in the body of the message to majordomo@renderx.com from the address
NG> you are subscribed from.
NG> (*) By using the Service, you expressly agree to these Terms of Service
NG> http://www.renderx.com/tos.html
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
This archive was generated by hypermail 2.1.5 : Tue Mar 23 2004 - 03:44:37 PST