I am trying to run a simple Java EE application using NetBeans, Darby and Glassfish. The application will not run as the Glass fish server encounters an error during the initial stages of deployment:
Caused by: com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : java:module/jdbc/projectpool__pm
The project builds fine.
Pastebin of the output to the NetBeans logs generated when implementing a clean build. Everything seems to work OK bar some issue with optional Eclipse config files.
Pastebin of the output to the NetBeans logs generated when I try and run the application using Netbeans.
Pastebin of the output to the Glass Fish logs generated when I try and run the application through NetBebeans.
The steps I followed to generate the entity classes included:
- I created a Darby database and ensured it was connected.
- I created a table in the database with some attributes, no data.
- I went to the Project-ejb section of my application and generated entity classes by selecting New > New Entity classes from database.
- When generating the classes I selected Add a new data source.
- I selected the database I had created.
Following these steps generated the appropriate entity classes. Have I left out a step? Do I need to manually create a pool or is that done automatically when I completed steps 3, 4 and 5?
I am unable to add a connection pool manually to the GlassFish server using the web portal.
Pastebin of Glassfish logs on initialing the server: https://pastebin.com/F7eYYwy1 .