Version 1

    Hello,

     

    I am trying to develop an application which publishes REST services. I am using Wildfly 10 final.

    Initially I was able to call the one REST Service I have implemented.

    But after adding several classes (mostly concerning persistence) the REST service are gone, while the Soap Services still work (I cannot tell which class exactly did this ...)

     

    @ApplicationPath("/rest")

    public class JaxRsActivator extends Application {

        /* class body intentionally left blank */

    }

     

    @Path("hello")

    public class Hello {

     

    @Produces(MediaType.TEXT_PLAIN)

    @GET

    public String hello() {

    return "hello ikfz3";

    }

    }

     

    [standalone@localhost:9990 /] /deployment=ikfz3.war/subsystem=jaxrs:read-resource

    {

        "outcome" => "success",

        "result" => {}

    }

     

    http://localhost:8080/ikfz3/rest/hello

    returns not found

     

    server.log after deployment

    2018-01-25 10:12:34,826 INFO  [org.jboss.as.repository] (management-handler-thread - 13) WFLYDR0001: Content added at location C:\wildfly-10.1.0.Final\wildfly-10.1.0.Final\standalone\data\content\e8\d389d3e75708af933beb95c496807ca8dddfa2\content

    2018-01-25 10:12:34,828 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 108) WFLYUT0022: Unregistered web context: /ikfz3

    2018-01-25 10:12:34,836 INFO  [org.jboss.as.webservices] (MSC service thread 1-7) WFLYWS0004: Stopping service jboss.ws.endpoint."ikfz3.war"."de.dzbw.egov.ikfz3.soap.AntragsnummerSOAPService"

    2018-01-25 10:12:34,836 INFO  [org.jboss.as.webservices] (MSC service thread 1-6) WFLYWS0004: Stopping service jboss.ws.endpoint."ikfz3.war"."de.dzbw.egov.ikfz3.soap.BehoerdeAuskunftSOAPService"

    2018-01-25 10:12:34,838 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 109) WFLYJPA0011: Stopping Persistence Unit (phase 2 of 2) Service 'ikfz3.war#IKFZ3'

    2018-01-25 10:12:34,840 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 109) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'ikfz3.war#IKFZ3'

    2018-01-25 10:12:34,844 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) WFLYJCA0010: Unbound data source [java:jboss/datasources/ikfz3DS]

    2018-01-25 10:12:35,493 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0028: Stopped deployment ikfz3.war (runtime-name: ikfz3.war) in 665ms

    2018-01-25 10:12:35,494 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0027: Starting deployment of "ikfz3.war" (runtime-name: "ikfz3.war")

    2018-01-25 10:12:43,140 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) WFLYJPA0002: Read persistence.xml for IKFZ3

    2018-01-25 10:12:43,141 WARN  [org.jboss.as.connector] (MSC service thread 1-2) WFLYJCA0091: -ds.xml file deployments are deprecated. Support may be removed in a future version.

    2018-01-25 10:12:44,477 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028: Stopped deployment ikfz3.war (runtime-name: ikfz3.war) in 8982ms

    2018-01-25 10:12:44,560 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0027: Starting deployment of "ikfz3.war" (runtime-name: "ikfz3.war")

    2018-01-25 10:12:50,172 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) WFLYJPA0002: Read persistence.xml for IKFZ3

    2018-01-25 10:12:50,174 WARN  [org.jboss.as.connector] (MSC service thread 1-4) WFLYJCA0091: -ds.xml file deployments are deprecated. Support may be removed in a future version.

    2018-01-25 10:12:50,356 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 109) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'ikfz3.war#IKFZ3'

    2018-01-25 10:12:50,356 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 109) HHH000204: Processing PersistenceUnitInfo [

    name: IKFZ3

    ...]

    2018-01-25 10:12:50,356 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0001: Bound data source [java:jboss/datasources/ikfz3DS]

    2018-01-25 10:12:50,364 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0003: Processing weld deployment ikfz3.war

    2018-01-25 10:12:50,369 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-5) WFLYEJB0473: JNDI bindings for session bean named 'RueckstandDAO' in deployment unit 'deployment "ikfz3.war"' are as follows:

     

     

    java:global/ikfz3/RueckstandDAO!de.dzbw.egov.ikfz3.persistence.RueckstandDAO

    java:app/ikfz3/RueckstandDAO!de.dzbw.egov.ikfz3.persistence.RueckstandDAO

    java:module/RueckstandDAO!de.dzbw.egov.ikfz3.persistence.RueckstandDAO

    java:global/ikfz3/RueckstandDAO

    java:app/ikfz3/RueckstandDAO

    java:module/RueckstandDAO

     

     

    2018-01-25 10:12:50,370 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-5) WFLYEJB0473: JNDI bindings for session bean named 'JReportDAO' in deployment unit 'deployment "ikfz3.war"' are as follows:

     

     

    java:global/ikfz3/JReportDAO!de.dzbw.egov.ikfz3.persistence.JReportDAO

    java:app/ikfz3/JReportDAO!de.dzbw.egov.ikfz3.persistence.JReportDAO

    java:module/JReportDAO!de.dzbw.egov.ikfz3.persistence.JReportDAO

    java:global/ikfz3/JReportDAO

    java:app/ikfz3/JReportDAO

    java:module/JReportDAO

     

     

    2018-01-25 10:12:50,370 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-5) WFLYEJB0473: JNDI bindings for session bean named 'NextNumberDAO' in deployment unit 'deployment "ikfz3.war"' are as follows:

     

     

    java:global/ikfz3/NextNumberDAO!de.dzbw.egov.ikfz3.persistence.NextNumberDAO

    java:app/ikfz3/NextNumberDAO!de.dzbw.egov.ikfz3.persistence.NextNumberDAO

    java:module/NextNumberDAO!de.dzbw.egov.ikfz3.persistence.NextNumberDAO

    java:global/ikfz3/NextNumberDAO

    java:app/ikfz3/NextNumberDAO

    java:module/NextNumberDAO

     

     

    2018-01-25 10:12:50,371 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-5) WFLYEJB0473: JNDI bindings for session bean named 'PortProvider' in deployment unit 'deployment "ikfz3.war"' are as follows:

     

     

    java:global/ikfz3/PortProvider!de.dzbw.egov.ikfz3.kba.aufruf.PortProvider

    java:app/ikfz3/PortProvider!de.dzbw.egov.ikfz3.kba.aufruf.PortProvider

    java:module/PortProvider!de.dzbw.egov.ikfz3.kba.aufruf.PortProvider

    java:global/ikfz3/PortProvider

    java:app/ikfz3/PortProvider

    java:module/PortProvider

     

     

    2018-01-25 10:12:50,372 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-5) WFLYEJB0473: JNDI bindings for session bean named 'PasswordClient' in deployment unit 'deployment "ikfz3.war"' are as follows:

     

     

    java:global/ikfz3/PasswordClient!de.dzbw.egov.ikfz3.utility.PasswordClient

    java:app/ikfz3/PasswordClient!de.dzbw.egov.ikfz3.utility.PasswordClient

    java:module/PasswordClient!de.dzbw.egov.ikfz3.utility.PasswordClient

    java:global/ikfz3/PasswordClient

    java:app/ikfz3/PasswordClient

    java:module/PasswordClient

     

     

    2018-01-25 10:12:50,414 WARN  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) WFLYJCA0003: Unable to instantiate driver class "org.olap4j.driver.xmla.XmlaOlap4jDriver": java.lang.NoSuchMethodException: org.olap4j.driver.xmla.XmlaOlap4jDriver.<init>()

    2018-01-25 10:12:50,416 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-6) JBWS024061: Adding service endpoint metadata: id=de.dzbw.egov.ikfz3.soap.AntragsnummerSOAPService

    address=http://localhost:8080/ikfz3/AntragsnummerSOAPService

    implementor=de.dzbw.egov.ikfz3.soap.AntragsnummerSOAPService

    serviceName={http://soap.ikfz3.egov.dzbw.de/}AntragsnummerSOAPServiceService

    portName={http://soap.ikfz3.egov.dzbw.de/}AntragsnummerSOAPServicePort

    annotationWsdlLocation=null

    wsdlLocationOverride=null

    mtomEnabled=false

    2018-01-25 10:12:50,416 INFO  [org.jboss.ws.cxf.metadata] (MSC service thread 1-6) JBWS024061: Adding service endpoint metadata: id=de.dzbw.egov.ikfz3.soap.BehoerdeAuskunftSOAPService

    address=http://localhost:8080/ikfz3/BehoerdeAuskunftSOAPService

    implementor=de.dzbw.egov.ikfz3.soap.BehoerdeAuskunftSOAPService

    serviceName={http://soap.ikfz3.egov.dzbw.de/}BehoerdeAuskunftSOAPServiceService

    portName={http://soap.ikfz3.egov.dzbw.de/}BehoerdeAuskunftSOAPServicePort

    annotationWsdlLocation=null

    wsdlLocationOverride=null

    mtomEnabled=false

    2018-01-25 10:12:50,424 INFO  [org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-6) Creating Service {http://soap.ikfz3.egov.dzbw.de/}AntragsnummerSOAPServiceService from class de.dzbw.egov.ikfz3.soap.AntragsnummerSOAPService

    2018-01-25 10:12:50,470 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-6) Setting the server's publish address to be http://localhost:8080/ikfz3/AntragsnummerSOAPService

    2018-01-25 10:12:50,478 INFO  [org.jboss.ws.cxf.deployment] (MSC service thread 1-6) JBWS024074: WSDL published to: file:/C:/wildfly-10.1.0.Final/wildfly-10.1.0.Final/standalone/data/wsdl/ikfz3.war/AntragsnummerSOAPServiceService.wsdl

    2018-01-25 10:12:50,479 INFO  [org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-6) Creating Service {http://soap.ikfz3.egov.dzbw.de/}BehoerdeAuskunftSOAPServiceService from class de.dzbw.egov.ikfz3.soap.BehoerdeAuskunftSOAPService

    2018-01-25 10:12:50,481 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-6) Setting the server's publish address to be http://localhost:8080/ikfz3/BehoerdeAuskunftSOAPService

    2018-01-25 10:12:50,490 INFO  [org.jboss.ws.cxf.deployment] (MSC service thread 1-6) JBWS024074: WSDL published to: file:/C:/wildfly-10.1.0.Final/wildfly-10.1.0.Final/standalone/data/wsdl/ikfz3.war/BehoerdeAuskunftSOAPServiceService.wsdl

    2018-01-25 10:12:50,497 INFO  [org.jboss.as.webservices] (MSC service thread 1-5) WFLYWS0003: Starting service jboss.ws.endpoint."ikfz3.war"."de.dzbw.egov.ikfz3.soap.BehoerdeAuskunftSOAPService"

    2018-01-25 10:12:50,497 INFO  [org.jboss.as.webservices] (MSC service thread 1-6) WFLYWS0003: Starting service jboss.ws.endpoint."ikfz3.war"."de.dzbw.egov.ikfz3.soap.AntragsnummerSOAPService"

    2018-01-25 10:12:51,137 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 109) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'ikfz3.war#IKFZ3'

    2018-01-25 10:12:51,138 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 109) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect

    2018-01-25 10:12:51,138 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 109) HHH000431: Unable to determine H2 database version, certain features may not work

    2018-01-25 10:12:51,140 INFO  [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 109) Envers integration enabled? : true

    2018-01-25 10:12:51,169 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 109) HHH000228: Running hbm2ddl schema update

    2018-01-25 10:12:51,181 INFO  [org.hibernate.hql.internal.QueryTranslatorFactoryInitiator] (ServerService Thread Pool -- 109) HHH000397: Using ASTQueryTranslatorFactory

    2018-01-25 10:12:51,288 WARN  [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 7) WELD-000167: Class org.jboss.resteasy.core.AsynchronousDispatcher is annotated with @RequestScoped but it does not declare an appropriate constructor therefore is not registered as a bean!

    2018-01-25 10:12:51,288 WARN  [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 2) WELD-000167: Class org.jboss.resteasy.plugins.providers.DocumentProvider is annotated with @ApplicationScoped but it does not declare an appropriate constructor therefore is not registered as a bean!

    2018-01-25 10:12:51,461 INFO  [de.dzbw.egov.ikfz3.kba.aufruf.PortProvider] (ServerService Thread Pool -- 113) user: IKFZDBW001 password:ZDdEIdUvEhlv6EEo@21

    2018-01-25 10:12:51,519 INFO  [org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean] (ServerService Thread Pool -- 113) Creating Service {http://www.kba.de/zfzr/ikfz-service}ikfzService from WSDL: vfs:/C:/wildfly-10.1.0.Final/wildfly-10.1.0.Final/bin/content/ikfz3.war/WEB-INF/classes/ikfz/ikfz.wsdl

    2018-01-25 10:12:52,061 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 113) Mojarra 2.2.13.SP1 20160303-1204 für Kontext '/ikfz3' wird initialisiert.

    2018-01-25 10:12:53,235 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 113) WFLYUT0021: Registered web context: /ikfz3

    2018-01-25 10:12:53,291 INFO  [org.jboss.as.server] (management-handler-thread - 13) WFLYSRV0013: Redeployed "ikfz3.war"

    2018-01-25 10:12:53,291 INFO  [org.jboss.as.server] (management-handler-thread - 13) WFLYSRV0016: Replaced deployment "ikfz3.war" with deployment "ikfz3.war"

    2018-01-25 10:12:53,296 INFO  [org.jboss.as.repository] (management-handler-thread - 13) WFLYDR0002: Content removed from location C:\wildfly-10.1.0.Final\wildfly-10.1.0.Final\standalone\data\content\ad\83cca59ca7efc87a46b70f158307c51c4d6046\content

     

    Any ideas what might cause this would be greatly appreciated.