Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to run mvn verify #121

Closed
Kenzku opened this issue Jul 6, 2023 · 3 comments
Closed

failed to run mvn verify #121

Kenzku opened this issue Jul 6, 2023 · 3 comments

Comments

@Kenzku
Copy link

Kenzku commented Jul 6, 2023

following this tutorial: https://openliberty.io/guides/microshed-testing.html#try-what-youll-build

cd finish
mvn verify

see error:

INFO] CWWKM2015I: Match number: 1 is [7/6/23, 16:37:00:391 EEST] 0000003f com.ibm.ws.app.manager.AppMessageHelper                      A CWWKZ0001I: Application guide-microshed-testing started in 0.614 seconds..
[INFO] Running integration tests...
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.openliberty.guides.testing.PersonServiceIT
[INFO] Using ApplicationEnvironment class: org.microshed.testing.testcontainers.config.HollowTestcontainersConfiguration
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Using ServerAdapter: org.testcontainers.containers.liberty.LibertyAdapter
[INFO] Exposing fixed port 9080 for container HollowApplicationContainer
[INFO] Starting 1 container(s) in parallel for class io.openliberty.guides.testing.PersonServiceIT
[INFO]   HollowApplicationContainer
SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: Defaulting to no-operation MDCAdapter implementation.
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.
[INFO] All containers started in 1042ms
[INFO] Building rest client for class io.openliberty.guides.testing.PersonService with base path: http://localhost:9080/guide-microshed-testing/ and providers: [class org.microshed.testing.jaxrs.JsonBProvider]
Jul 06, 2023 4:37:12 PM org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean createWithValues
SEVERE: java.lang.IllegalArgumentException : io.openliberty.guides.testing.PersonService is not an interface
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.226 s <<< FAILURE! - in io.openliberty.guides.testing.PersonServiceIT
[ERROR] io.openliberty.guides.testing.PersonServiceIT  Time elapsed: 1.225 s  <<< ERROR!
java.lang.IllegalArgumentException: io.openliberty.guides.testing.PersonService is not an interface
openjdk version "17.0.6" 2023-01-17
IBM Semeru Runtime Open Edition 17.0.6.0 (build 17.0.6+10)
Eclipse OpenJ9 VM 17.0.6.0 (build openj9-0.36.0, JRE 17 Mac OS X aarch64-64-Bit 20230117_255 (JIT enabled, AOT enabled)
OpenJ9   - e68fb241f
OMR      - f491bbf6f
JCL      - 927b34f84c8 based on jdk-17.0.6+10)

but if I run this example on the Cloud Environment via https://labs.cognitiveclass.ai it seems to work:

Screenshot 2023-07-06 at 16 45 47
@gkwan-ibm
Copy link
Member

hi @Kenzku

I think you need to use JDK 11 instead of JDK 17.

@Kenzku
Copy link
Author

Kenzku commented Jul 11, 2023

Thanks a million 👍

@gkwan-ibm
Copy link
Member

close

  • issue was addressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants