> I've been experimenting w/ the latest MLSQL, and had a question > regarding the jdom.jar file which is included w/ the MLSQL > distribution. The MANIFEST.MF inside the .jar indicates that it is JDOM > Implementation-Version: 1.0.1, but I don't see that version listed on > the JDOM site (http://www.jdom.org/news/index.html) - it looks like it > was built 9/14/2005...
All JDOM versions are available in the archives: http://jdom.org/dist/binary/archive/ > Where it gets tricky is that I'm trying to add the MLSQL servlet to an > existing Java webapp where JDOM is already in use > (Implementation-Version: 1.0beta10)... Beta 10 is a pre-release from six years ago. Let's see if I can remember that far back... > When I use the 1.0beta10 version I get the following error: > java.lang.NoSuchMethodError: > org.jdom.Element.addContent(Lorg/jdom/Content;)Lorg/jdom/Element; Yes, that was a change between beta10 and 1.0. The list of changes between Beta 10 and 1.0 are included in the CHANGES.txt file in the root of the JDOM distribution. There's a few API changes (we never promised permanent backward compatibility with the pre-release betas) but regardless you should upgrade because a lot of bugs were fixed since Beta 10. Some performance improvements too. > The version bundled with MLSQL remedies the problem (as does JDOM > version 1.0), but I'm concerned that deploying a newer version will > break something. Initial tests are good, but this is a large > application with 30+ developers, so I'm not sure of all the code that is > dependent on JDOM... > > Can you say with any degree of certainty that code written against JDOM > 1.0beta10 will be compatible with JDOM version 1.0 or 1.0.1? If forced > to, will MLSQL work with JDOM version 1.0? The JDOM API changed between Beta 10 and the 1.0 release. You shouldn't back-port MLSQL to Beta 10; you should upgrade the code to JDOM 1.0.1 or really JDOM 1.1.1. JDOM is maintaining backward compatibility between 1.x releases. I'm pretty sure MLSQL will work well against JDOM 1.1.1 also. Now back to the regularly scheduled MarkLogic specific discussions... :) -jh- _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
