Can't create EjbcaDS #961
Replies: 5 comments 9 replies
-
|
See how you configure database type in the documentation on pre-requisite configuration. |
Beta Was this translation helpful? Give feedback.
-
|
I've been trying to fix this bug for several days now. I've tested different versions of Java and Wildfly. #Environment: #Installation: Adding the configuration file ejbca-ce\conf\database.properties ant clean deployear (no errors) full logs from Wildfly |
Beta Was this translation helpful? Give feedback.
-
|
Just a heads-up: when using MariaDB, you need to either add Docs: https://docs.keyfactor.com/ejbca/latest/wildfly-35#id-(9.3.3)WildFly35-MariaDB.1
|
Beta Was this translation helpful? Give feedback.
-
|
I found a solution/workaround, maybe it will be useful to someone:
So after a long struggle I decided to install an older version of EJBCA 8.3.1, Microsoft OpenJDK 11 and Wildfly 26.1.3 - in this configuration everything works fine and there is no error about 'JDBC Dialect' |
Beta Was this translation helpful? Give feedback.
-
|
I managed to upgrade to 9.1.1 - and I didn't encounter any errors with 'Dialect' Thank you for your support. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to install EJCBA-CE on Windows (wildfly-32 / wildfly-37). I've tested three databases: MS SQL, MySQL, and MariaDB, and I always get the same error:
FLYCTL0186: Services which failed to start: service jboss.persistenceunit."ejbca.ear#ejbca".FIRST_PHASE: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
WFLYCTL0448: 609 additional services are down due to their dependencies being missing or failed
I'm trying to initialize the database with the command (the ejcba DB was previously created in SQL):
[standalone@localhost:9990 /] data-source add --name=ejbcads --driver-name="mariadb-java-client-3.4.1.jar" --connection-url="jdbc:mysql://127.0.0.1:3306/ejbca" --jndi-name="java:/EjbcaDS" --use-ccm=true --driver-class="org.mariadb.jdbc.Driver" --user-name="ejbcauser" --password="Pass1234" --validate-on-match=true --background-validation=false --prepared-statements-cache-size=50 --share-prepared-statements=true --min-pool-size=5 --max-pool-size=150 --pool-prefill=true --transaction-isolation=TRANSACTION_READ_COMMITTED --check-valid-connection-sql="select 1;" WFLYCTL0441: Operation has resulted in failed or missing services WFLYCTL0186: Services which failed to start: service jboss.persistenceunit."ejbca.ear#ejbca".__FIRST_PHASE__: or g.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnv ironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for comm on cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)How do I set up this Dialect? (I've tried various methods, but without success)
Beta Was this translation helpful? Give feedback.
All reactions