This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258118

Summary: Cannot generate JPA entities
Product: serverplugins Reporter: kszewczyk
Component: WildFlyAssignee: ehsavoie <ehsavoie>
Status: REOPENED ---    
Severity: normal    
Priority: P4    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: screen

Description kszewczyk 2016-02-23 19:03:59 UTC
Created attachment 158620 [details]
screen

I have configured mysql connection so I want to generate entity classes from them.
On maven web application right mouse click > new > entity classes from database > data source: on combo list I can see only "java:/jboss/datasource/ExampleDS [jdbc:h2:mem:test;DB_CLOSE ...".
I can't add my defined data source or any.
See screen in attachment.

PS WildFly 9
Comment 1 kszewczyk 2016-02-23 21:49:28 UTC
The same effect I have on Windows platform
Comment 2 kszewczyk 2016-02-23 21:55:13 UTC
Currently I resolved problem temporarily. Change webserver from WildFly to Glassfish, generate JPA, change server again - from Glassfish to WildFly.
Comment 3 ehsavoie 2016-02-24 18:59:28 UTC
You should create the datasource in WildFly first but the driver needs to be registered in NetBeans
Comment 4 Gabriel_G 2016-03-03 14:10:37 UTC
Same problem here.

Netbeans 8.1 and Netbeans dev release (20160303***)
Wildfly 10 (Datasource already created in server and connection created in "services" tab)
Oracle database (ojdbc7)
Ubuntu OS. Java8.

Regards.