Thanks to all, i solved this problem creating an ServletContextListener and executing this before all other listeners of my application and put my settings in contextInitialized method like this:
public void contextInitialized(ServletContextEvent event) { try { System.setProperty("javax.xml.transform.TransformerFactory","com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"); System.setProperty("javax.xml.parsers.DocumentBuilderFactory","org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"); System.setProperty("javax.xml.parsers.SAXParserFactory","org.apache.xerces.jaxp.SAXParserFactoryImpl"); } catch (Exception e) { System.out.println(e.getMessage()); } } Thanks for all your help, see you later. :D El jue, 21-10-2010 a las 11:10 +0900, Li Ying escribió: > > Thanks for your answers, i try put next code into web.xml file: > > <!-- xml --> > > <system-property > > javax.xml.parsers.DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/> > > <system-property > > javax.xml.parsers.SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"/> > > <!-- xslt --> > > <system-property > > javax.xml.transform.TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"/> > > > > but doesn't work, and put a jaxp.properties file into > > > What version of web.xml are you using? > I have read > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd > but found nothing about tag [system-property]. > > And, if your setting is correct in schema, > are you sure it is applied to system properties BEFORE the XSL error occurs? > > > > > If you want to change system-property, maybe you can try: > (1) add start-up options like [-DpropName=propValue] in command line > which start the web app server. > > OR > > (2) add a ServletContextListener to you web-app, make it get executed > before anything else. > and in method [contextInitialized] of this Listener, you can set > system-property as you want, by Java code > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > Rodrigo Esteban Cares Guarda Alumno Ingeniería Civil Informática Universidad Austral de Chile 2º GUP Taekwondo WTF Fono: (09) 98364117