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

glassfish-runner/persistence-platform-tck jta-tests-javatest fail due to database config problem #1694

Open
starksm64 opened this issue Dec 9, 2024 · 2 comments

Comments

@starksm64
Copy link
Contributor

Describe the bug

Trying to run the glassfish-runner/persistence-platform-tck javatest protocol based tests fails with:

Starting database using command: [/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/java, -jar, /Users/starksm/Dev/Jakarta/platform-tck/glassfish-runner/persistence-platform-tck/target/glassfish8/glassfish/modules/admin-cli.jar, start-database, --dbname=/Users/starksm/Dev/Jakarta/platform-tck/glassfish-runner/persistence-platform-tck/target/glassfish8/glassfish/domains/domain1/config/derbyDB;create=true, --sqlfilename=/Users/starksm/Dev/Jakarta/platform-tck/glassfish-runner/persistence-platform-tck/sql/derby/derby.ddl.sql, --dbuser=cts1, --passwordfile=/Users/starksm/Dev/Jakarta/platform-tck/glassfish-runner/persistence-platform-tck/sql/derby/password.txt, -t]
Invalid option: --dbname=/Users/starksm/Dev/Jakarta/platform-tck/glassfish-runner/persistence-platform-tck/target/glassfish8/glassfish/domains/domain1/config/derbyDB;create=true
Usage: nadmin [nadmin-utility-options] start-database [--dbhome <dbhome>]
        [--jvmoptions <jvmoptions>] [--dbhost <dbhost(default:0.0.0.0)>]
        [--dbport <dbport(default:1527)>] [-?|--help[=<help(default:false)>]] 
Dec 09, 2024 11:26:14 AM org.omnifaces.arquillian.container.glassfish.managed.GlassFishServerControl startDerbyDatabase
WARNING: It seems that the GlassFish version you are running might have a problem starting embedded Derby database. Please take a look at the server logs. You can also switch off 'enableDerby' property in your 'arquillian.xml' if you don't need it.

To Reproduce
Steps to reproduce the behavior:

  1. cd glassfish-runner/persistence-platform-tck
  2. mvn test-compile failsafe:integration-test@jta-tests-javatest
  3. See error

Expected behavior
GF should at least startup along with the database

@arjantijms
Copy link
Contributor

It's the default GlassFish version that's the problem here. M8 would actually work, but we didn't release a JDK 17 version of that. I'll release a new milestone shortly, and will update the test.

In the meantime, you can use M8 (for JDK 21), or compile the 8.0 JDK17 branch and use that.

@starksm64
Copy link
Contributor Author

Using the snapshot build for now until a release is made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants