Arquillian error while using with TomEE

I am getting below error while running Arquillian tests in embedded TomEE containerCaused by: javax.el.ELException: Provider com.sun.el.ExpressionFactoryImpl not found at javax.el.FactoryFinder.newInstance(FactoryFinder.java:101) at javax.el.FactoryFinder.find(FactoryFinder.java:197) at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:197) at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:168) at org.apache.jasper.runtime.JspApplicationContextImpl.<init>(JspApplicationContextImpl.java:46) at o...Read more

jboss arquillian - How to make working MavenImporter on Graphene 2.3

I'm working with a web application based on jsf, and I've some functional tests in which Arquillian is used.The dependencies of my pom file are the following<properties> <arquillian.version>1.1.14.Final</arquillian.version> <arquillian.graphene.version>2.2.1</arquillian.graphene.version> <arquillian.glassfish.version>1.0.1</arquillian.glassfish.version></properties><dependencyManagement> <dependencies> <dependency> <groupId>org.jbos...Read more

Arquillian Graphene @InitialPage always returns null

I have a test scenario:@Testpublic void testHomePage(@InitialPage LoginPage loginPage) { loginPage.login(); assertNotNull(welkom.getText());}Driven by an arquillian deployment:@Deployment(testable = true)However, the loginPage.login(); gives me a NPE.When I change testable = false, my test works... I don't understand what I am doing wrong......Read more

Arquillian files 'in classpath' even though not defined in WebArchive when run tests

Testing Arquillian 1.9.final TOMCAT-EMBED-7 container, and I'm getting questionable results around creating a WebArchive for testing.In /src/main/resources, I have several configuration files that I do not want to use when running the integration tests, instead I want to provide named ones stored in /src/embed-itest/resources. org.jboss.shrinkwrap.api.Filter x = Filters.exclude(".*Test.*|.*xml|.*properties"); WebArchive webArchive = ShrinkWrap .create(WebArchive.class, "mytest.war") .addPackages(true, x, "com...Read more

Arquillian, tomee-embedded and JAX-RS

I am using Arquillian with a tomee-embedded container in order to test my JAX-RS web service. In my test case, I am running a jersey test client accessing the provided resource. However, the test always results in a 404 NOT FOUND status when accessing the resource.When deploying the same project on my tomee-jaxrs instance, the resource is provided properly.These are the maven dependencies that I've included in my test project:<dependency> <groupId>org.glassfish.jersey.core</groupId> <artifactId>jersey-server</ar...Read more

How I should point to my resource.xml when I am setting up arquillian with tomee?

With glassfish-embedded server I used the following line in arquillian.xml to specify my resource.xml arquillian.xml <container qualifier="glassfish-embedded" > <configuration> <property name="resourcesXml"> src/test/resources-glassfish-embedded/glassfish-resources.xml </property> </configuration></container>glassfish-resources.xml<resources><jdbc-resource pool-name="ArquillianEmbeddedDerbyPool" jndi-name="jdbc/arquillian"/><jdbc-connection-pool name="Arquill...Read more

WELD-001408 Unsatisfied dependencies for type [Logger] with qualifiers [@Default] at injection point [[field] using arquillian

I am running a basic arquillian unit test, using the Greeter example on the arquillian site. The only difference is that am doing a log.debug in the greet(PrintStream to, String name) function in Greeter.java. Am using slf4j for logging.Greeter.javapackage org.arquillian.example;import java.io.PrintStream;import javax.inject.Inject;import org.slf4j.Logger;public class Greeter {@Injectprivate Logger log; public void greet(PrintStream to, String name) { log.debug("Greeter Testing"); to.println(createGreeting(name)); } publi...Read more

Arquillian: Create a WebArchive from an existing war using ShrinkWrap

I am trying to deploy an existing war from another maven project in Arquillian.I have resolved the war and have it copied to the target directory of my Arquillian project.I try to create it below:@Deploymentpublic static WebArchive createDeployment() { return (WebArchive) ShrinkWrap.create(ZipImporter.class, "MyWarToTest.war").importFrom( new File("target/MyWarToTest.war"));}However, I am getting a class cast exception. Caused by: java.lang.ClassCastException: org.jboss.shrinkwrap.impl.base.importer.zip.ZipImporterImpl cannot be...Read more

Trying to run an Arquillian Test for an ear and getting ArquillianServletRunner not found

I am trying to run a test using Arquillian for my ear. I create the deployment importing my existing ear and then I add a web archive module with my test.@RunWith(Arquillian.class)public class MyTest { @Deployment public static Archive createDeployment() { EnterpriseArchive ear = ShrinkWrap.createFromZipFile(EnterpriseArchive.class , new File("/location/to/my/ear") ); WebArchive arc = Testable.archiveToTest( ShrinkWrap.create(WebArchive.class, "MyTest.war").addClass(MyTest.class).addAsManifestResource(EmptyAsset.INSTANCE, "...Read more

weblogic12c - Arquillian - Not Matching any defined Container for WebLogic

I am trying to setup arquillian with Weblogic 12c. I am not using Maven which is part of the difficulty. I am using Ant. I keep getting the following errors:Could not read active container configuration: nullWhich was caused by:DeploymentScenario contains targets not matching any defined Container in the registry. _DEFAULT_My understanding is that this means that my WebLogic configuration in my arquillian.xml is not being found so it doesn't know what to do.Any ideas?Jar Files Used:1.0.0.Alpha5 versions of:arquillian-junitarquillian-spiarquil...Read more

embedded tomcat 7 - arquillian using a random port with tomcat7 embeded

I'd like to use a random port for arquillian.So in arquillian.xmlI do: <arquillian> <container qualifier="tomcat7" default="true"> <configuration> ... <property name="bindHttpPort">0</property> ... </configuration> </container> </arquillian>In my unit test:@ArquillianResourceprivate URL base;I hope to have the real port (localPort) used by Apache Tomcat (because yes it start with a random port) but this URL is with 0 port the one from configuration not random...Read more

Arquillian with Wildfly 8.0.0.Final Managed not working

I have been using arquillian with jboss-as-7.1.1.Final for a while now.I want to start using wildfly 8.0.0.Final but I cannot get it to work.I have changed only my pom.xml and arquillian.xml.This is my "properties":<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <version.joda.time>2.1</version.joda.time> <version.junit>4.11</version.junit> <version.mockito>1.9.5</version.mockito> <version.jacoco>0.6.0.201210061924</version.jacoco> ...Read more

Use of arquillian glassfish container

I used to have the following maven dependencies to use arquillian glassfish container: <dependency> <groupId>org.jboss.arquillian</groupId> <artifactId>arquillian-junit</artifactId> <scope>test</scope> <version>1.0.0.Alpha5</version> </dependency> <dependency> <groupId>org.jboss.arquillian.container</groupId> <artifactId>arquillian-glassfish-embedded-3.1</artifactId> <version>1.0.0.Alpha5</version> </dependency> ...Read more

Arquillian Shrinkwrap provide custom settings.xml file

I have set up a arquillian project and it all works fine locally but when running the maven build on our continuous integration box it fails. I managed to get to the bottom of the problem and it is because the maven user settings.xml file on the CI box actually has some server definitions (for another project) whereas locally to my machine it is the default file (with no servers defined). The tests throw a RuntimeException because the MavenResolver goes looking for settings-security.xml file which doesn't exist on the CI box.I would prefer not ...Read more