Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hard coded DriverClassName in MySQLPlugin #1009

Closed
sal-bock opened this issue Jan 31, 2023 · 1 comment
Closed

hard coded DriverClassName in MySQLPlugin #1009

sal-bock opened this issue Jan 31, 2023 · 1 comment

Comments

@sal-bock
Copy link

The class name of the mysql java connector has been changed with version 8.0.x

Launching an Application with mysql-connector-java Version 8.0.28 leads to the following exception:

Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.

When using the mariadb-java-client (version 3.1.2), the application will not start, because the class 'com.mysql.jdbc.Driver' is not found.

A quick fix would be to assign null or blank to the constant 'com.webobjects.jdbcadaptor._MySQLPlugIn.DriverClassName

sal-bock pushed a commit to salient-doremus/wonder that referenced this issue Jan 31, 2023
sal-bock pushed a commit to salient-doremus/wonder that referenced this issue Feb 2, 2023
…river class, when this class is not (no longer) defined .
@paulhoadley
Copy link
Contributor

PR merged—thanks.

lbane added a commit to lbane/wonder that referenced this issue Feb 1, 2024
* master:
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release wonder-7.4
  JavaMonitor-add pom dependency to include WOOgnl
  Add WOOgnl framework
  To JavaMonitor pages, make minor HTML/css updates to get closer to passing HTML validation
  Fix (better) issue 999
  Register the MySQLPlugIn also for the mariadb subprotocol
  Followup for wocommunity#1009: disable explicit loading of the jdbc driver class, when this class is not  (no longer) defined .
  Fix for wocommunity#1009: for the mySQLPlugin, the driver class is now automatically registered via the SPI.
  Corrected typo
  returns the app bundle, when frameworkname is null (as documented  in the javaDoc)
  wocommunity#1007: turned the log.warn into a log.debug
  Fix for wocommunity#1005: Call ERXFileUtilities.pathURLForResourceNamed instead of ERXFileUtilities.pathForResourceNamed.  The latter function returns null, if the resource is contained in a jar archive.
  ERXBetweenQualifier - evaluateWithObject() needs to use valueForKeyPath() so that it works with key paths
  Fix issue 999
  Oups, forget we build in Java 8, back to encoding name in String.
  Add generics to remove warnings in S3 api classes.
  Fix url encoding of path to use %20 instead of + for spaces as defined in the spec. Url encoding of form values should use + for spaces.

