Hello and welcome to Android Forums! If you've entered a pattern lock (or password, for that matter) too many times, the phone should prompt you to unlock it with the credentials for the Google account to which it's registered. One caveat is that you must have a data connection enabled on the phone for this to work ... either 3G or Wifi ... so that Google's servers can authenticate the account. If you have entered the pattern but do not know the credentials or have Wifi and 3G both off, there's little to do other than a full reset. If you run into any more difficulties, the members in Samsung Galaxy Ace - Android Forums will be happy to help you out.
Thanks for coming here for help. I hope the info that Lunatic had posted was useful to you. Enjoy your stay here. Happy Holidays.