Results 1 to 3 of 3

Thread: No bean named 'dataSource'

  1. #1

    Default No bean named 'dataSource'

    I'm imaging that this is related to the new profile feature -- I've add the additional VM argument, but when running the app (STS 2.5.0) I get the error about no bean named dataSource. Any way to check the current profile or further investigate the problem?

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    Make sure to set -DspringProfiles=embedded.

    Keith
    Keith Donald
    Core Spring Development Team

  3. #3

    Default

    yeah, i had tried that. Apparently it wasn't sticking in the run configuration, I placed that directive first in the list of VM arguments, rather than last, and now it works
    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •