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 148301 - Database drivers fail to deploy under Glassfish 3
Summary: Database drivers fail to deploy under Glassfish 3
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-24 23:11 UTC by _ gtzabari
Modified: 2009-04-08 19:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (42.29 KB, text/plain)
2008-09-25 13:48 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2008-09-24 23:11:59 UTC
dev build 200809231435

When I deploy my application under Glassfish2 it works fine but under Glassfish3 I get:

INFO: [EL Warning]: 2008.09.24 18:08:59.216--ServerSession(22440829)--java.sql.SQLException: No suitable driver found
for jdbc:mysql://localhost:3307/db

The MySQL JDBC Driver is specified as a project dependency, so I expect Netbeans to make this work.
Comment 1 _ gtzabari 2008-09-24 23:21:36 UTC
I just noticed that Glassfish3 has "Enable JDBC driver deployment" under properties. I tried enabling that and
redeploying but it did not help.

IF "Enable JDBC driver deployment" means to deploy any JDBC drivers the project depends on, then I would expect it to be
enabled by default (like Glassfish2). If not, I would suggest renaming it so its purpose is more obvious.
Comment 2 Peter Pis 2008-09-25 06:42:30 UTC
Reassigning to web.

To reporter: could you please attach messages.log?
Comment 3 _ gtzabari 2008-09-25 13:48:03 UTC
Created attachment 70576 [details]
messages.log
Comment 4 Jayashri Visvanathan 2008-11-25 23:03:43 UTC
Not sure if this is a Glassfish plugin issue. Vince, please evaluate and reassign if thats not the case.
Comment 5 _ gtzabari 2008-12-10 18:44:46 UTC
vkraemer,

Can you please give us some quick feedback? There are some Glassfish bugs that are only being fixed in v3 (no backports)
so I want to upgrade as soon as possible.
Comment 6 Vince Kraemer 2008-12-10 19:35:34 UTC
yup this is a plugin issue.

NOTE: you can install the driver in v3 'by hand'... See
http://weblogs.java.net/blog/lancea/archive/2008/11/moving_tomcat_t_1.html (step 4)

which should let you work-around this issue for the time being
Comment 7 _ gtzabari 2008-12-11 09:16:28 UTC
Thanks for the workaround vkraemer, it worked perfectly! I'm just glad I won't have to repeat this process in the
future, it took a long while to get up and running. I look forward to the Netbeans fix ;)
Comment 8 Vince Kraemer 2009-04-08 19:02:03 UTC
http://hg.netbeans.org/main-golden/rev/22d3326b581a

forgot to mark as fixed