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.
Created attachment 137129 [details] Error Message (Entity Classes From Database Wizard) I've correctly configured the data source for Oracle 11G database on JBoss EAP 6 Server. The sample example against this data source works fine. (JNDI lookup for the data source, as well as the selects are successful). Nevertheless, when I try to create some entity classes from that data source the error message: "The name of the driver class for this data source is missing."
Created attachment 137174 [details] JBOSS_HOME/standalone/configuration/standalone.xml JBoss data sources configuration file
There is no driver class in the datasource as the message suggests. There would have to be <driver-class> element.
I followed the same configuration as the existing sample "java:jboss/datasources/ExampleDS" datasource. (See the attachment) There is an <xa-datasource-class> element instead of <driver-class>. See also the instructions for data source configuration in JBoss 7: https://community.jboss.org/wiki/DataSourceConfigurationInAS7 http://www.javaworld.com/community/node/8184 (Note that JBoss EAP 6 server is declared to be build from JBoss AS 7)
(In reply to comment #3) > I followed the same configuration as the existing sample > "java:jboss/datasources/ExampleDS" datasource. > (See the attachment) Does it make any difference? > > There is an <xa-datasource-class> element instead of <driver-class>. ..which is unusable in unmanaged environment (in the IDE) to connect to the database and retrieve metadata. The message is clear about that. IDE just can't guess what driver class it should use. > See also the instructions for data source configuration in JBoss 7: > https://community.jboss.org/wiki/DataSourceConfigurationInAS7 > http://www.javaworld.com/community/node/8184 > > (Note that JBoss EAP 6 server is declared to be build from JBoss AS 7)
Is there any workaround for that ? I have legally registered Oracle Data Source in JBoss and want to use some Java EE wizards against that data source ?
(In reply to comment #5) > Is there any workaround for that ? See comment #2 - add driver-class element to your datasource. You may file enhancement for those wizard to allow manual selection of driver. You may file enhancement for DB support to allow usage of DS - I doubt that's doable though.