Hi Cesar, Just for check, can you confirm what FOP version you want to use? Your userconfig.xml file is for FOP v0.20.5, not for current versions of FOP.
Pascal > -----Message d'origine----- > De : Cesar Santofimia [mailto:[EMAIL PROTECTED] > Envoyé : jeudi 3 mai 2007 17:18 > À : [email protected] > Objet : Re: Problem with XSLTInputHandler and Driver class > > Hi Adrian, > > I think the contents of these files are right because when i > treated both xml and xsl source like File objects i hadn´t > any problem. > > The xml source is a String received as a request parameter, > and its code is: > > <?xml version="1.0" > encoding="UTF-8"?><informe><datos_vida_laboral><cuerpo><datos_ > trabajador><fecha_larga>1 > de > agosto</fecha_larga><nombre></nombre><fecha_nac></fecha_nac><n > umero_ss></numero_ss><dni></dni></datos_trabajador></cuerpo></ > datos_vida_laboral></informe> > > Is that right? Can i use this string as a InputSource > parameter in the XSLTInputHandler constructor method? This is > my first doubt... > > The xsl source is the atached file informe.xsl, and exists in > PATH_TO_XSL. > At this moment only loads the fecha_larga value received in > the xml source. > > My userconfig.xml file only contains fonts information. > > And finally, the stack trace: > > org.apache.fop.apps.FOPException: > javax.xml.transform.TransformerConfigurationException: > javax.xml.transform.TransformerException: > java.net.MalformedURLException > [3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr R at > java.lang.Throwable.<init>(Throwable.java:59) > [3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr R at > java.lang.Throwable.<init>(Throwable.java:73) > [3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr R at > org.apache.fop.apps.FOPException.<init>(FOPException.java:88) > [3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr R at > org.apache.fop.apps.TraxInputHandler.initTransformer(TraxInput > Handler.java:108) > [3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr R at > org.apache.fop.apps.TraxInputHandler.<init>(TraxInputHandler.java:100) > [3/05/07 17:03:32:406 CEST] 7bec7bec SystemErr R at > org.apache.fop.apps.XSLTInputHandler.<init>(XSLTInputHandler.java:81) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > fop.negocio.FopJaGestor.ejecutar(FopJaGestor.java) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > fop.servlet.FopServlet.doGet(FopServlet.java) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.servlet.StrictServletInstance.doServic > e(StrictServletInstance.java:110) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._servic > e(StrictLifecycleServlet.java:174) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.servlet.IdleServletState.service(Stric > tLifecycleServlet.java:313) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service > (StrictLifecycleServlet.java:116) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.servlet.ServletInstance.service(Servle > tInstance.java:283) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dis > patch(ValidServletReferenceState.java:42) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispa > tch(ServletInstanceReference.java:40) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleW > ebAppDispatch(WebAppRequestDispatcher.java:983) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatc > h(WebAppRequestDispatcher.java:564) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward > (WebAppRequestDispatcher.java:200) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvo > ker.java:119) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook > (WebAppInvoker.java:276) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.hand > leInvocation(CachedInvocation.java:71) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationCo > ntext.invoke(CacheableInvocationContext.java:116) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchBy > URI(ServletRequestProcessor.java:186) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.serv > ice(OSEListener.java:334) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Http > Connection.java:56) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnec > tion.java:618) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R at > com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672) > [3/05/07 17:03:32:421 CEST] 7bec7bec SystemErr R > --------- > > [3/05/07 17:03:32:453 CEST] 7bec7bec SystemErr R > javax.xml.transform.TransformerConfigurationException: > javax.xml.transform.TransformerConfigurationException: > javax.xml.transform.TransformerException: > java.net.MalformedURLException > at java.lang.Throwable.<init>(Throwable.java:59) > at java.lang.Throwable.<init>(Throwable.java:73) > at > javax.xml.transform.TransformerException.<init>(Unknown Source) > at > org.apache.xalan.processor.TransformerFactoryImpl.newTransform > er(TransformerFactoryImpl.java:718) > at > org.apache.fop.apps.TraxInputHandler.initTransformer(TraxInput > Handler.java:104) > at > org.apache.fop.apps.TraxInputHandler.<init>(TraxInputHandler.java:100) > at > org.apache.fop.apps.XSLTInputHandler.<init>(XSLTInputHandler.java:81) > at fop.negocio.FopJaGestor.ejecutar(FopJaGestor.java) > at fop.servlet.FopServlet.doGet(FopServlet.java) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > com.ibm.ws.webcontainer.servlet.StrictServletInstance.doServic > e(StrictServletInstance.java:110) > at > com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._servic > e(StrictLifecycleServlet.java:174) > at > com.ibm.ws.webcontainer.servlet.IdleServletState.service(Stric > tLifecycleServlet.java:313) > at > com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service > (StrictLifecycleServlet.java:116) > at > com.ibm.ws.webcontainer.servlet.ServletInstance.service(Servle > tInstance.java:283) > at > com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dis > patch(ValidServletReferenceState.java:42) > at > com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispa > tch(ServletInstanceReference.java:40) > at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleW > ebAppDispatch(WebAppRequestDispatcher.java:983) > at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatc > h(WebAppRequestDispatcher.java:564) > at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward > (WebAppRequestDispatcher.java:200) > at > com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvo > ker.java:119) > at > com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook > (WebAppInvoker.java:276) > at > com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.hand > leInvocation(CachedInvocation.java:71) > at > com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationCo > ntext.invoke(CacheableInvocationContext.java:116) > at > com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchBy > URI(ServletRequestProcessor.java:186) > at > com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.serv > ice(OSEListener.java:334) > at > com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Http > Connection.java:56) > at > com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnec > tion.java:618) > at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439) > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672) > Caused by: javax.xml.transform.TransformerConfigurationException: > javax.xml.transform.TransformerException: > java.net.MalformedURLException > at java.lang.Throwable.<init>(Throwable.java:59) > at java.lang.Throwable.<init>(Throwable.java:73) > at > javax.xml.transform.TransformerException.<init>(Unknown Source) > at > org.apache.xalan.processor.TransformerFactoryImpl.newTemplates > (TransformerFactoryImpl.java:860) > at > org.apache.xalan.processor.TransformerFactoryImpl.newTransform > er(TransformerFactoryImpl.java:701) > at > org.apache.fop.apps.TraxInputHandler.initTransformer(TraxInput > Handler.java:104) > at > org.apache.fop.apps.TraxInputHandler.<init>(TraxInputHandler.java:100) > at > org.apache.fop.apps.XSLTInputHandler.<init>(XSLTInputHandler.java:81) > at fop.negocio.FopJaGestor.ejecutar(FopJaGestor.java) > at fop.servlet.FopServlet.doGet(FopServlet.java) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > com.ibm.ws.webcontainer.servlet.StrictServletInstance.doServic > e(StrictServletInstance.java:110) > at > com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._servic > e(StrictLifecycleServlet.java:174) > at > com.ibm.ws.webcontainer.servlet.IdleServletState.service(Stric > tLifecycleServlet.java:313) > at > com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service > (StrictLifecycleServlet.java:116) > at > com.ibm.ws.webcontainer.servlet.ServletInstance.service(Servle > tInstance.java:283) > at > com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dis > patch(ValidServletReferenceState.java:42) > at > com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispa > tch(ServletInstanceReference.java:40) > at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleW > ebAppDispatch(WebAppRequestDispatcher.java:983) > at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatc > h(WebAppRequestDispatcher.java:564) > at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward > (WebAppRequestDispatcher.java:200) > at > com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvo > ker.java:119) > at > com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook > (WebAppInvoker.java:276) > at > com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.hand > leInvocation(CachedInvocation.java:71) > at > com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationCo > ntext.invoke(CacheableInvocationContext.java:116) > at > com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchBy > URI(ServletRequestProcessor.java:186) > at > com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.serv > ice(OSEListener.java:334) > at > com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Http > Connection.java:56) > at > com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnec > tion.java:618) > at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439) > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672) > > > Thanks, > > Cesar. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
