IQSS / dataverse

Open source research data repository software
http://dataverse.org
Other
877 stars 484 forks source link

ENABLE_RELOAD=1 doesn't allow autodeploy to work in container base image #10099

Closed pdurbin closed 4 weeks ago

pdurbin commented 10 months ago

What steps does it take to reproduce the issue?

Dockerfile with this:

FROM gdcc/base:unstable
ENV ENABLE_RELOAD=1

Then try to do this within the container:

cp path/to/myapp.war /opt/payara/appserver/glassfish/domains/domain1/autodeploy

Nothing happens. You sit there waiting, staring at output like this (this is just the last line, nothing special about it):

[#|2023-11-04T22:20:10.782+0000|INFO|Payara 6.2023.8|javax.enterprise.system.jmx|_ThreadID=132;_ThreadName=Thread-12;_TimeMillis=1699136410782;_LevelValue=800;_MessageID=NCLS-JMX-00005;|
  JMXStartupService has started JMXConnector on JMXService URL service:jmx:rmi://0.0.0.0:8686/jndi/rmi://0.0.0.0:8686/jmxrmi|#]

I expect my war file to be deployed like this:

[#|2023-11-04T22:20:24.561+0000|INFO|Payara 6.2023.8|javax.enterprise.system.tools.deployment.autodeploy|_ThreadID=129;_ThreadName=payara-executor-service-scheduled-task;_TimeMillis=1699136424561;_LevelValue=800;_MessageID=NCLS-DEPLOYMENT-02027;|
  Selecting file /opt/payara/appserver/glassfish/domains/domain1/autodeploy/myapp.war for autodeployment|#]

[#|2023-11-04T22:20:24.665+0000|INFO|Payara 6.2023.8|javax.enterprise.system.core|_ThreadID=129;_ThreadName=payara-executor-service-scheduled-task;_TimeMillis=1699136424665;_LevelValue=800;|
  No deployment transformer implementation found.|#]

[#|2023-11-04T22:20:24.739+0000|INFO|Payara 6.2023.8|org.jboss.weld.Version|_ThreadID=129;_ThreadName=payara-executor-service-scheduled-task;_TimeMillis=1699136424739;_LevelValue=800;|
  WELD-000900: 5.0.1 (Final)|#]

[#|2023-11-04T22:20:25.421+0000|INFO|Payara 6.2023.8|fish.payara.micro.cdi.extension.ClusteredCDIEventBusImpl|_ThreadID=129;_ThreadName=payara-executor-service-scheduled-task;_TimeMillis=1699136425421;_LevelValue=800;|
  Clustered CDI Event bus initialized|#]

[#|2023-11-04T22:20:25.455+0000|INFO|Payara 6.2023.8|org.glassfish.soteria.servlet.SamRegistrationInstaller|_ThreadID=129;_ThreadName=payara-executor-service-scheduled-task;_TimeMillis=1699136425455;_LevelValue=800;|
  Initializing Soteria 3.0.1.payara-p1 for context '/myapp'|#]

[#|2023-11-04T22:20:25.526+0000|INFO|Payara 6.2023.8|jakarta.enterprise.web|_ThreadID=129;_ThreadName=payara-executor-service-scheduled-task;_TimeMillis=1699136425526;_LevelValue=800;_MessageID=AS-WEB-GLUE-00172;|
  Loading application [myapp] at [/myapp]|#]

[#|2023-11-04T22:20:25.558+0000|INFO|Payara 6.2023.8|javax.enterprise.system.core|_ThreadID=129;_ThreadName=payara-executor-service-scheduled-task;_TimeMillis=1699136425558;_LevelValue=800;|
  myapp was successfully deployed in 930 milliseconds.|#]

[#|2023-11-04T22:20:25.559+0000|INFO|Payara 6.2023.8|javax.enterprise.system.tools.deployment.autodeploy|_ThreadID=129;_ThreadName=payara-executor-service-scheduled-task;_TimeMillis=1699136425559;_LevelValue=800;_MessageID=NCLS-DEPLOYMENT-02035;|
  [AutoDeploy] Successfully autodeployed : /opt/payara/appserver/glassfish/domains/domain1/autodeploy/myapp.war.|#]
pdurbin commented 4 weeks ago

I already closed the PR I made...

... so I'll go ahead and close this too. It should be fixed already. I'm probably the only one who will notice. 😄