Did you change the Hibernate jars to expose your CustomHibernatePeristence class instead of the standard HibernatePeristence? Look at the contents of your fork of the Hibernate entity manager jar for the contents of file META-INF/services/javax.persistence.spi.PersistenceProvider.
You probably didn't change that or add one in your custom jar. Your custom persistence provider is not a provider, without doing this.