-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Java-MySQL devfile built app does not work #13938
Comments
The problem is that the "petclinic" database has to be exist with all tables for the app to work but it doesn't. To create it I added a new command to execute sql script (the script is already prepared in the project) which creates "petclinic" database and all necessary tables, but I got a problem when tried to execute |
Putting P1 as this affect the default stacks we are embedding |
I'm getting this error https://gist.github.com/sparkoo/37d1f38811a24507ddf119f00bfa044d |
@sparkoo could you please clarify when did you get that error. Is it still reproducible with this PR: eclipse-che/che-devfile-registry#51? |
@svor I get this error when running |
@sparkoo I can't reproduce this problem. |
I'm going to close this issue since eclipse-che/che-devfile-registry#51 was merged. |
@svor I've tested again. It works on minishift, but is still failing on minikube for me. How do you run Che here? |
@sparkoo I tested it on minishift |
@sparkoo I'm going to check it on minikube |
It works on Minikube on my side as well: https://youtu.be/vGqQDdcEd5U |
Describe the bug
The current
java-mysql
devfile and sample project build and run successfully, but on attempting to do any database operations in the app, an exception is thrown:Che version
Steps to reproduce
[che-url]/#/load-factory?url=https://raw.githubusercontent.com/eclipse/che-devfile-registry/master/devfiles/java-mysql/devfile.yaml
maven build
taskrun webapp
taskExpected behavior
Webapp should connect to database as expected
Additional context
The text was updated successfully, but these errors were encountered: