Giter Site home page Giter Site logo

Comments (4)

manosbatsis avatar manosbatsis commented on June 18, 2024

@dezzeus Nothing to do with corbeans i'm afraid. Boot and Corda are not the best of bed fellows when sharing the same classpath e.g. in tests. Spring MVC goes about it's business but Boot has autoconfiguration beans ready to be triggered by whatever. Corda's dependencies include ActiveMQ and Boot probably thinks it needs a broker.

Sadly there's no one-size-fits-all around dependency/classpath issues between the two platforms. I suggest starting with the sample/template instead of going from scratch, and gradually add your stuff. More iterative approach and has some not so obvious things covered so you can focus on wrapping your app around the useful bits..

If you need help feel free to post, always helps me improve the docs a bit.

from corbeans.

dezzeus avatar dezzeus commented on June 18, 2024

Thank you @manosbatsis, I'll give a try to the template… :)

from corbeans.

muhamadto avatar muhamadto commented on June 18, 2024

@dezzeus I'm not sure what ActiveMQ is used for as I'm checking Corda for the first time but to avoid the exception above you have two options

  1. Exclude org.apache.activemq:artemis-amqp-protocol it will start,
<dependency>
    <groupId>com.github.manosbatsis.corbeans</groupId>
    <artifactId>corbeans-spring-boot-corda</artifactId>
    <version>${corbeans_version}</version>
    <scope>compile</scope>
    <exclusions>
        <exclusion>
            <groupId>org.apache.activemq</groupId>
            <artifactId>artemis-amqp-protocol</artifactId>
        </exclusion>
        </exclusions>
</dependency>
  1. Alternatively, you can exclude the autoconfiguration in your SpringBootApplication

@SpringBootApplication(exclude = arrayOf(ArtemisAutoConfiguration::class))

I'm doing so while getting started. If I find I need ActiveMQ later I will configure it.

As I mentioned before, I'm just getting started, So, if your case is more advanced you may need to actually configure ActiveMQ correctly

from corbeans.

stale avatar stale commented on June 18, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from corbeans.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.