resteasy - wildfly nie mozna uruchomic kodu

0

https://github.com/bartek4242142151325/kawowe-gowno/tree/master

mam taki syf zrobiony w resteasy, ale nie jestem w stanie odpalic serwera poprawnie, serwer sie odpala i dziala na localhost:8080 ale sciezki nie dzialaja not found
http://localhost:8080/resteasy/rest/users

oto jaki mam blad jak odpale serwer

PS D:\intelijIdeaProjects\rest> mvn wildfly:run
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------------< com.kawa:resteasy >--------------------------
[INFO] Building resteasy 1.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] >>> wildfly-maven-plugin:2.1.0.Beta1:run (default-cli) > package @ resteasy >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ resteasy ---
[WARNING] Using platform encoding (Cp1250 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ resteasy ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ resteasy ---
[WARNING] Using platform encoding (Cp1250 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory D:\intelijIdeaProjects\rest\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ resteasy ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ resteasy ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default-war) @ resteasy ---
[INFO] Packaging webapp
[INFO] Assembling webapp [resteasy] in [D:\intelijIdeaProjects\rest\target\resteasy]
[INFO] Processing war project
[INFO] Copying webapp resources [D:\intelijIdeaProjects\rest\src\main\webapp]
[INFO] Webapp assembled in [110 msecs]
[INFO] Building war: D:\intelijIdeaProjects\rest\target\resteasy.war
[INFO] WEB-INF\web.xml already added, skipping
[INFO]
[INFO] <<< wildfly-maven-plugin:2.1.0.Beta1:run (default-cli) < package @ resteasy <<<
[INFO]
[INFO]
[INFO] --- wildfly-maven-plugin:2.1.0.Beta1:run (default-cli) @ resteasy ---
[INFO] JAVA_HOME : C:\java\jdk1.8.0_261\jre
[INFO] JBOSS_HOME: D:\intelijIdeaProjects\rest\target\wildfly-25.0.1.Final
[INFO] JAVA_OPTS : -Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Djboss.modules.system.pkgs=org.jboss.byteman
[INFO] Server is starting up. Press CTRL + C to stop the server.
[INFO] JBoss Threads version 2.3.3.Final
[INFO] JBoss Remoting version 5.0.12.Final
[INFO] XNIO version 3.7.2.Final
[INFO] XNIO NIO Implementation Version 3.7.2.Final
[INFO] ELY00001: WildFly Elytron version 1.9.1.Final
22:54:26,448 INFO  [org.jboss.modules] (main) JBoss Modules version 1.12.0.Final
22:54:26,943 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.13.Final
22:54:26,961 INFO  [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final
22:54:27,102 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 25.0.1.Final (WildFly Core 17.0.3.Final) starting
22:54:27,913 INFO  [org.wildfly.security] (ServerService Thread Pool -- 27) ELY00001: WildFly Elytron version 1.17.1.Final
22:54:28,701 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
22:54:28,730 INFO  [org.xnio] (MSC service thread 1-1) XNIO version 3.8.4.Final
22:54:28,740 INFO  [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.8.4.Final
22:54:28,802 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 54) WFLYCLINF0001: Activating Infinispan subsystem.
22:54:28,815 INFO  [org.jboss.as.jaxrs] (ServerService Thread Pool -- 56) WFLYRS0016: RESTEasy version 4.7.2.Final
22:54:28,816 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 74) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.
22:54:28,820 INFO  [org.wildfly.extension.elytron.oidc._private] (ServerService Thread Pool -- 52) WFLYOIDC0001: Activating WildFly Elytron OIDC Subsystem
22:54:28,821 INFO  [org.wildfly.extension.microprofile.config.smallrye] (ServerService Thread Pool -- 64) WFLYCONF0001: Activating MicroProfile Config Subsystem
22:54:28,838 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 67) WFLYNAM0001: Activating Naming Subsystem
22:54:28,847 INFO  [org.wildfly.extension.microprofile.jwt.smallrye] (ServerService Thread Pool -- 65) WFLYJWT0001: Activating MicroProfile JWT Subsystem
22:54:28,850 INFO  [org.wildfly.extension.health] (ServerService Thread Pool -- 53) WFLYHEALTH0001: Activating Base Health Subsystem
22:54:28,858 INFO  [org.wildfly.extension.metrics] (ServerService Thread Pool -- 63) WFLYMETRICS0001: Activating Base Metrics Subsystem
22:54:28,859 INFO  [org.wildfly.extension.microprofile.opentracing] (ServerService Thread Pool -- 66) WFLYTRACEXT0001: Activating MicroProfile OpenTracing Subsystem
22:54:28,861 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 44) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
22:54:28,868 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 61) WFLYJSF0007: Activated the following Jakarta Server Faces Implementations: [main]
22:54:28,869 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 76) WFLYWS0002: Activating WebServices Extension
22:54:28,917 INFO  [org.jboss.as.connector] (MSC service thread 1-6) WFLYJCA0009: Starting Jakarta Connectors Subsystem (WildFly/IronJacamar 1.5.2.Final)
22:54:28,956 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0003: Undertow 2.2.12.Final starting
22:54:29,002 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0018: Started Driver service with driver-name = h2
22:54:29,022 INFO  [org.jboss.as.naming] (MSC service thread 1-6) WFLYNAM0003: Starting Naming Service
22:54:29,040 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-7) WFLYELY00023: KeyStore file 'D:\intelijIdeaProjects\rest\target\wildfly-25.0.1.Final\standalone\configuration\application.keystore' does not exist. Used blank.
22:54:29,044 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
22:54:29,068 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-4) WFLYELY01084: KeyStore D:\intelijIdeaProjects\rest\target\wildfly-25.0.1.Final\standalone\configuration\application.keystore not found, it will be auto generated on first use with a self-signed certificate for host localhost
22:54:29,108 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 75) WFLYUT0014: Creating file handler for path 'D:\intelijIdeaProjects\rest\target\wildfly-25.0.1.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
22:54:29,490 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 55) WFLYIO001: Worker 'default' has auto-configured to 16 IO threads with 128 max task threads based on your 8 available processors
22:54:29,498 INFO  [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 32 (per class), which is derived from the number of CPUs on this host.
22:54:29,498 INFO  [org.jboss.as.ejb3] (MSC service thread 1-4) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 128 (per class), which is derived from thread worker pool sizing.
22:54:29,535 INFO  [org.jboss.as.patching] (MSC service thread 1-2) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none
22:54:29,540 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) WFLYDS0013: Started FileSystemDeploymentService for directory D:\intelijIdeaProjects\rest\target\wildfly-25.0.1.Final\standalone\deployments
22:54:29,548 INFO  [org.jboss.remoting] (MSC service thread 1-7) JBoss Remoting version 5.0.23.Final
22:54:29,549 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0012: Started server default-server.
22:54:29,554 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) Queuing requests.
22:54:29,557 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0018: Host default-host starting
22:54:29,734 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
22:54:29,770 INFO  [org.jboss.as.ejb3] (MSC service thread 1-3) WFLYEJB0493: Jakarta Enterprise Beans subsystem suspension complete
22:54:29,833 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
22:54:29,868 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:8443
22:54:29,949 INFO  [org.jboss.ws.common.management] (MSC service thread 1-7) JBWS022052: Starting JBossWS 5.4.4.Final (Apache CXF 3.4.4)
22:54:30,057 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
22:54:30,060 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 25.0.1.Final (WildFly Core 17.0.3.Final) started in 4152ms - Started 298 of 538 services (337 services are lazy, passive or on-demand)
22:54:30,064 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
22:54:30,065 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
22:54:30,697 INFO  [org.jboss.as.repository] (management-handler-thread - 1) WFLYDR0001: Content added at location D:\intelijIdeaProjects\rest\target\wildfly-25.0.1.Final\standalone\data\content\9e\eb59198e274e80a4c896c118b01b8abe3c72a9\content
22:54:30,720 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0027: Starting deployment of "resteasy.war" (runtime-name: "resteasy.war")
22:54:31,847 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.module.service."deployment.resteasy.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.resteasy.war".main: WFLYSRV0179: Failed to load module: deployment.resteasy.war
        at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:116)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
        at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
        at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.resteasy.resteasy-jackson-provider
        at org.jboss.modules.Module.addPaths(Module.java:1288)
        at org.jboss.modules.Module.link(Module.java:1644)
        at org.jboss.modules.Module.relinkIfNecessary(Module.java:1672)
        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:303)
        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:287)
        at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:93)
        ... 8 more

22:54:31,853 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "resteasy.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.resteasy.war\".main" => "WFLYSRV0179: Failed to load module: deployment.resteasy.war
    Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.resteasy.resteasy-jackson-provider"}}
22:54:31,856 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "resteasy.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.resteasy.war\".main" => "WFLYSRV0179: Failed to load module: deployment.resteasy.war
    Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.resteasy.resteasy-jackson-provider"}}
22:54:31,858 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "resteasy.war" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.resteasy.war\".main" => "WFLYSRV0179: Failed to load module: deployment.resteasy.war
    Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.resteasy.resteasy-jackson-provider"}}
22:54:31,899 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028: Stopped deployment resteasy.war (runtime-name: resteasy.war) in 40ms
0

Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.resteasy.resteasy-jackson-provider

Google mówi: https://stackoverflow.com/questions/30102364/using-jackson2-in-jboss-as-7-1-modulenotfoundexception
próbujesz użyć czegoś czego domyślnie nie ma w wildfly i trzeba mu to dodać.

0

po dodaniu do web.xml

 <servlet>
        <servlet-name>Resteasy</servlet-name>
        <servlet-class>
            org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher
        </servlet-class>
        <init-param>
            <param-name>javax.ws.rs.Application</param-name>
            <param-value>com.kawa.ApplicationEntry</param-value>
        </init-param>
    </servlet>

nie ma zadnych bledow ale na kazdej mozliwej sciezce jest not found, np. http://localhost:8080/resteasy/rest/users/
mam dosc tego syfu..moze uda sie mi cos wymyslec

1 użytkowników online, w tym zalogowanych: 0, gości: 1