# Conflicts:
#	Applications/BugTracker/pom.xml
#	Applications/ERMailer/pom.xml
#	Applications/JavaMonitor/pom.xml
#	Applications/Uber/pom.xml
#	Applications/pom.xml
#	Applications/wotaskd/pom.xml
#	Examples/Ajax/AjaxExample/pom.xml
#	Examples/Ajax/AjaxExample2/pom.xml
#	Examples/Ajax/pom.xml
#	Examples/D2W/D2WComponentTour/pom.xml
#	Examples/D2W/ERModernMoviesDemo/pom.xml
#	Examples/D2W/ERMovies/pom.xml
#	Examples/D2W/pom.xml
#	Examples/ERJaxWS/WebService_Created/pom.xml
#	Examples/ERJaxWS/WebService_Imported/pom.xml
#	Examples/ERJaxWS/WebService_Stateful/pom.xml
#	Examples/ERJaxWS/pom.xml
#	Examples/ERXPartials/ERXPartialBaseModel/pom.xml
#	Examples/ERXPartials/ERXPartialsExampleApp/pom.xml
#	Examples/ERXPartials/ERXPartialsExampleModel/pom.xml
#	Examples/ERXPartials/pom.xml
#	Examples/Misc/ERComponentTour/pom.xml
#	Examples/Misc/ERIndexingExample/pom.xml
#	Examples/Misc/ERRestRouteExample/pom.xml
#	Examples/Misc/ERSeleniumExample/pom.xml
#	Examples/Misc/TickTockMan/pom.xml
#	Examples/Misc/pom.xml
#	Examples/Reporting/pom.xml
#	Examples/pom.xml
#	Frameworks/Ajax/Ajax/pom.xml
#	Frameworks/Ajax/ERCoolComponents/pom.xml
#	Frameworks/Ajax/ERJQuery/pom.xml
#	Frameworks/Ajax/ERJQueryMobile/pom.xml
#	Frameworks/Ajax/ERPrototaculous/pom.xml
#	Frameworks/Ajax/GoogleChart/pom.xml
#	Frameworks/Ajax/MooTools/pom.xml
#	Frameworks/Ajax/pom.xml
#	Frameworks/BusinessLogic/BTBusinessLogic/pom.xml
#	Frameworks/BusinessLogic/ERAttachment/pom.xml
#	Frameworks/BusinessLogic/ERCoreBusinessLogic/pom.xml
#	Frameworks/BusinessLogic/ERMoviesLogic/pom.xml
#	Frameworks/BusinessLogic/ERTaggable/pom.xml
#	Frameworks/BusinessLogic/WOPayPal/pom.xml
#	Frameworks/BusinessLogic/pom.xml
#	Frameworks/Core/ERDirectToWeb/pom.xml
#	Frameworks/Core/ERExtensions/pom.xml
#	Frameworks/Core/ERJavaMail/pom.xml
#	Frameworks/Core/ERNeutralLook/pom.xml
#	Frameworks/Core/ERPrototypes/pom.xml
#	Frameworks/Core/JavaWOExtensions/pom.xml
#	Frameworks/Core/WOOgnl/pom.xml
#	Frameworks/Core/pom.xml
#	Frameworks/D2W/ERModernDefaultSkin/pom.xml
#	Frameworks/D2W/ERModernDirectToWeb/pom.xml
#	Frameworks/D2W/ERModernLook/pom.xml
#	Frameworks/D2W/ERMootoolsDirectToWeb/pom.xml
#	Frameworks/D2W/pom.xml
#	Frameworks/EOAdaptors/JavaERJDBCAdaptor/pom.xml
#	Frameworks/EOAdaptors/JavaFSAdaptor/pom.xml
#	Frameworks/EOAdaptors/JavaLuceneAdaptor/pom.xml
#	Frameworks/EOAdaptors/JavaMemoryAdaptor/pom.xml
#	Frameworks/EOAdaptors/JavaNeo4JAdaptor/pom.xml
#	Frameworks/EOAdaptors/pom.xml
#	Frameworks/EOF/ERAttributeExtension/pom.xml
#	Frameworks/EOF/ERChangeNotificationJMS/pom.xml
#	Frameworks/EOF/ERIndexing/pom.xml
#	Frameworks/EOF/ERJGroupsSynchronizer/pom.xml
#	Frameworks/EOF/ERRest/pom.xml
#	Frameworks/EOF/pom.xml
#	Frameworks/Excel/ERExcelLook/pom.xml
#	Frameworks/Excel/ExcelGenerator/pom.xml
#	Frameworks/Excel/pom.xml
#	Frameworks/Misc/ERCalendar/pom.xml
#	Frameworks/Misc/ERCaptcha/pom.xml
#	Frameworks/Misc/ERCayenne/pom.xml
#	Frameworks/Misc/ERChronic/pom.xml
#	Frameworks/Misc/ERDistribution/pom.xml
#	Frameworks/Misc/ERFirebug/pom.xml
#	Frameworks/Misc/ERJaxWS/pom.xml
#	Frameworks/Misc/ERPDFGeneration/pom.xml
#	Frameworks/Misc/ERPersistentSessionStorage/pom.xml
#	Frameworks/Misc/ERProfiling/pom.xml
#	Frameworks/Misc/ERQuartzScheduler/pom.xml
#	Frameworks/Misc/ERSelenium/pom.xml
#	Frameworks/Misc/ERXiss/pom.xml
#	Frameworks/Misc/JavaMonitorFramework/pom.xml
#	Frameworks/Misc/SnapshotExplorer/pom.xml
#	Frameworks/Misc/WOJRebel/pom.xml
#	Frameworks/Misc/WOLips/pom.xml
#	Frameworks/Misc/pom.xml
#	Frameworks/PlugIns/DB2PlugIn/pom.xml
#	Frameworks/PlugIns/DerbyPlugIn/pom.xml
#	Frameworks/PlugIns/ERMicrosoftPlugIn/pom.xml
#	Frameworks/PlugIns/EROraclePlugIn/pom.xml
#	Frameworks/PlugIns/FrontBasePlugIn/pom.xml
#	Frameworks/PlugIns/H2PlugIn/pom.xml
#	Frameworks/PlugIns/MySQLPlugIn/pom.xml
#	Frameworks/PlugIns/PostgresqlPlugIn/pom.xml
#	Frameworks/PlugIns/pom.xml
#	Frameworks/Reporting/DRGrouping/pom.xml
#	Frameworks/Reporting/ERJasperReports/pom.xml
#	Frameworks/Reporting/ERPlot/pom.xml
#	Frameworks/Reporting/WRReporting/pom.xml
#	Frameworks/Reporting/pom.xml
#	Frameworks/WOAdaptors/ERWOAdaptor/pom.xml
#	Frameworks/WOAdaptors/pom.xml
#	Frameworks/pom.xml
#	Tests/ERModernMoviesTest/pom.xml
#	Tests/ERXTest/pom.xml
#	Tests/PluginTest/pom.xml
#	Tests/TestAdaptor/pom.xml
#	Tests/pom.xml
#	Utilities/WOInstall/pom.xml
#	Utilities/pom.xml
#	pom.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants