The name of the driver class for the datasource is missing (Netbeans+ PostgreSql + Glassfish)

前端 未结 9 1903
情话喂你
情话喂你 2020-12-16 02:31

I\'m trying to develop an EJB application using Netbeans 8 on a Postgres 9.2 db and Glassfish 4 server.

Once I created connection pool and JDBC resources in the glas

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-16 03:20

    I resolved this issue like this:

    1. Delete the datasource in glassfish.
    2. Create the connection datasource in Netbeans (Tab Services --> Databases)
    3. Create a Enterprise project
    4. Create Entity classes from Databases
    5. Execute the wizard
    6. Deploy the project in glassfish from NetBeans
    7. Enter to Glassfish Admin console and check the created datasource in Resources-->JDBC (Must be created a pool and datasource).

提交回复
热议问题