From: Jeffrey F. <JFr...@al...> - 2002-10-11 00:29:40
|
You'll need to specify the encoding on your log element. CC tries to guess at the proper encoding for your locale but at the moment it isn't a very good guesser. :) http://cruisecontrol.sourceforge.net/main/configxml.html#log <http://cruisecontrol.sourceforge.net/main/configxml.html#log> Try something like: encoding="utf-8" as an attribute on the log element. Jtf -----Original Message----- From: vk d [mailto:vkd...@ya...] Sent: Thursday, October 10, 2002 4:06 PM To: cru...@li... Subject: [Cruisecontrol-user] CC 2.0 with JRun - buildresults.jsp throws encoding errors and thrashes Jrun process Hi, I've been trying to set up the cruise control jsp (v2.0) to run with JRun 3.0 (Version 3.02a.16777), and have been running into multiple problems. 1. Got a lot of javax.xml.transform.TransformerConfigurationException: Namespace not supported by SAXParser errors in default-out.log. Solved this by replacing jaxp.jar and parser.jar in <JRun>\lib\ext with xerces.jar from the cc distro. 2. My current problem is that I'm getting the following exception in default-out.log: org.xml.sax.SAXParseException: The encoding "Cp1252" is not supported. at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa ultEntityHandler.java:541) at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:312) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1080) at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java:349) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 630) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1088) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1066) at net.sourceforge.cruisecontrol.taglib.XSLTag.transform(XSLTag.java:83) at net.sourceforge.cruisecontrol.taglib.XSLTag.writeContent(XSLTag.java:230) at net.sourceforge.cruisecontrol.taglib.XSLTag.doEndTag(XSLTag.java:247) at jrun__buildresults2ejsp11._jspService(jrun__buildresults2ejsp11.java:143) at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1024) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:936) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:88) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1143) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1133) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330) at allaire.jrun.jrpp.ProxyEndpoint.run(../jrpp/ProxyEndpoint.java:382) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) Also the error messages show up only once. The result is that the jsp page shows up, with a blank content area. Refreshing the browser causes the cpu and mem usage to peak, and the page never returns. Any ideas?Am I doing anything wrong? BTW, in case anybody is interested, here're some other small things I had to do to get everything to this point: 1. Include the taglib element in web.xml: <taglib> <taglib-uri>/WEB-INF/cruisecontrol-jsp11.tld</taglib-uri> <taglib-location>/WEB-INF/cruisecontrol-jsp11.tld</taglib-location> </taglib> without this you get a wierd null error on the browser. 2. Just to make my life a lot more fun, we use pvcs, and cc2.0 needs some tweaks for it to work correctly.: a) if you're on Windows and pvcs has authentication set up, an easy way to make the pcli commands in PVCS.java work correctly is to set an system var: PCLI_ID=userid:pwd. b) PVCS.java creates a cruiseControlPVCS.pcli and executes it. This creates a files.tmp which is used by vlog to generate vlog.txt. vlog seems to be taking 2 \'s as a single one and fails to find the versioned file (Our pvcs is on a network, so project path is a UNC).An quick code fix for this is to take out the double quotes surrounding the @files.tmp. This way substitution occurs and the vlog command works. Dunno if there are any size restrictions on the command line , tho. Seems to work for me. c) if you're using version 6.7 of pcli then the datetimeformat set in DateFormatFactory will not work. Upgrade to 6.8 or change the code. Like to have: an attribute to set the format. This should future-proof against merant's changes in format. Thanks in advance, vkd _____ Do you Yahoo!? Faith Hill <http://faith.yahoo.com> - Exclusive Performances, Videos, & more faith.yahoo.com <http://faith.yahoo.com> |