【问题标题】:Which jar file i should import for mysql 5.6.24我应该为 mysql 5.6.24 导入哪个 jar 文件
【发布时间】:2015-08-19 03:59:40
【问题描述】:

mysql 5.6.24 数据库托管在 jelastic for java 程序中,我需要导入哪个 jar 文件。我已经导入了 mysql-connector-java-5.1.18-bin 这是一个正确的 jar 文件。

请给我建议..

这是它显示的错误..

Aug 19, 2015 9:09:56 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:FetchingRecord' did not find a matching property.    
Aug 19, 2015 9:09:56 AM org.apache.catalina.startup.VersionLoggerListener  
log  
INFO: Server version:        Apache Tomcat/7.0.62  
Aug 19, 2015 9:09:56 AM org.apache.catalina.startup.VersionLoggerListener  
log      
INFO: Server built:          May 7 2015 17:14:55 UTC
Aug 19, 2015 9:09:56 AM org.apache.catalina.startup.VersionLoggerListener  
log  

谢谢..

【问题讨论】:

  • 您是否遇到任何错误?
  • 听起来不错,或者使用最新的,目前是 5.1.36。
  • 我已经更新了@Thilo 的描述

标签: java mysql jelastic


【解决方案1】:

Mysql Connector/J 5.1 版支持 MySQL 服务器版本 4.1、5.0、5.1、5.5、5.6、5.7

所以应该没问题。

Table listing Summary of Connector/J Versions

Connector/J version     JDBC version        MySQL Server version                Status
5.1                     3.0, 4.0            4.1, 5.0, 5.1, 5.5, 5.6, 5.7    Recommended version
5.0                     3.0                 4.1, 5.0                        Released version
3.1                     3.0                 4.1, 5.0                        Obsolete
3.0                     3.0                 3.x, 4.1                        Obsolete

更多信息可以从mysql文档页面获取

http://dev.mysql.com/doc/connector-j/en/connector-j-versions.html

如果你担心线路

WARNING: Setting property 'source' to org.eclipse.jst.jee.server:FetchingRecord' did not find a matching property.

那么这是一个警告。很可能它不会引起问题。

针对格式错误建议的最常见解决方案

将属性 'source' 设置为 'org.eclipse.jst.jee.server:xxx' 没有找到匹配的属性。

在下面

  • 打开您的 tomcat 服务器。
  • 在“服务器选项”部分,选中“将模块上下文发布到 单独的 XML 文件。
  • 重新启动。

SO 中的以下链接有许多类似错误的答案,可以帮助您。

Setting property 'source' to 'org.eclipse.jst.jee.server:JSFTut' did not find a matching property

WARNING: Setting property 'source' to 'org.eclipse.jst.jee.server:appname' did not find a matching property

Setting property 'source' to 'org.eclipse.jst.jee.server:GestorContenidoWS' did not find a matching property. Try all the solutions

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-14
    • 2011-09-09
    • 1970-01-01
    • 1970-01-01
    • 2015-07-08
    • 2021-12-06
    相关资源
    最近更新 更多