Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI generates app with both jdbc-tomcat and jdbc-hikari #681

Closed
jameskleeh opened this issue Oct 4, 2018 · 3 comments
Closed

CLI generates app with both jdbc-tomcat and jdbc-hikari #681

jameskleeh opened this issue Oct 4, 2018 · 3 comments
Assignees
Labels
relates-to: cli type: bug Something isn't working
Milestone

Comments

@jameskleeh
Copy link
Contributor

https://stackoverflow.com/questions/52633597/micronaut-1-0-rc1-with-plain-hibernate-jpa-fails-at-startup/52637738#52637738

mn create-app test --features jdbc-hikari,hibernate-jpa

An exception is caused on startup because the same instance of SessionFactoryBuilder is injected in here

twice. Once for the tomcat datastore and once for the hikari one.

@jameskleeh jameskleeh added type: bug Something isn't working relates-to: cli labels Oct 4, 2018
@jameskleeh jameskleeh added this to the 1.0.0.RC2 milestone Oct 4, 2018
@jameskleeh
Copy link
Contributor Author

Fixed by dea0c7d

@datamaskin
Copy link

mn create-cli-app --build maven --test spock dectool

./mvnw clean compile package

Running the jar

io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type [io.micronaut.jackson.convert.ArrayNodeToArrayConverter]

@ocisneroso
Copy link

mn create-cli-app --build maven --test spock dectool

./mvnw clean compile package

Running the jar

io.micronaut.context.exceptions.BeanInstantiationException: Error instantiating bean of type [io.micronaut.jackson.convert.ArrayNodeToArrayConverter]

This problem is solved, excluding the following dependencies from io.micronaut.configuration hibernate-jpa

  <dependency>
      <groupId>io.micronaut.configuration</groupId>
      <artifactId>hibernate-jpa</artifactId>
      <version>1.0.0.RC2</version>
      <exclusions>
        <exclusion>
          <groupId>io.micronaut</groupId>
          <artifactId>runtime</artifactId>
        </exclusion>
        <exclusion>
          <groupId>io.micronaut</groupId>
          <artifactId>http</artifactId>
        </exclusion>
      </exclusions>
      <scope>compile</scope>
    </dependency>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relates-to: cli type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants