2 Replies Latest reply on Jul 9, 2014 4:23 AM by asotobu

    Mockserver and Wildfly together don't work

    asotobu

      Hi I am developing an Arquillian Extension that allow users to use some mock/stub/fake servers for their tests. For example Wire is used for smtp server or FakeFtp for ftp, and for REST I am using mockserver (http://mock-server.com/). The problem is that meanwhile the arquillian-extension of Mockserver runs well in Tomcat it doesn't work with Wildfly. The problem is that in console there is no error. It seems that the mockserver war file is deployed correctly but when I try to connect to the application to record an expectation it doesn't work. The project is hosted at lordofthejars/arquillian-mock-server · GitHub and the test arquillian-mock-server/arquillian-mock-server-moco/src/test/java/org/jboss/arquillian/mockserver/moco/client/MocoMockSer…

       

      I am running against Wildfly 8.0 using Remote adapter (in fact without using the Arquillian extension just dropping the war file it has the same behaviour so it seems it is not a problem in Arquillian part).

       

      The log output is:

       

      0:33:10,049 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "mockserver-war-3.1-SNAPSHOT.war" (runtime-name: "mockserver-war-3.1-SNAPSHOT.war")
      ^[[D^[[D20:33:11,593 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment mockserver-war-3.1-SNAPSHOT.war
      20:33:11,602 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016005: Starting Services for CDI deployment: mockserver-war-3.1-SNAPSHOT.war
      20:33:11,606 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016008: Starting weld service for deployment mockserver-war-3.1-SNAPSHOT.war
      20:33:11,763 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017534: Registered web context: /mockserver-war-3.1-SNAPSHOT
      20:33:11,863 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS018559: Deployed "mockserver-war-3.1-SNAPSHOT.war" (runtime-name : "mockserver-war-3.1-SNAPSHOT.war")
      

       

      I am not very well-versed in Wildfly but if you want I try something different or sent you another log don't hesitate to ask me.

       

      Thank you very much for your help.

       

       

      Alex.