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

Arquillian testig codes of EJB and MDB on OpenLiberty #25

Closed
hantsy opened this issue Feb 8, 2021 · 4 comments
Closed

Arquillian testig codes of EJB and MDB on OpenLiberty #25

hantsy opened this issue Feb 8, 2021 · 4 comments

Comments

@hantsy
Copy link

hantsy commented Feb 8, 2021

@rieckpil Firstly thanks for your article to provide me some points about adding queues in OpenLiberty.

I was trying to add EJB and JMS samples in my jakartaee8-starter-boilerplate but both failed to run the simple tests on OpenLiberty.

Check my post on Stackoverflow.

https://stackoverflow.com/questions/66077552/configure-default-data-source-for-arquillain-test-in-openliberty

@rieckpil
Copy link
Owner

rieckpil commented Feb 8, 2021

Maybe this Open Liberty cheat sheet can help https://aguibert.github.io/openliberty-cheat-sheet/.

Not sure if I get your issue. The Stack Overflow question is about the default DataSource and in the description above you mention EJB and MDB. Can you elaborate a little bit more?

@hantsy
Copy link
Author

hantsy commented Feb 9, 2021

Before I added the DataSource configuration, the testing codes are passed on OpenLIberty managed adapter.

But when I added the DataSource for testing(I think the DataSource configuration is not a problem), there is a deployment error from Arquillian.

8823 FINER: AppMBean for test is in state STARTING 8824 [ERROR ] CWWKZ0013E: It is not possible to start two applications called test.

(The application started twice???)

I have searched this error also occurred in other Open Liberty projects, such as the liberty maven plugin.

I am confused why adding a DataSource will affect the deployment.

@rieckpil
Copy link
Owner

rieckpil commented Feb 9, 2021

I have a sample project the uses DefaultDataSource together with Open Liberty (H2 instead of Derby), maybe this helps: https://github.com/rieckpil/blog-tutorials/blob/master/open-liberty-maven-plugin-review/src/main/liberty/config/server.xml

@hantsy
Copy link
Author

hantsy commented Feb 12, 2021

Thanks.

Temporarily resolved this issue via OpenLiberty/liberty-arquillian#94

@hantsy hantsy closed this as completed Feb 12, 2021
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