Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3366

dbcp jar dependence issue on roo generate project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Complete
    • Affects Version/s: 1.2.3.RELEASE
    • Fix Version/s: 1.2.4.RELEASE
    • Component/s: WEB MVC
    • Labels:
      None
    • Environment:
      jdk1.6

      Description

      I found an issue when I generate project used spring roo, it generate a dbcp1.3 jar file to me, so when I use @Lob mapping field, I took a exception:org.apache.commons.dbcp.DelegatingPreparedStatement.setBinaryStream(ILjava/io/InputStream;J)V
      I took one day find the reason, but google have pool information on it, finally I find some useful information on apache dbcp project page:

      DBCP 1.4 binaries should be used by applications running under JDK 1.6.

      DBCP 1.3 should be used when running under JDK 1.4 or 1.5.

      so I change the version to 1.4, everything working ok.

        Attachments

          Activity

            People

            Assignee:
            stewarta Alan Stewart
            Reporter:
            smiling_zhai Tony Zhai
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: