Spring boot 2.0.6 quartz missing org/springframework/scheduling/quartz/SpringBeanJobFactory in war
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)
java spring-boot war quartz
add a comment |
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)
java spring-boot war quartz
TheSpringBeanJobFactory
is found in thespring-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
add a comment |
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)
java spring-boot war quartz
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)
java spring-boot war quartz
java spring-boot war quartz
edited Nov 21 '18 at 15:18
Iurii Dziuban
asked Nov 21 '18 at 14:03
Iurii DziubanIurii Dziuban
54121329
54121329
TheSpringBeanJobFactory
is found in thespring-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
add a comment |
TheSpringBeanJobFactory
is found in thespring-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
add a comment |
3 Answers
3
active
oldest
votes
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.
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
add a comment |
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.
add a comment |
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>
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 21 '18 at 16:32
Iurii DziubanIurii Dziuban
54121329
54121329
add a comment |
add a comment |
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>
add a comment |
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>
add a comment |
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>
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>
answered Nov 21 '18 at 16:36
Alfonso SilvestriAlfonso Silvestri
3111418
3111418
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
The
SpringBeanJobFactory
is found in thespring-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