Darryl Burke wrote:To find out, I would go through the source of the method and trace the execution. TreeSet#add(...) calls TreeMap#put(...) on a TreeMap constructed with the supplied comparator, and that comparator is used in put(...)
Rob Spoor wrote:If you want to start using a TreeMap you will need to change not only that method, but also all methods that call that method and use Hashtable as reference type. By using Map you can change anytime you want:
If you now need to switch to TreeMap, you only need to change line 3 into this:
All other code will still compile without a problem. And if you really need the Map to be synchronized, just use this:
Peter Johnson wrote:That error usually means that only some of the information for that artifact appears in your local repository. You can usually overcome that by either removing the artifact's directory from your local repository, or by running mvn with the -U parameter.
Another possibility is that the remote repository does not contain the full artifact information (it might have the pom or other metadata files, but not the jar itself). I looked a Maven Central and for version 1.0.1B, there is no JAR file, only a POM. There is a 1.1 version that does have a JAR. You will have to find out which of your dependencies is pulling in the 1.0.1B version, pass the -X option to mvn to get that information. Once you know that, there are several ways to proceed: switch to a different version of that dependency (usually the best course of action), or configure the dependency to ignore the JTA sub-depenendency.
Peter Johnson wrote:None of the Spring JARs are in WEB-INF/lib, and it is a Spring class that is missing.
What do you mean by "Actually Reference Libraries (ie External Jars)"? Exactly where are those JARs located?
Peter Johnson wrote:Post the full stack trace, and post the contents of your WAR (use "jar -tf xxx.war" where xxx.war is the path to your war file)
Peter Johnson wrote:You are missing the JAR file that contains that class.
If you need more help than that, consider providing more information about your application. TellTheDetails
Peter Johnson wrote:Let me google that for you: spring hibernate struts eclipse tutorial. I saw several.