I am trying to deploy a jar on Jboss 6.1 EA. I had build the jar file.
I am unable to access the page http://localhost:8080/$YOURAPP/hello/World
, because I get a 404 error. I replaced the $YOURAPP
with the name of the war file. I do not get any errors while starting jboss, it shows the war is getting deployed.
With this configuration, the application is ready to deploy to any external application server. Once this is done, you can package your Spring Boot application as a war and deploy it to the JBoss server. To do that, you need to run mvn clean package , which will generate the war file.
Red Hat's latest JBoss EAP version is 7, with Cumulative Patches 2 and Cumulative Patches 3 (JBoss EAP 7.2 and JBoss EAP 7.3, respectively). Key features: Eclipse-based Integrated Development Environment (IDE) is available using JBoss Developer Studio. Supports Java EE and Web Services standards.
Deploying microservices in JBoss won't give you the same flexibility as a true container system like Docker. With Docker you create standalone packages for your microservices that contain all the code, system tools, runtime environment, etc. It can be as small or large as it needs to be.
A Java Development Kit (JDK) is required for development, and a Java Runtime Environment (JRE) is required to run JBoss Enterprise Application Platform.
You will definitely need a .war
file for JBoss because a (fat) .jar
file will not work.
For JBoss, you will also need a jboss-web.xml
descriptor file in src/main/webapp/WEB-INF
file containing the context root of your application.
For example:
<jboss-web>
<context-root>YOUR_APP_ROOT</context-root>
</jboss-web>
After that, you will need to set one more Spring Boot property to make this work on JBoss EAP 6:
server.servlet-path = /*
This is due to a quirk in JBoss itself, if you don't have this property set to /*
it will not work.
More information here and here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With