Skip to content

Unable to run locally on RHEL #136

Description

@weimeilin79

Looks like the auto-config of the dataSource doesn't work on a Linux box,

Used a normal RHEL 7 box, with OpenJDK 1.8 dev
ran-> mvn spring-boot:run

Got the following exception

Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: dataSource of type: javax.sql.DataSource at org.apache.camel.util.CamelContextHelper.mandatoryLookup(CamelContextHelper.java:159) at org.apache.camel.util.EndpointHelper.resolveReferenceParameter(EndpointHelper.java:330) at org.apache.camel.util.EndpointHelper.resolveReferenceParameter(EndpointHelper.java:312) at org.apache.camel.impl.DefaultComponent.resolveAndRemoveReferenceParameter(DefaultComponent.java:383) at org.apache.camel.impl.DefaultComponent.resolveAndRemoveReferenceParameter(DefaultComponent.java:362) at org.apache.camel.component.sql.SqlComponent.createEndpoint(SqlComponent.java:61) at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:112) at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:602)

works perfectly fine with MacOSX

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions