Announcement Announcement Module
Collapse
No announcement yet.
Jodatime library not available Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jodatime library not available

    Help! Here is my code:
    Code:
    public class Company {
             @DateTimeFormat(pattern="M/d/yy h:mm a")
             private Date cutOffTime;
    I already included joda libraries in my lib folder (WEB-INF/lib) and here is my error:
    Code:
    2011-04-08 10:34:04,250 ERROR [org.springframework.web.servlet.tags.form.InputTag] - <Unable to convert value 2001-11-12 00:00:00.0 from type 'java.util.Date' to type 'java.lang.String';
     nested exception is java.lang.IllegalStateException: JodaTime library not available - @DateTimeFormat not supported>
    
    org.springframework.core.convert.ConversionFailedException: Unable to convert value 2001-11-12 00:00:00.0 from type 'java.util.Date' to type 'java.lang.String';
     nested exception is java.lang.IllegalStateException: JodaTime library not available - @DateTimeFormat not supported

  • #2
    Is Jodatime on your runtime classpath or your development / IDE classpath?

    Comment


    • #3
      I already solved it! I copied the jar files in Apache lib and it just worked. Im on Eclipse and what I did before that was to include it in my WEB-INF/lib folder. Why does this happen?

      Comment

      Working...
      X