Re: How to use krysalis with tomcat ?

Jeremias Maerki <[email protected]> Fri, 13 Aug 2004 08:15:59 +0200
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
Salut Sebastien

Browsing for the error message in the Internet shows me that my
suspicion is right: You've got a problem with Xalan and JDK 1.4.x. See
the following page for ideas to fix the problem. It has nothing to do
with Barcode4J/Krysalis Barcode, except that the servlet uses Xalan via
JAXP.

http://wiki.apache.org/cocoon/EndorsedLibsProblem
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=104547205330116&w=2

I'd try to replace the Xalan in your JDK with the latest version using
the endorsed libraries mechanism and maybe upgrade Tomcat if necessary.

I hope this helps.

(Don't worry about your english. It's better than you think.)

On 13.08.2004 07:39:16 Sebastien POSE wrote:
>  Hi,
> Excuse me for my bad english, I'm french.
> I'm trying to use krysalys. So, I deployed it in tomcat. I put the war in in the webapps directory of tomcat.
> I can have the index.jsp page, but when I try to start le exemple url (gensvg?type=code128&msg=123456), I have this following exception:
> 
> javax.servlet.ServletException: The output format must have a '{http://xml.apache.org/xalan}content-handler' property!
> org.krysalis.barcode.servlet.BarcodeServlet.doGet(BarcodeServlet.java:133)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
> cause mère
> 
> org.apache.xml.utils.WrappedRuntimeException: The output format must have a '{http://xml.apache.org/xalan}content-handler' property!
> org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFactory.java:142)
> org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:232)
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
> org.krysalis.barcode.servlet.BarcodeServlet.doGet(BarcodeServlet.java:123)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> 
> Someone have an idea please? (I use linux)


Jeremias Maerki



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285