You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a relatively simple app from micronaut launch.
Add micronaut-servlet.
Package as a war.
Deploy to payara.
Deployment should have worked
Actual Behaviour
Deployment fails with the error: The return type of the lifecycle method [start] must be void. Related annotation information: annotation [@javax.annotation.PostConstruct()] on annotated element [public io.micronaut.scheduling.io.watch.DefaultWatchThread io.micronaut.scheduling.io.watch.DefaultWatchThread.start()] of type [METHOD]
Steps To Reproduce
Via micronaut launch, take a vanilla application, java 17, groovy.
add to build.gradle:
developmentOnly("io.micronaut.servlet:micronaut-http-server-tomcat:4.9.2")
implementation("io.micronaut.servlet:micronaut-servlet-engine:4.9.2")
plugins: id "war"
build war, deploy to payara
Environment Information
JDK 17
Ubuntu linux
Payara 5.2022.5, or Payara 6.2024.6 (latest)
The text was updated successfully, but these errors were encountered:
jcosmo
changed the title
Deployment to Payara fails due to lifecycle failure in
Deployment to Payara fails due to lifecycle failure in DefaultWatchThread
Jul 15, 2024
Expected Behavior
Create a relatively simple app from micronaut launch.
Add micronaut-servlet.
Package as a war.
Deploy to payara.
Deployment should have worked
Actual Behaviour
Deployment fails with the error:
The return type of the lifecycle method [start] must be void. Related annotation information: annotation [@javax.annotation.PostConstruct()] on annotated element [public io.micronaut.scheduling.io.watch.DefaultWatchThread io.micronaut.scheduling.io.watch.DefaultWatchThread.start()] of type [METHOD]
Steps To Reproduce
Via micronaut launch, take a vanilla application, java 17, groovy.
add to build.gradle:
developmentOnly("io.micronaut.servlet:micronaut-http-server-tomcat:4.9.2")
implementation("io.micronaut.servlet:micronaut-servlet-engine:4.9.2")
plugins: id "war"
build war, deploy to payara
Environment Information
JDK 17
Ubuntu linux
Payara 5.2022.5, or Payara 6.2024.6 (latest)
Example Application
demo.zip
Version
4.4.0
The text was updated successfully, but these errors were encountered: