Spring boot 2.0.6 quartz missing org/springframework/scheduling/quartz/SpringBeanJobFactory in war












3














Using spring boot war build during the start up of the application in the tomcat



Caused by: java.io.FileNotFoundException: class path resource [org/springframework/scheduling/quartz/SpringBeanJobFactory.class] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180)


even though it exists as a dependency



<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-quartz</artifactId>
</dependency>


And also spring-context-support



There are no issues with spring boot jar build and run



How to fix the issue for the war deployment?



This is what I get when debugging jar file - maybe this might help: (with war file ClassNotFoundException)



enter image description here










share|improve this question
























  • The SpringBeanJobFactory is found in the spring-context-support dependency. What version are using?
    – Babajide M. Moibi
    Nov 21 '18 at 14:09










  • +- org.springframework.boot:spring-boot-starter-quartz:jar:2.0.6.RELEASE:compile [INFO] | +- org.springframework:spring-context-support:jar:5.0.10.RELEASE:compile
    – Iurii Dziuban
    Nov 21 '18 at 14:14










  • the class is inside it. Spring boot jar file runs without an issue. The issue occurs only when I build it as war and deploy on the separate tomcat. However the dependency is present. Have no clue.
    – Iurii Dziuban
    Nov 21 '18 at 14:16
















3














Using spring boot war build during the start up of the application in the tomcat



Caused by: java.io.FileNotFoundException: class path resource [org/springframework/scheduling/quartz/SpringBeanJobFactory.class] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180)


even though it exists as a dependency



<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-quartz</artifactId>
</dependency>


And also spring-context-support



There are no issues with spring boot jar build and run



How to fix the issue for the war deployment?



This is what I get when debugging jar file - maybe this might help: (with war file ClassNotFoundException)



enter image description here










share|improve this question
























  • The SpringBeanJobFactory is found in the spring-context-support dependency. What version are using?
    – Babajide M. Moibi
    Nov 21 '18 at 14:09










  • +- org.springframework.boot:spring-boot-starter-quartz:jar:2.0.6.RELEASE:compile [INFO] | +- org.springframework:spring-context-support:jar:5.0.10.RELEASE:compile
    – Iurii Dziuban
    Nov 21 '18 at 14:14










  • the class is inside it. Spring boot jar file runs without an issue. The issue occurs only when I build it as war and deploy on the separate tomcat. However the dependency is present. Have no clue.
    – Iurii Dziuban
    Nov 21 '18 at 14:16














3












3








3







Using spring boot war build during the start up of the application in the tomcat



Caused by: java.io.FileNotFoundException: class path resource [org/springframework/scheduling/quartz/SpringBeanJobFactory.class] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180)


even though it exists as a dependency



<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-quartz</artifactId>
</dependency>


And also spring-context-support



There are no issues with spring boot jar build and run



How to fix the issue for the war deployment?



This is what I get when debugging jar file - maybe this might help: (with war file ClassNotFoundException)



enter image description here










share|improve this question















Using spring boot war build during the start up of the application in the tomcat



Caused by: java.io.FileNotFoundException: class path resource [org/springframework/scheduling/quartz/SpringBeanJobFactory.class] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180)


even though it exists as a dependency



<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-quartz</artifactId>
</dependency>


And also spring-context-support



There are no issues with spring boot jar build and run



How to fix the issue for the war deployment?



This is what I get when debugging jar file - maybe this might help: (with war file ClassNotFoundException)



enter image description here







java spring-boot war quartz






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 '18 at 15:18







Iurii Dziuban

















asked Nov 21 '18 at 14:03









Iurii DziubanIurii Dziuban

54121329




54121329












  • The SpringBeanJobFactory is found in the spring-context-support dependency. What version are using?
    – Babajide M. Moibi
    Nov 21 '18 at 14:09










  • +- org.springframework.boot:spring-boot-starter-quartz:jar:2.0.6.RELEASE:compile [INFO] | +- org.springframework:spring-context-support:jar:5.0.10.RELEASE:compile
    – Iurii Dziuban
    Nov 21 '18 at 14:14










  • the class is inside it. Spring boot jar file runs without an issue. The issue occurs only when I build it as war and deploy on the separate tomcat. However the dependency is present. Have no clue.
    – Iurii Dziuban
    Nov 21 '18 at 14:16


















  • The SpringBeanJobFactory is found in the spring-context-support dependency. What version are using?
    – Babajide M. Moibi
    Nov 21 '18 at 14:09










  • +- org.springframework.boot:spring-boot-starter-quartz:jar:2.0.6.RELEASE:compile [INFO] | +- org.springframework:spring-context-support:jar:5.0.10.RELEASE:compile
    – Iurii Dziuban
    Nov 21 '18 at 14:14










  • the class is inside it. Spring boot jar file runs without an issue. The issue occurs only when I build it as war and deploy on the separate tomcat. However the dependency is present. Have no clue.
    – Iurii Dziuban
    Nov 21 '18 at 14:16
















The SpringBeanJobFactory is found in the spring-context-support dependency. What version are using?
– Babajide M. Moibi
Nov 21 '18 at 14:09




The SpringBeanJobFactory is found in the spring-context-support dependency. What version are using?
– Babajide M. Moibi
Nov 21 '18 at 14:09












+- org.springframework.boot:spring-boot-starter-quartz:jar:2.0.6.RELEASE:compile [INFO] | +- org.springframework:spring-context-support:jar:5.0.10.RELEASE:compile
– Iurii Dziuban
Nov 21 '18 at 14:14




+- org.springframework.boot:spring-boot-starter-quartz:jar:2.0.6.RELEASE:compile [INFO] | +- org.springframework:spring-context-support:jar:5.0.10.RELEASE:compile
– Iurii Dziuban
Nov 21 '18 at 14:14












the class is inside it. Spring boot jar file runs without an issue. The issue occurs only when I build it as war and deploy on the separate tomcat. However the dependency is present. Have no clue.
– Iurii Dziuban
Nov 21 '18 at 14:16




the class is inside it. Spring boot jar file runs without an issue. The issue occurs only when I build it as war and deploy on the separate tomcat. However the dependency is present. Have no clue.
– Iurii Dziuban
Nov 21 '18 at 14:16












3 Answers
3






active

oldest

votes


















0














I'm not sure, it's just suggestion:



Try to add dependencies:



    <!--Quartz-->
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz-jobs</artifactId>
<version>2.2.1</version>
</dependency>


NOTE: It's just a way to 'hot fix'. And it is not a complete solution.






share|improve this answer























  • I have these dependencies defined for both jar and war. Only version 2.3.0 instead of 2.2.1
    – Iurii Dziuban
    Nov 21 '18 at 15:20



















0














Figured out the issue. As I was running Tomcat from the IntelliJ Idea and new dependencies introduced to the project were not reflected. Needed to remove and reimport war/war exploded into Tomcat configuration - no issues.






share|improve this answer





























    0














    Try to add the following dependency (if you want you can set Spring version by yourself):



    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-context-support</artifactId>
    <version>${spring.version}</version>
    </dependency>





    share|improve this answer





















      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53413827%2fspring-boot-2-0-6-quartz-missing-org-springframework-scheduling-quartz-springbea%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      I'm not sure, it's just suggestion:



      Try to add dependencies:



          <!--Quartz-->
      <dependency>
      <groupId>org.quartz-scheduler</groupId>
      <artifactId>quartz</artifactId>
      <version>2.2.1</version>
      </dependency>
      <dependency>
      <groupId>org.quartz-scheduler</groupId>
      <artifactId>quartz-jobs</artifactId>
      <version>2.2.1</version>
      </dependency>


      NOTE: It's just a way to 'hot fix'. And it is not a complete solution.






      share|improve this answer























      • I have these dependencies defined for both jar and war. Only version 2.3.0 instead of 2.2.1
        – Iurii Dziuban
        Nov 21 '18 at 15:20
















      0














      I'm not sure, it's just suggestion:



      Try to add dependencies:



          <!--Quartz-->
      <dependency>
      <groupId>org.quartz-scheduler</groupId>
      <artifactId>quartz</artifactId>
      <version>2.2.1</version>
      </dependency>
      <dependency>
      <groupId>org.quartz-scheduler</groupId>
      <artifactId>quartz-jobs</artifactId>
      <version>2.2.1</version>
      </dependency>


      NOTE: It's just a way to 'hot fix'. And it is not a complete solution.






      share|improve this answer























      • I have these dependencies defined for both jar and war. Only version 2.3.0 instead of 2.2.1
        – Iurii Dziuban
        Nov 21 '18 at 15:20














      0












      0








      0






      I'm not sure, it's just suggestion:



      Try to add dependencies:



          <!--Quartz-->
      <dependency>
      <groupId>org.quartz-scheduler</groupId>
      <artifactId>quartz</artifactId>
      <version>2.2.1</version>
      </dependency>
      <dependency>
      <groupId>org.quartz-scheduler</groupId>
      <artifactId>quartz-jobs</artifactId>
      <version>2.2.1</version>
      </dependency>


      NOTE: It's just a way to 'hot fix'. And it is not a complete solution.






      share|improve this answer














      I'm not sure, it's just suggestion:



      Try to add dependencies:



          <!--Quartz-->
      <dependency>
      <groupId>org.quartz-scheduler</groupId>
      <artifactId>quartz</artifactId>
      <version>2.2.1</version>
      </dependency>
      <dependency>
      <groupId>org.quartz-scheduler</groupId>
      <artifactId>quartz-jobs</artifactId>
      <version>2.2.1</version>
      </dependency>


      NOTE: It's just a way to 'hot fix'. And it is not a complete solution.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 21 '18 at 15:11

























      answered Nov 21 '18 at 15:04









      Rostyslav BarmakovRostyslav Barmakov

      1193




      1193












      • I have these dependencies defined for both jar and war. Only version 2.3.0 instead of 2.2.1
        – Iurii Dziuban
        Nov 21 '18 at 15:20


















      • I have these dependencies defined for both jar and war. Only version 2.3.0 instead of 2.2.1
        – Iurii Dziuban
        Nov 21 '18 at 15:20
















      I have these dependencies defined for both jar and war. Only version 2.3.0 instead of 2.2.1
      – Iurii Dziuban
      Nov 21 '18 at 15:20




      I have these dependencies defined for both jar and war. Only version 2.3.0 instead of 2.2.1
      – Iurii Dziuban
      Nov 21 '18 at 15:20













      0














      Figured out the issue. As I was running Tomcat from the IntelliJ Idea and new dependencies introduced to the project were not reflected. Needed to remove and reimport war/war exploded into Tomcat configuration - no issues.






      share|improve this answer


























        0














        Figured out the issue. As I was running Tomcat from the IntelliJ Idea and new dependencies introduced to the project were not reflected. Needed to remove and reimport war/war exploded into Tomcat configuration - no issues.






        share|improve this answer
























          0












          0








          0






          Figured out the issue. As I was running Tomcat from the IntelliJ Idea and new dependencies introduced to the project were not reflected. Needed to remove and reimport war/war exploded into Tomcat configuration - no issues.






          share|improve this answer












          Figured out the issue. As I was running Tomcat from the IntelliJ Idea and new dependencies introduced to the project were not reflected. Needed to remove and reimport war/war exploded into Tomcat configuration - no issues.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 21 '18 at 16:32









          Iurii DziubanIurii Dziuban

          54121329




          54121329























              0














              Try to add the following dependency (if you want you can set Spring version by yourself):



              <dependency>
              <groupId>org.springframework</groupId>
              <artifactId>spring-context-support</artifactId>
              <version>${spring.version}</version>
              </dependency>





              share|improve this answer


























                0














                Try to add the following dependency (if you want you can set Spring version by yourself):



                <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context-support</artifactId>
                <version>${spring.version}</version>
                </dependency>





                share|improve this answer
























                  0












                  0








                  0






                  Try to add the following dependency (if you want you can set Spring version by yourself):



                  <dependency>
                  <groupId>org.springframework</groupId>
                  <artifactId>spring-context-support</artifactId>
                  <version>${spring.version}</version>
                  </dependency>





                  share|improve this answer












                  Try to add the following dependency (if you want you can set Spring version by yourself):



                  <dependency>
                  <groupId>org.springframework</groupId>
                  <artifactId>spring-context-support</artifactId>
                  <version>${spring.version}</version>
                  </dependency>






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 21 '18 at 16:36









                  Alfonso SilvestriAlfonso Silvestri

                  3111418




                  3111418






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53413827%2fspring-boot-2-0-6-quartz-missing-org-springframework-scheduling-quartz-springbea%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Wiesbaden

                      Marschland

                      Dieringhausen