#58 Servlet won't run on server without X ?

release
closed-works-for-me
barcode (4)
5
2004-01-06
2004-01-06
No

Hi,

Just installed Tomcat, the dropped in the krysalis-
barcode.war package, and saw this error:

exception

javax.servlet.ServletException
org.krysalis.barcode.servlet.BarcodeServlet.doG
et(BarcodeServlet.java:190)
javax.servlet.http.HttpServlet.service
(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service
(HttpServlet.java:856)

root cause

java.lang.NoClassDefFoundError
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:141)
java.awt.GraphicsEnvironment.getLocalGraphics
Environment(GraphicsEnvironment.java:62)
java.awt.image.BufferedImage.createGraphics
(BufferedImage.java:1041)
org.krysalis.barcode.output.bitmap.BitmapBuilde
r.prepareGraphics2D(BitmapBuilder.java:114)
org.krysalis.barcode.output.bitmap.BitmapCanv
asProvider.establishDimensions
(BitmapCanvasProvider.java:137)
org.krysalis.barcode.output.Canvas.establishDi
mensions(Canvas.java:94)
org.krysalis.barcode.impl.DefaultCanvasLogicHa
ndler.startBarcode(DefaultCanvasLogicHandler.java:103)
org.krysalis.barcode.impl.Code39LogicImpl.gener
ateBarcodeLogic(Code39LogicImpl.java:251)
org.krysalis.barcode.impl.Code39.generateBarco
de(Code39.java:154)
org.krysalis.barcode.servlet.BarcodeServlet.doG
et(BarcodeServlet.java:175)
javax.servlet.http.HttpServlet.service
(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service
(HttpServlet.java:856)

I don't have any graphics on that server, (I didn't install
X). Is that the problem ?

Thanks,

Simon.

Discussion

  • Jeremias Märki

    Jeremias Märki - 2004-01-06
    • status: open --> closed-works-for-me
     
  • Jeremias Märki

    Jeremias Märki - 2004-01-06

    Logged In: YES
    user_id=225352

    Yes. Here's a good link with information to work around this
    problem: http://xml.apache.org/fop/graphics.html#batik (Look
    at the workarounds)

    Good luck!
    Jeremias Maerki

     
  • Simon Harper

    Simon Harper - 2004-01-06

    Logged In: YES
    user_id=134447

    Thanks for such a prompt response - I shall try the
    workaround as suggested.

    Best wishes,

    Simon

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks