1. Hi,
    I’ve follow your guide. My war is working. I’ve a trouble when I add the file jboss-deployment-structer.xml into webapp/WEB-INF folder. For example I’ve added a dependency to a custom module.
    Below a snippet of my stack trace:
    service jboss.deployment.unit."here-new-data-interface-consumer.war".component."org.springframework.web.servlet.DispatcherServlet".START (missing) dependents: [service jboss.deployment.unit."here-new-data-interface-consumer.war".deploymentCompleteService]

  2. I am getting below Error with Spring boot version 2.1.8.RELEASE

    08:09:21,934 ERROR [org.jboss.web] (ServerService Thread Pool -- 53) JBAS018202: Error calling onStartup for servlet container initializer: [...]
    java.lang.NoClassDefFoundError: javax/el/ELManager
    at org.springframework.beans.factory.support.ConstructorResolver
    at org.springframework.beans.factory.support.ConstructorResolver
    at [...]

    1. Author

      I just tried with the same codebase from the git repo, changing Spring Boot dependency to 2.1.8.RELEASE and it works for me. Are you using the code example or something else? It looks like you’re missing a dependency.

  3. Thanks for the reply. I’m still not able to get it to working by adding configuration. I’m still getting 404 error not found for my files

  4. How would I deploy the front end separately from the back end? Following this I was able to deploy the back end, but when loading the page the front end stuff was missing. For the front end, I’m using Vuejs. Thanks.

    1. Author

      If you want to use Wildfly for that, check this link for example. You will need to add some configuration.

  5. This is a problem with JBoss 6.4 and Spring Boot 2.x Bean Validation -> javax.validation.api
    JBoss uses version 1.0 and Spring Boot 1.1. You need to exlude this dependencies at jboss-deployment-structure.xml

  6. I tried to deploy the github project to my local jboss-eap-6.4 environemnt with the jdk change from 10 to 1.8 but the deployment failed and I got the following exception:

    09:30:52,492 ERROR [org.springframework.boot.SpringApplication] (ServerService Thread Pool — 636) Application run failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘defaultValidator’ defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.validation.Configuration.getDefaultParameterNameProvider()Ljavax/validation/ParameterNameProvider;

    Do you know why this exception is occuring?

    1. Author

      Sorry for the late reply, did you already fix it? It looks like that dependency is missing or not properly configured.

  7. Hi!!

    I could deploy my SOAP WS war. But I can’t see the WSDL in JBoss EAP.

    When I go to Runtime -> Standalone Server -> Subsystems-> Web Services. I don’t have any endpoint

    1. Author

      Could you provide more information? How does your setup like? Is it a Spring Boot app with JBoss configuration?

  8. Hi,
    I’m trying to get some configuration per environment (qa, pre and production), but I do not know where I should make the changes so that they can be read from some .properties file outside the war.
    Do you have any idea?

    1. Author

      I guess you already use profiles and the part you’re missing is described here. You can choose what to do among those options, but I recommend you to pack the profiles’ application.properties within the war, and pass any “secret values” such as passwords by using environment variables (e.g. SERVER_PORT environment variable will override server.port in application.properties).

  9. Thanks for the “extends SpringBootServletInitializer” part. This helped me further.

  10. Hii,

    I followed ur post to deploy springBootApp to Jboss, but it giving error. My application is working fine with tomacat. but it giving error when trying to deploy JBOSS.
    The error as follows::Caused by: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

    Looking for your reply.

    1. Author

      Could you share your Application class? But it could be a JBoss configuration problem of the classpath, since it’s working fine with Tomcat (I guess not the embedded one).

  11. Hello

    I followed your tutorial to deploy the Spring Boot App of mine to Jboss but it doesn’t work. My Spring Boot App works fine with embedded tomcat but when I try to deploy it to external Tomcat or Jboss as a .war it always give me HTTP Status 404 .

    With embedded tomcat this URL works: localhost:8080/employees but when I deploy to external Tomcat or Jboss none of the below URL works for me:

    Looking for your reply. Thanks in advance.

    1. Author

      Hi Ankit,
      Do you have your source code in GitHub so I can have a look? Actually that could be caused by many reasons…

  12. So I don’t know why, I did a re-fresh on the project and re-published the war on wildfly and now everything works! I guess there was something old cached somewhere.

    Thanks for the good tutorial. Took me a while to find something up to date and simple like this to get me going.

    1. Author

      Thanks for your comment George, I´m glad you found the solution!

  13. I started off with a default spring boot application with hello world example and added your modifications. It builds and the war file is produced and deployed on WildFly 9.x but the application spits out a “Not Found” error when accessing it (http://localhost:8080/demo/greeting/?name=george)

    I’m using STS 3.7.1 RELEASE with WildFly 9.x

    Any idea what could be causing this? I’m not supposed to have a web.xml correct?


This site uses Akismet to reduce spam. Learn how your comment data is processed.