Hi, I use a JBOSS 4.04 (Seam + JSF/Facelet) with a JVM Sun 1.5.09.
One service must convert HTML to PDF. For this task, IText v.1.4.7 (http://www.lowagie.com/iText/) library is employed. But IText requires a SAX parser factory and when I'm calling action, I obtain the next exception : | 16:24:59,765 ERROR [STDERR] Error while converting document. Message: org.apache.xerces.jaxp.SAXParserFactoryImpl | 16:24:59,765 ERROR [STDERR] java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl | 16:24:59,765 ERROR [STDERR] at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source) In my classpath : commons-beanutils-1.7.0.jar | commons-codec-1.3.jar | commons-digester-1.6.jar | emma_ant.jar | emma.jar | hibernate-all.jar | javax.servlet.jsp.jar | jboss-aop-jdk50.jar | jboss-cache-jdk50.jar | jboss-ejb3-all.jar | jbpm-3.1.1.jar | jgroups.jar | jstl.jar | mailstuff.jar | myfaces-api-1.1.3.jar | myfaces-impl-1.1.3.jar | portlet-api-lib.jar | servlet-api.jar | testng-4.5.1-jdk15.jar | jboss-seam-debug.jar | jboss-seam-ui.jar | jboss-seam.jar | postgresql-8.1-407.jdbc3.jar | commons-io-1.1.jar | itext-1.4.7.jar | Tidy.jar | thirdparty-all.jar | xerces.jar | resolver.jar | serializer.jar | xml-apis.jar | EAR hierarchy : EAR | + itext-1.4.7.jar | + jboss-seam.jar | + jbpm-3.1.1.jar | + Tidy.jar | + application.jar | + application.ear Partial code of service : | try { | SAXParserFactory factory = SAXParserFactory.newInstance(); | SAXParser saxParser = factory.newSAXParser(); | | if (saxParser != null) { | Document document = new Document(PageSize.A4); | PdfWriter.getInstance(document, out); | } | } | catch (ParserConfigurationException e) | { | System.err.println("[ParserConfigurationException] Error while converting document. Message: " + e.getMessage()); | } | catch (Exception e) { | System.err.println("Error while converting document. Message: " + e.getMessage()); | e.printStackTrace(); | } Exist there a configuration handling to solve this problem ? Thank you for your help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990122#3990122 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990122 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
