Apache AXIS version in CF9 and CF8?
Anyone know for sure what versions of Axis are in CF8 and CF9? Or how to get Cf to expose that info? Am having parsing problems with a third party XML file, and they're curious as to what version is having the problems. They're putting a line like this after the first line of the file (ie, after the ?XML line): ?bulk application=mr_xml? which is supposed to indicate that the code is machine readable (not sure exactly what that really means, but that's what the third part says. If I remove that line from the file, then it parses ok via CF's xmlParse() function thanks, -reed ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331172 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Apache AXIS version in CF9 and CF8?
Anyone know for sure what versions of Axis are in CF8 and CF9? Or how to get Cf to expose that info? Am having parsing problems with a third party XML file, and they're curious as to what version is having the problems. They're putting a line like this after the first line of the file (ie, after the ?XML line): According to /META-INF/MANIFEST.MF within the axis.jar file on CF 9: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.5.3 Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.) Name: org/apache/axis Implementation-Title: Apache Axis Implementation-Version: 1.2.1 2243 June 14 2005 Implementation-Vendor: Apache Web Services ?bulk application=mr_xml? which is supposed to indicate that the code is machine readable (not sure exactly what that really means, but that's what the third part says. If I remove that line from the file, then it parses ok via CF's xmlParse() function I don't think CF uses Axis to parse XML generally, it's a web service library. The line in question is a directive that specific applications could use to do something particular with that XML file, but other applications should ignore the directive. I don't know why CF isn't ignoring it, but I hope that helps a bit. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsi ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331174 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Apache AXIS version in CF9 and CF8?
Right Dave, I got my wires crossed there. I remember reading something a few years ago about being to replace the xml parser that comes with CF with one of a couple of others - do you know which parse is the one the comes with CF9 (or Cf8, I doubt that it has changed)? thanks -reed Anyone know for sure what versions of Axis are in CF8 and CF9? Or how to get Cf to expose that info? Am having parsing problems with a third party XML file, and they're curious as to what version is having the problems. They're putting a line like this after the first line of the file (ie, after the ?XML line): According to /META-INF/MANIFEST.MF within the axis.jar file on CF 9: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.5.3 Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.) Name: org/apache/axis Implementation-Title: Apache Axis Implementation-Version: 1.2.1 2243 June 14 2005 Implementation-Vendor: Apache Web Services ?bulk application=mr_xml? which is supposed to indicate that the code is machine readable (not sure exactly what that really means, but that's what the third part says. If I remove that line from the file, then it parses ok via CF's xmlParse() function I don't think CF uses Axis to parse XML generally, it's a web service library. The line in question is a directive that specific applications could use to do something particular with that XML file, but other applications should ignore the directive. I don't know why CF isn't ignoring it, but I hope that helps a bit. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsi ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331183 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Apache AXIS version in CF9 and CF8?
Hi Reed, I believe ColdFusion uses the JAXP (Java API For XML Parsing) which uses Apache Xerces on Java 1.5, 1.6 as the default DOM parser. Java 1.4 uses Apache Crimson as the default DOM parser. I have found the current versions of Java 1.6 use Xerces 2.6.2 You can run this code to find out what version of Xerces is being used by a Sun JVM cfset ver = CreateObject(java, com.sun.org.apache.xerces.internal.impl.Version) cfoutputversion = #ver.getVersion()#/cfoutput The JAXP API is pluggable so you can actually plugin a different DOM Parser if you wanted by setting the Java system property: -Djavax.xml.parsers.DocumentBuilderFactory=org.some.other.Factory But given the problem you have, I would simply just strip out the ?bulk application=mr_xml? tag from the XML document, that way you are not so tied to the server environment specifics. I was able to parse a document containing ?bulk application=mr_xml? with XmlParse using Java 1.5, are you running Java 1.4, and thus using crimson? (you can find out what version of java you are using by running this: http://www.petefreitag.com/item/743.cfm) Hope that helps. -- Pete Freitag http://foundeo.com/ - ColdFusion Consulting Products http://petefreitag.com/ - My Blog http://hackmycf.com - Is your ColdFusion Server Secure? On Fri, Feb 26, 2010 at 12:50 PM, Reed Powell r...@powellgenealogy.com wrote: Right Dave, I got my wires crossed there. I remember reading something a few years ago about being to replace the xml parser that comes with CF with one of a couple of others - do you know which parse is the one the comes with CF9 (or Cf8, I doubt that it has changed)? thanks -reed Anyone know for sure what versions of Axis are in CF8 and CF9? Or how to get Cf to expose that info? Am having parsing problems with a third party XML file, and they're curious as to what version is having the problems. They're putting a line like this after the first line of the file (ie, after the ?XML line): According to /META-INF/MANIFEST.MF within the axis.jar file on CF 9: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.5.3 Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.) Name: org/apache/axis Implementation-Title: Apache Axis Implementation-Version: 1.2.1 2243 June 14 2005 Implementation-Vendor: Apache Web Services ?bulk application=mr_xml? which is supposed to indicate that the code is machine readable (not sure exactly what that really means, but that's what the third part says. If I remove that line from the file, then it parses ok via CF's xmlParse() function I don't think CF uses Axis to parse XML generally, it's a web service library. The line in question is a directive that specific applications could use to do something particular with that XML file, but other applications should ignore the directive. I don't know why CF isn't ignoring it, but I hope that helps a bit. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsi ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331187 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Apache AXIS version in CF9 and CF8?
Thanks for all the info Pete. I'm running CF9, so that's Java 1.6, and it uses Xerces 2.9.1, which seems to be the latest. Interesting that you were able to parse the xml using java 1.5 - maybe I'll give this a try on a CF8 box. I'll probably end up doing the stripping of that line, but it's a pain to do that because some of the files are big (400MB+) and don't have any line breaks in them, so first I need to make a pass over the file just to get line breaks before each XML tag, so that I can then use CFLOOP to go through it a second time on a line by line basis. If I try to read that whole file in at once CF (JVM actually) will roll over. thanks again for all the info, still digesting it, -reed ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331189 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4