veeseekay Posted December 15, 2009 Share Posted December 15, 2009 Hi,I am running my application on weblogic and it is a requirement that jrxmls can be uploaded and compiled at runtime.However, I am getting the following exeption.I have looked at other similar posts and found out that jdt compiler has to be used since weblogic has its own sax parser. I have included this jar(jdtcore.jar) in my class path. I have also modified my weblogic startup script to have this jar ahead of weblogic.jar in the classpath.It still does not help. http://jasperetl.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=45683&page=2 -- provides some clues too, but am unable to get through.Any pointers?TIACheers! Code:Caused by: org.xml.sax.SAXException: http://java.sun.com/xml/jaxp/properties/schemaSource at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(Lorg.xml.sax.InputSource;)V(AbstractSAXParser.java:1203) at weblogic.xml.jaxp.WebLogicXMLReader.parse(Lorg.xml.sax.InputSource;)V(WebLogicXMLReader.java:135) at weblogic.xml.jaxp.RegistryXMLReader.parse(Lorg.xml.sax.InputSource;)V(RegistryXMLReader.java:152) at org.apache.commons.digester.Digester.parse(Lorg.xml.sax.InputSource;)Ljava.lang.Object;(Digester.java:1764) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(Lorg.xml.sax.InputSource;)Lnet.sf.jasperreports.engine.design.JasperDesign;(JRXmlLoader.java:235) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(Ljava.io.InputStream;)Lnet.sf.jasperreports.engine.design.JasperDesign;(JRXmlLoader.java:222) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(Ljava.io.InputStream;)Lnet.sf.jasperreports.engine.design.JasperDesign;(JRXmlLoader.java:210) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(Ljava.io.File;)Lnet.sf.jasperreports.engine.design.JasperDesign;(JRXmlLoader.java:164) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(Ljava.lang.String;)Lnet.sf.jasperreports.engine.design.JasperDesign;(JRXmlLoader.java:148) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(Ljava.lang.String;)Lnet.sf.jasperreports.engine.JasperReport;(JasperCompileManager.java:146) Link to comment Share on other sites More sharing options...
veeseekay Posted December 15, 2009 Author Share Posted December 15, 2009 I have worked around this issue for the time being. I am not sure if it can be leveraged as a proper fix though. I have added xercesImpl.jar in the classpath, which, now appears before the weblogic.jar. Hence my web-app finds the SAXParser.class in the xercesImpl.jar.Also added the following piece of code :System.setProperty("org.xml.sax.driver", "org.apache.xerces.parsers.SAXParser") cheers! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now