Closed OndroMih closed 6 years ago
I have the same issue with payara-5.Beta1(full) and a war project. i can deploy it in netbeans but not in my dockerimage.
i use a postbootcommandfile contaniing deploy /opt/deploy/
while starting payara with asadmin
asadmin start-domain --verbose --postbootcommandfile ${INSTALL_DIR}/deploy-command ${DOMAIN_NAME}
Same with payara-5.Beta2.
Sorry, my bad. The depoly command (as stated) was wrong. The name of the war file was missing. At least the error message is kind of confusing as the war file could not be found.
I'm seeing the same problem as this. Deploying an ear
(made of multiple component jar
ejb
s) gives the same error but deploying an individual jar
is fine.
I've taken a look into this further.
Payara Micro does not have org.glassfish.main.deployment:deployment-javaee-full
as a dependency, therefore there's no EarDetector
(and the other ear deployment classes) available when getArchiveHandler
is called for the ear
. This means that the archive is then determined to be an ejb
.
If org.glassfish.main.deployment:deployment-javaee-full
is included as a dependency (which then needs org.glassfish.main.applclient.server:appclient-connector
), I can then deploy ear
packages.
Payara Micro doesn't support EAR files currently as it is based off Web Profile which does not include EAR file support.
I had similar problem when deploying an ear file on payara and it keeps showing it contains zero ejb. My project was with JDK 17 so I looked for what minimum maven version that is compatible with this version. I found that I was using old version so when I upgraded it to 3.9.6 ( minimum is 3.8+) it was deployed successfully.
Description
I am working in Eclipse EE Neon, created an EJB project with a TimerBean (@Stateless) en added an EAR project. The EAR project has the TimerBean int its deployment assembly. Then I am running the exported EAR-file on my Raspberry Pi (Model B Rev 2) with Payara Micro like this:
Expected Outcome
TimerBean is started as should, no problems at all. (The timer starts periodically printing the deisgnated output to the console)
Current Outcome
Unfortunately this result in the following ...
Steps to reproduce (Only for bug reports)
Build the sample project ResourcesMicro.zip with Eclipse EE Neon (maybe it's enough to build simply by maven) and run
Werid thing is ... when I export the project with the TimerBean as a .jar the TimerBean is started as should, no problems at all. (The timer starts periodically printing the deisgnated output to the console)
Samples
This ResourcesMicro.zip
Context (Optional)
Previously discussed in the Payara Forum here.
Environment