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

Bug Report: Payara Tools 2.3.0 with Eclipse 2023-06 after deploying an EAR the application cannot be reached (HTTP 404 error) / FISH-7720 #74

Open
angoinetum opened this issue Aug 3, 2023 · 7 comments
Assignees
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect

Comments

@angoinetum
Copy link

Brief Summary

After deploying an EAR within Eclipse 2023-06 and Payara Tools 2.3.0 with Payara Server Community 5.2022.5 (JDK Eclipse Temurin jdk-11.0.17.8-hotspot) we have an 404 error whereas the EAR was successfully deployed.

If the EAR is manually deployed using Payara web admin interface (http://localhost:4848), the application is deployed and can be reached with a browser using the URL: http://localhost:8080/web-application/hello

Maven project example used to reproduce this bug: https://github.com/mrts/local-ejb-injection

Expected Outcome

When navigating to the application URL http://localhost:8080/web-application/hello with a browser the following message is displayed:

HelloService says: hello!

Current Outcome

HTTP 404 error

Reproducer

  1. Create a Payara Server (Payara 5.2022.5)
  2. Import in Eclipse the Maven project: http://localhost:8080/web-application/hello
  3. Right click on the Parent projet > "Run as" > Maven project
  4. Define Maven correct Goals (example: clean install)
  5. Clicks on button "Run"
  6. After building, Refresh (F5) on the Parent Project
  7. Right click on Maven resource "application-ear" > "Run on Server" > Choose the Payara server
  8. Click on "Next"
  9. Click on "Finish"

Operating System

Windows 11

JDK Version

Eclipse Temurin JDK jdk-11.0.17.8-hotspot

Ecosystem Tool

Eclipse IDE Plugin

@angoinetum angoinetum added Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect labels Aug 3, 2023
@Elifzeynepedman
Copy link

Greetings @angoinetum ,

Payara Platform 5 Community support has ended, please migrate your environment to Payara Platform 6 and verify if this issue affects its current release.

If you encounter any issues or have trouble transforming your applications and migrating them to Payara Platform 6 and if you want to remain on Payara Platform 5, you may consider acquiring a Payara Enterprise subscription.

Best Regards,
Elif

@Elifzeynepedman Elifzeynepedman added Status: Pending Waiting on the user to give more details or share a reproducer and removed Status: Open Issue has been triaged by the front-line engineers and is being worked on verification labels Aug 4, 2023
@angoinetum
Copy link
Author

angoinetum commented Aug 4, 2023

I used Eclipse Transformer in command line to migrate the Maven project example (in order to use JakartaEE 10), and I reproduced the same bug when deploying the EAR with Payara Tools Eclipse plugin 2.3.0 and Payara Server Full Profile Community 6.2023.7
I have HTTP 404 error when accessing the URL http://localhost:8080/web-application/hello

After deploying manually the EAR using the web admin interface (http://localhost:4848), when accessing the URL http://localhost:8080/web-application/hello I have the correct content displayed: HelloService says: hello!

@Elifzeynepedman
Copy link

Hi @angoinetum,

I was able to reproduce the error you have been facing and have escalated this to the platform development team as FISH-7720.

Thank you,
Elif

@Elifzeynepedman Elifzeynepedman changed the title Bug Report: Payara Tools 2.3.0 with Eclipse 2023-06 after deploying an EAR the application cannot be reached (HTTP 404 error) Bug Report: Payara Tools 2.3.0 with Eclipse 2023-06 after deploying an EAR the application cannot be reached (HTTP 404 error) / FISH-7720 Aug 8, 2023
@Elifzeynepedman Elifzeynepedman added Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev and removed Status: Pending Waiting on the user to give more details or share a reproducer labels Aug 8, 2023
@Elifzeynepedman
Copy link

Hi @angoinetum,

After thorough investigation was made by our engineers, the following observations were made:

  1. Deploying the EAR from the command line resulted in the endpoint working correctly.
  2. However, deploying the exploded EAR from the command line led to the endpoint not working as expected.
  3. Similarly, deploying the exploded EAR from the (Eclipse & NetBeans) IDE also resulted in the endpoint not functioning properly.

However, it was revealed that the issue stemmed from a package misconfiguration in the file 'HelloServiceImpl.java' located at 'local-ejb-injection-master\service-ejb-impl\src\main\java\ee\mrts\service'. The package was corrected from 'ee.mrts.servlet' to 'ee.mrts.service'. This fix resolved the deployment issues encountered in all the aforementioned scenarios.

Would you please confirm if changing the package to 'ee.mrts.service' has fixed the issue on your end as well?

Thank you,
Elif

@angoinetum
Copy link
Author

Hi @Elifzeynepedman,

I do not have this package misconfiguration in my source files.
I have just published my Git repository corresponding that I used to reproduce my reported bug in Github : https://github.com/angoinetum/local-ejb-injection-jakarataee

Best regards.

@Elifzeynepedman
Copy link

Hi @angoinetum,

Could you please upgrade the located application-ear/pom.xml to version 3.3.0.

Upgrading the maven-ear-plugin resolves the issue you are facing.

Thank you,
Elif

@Elifzeynepedman Elifzeynepedman added Status: Pending Waiting on the user to give more details or share a reproducer and removed Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev labels Dec 20, 2023
@angoinetum
Copy link
Author

angoinetum commented Jan 3, 2024

Hi @Elifzeynepedman,

Sorry but after upgrading the maven-war-plugin to version 3.3.0 and to the latest version 3.4.0, I have the same bug.

I reproduced the bug with the latest Eclipse JEE 2023-12, Payara Tools version 2.3.0, Payara Full Server 6.2023.12, using OpenJDK Eclipse Temurin Hotspot 11.0.21+9.

I recorded a video that reproduces the bug: https://www.grosfichiers.com/QhPnsBPbNPC
(The link to the video is still available)

@Elifzeynepedman Elifzeynepedman added Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev and removed Status: Pending Waiting on the user to give more details or share a reproducer labels Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect
Projects
None yet
Development

No branches or pull requests

2 participants