JBOSS and apache FOP
neptune5 Jun 28, 2004 4:50 PMHi All
Think this is missing sun class in the jboss application anyway. This only goes wrong when trying to print the pdf version works ok. But looking at this error it looks like theres a missing sun class. By the way this process works ok on the machine - its only when processed thru jboss it goes wrong.
Jboss version is 3.2.1 Java is 1.4_05..
the bold bit below is my programs. Which work as standalone.
22:20:12,268 INFO [STDOUT] building formatting object tree
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
22:20:12,627 ERROR [LogInterceptor] TransactionRolledbackLocalException, causedBy:
javax.ejb.EJBException: Unexpected Error
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:125)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
at org.apache.fop.render.awt.AWTRenderer.setupFontInfo(AWTRenderer.java:505)
at org.apache.fop.apps.StreamRenderer.startRenderer(StreamRenderer.java:187)
at org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:240)
at org.apache.xalan.transformer.ResultTreeHandler.flushDocEvent(ResultTreeHandler.java:824)
at org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandler.java:911)
at org.apache.xalan.transformer.ResultTreeHandler.startElement(ResultTreeHandler.java:241)
at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:642)
at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2182)
at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2008)
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:715)
at org.apache.xerces.impl.XMLNamespaceBinder.endDocument(XMLNamespaceBinder.java:704)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(XMLDTDValidator.java:985)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:437)
at org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1159)
at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(XMLEntityManager.java:3204)
at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(XMLEntityManager.java:2861)
at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:987)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
at org.apache.fop.apps.Driver.render(Driver.java:498)
at Utils.XML2Print.convertXML2Print(XML2Print.java:94)
at Order.Order2XML.doOutputPrint(Order2XML.java:131)
at Order.Order2XML.(Order2XML.java:61)
at Order.OrderEJB.printOrder(OrderEJB.java:870)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)