removed duplicate files
fixed poms
added missing beans.xml
extended persistence context
added database-jpa to frontend pom