ibm was - Error when running Arquillian with was embedded -
i trying reproduce test described in arquillian guide [1]. able build arquillian-was-embedded-8 source code indicated here [2], when running test project using "mvn test" following exception:
enterprise javabeans (ejb) module not have enterprise beans configured. include full trace below.
anyone able shed light here?
[1] http://arquillian.org/guides/getting_started/
[2] https://developer.jboss.org/message/851222#851222
running org.arquillian.example.greetertest 3e7ee07e-9d99-45a7-a2f9-5d8c934f7c49.jar: /org/ /org/arquillian/ /org/arquillian/example/ /org/arquillian/example/greeter.class /meta-inf/ /meta-inf/beans.xml cntr9269w: 3e7ee07e-9d99-45a7-a2f9-5d8c934f7c49.jar enterprise javabeans (ejb) module not have enterprise beans configured. wsvr0040e: addejbmodule failed 3e7ee07e-9d99-45a7-a2f9-5d8c934f7c49.jar com.ibm.ejs.container.ejbconfigurationexception: 3e7ee07e-9d99-45a7- a2f9-5d8c934f7c49.jar enterprise javabeans (ejb) module not have enterprise beans configured. @ com.ibm.ws.ejbcontainer.runtime.abstractejbruntime.startmodule(abstractejbruntime.java:747) @ com.ibm.websphere.ejbcontainer.embeddablecontainer.startmodules(embeddablecontainer.java:965) @ com.ibm.websphere.ejbcontainer.embeddablecontainer.start(embeddablecontainer.java:922) @ com.ibm.websphere.ejbcontainer.embeddablecontainer.open(embeddablecontainer.java:429) @ com.ibm.websphere.ejbcontainer.embeddablecontainer.newcontainer(embeddablecontainer.java:382) @ com.ibm.websphere.ejbcontainer.embeddablecontainerprovider.createejbcontainer(embeddablecontainerprovider.java:75) @ javax.ejb.embeddable.ejbcontainer.createejbcontainer(ejbcontainer.java:56) @ org.jboss.arquillian.container.was.embedded_8.websphereembeddedcontainer.deploy(websphereembeddedcontainer.java:126) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller$3.call(containerdeploycontroller.java:161) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller$3.call(containerdeploycontroller.java:128) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller.executeoperation(containerdeploycontroller.java:271) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller.deploy(containerdeploycontroller.java:127) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:60) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:611) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.invokeobservers(eventcontextimpl.java:99) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:81) @ org.jboss.arquillian.container.impl.client.containerdeploymentcontexthandler.createdeploymentcontext(containerdeploymentcontexthandler.java:78) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:60) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:611) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:88) @ org.jboss.arquillian.container.impl.client.containerdeploymentcontexthandler.createcontainercontext(containerdeploymentcontexthandler.java:57) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:60) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:611) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:88) @ org.jboss.arquillian.container.impl.client.container.deploymentexceptionhandler.verifyexpectedexceptionduringdeploy(deploymentexceptionhandler.java:50) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:60) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:611) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:88) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:145) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:116) @ org.jboss.arquillian.core.impl.eventimpl.fire(eventimpl.java:67) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller$1.perform(containerdeploycontroller.java:95) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller$1.perform(containerdeploycontroller.java:80) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller.foreachdeployment(containerdeploycontroller.java:263) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller.foreachmanageddeployment(containerdeploycontroller.java:239) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller.deploymanaged(containerdeploycontroller.java:79) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:60) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:611) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.invokeobservers(eventcontextimpl.java:99) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:81) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:145) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:116) @ org.jboss.arquillian.core.impl.eventimpl.fire(eventimpl.java:67) @ org.jboss.arquillian.container.test.impl.client.containereventcontroller.execute(containereventcontroller.java:101) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:60) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:611) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.invokeobservers(eventcontextimpl.java:99) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:81) @ org.jboss.arquillian.test.impl.testcontexthandler.createclasscontext(testcontexthandler.java:92) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:60) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:611) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:88) @ org.jboss.arquillian.test.impl.testcontexthandler.createsuitecontext(testcontexthandler.java:73) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:60) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:611) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:88) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:145) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:116) @ org.jboss.arquillian.test.impl.eventtestrunneradaptor.beforeclass(eventtestrunneradaptor.java:87) @ org.jboss.arquillian.junit.arquillian$2.evaluate(arquillian.java:201) @ org.jboss.arquillian.junit.arquillian.multiexecute(arquillian.java:422) @ org.jboss.arquillian.junit.arquillian.access$200(arquillian.java:54) @ org.jboss.arquillian.junit.arquillian$3.evaluate(arquillian.java:218) @ org.junit.runners.parentrunner.run(parentrunner.java:363) @ org.jboss.arquillian.junit.arquillian.run(arquillian.java:166) @ org.apache.maven.surefire.junit4.junit4provider.execute(junit4provider.java:252) @ org.apache.maven.surefire.junit4.junit4provider.executetestset(junit4provider.java:141) @ org.apache.maven.surefire.junit4.junit4provider.invoke(junit4provider.java:112) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:60) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:37) @ java.lang.reflect.method.invoke(method.java:611) @ org.apache.maven.surefire.util.reflectionutils.invokemethodwitharray(reflectionutils.java:189) @ org.apache.maven.surefire.booter.providerfactory$providerproxy.invoke(providerfactory.java:165) @ org.apache.maven.surefire.booter.providerfactory.invokeprovider(providerfactory.java:85) @ org.apache.maven.surefire.booter.forkedbooter.runsuitesinprocess(forkedbooter.java:115) @ org.apache.maven.surefire.booter.forkedbooter.main(forkedbooter.java:75)
update:
the problems seems during deployment of created jar contains test classes. see trace below:
------------------------------------------------------- t e s t s ------------------------------------------------------- running org.arquillian.example.greetertest 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer setup feiner: entry 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer setup feiner: return 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer start feiner: entry 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: entry 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd displayname: 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd id: 4232 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd displayname: 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd id: 6000 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd displayname: org.codehaus.plexus.classworlds.launcher.launcher - b test 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd id: 3768 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd displayname: c:\users\udvt0160\workspace-tests\arquillian- test\target\surefire\surefirebooter5761378801456940119.jar c:\users\udvt0160\workspace-tests\arquillian- test\target\surefire\surefire4408666051028541749tmp c:\users\udvt0160\workspace-tests\arquillian- test\target\surefire\surefire_05431784421594739159tmp 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd id: 6608 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd displayname: org.codehaus.plexus.classworlds.launcher.launcher - b test 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd id: 3304 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: return 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer start feiner: starting server command: [c:\program files\java\jdk1.6.0_33\jre/bin/java, -javaagent:lib/bootstrap-agent.jar, - jar, lib/ws-launch.jar, defaultserver] start von defaultserver (websphere application server 8.5.5.6/wlp- 1.0.9.cl50620150610-1749) auf java hotspot(tm) 64-bit server vm, version 1.6.0_33-b05 (de_at) [audit ] cwwke0001i: der server defaultserver wurde gestartet. [audit ] cwwke0100i: dieses produkt ist für den entwicklungseinsatz und einen beschränkten produktionseinsatz lizenziert. die vollständigen lizenzbedingungen finden sie unter https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/license/base_ilan/ilan/8.5.5.6/lafiles/de.html. 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: entry 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd displayname: 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd id: 4232 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd displayname: 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd id: 6000 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd displayname: lib/ws-launch.jar defaultserver 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: vmd id: 5028 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer findvirtualmachineidbyname feiner: return 5028 28.08.2015 08:50:45 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer getvmlocalconnectoraddress feiner: service url: null 28.08.2015 08:50:46 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer getvmlocalconnectoraddress feiner: service url: null [audit ] cwwkf0012i: im server wurden die folgenden features installiert: [localconnector-1.0]. [audit ] cwwkf0011i: der server defaultserver ist bereit. 28.08.2015 08:50:46 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer getvmlocalconnectoraddress feiner: service url: service:jmx:rmi://127.0.0.1/stub/ro0abxnyac5qyxzhec5tyw5hz2vtzw50lnjlbw90zs5ybwkuuk1ju2vydmvysw1wbf9tdhviaaaaaaaaaaicaab4cgaaamf2ys5ybwkuc2vydmvylljlbw90zvn0dwlp/tzji+flggiaahhyabxqyxzhlnjtas5zzxj2zxiuumvtb3rlt2jqzwn002g0kqxhmx4daab4chc0aatvbmljyxn0umvmmgaacteyny4wljaumqaawtgrl8n4ssekwqzpibmaaafpcxkol4abahg= 28.08.2015 08:50:46 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer start feiner: vmid: 5028 28.08.2015 08:50:46 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer start feiner: return 58a96136-072f-49a0-91b2-a88e6246b725.jar: /meta-inf/ /meta-inf/beans.xml /org/ /org/arquillian/ /org/arquillian/example/ /org/arquillian/example/greeter.class 28.08.2015 08:50:47 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer getdefaultprotocol feiner: entry 28.08.2015 08:50:47 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer getdefaultprotocol feiner: return servlet 3.0 28.08.2015 08:50:47 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer deploy feiner: entry 28.08.2015 08:50:47 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer deploy feiner: archive provided deploy method: test.war: /web-inf/ /web-inf/lib/ /web-inf/lib/58a96136-072f-49a0-91b2-a88e6246b725.jar /web-inf/lib/arquillian-testenricher-ejb.jar /web-inf/lib/arquillian-protocol.jar /web-inf/lib/arquillian-junit.jar /web-inf/lib/arquillian-testenricher-resource.jar /web-inf/lib/arquillian-testenricher-cdi.jar /web-inf/lib/arquillian-core.jar /web-inf/lib/arquillian-testenricher-initialcontext.jar /web-inf/beans.xml 28.08.2015 08:50:47 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer getdropindirectory feiner: dropindir: c:/users/udvt0160/workspace- tests/wlp/usr/servers/defaultserver/dropins 28.08.2015 08:50:48 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer waitformbeantargetstate feiner: entry 28.08.2015 08:51:08 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer undeploy feiner: entry 28.08.2015 08:51:08 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer getdropindirectory feiner: dropindir: c:/users/udvt0160/workspace- tests/wlp/usr/servers/defaultserver/dropins 28.08.2015 08:51:08 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer waitformbeantargetstate feiner: entry 28.08.2015 08:51:08 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer waitformbeantargetstate feiner: return 28.08.2015 08:51:08 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer undeploy feiner: return tests run: 1, failures: 0, errors: 1, skipped: 0, time elapsed: 23.5 sec <<< failure! org.arquillian.example.greetertest time elapsed: 23.499 sec <<< error! org.jboss.arquillian.container.spi.client.container.deploymentexception: exception while deploying application. @ org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer.deploy(wlpmanagedcontainer.java:315) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller$3.call(containerdeploycontroller.java:161) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller$3.call(containerdeploycontroller.java:128) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller.executeoperation(containerdeploycontroller.java:271) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller.deploy(containerdeploycontroller.java:127) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.invokeobservers(eventcontextimpl.java:99) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:81) @ org.jboss.arquillian.container.impl.client.container.deploymentexceptionhandler.verifyexpectedexceptionduringdeploy(deploymentexceptionhandler.java:50) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:88) @ org.jboss.arquillian.container.impl.client.containerdeploymentcontexthandler.createdeploymentcontext(containerdeploymentcontexthandler.java:78) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:88) @ org.jboss.arquillian.container.impl.client.containerdeploymentcontexthandler.createcontainercontext(containerdeploymentcontexthandler.java:57) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:88) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:145) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:116) @ org.jboss.arquillian.core.impl.eventimpl.fire(eventimpl.java:67) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller$1.perform(containerdeploycontroller.java:95) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller$1.perform(containerdeploycontroller.java:80) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller.foreachdeployment(containerdeploycontroller.java:263) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller.foreachmanageddeployment(containerdeploycontroller.java:239) @ org.jboss.arquillian.container.impl.client.container.containerdeploycontroller.deploymanaged(containerdeploycontroller.java:79) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.invokeobservers(eventcontextimpl.java:99) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:81) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:145) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:116) @ org.jboss.arquillian.core.impl.eventimpl.fire(eventimpl.java:67) @ org.jboss.arquillian.container.test.impl.client.containereventcontroller.execute(containereventcontroller.java:101) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.invokeobservers(eventcontextimpl.java:99) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:81) @ org.jboss.arquillian.test.impl.testcontexthandler.createclasscontext(testcontexthandler.java:92) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:88) @ org.jboss.arquillian.test.impl.testcontexthandler.createsuitecontext(testcontexthandler.java:73) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.jboss.arquillian.core.impl.observerimpl.invoke(observerimpl.java:94) @ org.jboss.arquillian.core.impl.eventcontextimpl.proceed(eventcontextimpl.java:88) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:145) @ org.jboss.arquillian.core.impl.managerimpl.fire(managerimpl.java:116) @ org.jboss.arquillian.test.impl.eventtestrunneradaptor.beforeclass(eventtestrunneradaptor.java:87) @ org.jboss.arquillian.junit.arquillian$2.evaluate(arquillian.java:201) @ org.jboss.arquillian.junit.arquillian.multiexecute(arquillian.java:422) @ org.jboss.arquillian.junit.arquillian.access$200(arquillian.java:54) @ org.jboss.arquillian.junit.arquillian$3.evaluate(arquillian.java:218) @ org.junit.runners.parentrunner.run(parentrunner.java:363) @ org.jboss.arquillian.junit.arquillian.run(arquillian.java:166) @ org.apache.maven.surefire.junit4.junit4provider.execute(junit4provider.java:252) @ org.apache.maven.surefire.junit4.junit4provider.executetestset(junit4provider.java:141) @ org.apache.maven.surefire.junit4.junit4provider.invoke(junit4provider.java:112) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.apache.maven.surefire.util.reflectionutils.invokemethodwitharray(reflectionutils.java:189) @ org.apache.maven.surefire.booter.providerfactory$providerproxy.invoke(providerfactory.java:165) @ org.apache.maven.surefire.booter.providerfactory.invokeprovider(providerfactory.java:85) @ org.apache.maven.surefire.booter.forkedbooter.runsuitesinprocess(forkedbooter.java:115) @ org.apache.maven.surefire.booter.forkedbooter.main(forkedbooter.java:75) caused by: org.jboss.arquillian.container.spi.client.container.deploymentexception: exception while checking application state. @ org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer.waitforapplicationtargetstate(wlpmanagedcontainer.java:565) @ org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer.deploy(wlpmanagedcontainer.java:301) ... 93 more caused by: org.jboss.arquillian.container.spi.client.container.deploymentexception: timeout while waiting applicationmbean reach targetstate @ org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer.waitforapplicationtargetstate(wlpmanagedcontainer.java:548) ... 94 more 28.08.2015 08:51:08 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer stop feiner: entry 28.08.2015 08:51:08 org.jboss.arquillian.container.was.wlp_managed_8_5.wlpmanagedcontainer stop feiner: return
so here pieces of relevant files. liberty not full was, might not useful you. should able test of app (depending on features use on liberty , deploy classic was).
pom fragments:
repo:
<!-- configure wasdev repository --> <repositories> <repository> <releases> <updatepolicy>never</updatepolicy> </releases> <snapshots> <enabled>false</enabled> <updatepolicy>never</updatepolicy> </snapshots> <id>ibm-maven-repo</id> <name>ibm-maven-repo</name> <url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url> </repository> </repositories> <pluginrepositories> <pluginrepository> <id>ibm-maven-repo</id> <name>ibm-maven-repo</name> <url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url> <layout>default</layout> <snapshots> <enabled>false</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </pluginrepository> </pluginrepositories>
dependencies:
<dependencies> <dependency> <groupid>org.jboss.arquillian</groupid> <artifactid>arquillian-bom</artifactid> <version>1.1.8.final</version> <scope>import</scope> <type>pom</type> </dependency> <dependency> <groupid>com.ibm.tools.target</groupid> <artifactid>was-liberty</artifactid> <version>latest</version> <type>pom</type> <scope>provided</scope> </dependency> <dependency> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>4.11</version> <scope>test</scope> </dependency> <dependency> <groupid>org.jboss.arquillian.junit</groupid> <artifactid>arquillian-junit-container</artifactid> <scope>test</scope> </dependency> <dependency> <!-- arquillian websphere liberty profile support --> <groupid>org.jboss.arquillian.container</groupid> <artifactid>arquillian-wlp-managed-8.5</artifactid> <version>1.0.0.alpha2</version> <scope>test</scope> </dependency> <dependency> <groupid>org.jboss.shrinkwrap.resolver</groupid> <artifactid>shrinkwrap-resolver-impl-maven</artifactid> <scope>test</scope> </dependency>
arquillian.xml
<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> <engine> <property name="deploymentexportpath">target/</property> </engine> <container qualifier="wlp-managed-85" default="true"> <configuration> <property name="wlphome">c:/ibm/websphere/wlp</property> <property name="servername">defaultserver</property> <property name="httpport">9080</property> <property name="appdeploytimeout">20</property> <property name="appundeploytimeout">20</property> </configuration> </container> </arquillian>
test class (it testing ejb inside of web project, may need change that):
@runwith(arquillian.class) public class hellobeantest { @ejb hellobean bean; @test public void hellotest() { assertnotnull(bean); assertequals("hello", bean.hello()); } @deployment public static webarchive createdeployment() { final file[] libs = maven.resolver().loadpomfromfile("pom.xml").importdependencies(scopetype.compile, scopetype.test).resolve() .withtransitivity().asfile(); webarchive archive = shrinkwrap.create(webarchive.class) .addpackages(true, "pkg1") .addaswebinfresource(emptyasset.instance, "beans.xml") .addaswebinfresource(new file("webcontent/web-inf/web.xml"), "web.xml") .addaslibraries(libs); system.out.println(archive.tostring(true)); return archive; } }
server.xml
<server description="new server"> <!-- enable features --> <featuremanager> <feature>jsp-2.2</feature> <feature>localconnector-1.0</feature> <feature>jdbc-4.0</feature> <feature>jsf-2.0</feature> <feature>jaxrs-1.1</feature> <feature>cdi-1.0</feature> <feature>ejblite-3.1</feature> <feature>jpa-2.0</feature> <feature>servlet-3.1</feature> </featuremanager> <!-- access server remote client add host attribute following element, e.g. host="*" --> <httpendpoint host="*" httpport="9080" httpsport="9443" id="defaulthttpendpoint"/> <datasource jndiname="jdbc/mydatasource"> <jdbcdriver> <library name="derbylibrary"> <fileset dir="${server.config.dir}/resources/derby"/> </library> </jdbcdriver> <properties.derby.embedded createdatabase="create" databasename="db1"/> </datasource> <applicationmonitor updatetrigger="mbean"/> <webapplication contextroot="myapp" id="myapp" location="myapp.war" name="myapp"/> </server>
Comments
Post a Comment