16 Comments

  1. 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

  2. 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.

  3. 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

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

  4. 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?
    Thanks

    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).

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

  6. 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.
    Thanks.

    1. Author

      Hi,
      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).
      Cheers,
      Moisés

  7. 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:
    localhost:8080/employees
    localhost:8080/my-app-name/employees

    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…

  8. 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!

  9. 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?

Comments

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