[jboss-dev-forums] [JBoss AS 7 Development] - Re: @NotFound with archetype jboss-javaee6-webapp
Tomaz Cerar
do-not-reply at jboss.com
Sat Jun 30 18:24:55 EDT 2012
Tomaz Cerar [https://community.jboss.org/people/ctomc] created the discussion
"Re: @NotFound with archetype jboss-javaee6-webapp"
To view the discussion, visit: https://community.jboss.org/message/745240#745240
--------------------------------------------------------------
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
[https://community.jboss.org/message/745240#745240]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120630/6a876581/attachment.html
More information about the jboss-dev-forums
mailing list