-
1. Re: Testing on JBoss AS 4.2
aslak Jul 28, 2011 11:18 AM (in response to htfv)Could you provide a example @Deployment that does not work ?
-
2. Re: Testing on JBoss AS 4.2
htfv Jul 28, 2011 11:26 AM (in response to aslak)Here you are:
@Deployment
public static WebArchive createDeployment()
{
return WebArchive archive = ShrinkWrap.create(WebArchive.class)
.addClasses(
PersistenceIntegrationTestImpl.class,
TestEntityManagerProducer.class)
.addPackages(true,
"com.brandmaker.persistence.dao",
"com.brandmaker.persistence.entities",
"com.brandmaker.persistence.utils")
.addAsResource("test-persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource("test-beans.xml", "beans.xml")
.addAsWebInfResource("test-web.xml", "web.xml");
.addAsLibraries(DependencyResolvers
.use(MavenDependencyResolver.class)
.loadDependenciesFromPom("src/test/resources/dependencies.xml")
.resolveAsFiles())
.addAsLibraries(DependencyResolvers
.use(MavenDependencyResolver.class)
.loadDependenciesFromPom("src/test/resources-jbossas-4/dependencies.xml")
.resolveAsFiles());
}
dependencies.xml files contain Seam Persistence 3.0.1-SNAPSHOT and Weld 1.1.1.Final.
Or do you need the complete project?
-
3. Re: Testing on JBoss AS 4.2
htfv Jul 28, 2011 1:46 PM (in response to htfv)Here is a small test project which shows the problem. There are 2 profiles: arquillian-jbossas-managed-4 and arquillian-jbossas-managed-7. It works perfectly in JBoss AS 7 but not in JBoss AS 4.2. There are absolute paths in arquillian.xml files, you have to fix those.
-
arquillian-jbossas-4.zip 3.6 KB
-
-
-
-
6. Re: Testing on JBoss AS 4.2
htfv Aug 4, 2011 11:26 AM (in response to aslak)I checked it today, it works. Thanks for the fix.
BTW, jbossas-remote-5 build fails with the following error:
[ERROR] Failed to execute goal on project arquillian-jbossas-remote-5: Could not resolve dependencies for project org.jboss.arquillian.container:arquillian-jbossas-remote-5:jar:1.0.0.Final-SNAPSHOT: Failed to collect dependencies for [org.jboss.arquillian.core:arquillian-core-spi:jar:1.0.0.Final-SNAPSHOT (compile), org.jboss.arquillian.container:arquillian-container-spi
:jar:1.0.0.Final-SNAPSHOT (compile), org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.0.0.Final-SNAPSHOT (compile), org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.0.0.Final-SNAPSHOT (compile), org.jboss.arquillian.testenricher:arquillian-testenricher-ejb:jar:1.0.0.Final-SNAPSHOT (compile), org.jboss.arquillian.testenricher:arquillian-testenricher-resource:jar:1.0.0.Final-SNAPSHOT (compile), org.jboss.arquillian.testenricher:arquillian-testenricher-initialcontext:jar:1.0.0.Final-SNAPSHOT (compile), org.jboss.jbossas:jboss-as-client:pom:5.0.1.GA (provided)]: Failed to read artifact descriptor for trove:trove:jar:2.1.1: Could not transfer artifact trove:trove:pom:2.1.1 from/to repository.jboss.org (http://repository.jboss.org/maven2): Access denied to: http://repository.jboss.org/maven2/trove/trove/2.1.1/trove-2.1.1.pom -> [Help 1]
Not nice ))
-
7. Re: Testing on JBoss AS 4.2
aslak Aug 4, 2011 2:24 PM (in response to htfv)yea, engineering closed down that repo for external access.. i thought they had opened it again already.. hmm
-
8. Re: Testing on JBoss AS 4.2
htfv Aug 23, 2011 8:08 AM (in response to aslak)Is it possible to release new versions of JBoss AS containers? The newest which I can find in repository is 1.0.0.CR1.
-
9. Re: Testing on JBoss AS 4.2
aslak Aug 23, 2011 11:21 AM (in response to htfv)Is there anything specific you're looking for to be fixed? Or just craving a new version number ?
If you want to use it with a newer Arq Core v. use the Arquillian Core BOM and Mavens DependencyManagement:
https://gist.github.com/1154075
This is the recommended setup going forward, that will upgrade all the deps the Container has on Core to the Core v. you have choosen, not the Core v. the Contianer was compiled/released against.
-
10. Re: Testing on JBoss AS 4.2
htfv Aug 23, 2011 11:25 AM (in response to aslak)Yes, ARQ-534 and ARQ-535. I can build containers locally, but I don't want to deploy them in company Maven repository.
-
11. Re: Testing on JBoss AS 4.2
aslak Aug 23, 2011 1:12 PM (in response to htfv)JBoss Containers released in 1.0.0.CR2