NoSuchMethodError in javax.persistence.Table.indexes()[Ljavax/persistence/Index

URL url = Thread.currentThread().getContextClassLoader() .getResource(“javax/persistence/Table.class”); System.out.println(url); I’ve ran into the same problem. The question here is that play-java-jpa artifact (javaJpa key in the build.sbt file) depends on a different version of the spec (version 2.0 -> “org.hibernate.javax.persistence” % “hibernate-jpa-2.0-api” % “1.0.1.Final”). When you added hibernate-entitymanager 4.3 this brought the newer spec (2.1) and a different…

Setting up Play Development Environment on Ubuntu

# Configure apt for java # http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html apt-get update apt-get install -y python-software-properties add-apt-repository -y ppa:webupd8team/java echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections # Update apt sources apt-get update apt-get install -y unzip wget git vim oracle-java8-installer oracle-java8-set-default # Install scala cd /opt wget http://www.scala-lang.org/files/archive/scala-2.12.0.tgz tar -zxvf scala-2.12.0.tgz # end scala #Installing playframework on ubuntu…

Installing SBT on Ubuntu

Sbt is the default build tool for Scala. This post talks about steps to install sbt on ubuntu.   Steps to Install SBT on Ubuntu #Add typesafe repository wget http://apt.typesafe.com/repo-deb-build-0002.deb ` #Install the repository sudo dpkg -i repo-deb-build-0002.deb #Refresh sudo apt-get update #Install sbt sudo apt-get install sbt #check whether sbt is installed sbt Add…