-
1. JBoss 6 Final ?
aslak Feb 4, 2011 4:37 AM (in response to craiggreenhalgh)JBoss AS 6.0.0.Final Embedded should work: https://github.com/akquinet/arquillian-javamagazin/
-
2. JBoss 6 Final ?
craiggreenhalgh Feb 7, 2011 2:02 PM (in response to aslak)Does this work with maven 3?
I'm getting....
org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact
Thanks
Craig
-
3. JBoss 6 Final ?
craiggreenhalgh Feb 7, 2011 3:23 PM (in response to craiggreenhalgh)Ok, I've got her running. I now get
ERROR [STDERR] java.lang.IllegalStateException: Service org.jboss.arquillian.container.jbossas.embedded_6.JBossASContainerConfiguration does not implement expected type org.jboss.arquillian.spi.ContainerConfiguration
But my tests still run and pass, is this error anything to worry about?
Thanks
Craig
-
4. JBoss 6 Final ?
aslak Feb 7, 2011 5:29 PM (in response to craiggreenhalgh)It's a bug, but nothing to worry about. It's a classloader issue loading the Configuration, but the configuration is never used incontainer anyway, so...
-aslak-
-
5. JBoss 6 Final ?
craiggreenhalgh Feb 9, 2011 11:27 AM (in response to aslak)I can get tests to work using the @EJB annotation, but when I add a beans.xml file to my deployment and try to use the @Inject annotation it doesnt work.
I get the followin type of errors
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "Logging:CONTEXT:system" is missing the following dependencies:
Dependency "JBossLogService" (should be in state "Create", but is actually in state "**ERROR**")
Deployment "Logging:HANDLER:system:CONSOLE" is missing the following dependencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")
Deployment "Logging:HANDLER_INSTALLER:system::2" is missing the following dependencies:
Dependency "Logging:CONTEXT:system" (should be in state "Installed", but is actually in state "Configured")
Dependency "Logging:HANDLER:system:CONSOLE" (should be in state "Installed", but is actually in state "Instantiated")
Any ideas?
Many thanks
Craig
-
-
7. JBoss 6 Final ?
craiggreenhalgh Feb 9, 2011 2:21 PM (in response to aslak)Sorry that was down to an error in my pom.
I now have it running and tests run and pass.
My next problem is now debugging my tests.
When i put
<forkMode>never</forkMode>
In the configuration for surefire, it looks like it loses the ${jboss.home} directory settings as I get the error:
org.jboss.arquillian.impl.event.FiredEventException: org.jboss.arquillian.spi.LifecycleException: Could not start container
...
Caused by: org.jboss.bootstrap.api.config.InvalidConfigurationException: Could not get a connection to the jboss.lib.url: file:/C:/Development/TroubleTicket-3/workspace/troubleticket-ejb/lib
....
Caused by: java.io.FileNotFoundException: C:\Development\TroubleTicket-3\workspace\troubleticket-ejb\lib (The system cannot find the file specified)
Thoughts?
Thanks for your help
Craig
-
8. JBoss 6 Final ?
aslak Mar 12, 2011 11:27 AM (in response to craiggreenhalgh)Yea, JBOSS_HOME is not applied to the surefire started vm if surefire never starts a new one. If you want to run it in the same vm as Maven you probably have to add it as maven command line args or system environment variables.
As for debugging you will have to activate the surefire debug to holt the vm if you use forkMode once: http://maven.apache.org/plugins/maven-surefire-plugin/examples/debugging.html