Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 170311 - JDBC driver deployment does not work
JDBC driver deployment does not work
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: Tomcat
All All
: P2 (vote)
Assigned To: Petr Hejl
Depends on:
  Show dependency treegraph
Reported: 2009-08-13 10:52 UTC by Petr Jiricka
Modified: 2014-02-12 03:22 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2009-08-13 10:52:49 UTC
1. Create a new web application with Tomcat 6 as the target server
2. Register a db connection (for example by registering GlassFish v3, which registers the Derby sample)
3. Create JPA classes from database (e.g. using the sample database), using EclipseLink as the persistence provider
4. Deploy the application

=> I expect that the Derby JDBC driver (derbyclient.jar) will be copies to the Tomcat lib directory, but nothing is copied.
Comment 1 Petr Hejl 2009-08-14 12:45:38 UTC
This seems to be related to used container. The wizard behaves differently when there is a container managed persistence
provider. The tomcat does not have one so it is more similar to j2se - connection is configured directly in
persistence.xml and there is no datasource (and no datasource to deploy).

It works this way in 6.5 and 6.7, so perhaps this is an enhancement to cover a missing use-case for tomcat. This will
possibly need some API extension.
Comment 2 Petr Jiricka 2009-08-14 13:26:21 UTC
In that case I agree this is an enhancement, cc'ing Sergey.
Comment 3 manikantannaren 2014-02-12 03:21:32 UTC
Does not work with Glassfish either

go to the trouble shooting step.

I have enabled  "Enable JDBC Driver Deployment option is selected for your GlassFish server."
But still I had to manually copy the MYSQL connector jar to the glassfish domain/lib folder.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo