NullpointerExceptionBuster NullpointerExceptionBuster - 1 year ago 120
Java Question

Payara Micro - 404 after deployment

I wanted to try this cool micro app server - Payara Micro, but Im somehow unable to deploy the simplest example possible.
I've created a blank web-app maven project from netbeans, using JavaEE7 with no dependencies. Tried to compile it (nothing much to compile), and ran it successfully with Glassfish 4.1.1 - Hello World welcome page appears, and everything is OK.

Did a clean&build, and tried to deploy resulting WARfile to payara.
(java -jar payara-micro.jar --deploy mywarfile.war)
Startup was quick, just noticed two messages in output - > "No META-INF/deploy" directory and "Deployed 1 archives".
Tried to open the index page, but oops -> error 404 (as seen below).

enter image description here

The project is really simple, I may be doing something wrong when deploying. Maybe some errors in project structure ?
Hereby I present the primitive project structure used :

enter image description here

Thank you very much for any valuable solution/feedback. I think I'm just overlooking some minor, stupid thing.

Edit: pomfile attached. Tried to run it with both dependencies, with EE or payara only, but no change :(

<?xml version="1.0" encoding="UTF-8"?>">






Answer Source

You should be able to see in the logs the context root of your application (couple of lines before the line Payara Micro #badassmicrofish (build 215) ready in 10436 (ms)).

Something like this:

Loading application [sigag] at [/sigag]

Then your application should be available at http://localhost:8080/sigag/

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download