server loading time it showing this error:
Caused by: org.springframework.beans.TypeMismatchException: Failed to
convert property value of type 'java.lang.String' to required type
'java.lang.Class[]' for property 'annotatedClasses'; nested exception
is java.lang.IllegalArgumentException: Cannot find class
[com.vcs.model.Student] Caused by: java.lang.ClassNotFoundException:
com.vcs.model.Student
Related
I have the following value configured in my SQS Listener in springboot. The queue is configured only for DEV and STAGE environments. So I want to disable it in my local after testing. How do i achieve that?
#SqsListener(value = { "${cloud.aws.endpoint}" } , deletionPolicy =SqsMessageDeletionPolicy.ON_SUCCESS)
public void processMessage(String message) throws Exception {
}
I tried to add the following to my application-local.xml(to keep it local), but it didn't work. Anyone went through the same scenario?
autoconfigure:
exclude:
- org.springframework.cloud.aws.autoconfigure.messaging.MessagingAutoConfiguration
- org.springframework.cloud.aws.autoconfigure.context.ContextStackAutoConfiguration
- org.springframework.cloud.aws.autoconfigure.context.ContextRegionProviderAutoConfiguration
I am getting the following error everytime.
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'stackResourceRegistryFactoryBean' defined in class path resource [org/springframework/cloud/aws/autoconfigure/context/ContextStackAutoConfiguration.class]: Unsatisfied dependency expressed through method 'stackResourceRegistryFactoryBean' parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'autoDetectingStackNameProvider' defined in class path resource [org/springframework/cloud/aws/autoconfigure/context/ContextStackAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.aws.core.env.stack.config.StackNameProvider]: Factory method 'autoDetectingStackNameProvider' threw exception; nested exception is java.lang.IllegalArgumentException: No valid instance id defined
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:799) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]
com.amazonaws.SdkClientException: Failed to connect to service endpoint:
at com.amazonaws.internal.EC2ResourceFetcher.doReadResource(EC2ResourceFetcher.java:100) [aws-java-sdk-core-1.11.867.jar:na]
Caused by: java.net.ConnectException: Host is down (connect failed)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'autoDetectingStackNameProvider' defined in class path resource [org/springframework/cloud/aws/autoconfigure/context/ContextStackAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.cloud.aws.core.env.stack.config.StackNameProvider]: Factory method 'autoDetectingStackNameProvider' threw exception; nested exception is java.lang.IllegalArgumentException: No valid instance id defined
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]
at org.sprin
I've faced similar issues while using #SqsListener. What I usually do is comment out the annotation when running the app locally - it's ugly but it works.
I got a problem in one of my cloud server today and it was restarted by the administrators when action was in progress. Since the restart of the server my backend doesn't want to restart, it seems like there is a problem with my postgresql database.
For information : I can connect to the database with the username and the password of the user with no problem and also do modification with pgAdmin or directly with psql.
ERROR c.b.myapp.progress.ProgressServiceImpl.updateProgressApplication (169) - error updating progress for c24f3d42-965b-459e-8afd-2e016ddb3394
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Unsatisfied dependency expressed through method 'dataSource' parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties': Could not bind properties to 'DataSourceProperties' : prefix=spring.datasource, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext#5e57643e has not been refreshed yet
at [...]
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Unsatisfied dependency expressed through method 'dataSource' parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties': Could not bind properties to 'DataSourceProperties' : prefix=spring.datasource, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext#5e57643e has not been refreshed yet
at [...]
Caused by: org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties': Could not bind properties to 'DataSourceProperties' : prefix=spring.datasource, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext#5e57643e has not been refreshed yet
at [...]
Caused by: java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext#5e57643e has not been refreshed yet
at [...]
ERROR o.s.a.i.SimpleAsyncUncaughtExceptionHandler.handleUncaughtException (39) - Unexpected exception occurred invoking async method: public void com.myapp.progress.ProgressServiceImpl.processAllApplications()
org.springframework.orm.jpa.JpaSystemException: Unable to rollback against JDBC Connection; nested exception is org.hibernate.TransactionException: Unable to rollback against JDBC Connection
at [...]
Caused by: org.hibernate.TransactionException: Unable to rollback against JDBC Connection
at [...]
Caused by: org.postgresql.util.PSQLException: This connection has been closed.
Can someone help ? (Everything was working fine before this server restart)
I tried a lot but could not understand what is really wrong
highlights
Same code starting in development region and production without any issue
While starting in local machine am getting the following error
Basically am getting found [bigint (Types#BIGINT)], but expecting [int (Types#INTEGER)] in my error message, if I change the table field to Integer it is working fine. But the code base is really big and lot of tables involved.
Ideally, it should have started without any error messages.Kindly help me in for this
Note: Same code is was also starting in my older machines, now I got an new machine to work and along with this I got this issue also
Java jre version 1.8.0
Error
{"time":"2020-08-19T15:56:23.132+00:00","msg":"Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory","logger_name":"org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext","level":"WARN","app":"food-data-extract-service"}
{"time":"2020-08-19T15:56:23.137+00:00","msg":"Stopping service Tomcat","logger_name":"org.apache.catalina.core.StandardService","level":"INFO","app":"food-data-extract-service"}
{"time":"2020-08-19T15:56:23.147+00:00","msg":"Error handling failed (Error creating bean with name 'delegatingApplicationListener' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available)","logger_name":"org.springframework.boot.SpringApplication","level":"WARN","app":"food-data-extract-service"}
{"time":"2020-08-19T15:56:23.156+00:00","msg":"Application startup failed","logger_name":"org.springframework.boot.SpringApplication","level":"ERROR","stack_trace":"org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)\r\n\tat org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081)\r\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:856)\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)\r\n\tat org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)\r\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:314)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1162)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1151)\r\n\tat com.organisation.microservice.extract.Application.main(Application.java:18)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)\r\n\tat java.lang.reflect.Method.invoke(Unknown Source)\r\n\tat org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)\r\nCaused by: javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory\r\n\tat org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:954)\r\n\tat org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:882)\r\n\tat org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)\r\n\tat org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:353)\r\n\tat org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:370)\r\n\tat org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:359)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)\r\n\t... 21 common frames omitted\r\nCaused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [id] in table [cloud_parameter_file]; found [bigint (Types#BIGINT)], but expecting [int (Types#INTEGER)]\r\n\tat org.hibernate.tool.schema.internal.SchemaValidatorImpl.validateColumnType(SchemaValidatorImpl.java:105)\r\n\tat org.hibernate.tool.schema.internal.SchemaValidatorImpl.validateTable(SchemaValidatorImpl.java:92)\r\n\tat org.hibernate.tool.schema.internal.SchemaValidatorImpl.doValidation(SchemaValidatorImpl.java:50)\r\n\tat org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:91)\r\n\tat org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:475)\r\n\tat org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)\r\n\tat org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879)\r\n\t... 27 common frames omitted\r\n","app":"food-data-extract-service"}
ERROR o.s.boot.SpringApplication -Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurer': Invocation of init method failed; nested exception is org.springframework.batch.core.configuration.BatchConfigurationException: java.lang.IllegalArgumentException: DatabaseType not found for product name: [Informix Dynamic Server]
Caused by: org.springframework.batch.core.configuration.BatchConfigurationException: java.lang.IllegalArgumentException: DatabaseType not found for product name: [Informix Dynamic Server]
Caused by: java.lang.IllegalArgumentException: DatabaseType not found for product name: [Informix Dynamic Server]
Here spring DatabaseType class:
public enum DatabaseType {
DERBY("Apache Derby"),
DB2("DB2"),
DB2VSE("DB2VSE"),
DB2ZOS("DB2ZOS"),
DB2AS400("DB2AS400"),
HSQL("HSQL Database Engine"),
SQLSERVER("Microsoft SQL Server"),
MYSQL("MySQL"),
ORACLE("Oracle"),
POSTGRES("PostgreSQL"),
SYBASE("Sybase"),
H2("H2"),
SQLITE("SQLite");
Any working example of work around will be appriciated?
I'm getting the following exception while trying to deploy my camel-quartz application in fuse:
Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=test-quartz-impl, config=osgibundle:/META-INF/spring/*.xml))
org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route371: Route(route371)[[From[quartz://test/testQuartzJob?c... because of Failed to resolve endpoint: quartz://test/testQuartzJob?cron=0+0%2F15+*+1%2F1+*+%3F due to: Cannot auto create component: quartz
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1619)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:123)[210:org.apache.camel.camel-spring:2.15.1.redhat-621117]
at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:332)[210:org.apache.camel.camel-spring:2.15.1.redhat-621117]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)[174:org.apache.servicemix.bundles.spring-context:3.2.12.RELEASE_2]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)[174:org.apache.servicemix.bundles.spring-context:3.2.12.RELEASE_2]
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:950)[174:org.apache.servicemix.bundles.spring-context:3.2.12.RELEASE_2]
at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[178:org.springframework.osgi.core:1.2.1]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[178:org.springframework.osgi.core:1.2.1]
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[178:org.springframework.osgi.core:1.2.1]
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[178:org.springframework.osgi.core:1.2.1]
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[179:org.springframework.osgi.extender:1.2.1]
at java.lang.Thread.run(Thread.java:745)[:1.7.0_121]
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route route371: Route(route371)[[From[quartz://test/testQuartzJob?c... because of Failed to resolve endpoint: quartz://test/testQuartzJob?cron=0+0%2F15+*+1%2F1+*+%3F due to: Cannot auto create component: quartz
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:190)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:838)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2897)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:2620)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:167)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2469)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:2465)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:2488)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:2465)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:2434)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:255)[210:org.apache.camel.camel-spring:2.15.1.redhat-621117]
at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:121)[210:org.apache.camel.camel-spring:2.15.1.redhat-621117]
... 10 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: quartz://test/testQuartzJob?cron=0+0%2F15+*+1%2F1+*+%3F due to: Cannot auto create component: quartz
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:575)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:200)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:107)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:70)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:89)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1008)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:185)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
... 22 more
Caused by: org.apache.camel.RuntimeCamelException: Cannot auto create component: quartz
at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:397)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:373)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:545)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
... 30 more
Caused by: org.quartz.SchedulerConfigException: Unable to instantiate class load helper class: org.quartz.simpl.CascadingClassLoadHelper cannot be cast to org.quartz.spi.ClassLoadHelper [See nested exception: java.lang.ClassCastException: org.quartz.simpl.CascadingClassLoadHelper cannot be cast to org.quartz.spi.ClassLoadHelper]
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:692)[662:org.apache.servicemix.bundles.quartz:1.8.6.1]
at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1509)[662:org.apache.servicemix.bundles.quartz:1.8.6.1]
at org.apache.camel.component.quartz.QuartzComponent.createScheduler(QuartzComponent.java:555)[664:org.apache.camel.camel-quartz:2.15.1.redhat-621117]
at org.apache.camel.component.quartz.QuartzComponent.getScheduler(QuartzComponent.java:407)[664:org.apache.camel.camel-quartz:2.15.1.redhat-621117]
at org.apache.camel.component.quartz.QuartzComponent.doStart(QuartzComponent.java:228)[664:org.apache.camel.camel-quartz:2.15.1.redhat-621117]
at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:2871)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:392)[205:org.apache.camel.camel-core:2.15.1.redhat-621117]
... 32 more
Caused by: java.lang.ClassCastException: org.quartz.simpl.CascadingClassLoadHelper cannot be cast to org.quartz.spi.ClassLoadHelper
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:689)[662:org.apache.servicemix.bundles.quartz:1.8.6.1]
... 39 more
I am using camel-quartz (Quartz1 of camel).
I've seen this JBoss and Quartz but it is specific to JBoss server.
The camel-quartz dependency didn't have any scope.
After checking here http://camel.apache.org/how-to-use-extra-camel-componets-in-servicemix-camel.html, I've added provided and it started working.
Thank You #nmagerko and #ledniov.