I have a webapp project in NetBeans, and I created a "Run class - main method" to startup programatically
PayaraMicro.getInstance()....bootstrap();
Then, to compile and to run without problems in NetBeans with Shift+F6 Run.class
, I have to put these two internal JARs from Payara Micro in
the libraries of the NetBeans project. Here, all ok.
But, when I need to run out of NetBeans, like this:
java -jar payara-micro.jar --deploy mywebapp.war
I would like to remove these two JARs from mywebapp.war
, because I thought it was not needed. But if I remove from my .war file, Payara Micro doesn't get to find my REST webservices and this error message arises:
Application mywebapp has no deployed JAX-RS applications
.
I tried to remove just one of two JARs, same error. Both are required into my war.
I don't understand why Payara Micro (that already has these JARs into it), needs again the JARs in my war.
I use version 174.