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 - Cannot generate JPA entities
Summary: Cannot generate JPA entities
Status: REOPENED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WildFly (show other bugs)
Version: 8.1
Hardware: PC Linux
: P4 normal (vote)
Assignee: ehsavoie
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-23 19:03 UTC by kszewczyk
Modified: 2016-03-03 14:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen (55.42 KB, image/jpeg)
2016-02-23 19:03 UTC, kszewczyk
Details

Note You need to log in before you can comment on or make changes to this bug.
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.