I found this suspect if i use the maven to download objectdb.
<dependency>
<groupId>com.objectdb</groupId>
<artifactId>objectdb</artifactId>
<version>2.6.2</version>
</dependency>
I got follow Java Warning that tells me that Entity Class will be ignored.
../WEB-INF/lib/objectdb-2.6.2.jar' contains offending class: javax.persistence.Entity. It will be ignored.
If i download the jar File from this site and add the Dependency as an SystemPath all works are fine.
Whats the problem?
<dependency>
<groupId>objectdb</groupId>
<artifactId>com.objectdb</artifactId>
<version>2.6.2</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/mahi/objectdb/objectdb.jar</systemPath>
</dependency>
I use also follow Dependencies too.
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<version>${jsf-myfaces.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-el_2.2_spec</artifactId>
<version>1.0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_3.0_spec</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.2</version>
</dependency>