Also, your entire @Deployment method.
On Sat, Feb 9, 2013 at 10:14 AM, John D. Ament <[email protected]>wrote: > Luca, > > Can you post your pom.xml? > > John > > > On Sat, Feb 9, 2013 at 10:09 AM, Luca Merolla <[email protected]>wrote: > >> Hi everyone, >> >> I'm trying to add hibernate libraries to use them with Arquillian and >> TomEE. >> To do so, I have found this example: >> >> http://janistoolbox.typepad.com/blog/2012/12/arquillian-rest-client-integration-test-.html >> http://devtoolbox.googlecode.com/svn/trunk/arquillian-rest-spring-test/ >> >> which is using REST and spring. Basically I'm using the same approach, I >> have the hibernate libraries declared in the pom.xml and I'm using >> the resolveArtifact method to load the pom.xml. >> Then, when I'm creating the archive with ShrinkWrap I'm using >> >> >> .addAsLibraries(resolveArtifact("org.hibernate.javax.persistence:hibernate-jpa-2.0-api")) >> >> and I'm getting the following error: http://pastebin.com/BQ7krrXr >> >> Error seems to occur in CountryBeanTest at line 97, where I have: >> MavenDependencyResolver mvnResolver = DependencyResolvers >> .use(MavenDependencyResolver.class); >> >> and it seems related to some missing dependencies: >> NoClassDefFoundError: >> org/sonatype/aether/repository/NoLocalRepositoryManagerException. >> >> Any idea? Thanks in advance. >> LM >> > >
