eclipse-ee4j / jakartaee-tutorial

Jakarta EE Tutorial
https://eclipse-ee4j.github.io/jakartaee-tutorial
Eclipse Public License 2.0
96 stars 69 forks source link

jakartaee-tutorial-examples in not building throwing error datasource #245

Closed rajshailesh closed 3 years ago

rajshailesh commented 3 years ago

When building jakartaee-tutorial then throwing following error....

Cannot connect to database via JNDI name 'java:comp/DefaultDataSource'

Do we need to create JNDI resource before running mvn install command ? Also documentation to run the tutorial will be helpful I am facing other problem also when I am executing main method of Producer and Consumer java classes under JMS project

bvfalcon commented 3 years ago

Do we need to create JNDI resource before

Of course no. I try now "mvn install" execute and all works ok. May be changes in your fork make this error?

rajshailesh commented 3 years ago

I am using Windows 10 for development. Firstly I cloned master branch then I tried other branch too EE4J_8. I am running glassfish5 and changed glassfish home path in pom.xml accordingly. When building on later branch then getting some SQL exception in ALTER command While executing mvn install command, getting following error, while deploying duke-tutoring-war project

remote failure: A JDBC connection pool named tutoringPool does not exist. Command delete-jdbc-connection-pool failed.

Something needs to be fixed in pom.xml?

rajshailesh commented 3 years ago

This is repository for tutorial (doc). Therefore closing here and will open in jakartaee-tutorial-examples repo