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 232715 - Cannot select DataSource in wizard
Summary: Cannot select DataSource in wizard
Status: RESOLVED INVALID
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-15 14:26 UTC by Milan Kuchtiak
Modified: 2013-07-17 07:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error Message (Entity Classes From Database Wizard) (49.53 KB, image/png)
2013-07-15 14:26 UTC, Milan Kuchtiak
Details
JBOSS_HOME/standalone/configuration/standalone.xml (15.67 KB, text/xml)
2013-07-16 07:55 UTC, Milan Kuchtiak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kuchtiak 2013-07-15 14:26:32 UTC
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."
Comment 1 Milan Kuchtiak 2013-07-16 07:55:04 UTC
Created attachment 137174 [details]
JBOSS_HOME/standalone/configuration/standalone.xml

JBoss data sources configuration file
Comment 2 Petr Hejl 2013-07-16 09:52:41 UTC
There is no driver class in the datasource as the message suggests.

There would have to be <driver-class> element.
Comment 3 Milan Kuchtiak 2013-07-16 13:32:58 UTC
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)
Comment 4 Petr Hejl 2013-07-16 21:37:18 UTC
(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)
Comment 5 Milan Kuchtiak 2013-07-17 07:24:41 UTC
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 ?
Comment 6 Petr Hejl 2013-07-17 07:34:14 UTC
(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.