JBoss Community

Re: @NotFound with archetype jboss-javaee6-webapp

created by Tomaz Cerar in JBoss AS 7 Development - View the full discussion

Hi,

 

AS7 uses hibernate 4.1.x and all jars for it are allready present in app server.

there is no need to add hibernate jars to your application.

 

Just make sure you import right class, as this annotations is now part of hibernate-orm and no need to add extra dependancy.

 

add to your application pom.xml

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.1.3.Final</version>

<scope>provided</scope>

</dependency

make sure you have scope set to provided so it won't include this dependancy in your deployment.

 

--

tomaz

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community