There are some possibilities that I can think for "Connection
refused"
1. Not having services-jaxrs deployed. Or deployed in the incorrect
port.
Most of the quickstarts require this service
2. Trying to follow the instructions to deploy the quickstarts without -DskipTests
This was already fixed in this PR
The reason why you *must* use -DskipTests for deployment, is because
Arquillian will run integration tests and deploy on the same port. If
you don't like it, there are two options: change Arquillian port or
start WildFly in a different port.
On 2017-11-25, Bodo Teichmann wrote:
-Pwildfly-managed didn’t work either, just got other errors:
….
Started 332 of 578 services (393 services are lazy, passive or on-demand)
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 6.892 sec <<<
FAILURE! - in org.keycloak.quickstart.ArquillianProfileJeeVanillaTest
org.keycloak.quickstart.ArquillianProfileJeeVanillaTest Time elapsed: 6.891 sec
<<< ERROR!
java.lang.ExceptionInInitializerError
at
org.keycloak.quickstart.ArquillianProfileJeeVanillaTest.<clinit>(ArquillianProfileJeeVanillaTest.java:81)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at
org.keycloak.quickstart.ArquillianProfileJeeVanillaTest.<clinit>(ArquillianProfileJeeVanillaTest.java:81)
org.keycloak.quickstart.ArquillianProfileJeeVanillaTest Time elapsed: 6.892 sec
<<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class
org.keycloak.quickstart.ArquillianProfileJeeVanillaTest
Nov 25, 2017 7:06:11 PM org.jboss.arquillian.core.impl.ObserverImpl resolveArguments
WARNUNG: Argument 2 for ArquillianServiceDeployer.undeploy is null. It won't be
invoked.
19:06:11,395 INFO [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0236:
Suspending server with no timeout.
19:06:11,402 INFO [org.jboss.as.server] (Management Triggered Shutdown) WFLYSRV0241:
Shutting down in response to management operation 'shutdown'
19:06:11,429 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread
1-7) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]
19:06:11,431 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0019:
Host default-host stopping
19:06:11,432 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0008:
Undertow HTTPS listener https suspending
19:06:11,436 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0007:
Undertow HTTPS listener https stopped, was bound to 127.0.0.1:8443
19:06:11,441 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3)
WFLYJCA0019: Stopped Driver service with driver-name = h2
19:06:11,442 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0008:
Undertow HTTP listener default suspending
19:06:11,443 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0007:
Undertow HTTP listener default stopped, was bound to 127.0.0.1:8080
19:06:11,443 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0004:
Undertow 1.4.0.Final stopping
19:06:11,533 INFO [org.jboss.as] (MSC service thread 1-5) WFLYSRV0050: WildFly Full
10.1.0.Final (WildFly Core 2.2.0.Final) stopped in 118ms
Results :
Tests in error:
org.keycloak.quickstart.ArquillianProfileJeeVanillaTest.org.keycloak.quickstart.ArquillianProfileJeeVanillaTest
Run 1:
ArquillianProfileJeeVanillaTest.org<http://ArquillianProfileJeeVanillaTest.org>.keycloak.quickstart.ArquillianProfileJeeVanillaTest
» ExceptionInInitializer
Run 2:
ArquillianProfileJeeVanillaTest.org<http://ArquillianProfileJeeVanillaTest.org>.keycloak.quickstart.ArquillianProfileJeeVanillaTest
» NoClassDefFound
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
Am 25.11.2017 um 18:55 schrieb Bruno Oliveira
<bruno@abstractj.org<mailto:bruno@abstractj.org>>:
Try to pass -Pwildfly-managed, it should work. We have some jiras to fix the docs.
On Sat, Nov 25, 2017, 12:59 PM Bodo Teichmann
<Bodo.Teichmann@brandad-systems.de<mailto:Bodo.Teichmann@brandad-systems.de>>
wrote:
i just followed the "Getting Started" Dokumentation 3.4.
Everything ok until it comes to :
Chapter 4.3.:
after git-clone and
>cd keycloak-quickstarts/app-profile-jee-vanilla
i tried:
>mvn clean wildfly:deploy
but got the error:
-------------------------------------------------------------------------------
Test set: org.keycloak.quickstart.ArquillianProfileJeeVanillaTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.908 sec <<<
FAILURE!
org.keycloak.quickstart.ArquillianProfileJeeVanillaTest Time elapsed: 0.907 sec
<<< ERROR!
java.lang.RuntimeException: Could not create new instance of class
org.jboss.arquillian.test.impl.EventTestRunnerAdaptor
at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:166)
at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:103)
at
org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:114)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:162)
... 15 more
Caused by: org.jboss.arquillian.container.impl.ContainerCreationException: Could not
create Container jboss
at
org.jboss.arquillian.container.impl.LocalContainerRegistry.create(LocalContainerRegistry.java:85)
at
org.jboss.arquillian.container.impl.client.container.ContainerRegistryCreator.createRegistry(ContainerRegistryCreator.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
at
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
at org.jboss.arquillian.core.impl.ManagerImpl.bindAndFire(ManagerImpl.java:265)
at org.jboss.arquillian.core.impl.InstanceImpl.set(InstanceImpl.java:74)
at
org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
at
org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:290)
at
org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:63)
... 20 more
Caused by: java.lang.IllegalArgumentException: DeployableContainer must be specified
at org.jboss.arquillian.core.spi.Validate.notNull(Validate.java:44)
at org.jboss.arquillian.container.impl.ContainerImpl.<init>(ContainerImpl.java:71)
at
org.jboss.arquillian.container.impl.LocalContainerRegistry.create(LocalContainerRegistry.java:80)
... 44 more
until it tried
>mvn clean wildfly:deploy -DskipTests
which worked.
Do I need any other prerequisites in order to run the arquillian tests other than those
described in the "Getting Started“?
bodo
_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org<mailto:keycloak-user@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/keycloak-user