[前][次][番号順一覧][スレッド一覧]

mysql:11977

From: "leader_cat" <"leader_cat" <leader_cat@xxxxxxxxxx>>
Date: Tue, 16 Aug 2005 17:40:45 +0900
Subject: [mysql 11977] Re: JAVA で Mysql にコネクトできません。

お世話になります。



>・WEB-INF/lib に mysql-connector-java-3.1.10-bin.jar をコピペする。
>・それ以外のことはしない(もちろんクラスパスへ通すことも不要)

コピペをやり直して、クラスパスを以下のようにしてやって見ました。
.;%JAVA_HOME%\lib\tools.jar;
C:\Program Files\Apache Software Foundation\Tomcat
5.5\common\lib\servlet-api.jar

ですが同じエラーでした。

>・間違ってmysql-connector-java-3.1.10-bin-g.jarにクラスパスが通っていないか
どうか

上記のようにして見ましたが…

>・mysql-connector-java-3.1.10-bin-g.jarをリネームしてmysql-connector-
>java-3.1.10-bin.jarにしていたりはしないか

これは無いと思います。
ダウンロードしてきたzipファイルを解凍して出来た元フォルダを保存していました
ので
そこから(つまり大元から)再度コピペし直しました。

>・mysql-connector-java-3.1.10-bin.jarは本当に
mysql-connector-java-3.1.10-bin.jarなのか
>
>(jar -tf mysql-connector-java-3.1.10-bin.jar を実行した際に
>com/mysql/jdbc/trace/Tracer.classが含まれているか否か。)

これをやってみてビックリしました。
-----以下が結果です。-----------------------------------------------------

C:\Connecting to MySQL>cd C:\mysql\mysql-connector-java-3.1.10

C:\mysql\mysql-connector-java-3.1.10>jar -tf
mysql-connector-java-3.1.10-bin.jar

META-INF/
META-INF/MANIFEST.MF
com/
com/mysql/
com/mysql/jdbc/
com/mysql/jdbc/AssertionFailedException.class
com/mysql/jdbc/Blob.class
com/mysql/jdbc/BlobFromLocator.class
com/mysql/jdbc/Buffer.class
com/mysql/jdbc/ByteArrayBuffer.class
com/mysql/jdbc/CallableStatement$CallableStatementParam.class
com/mysql/jdbc/CallableStatement$CallableStatementParamInfo.class
com/mysql/jdbc/CallableStatement.class
com/mysql/jdbc/ChannelBuffer.class
com/mysql/jdbc/CharsetMapping.class
com/mysql/jdbc/Charsets.properties
com/mysql/jdbc/Clob.class
com/mysql/jdbc/CommunicationsException.class
com/mysql/jdbc/CompressedInputStream.class
com/mysql/jdbc/Connection$1.class
com/mysql/jdbc/Connection$CompoundCacheKey.class
com/mysql/jdbc/Connection$UltraDevWorkAround.class
com/mysql/jdbc/Connection.class
com/mysql/jdbc/ConnectionFeatureNotAvailableException.class
com/mysql/jdbc/ConnectionProperties$1.class
com/mysql/jdbc/ConnectionProperties$BooleanConnectionProperty.class
com/mysql/jdbc/ConnectionProperties$ConnectionProperty.class
com/mysql/jdbc/ConnectionProperties$IntegerConnectionProperty.class
com/mysql/jdbc/ConnectionProperties$MemorySizeConnectionProperty.class
com/mysql/jdbc/ConnectionProperties$StringConnectionProperty.class
com/mysql/jdbc/ConnectionProperties.class
com/mysql/jdbc/ConnectionPropertiesTransform.class
com/mysql/jdbc/Constants.class
com/mysql/jdbc/DatabaseMetaData$TypeDescriptor.class
com/mysql/jdbc/DatabaseMetaData.class
com/mysql/jdbc/DocsConnectionPropsHelper.class
com/mysql/jdbc/Driver.class
com/mysql/jdbc/EscapeProcessor.class
com/mysql/jdbc/EscapeProcessorResult.class
com/mysql/jdbc/EscapeTokenizer.class
com/mysql/jdbc/ExportControlled.class
com/mysql/jdbc/Field.class
com/mysql/jdbc/LicenseConfiguration.class
com/mysql/jdbc/LocalizedErrorMessages.properties
com/mysql/jdbc/Messages.class
com/mysql/jdbc/MiniAdmin.class
com/mysql/jdbc/MysqlDataTruncation.class
com/mysql/jdbc/MysqlDefs.class
com/mysql/jdbc/MysqlErrorNumbers.class
com/mysql/jdbc/MysqlIO.class
com/mysql/jdbc/MysqlParameterMetadata.class
com/mysql/jdbc/MysqlSavepoint.class
com/mysql/jdbc/NamedPipeSocketFactory$NamedPipeSocket.class
com/mysql/jdbc/NamedPipeSocketFactory$RandomAccessFileInputStream.class
com/mysql/jdbc/NamedPipeSocketFactory$RandomAccessFileOutputStream.class
com/mysql/jdbc/NamedPipeSocketFactory.class
com/mysql/jdbc/NonRegisteringDriver.class
com/mysql/jdbc/NonRegisteringReplicationDriver.class
com/mysql/jdbc/NotImplemented.class
com/mysql/jdbc/NotUpdatable.class
com/mysql/jdbc/OutputStreamWatcher.class
com/mysql/jdbc/PacketTooBigException.class
com/mysql/jdbc/PreparedStatement$BatchParams.class
com/mysql/jdbc/PreparedStatement$EndPoint.class
com/mysql/jdbc/PreparedStatement$ParseInfo.class
com/mysql/jdbc/PreparedStatement.class
com/mysql/jdbc/ReplicationConnection.class
com/mysql/jdbc/ReplicationDriver.class
com/mysql/jdbc/ResultSet.class
com/mysql/jdbc/ResultSetMetaData.class
com/mysql/jdbc/RowData.class
com/mysql/jdbc/RowDataDynamic$OperationNotSupportedException.class
com/mysql/jdbc/RowDataDynamic.class
com/mysql/jdbc/RowDataStatic.class
com/mysql/jdbc/SQLError.class
com/mysql/jdbc/Security.class
com/mysql/jdbc/ServerPreparedStatement$BatchedBindValues.class
com/mysql/jdbc/ServerPreparedStatement$BindValue.class
com/mysql/jdbc/ServerPreparedStatement.class
com/mysql/jdbc/SingleByteCharsetConverter.class
com/mysql/jdbc/SocketFactory.class
com/mysql/jdbc/StandardSocketFactory.class
com/mysql/jdbc/Statement$CachedResultSetMetaData.class
com/mysql/jdbc/Statement.class
com/mysql/jdbc/StringUtils.class
com/mysql/jdbc/TimeUtil.class
com/mysql/jdbc/UpdatableResultSet.class
com/mysql/jdbc/Util$RandStructcture.class
com/mysql/jdbc/Util.class
com/mysql/jdbc/VersionedStringProperty.class
com/mysql/jdbc/WatchableOutputStream.class
com/mysql/jdbc/WatchableWriter.class
com/mysql/jdbc/WriterWatcher.class
com/mysql/jdbc/configs/
com/mysql/jdbc/configs/3-0-Compat.properties
com/mysql/jdbc/configs/clusterBase.properties
com/mysql/jdbc/configs/fullDebug.properties
com/mysql/jdbc/configs/maxPerformance.properties
com/mysql/jdbc/configs/solarisMaxPerformance.properties
com/mysql/jdbc/integration/
com/mysql/jdbc/integration/c3p0/
com/mysql/jdbc/integration/c3p0/MysqlConnectionTester.class
com/mysql/jdbc/integration/jboss/
com/mysql/jdbc/integration/jboss/ExtendedMysqlExceptionSorter.class
com/mysql/jdbc/integration/jboss/MysqlValidConnectionChecker.class
com/mysql/jdbc/jdbc2/
com/mysql/jdbc/jdbc2/optional/
com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.class
com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.class
com/mysql/jdbc/jdbc2/optional/MysqlConnectionPoolDataSource.class
com/mysql/jdbc/jdbc2/optional/MysqlDataSource.class
com/mysql/jdbc/jdbc2/optional/MysqlDataSourceFactory.class
com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.class
com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.class
com/mysql/jdbc/jdbc2/optional/StatementWrapper.class
com/mysql/jdbc/jdbc2/optional/WrapperBase.class
com/mysql/jdbc/log/
com/mysql/jdbc/log/Jdk14Logger.class
com/mysql/jdbc/log/Log.class
com/mysql/jdbc/log/Log4JLogger.class
com/mysql/jdbc/log/LogFactory.class
com/mysql/jdbc/log/LogUtils.class
com/mysql/jdbc/log/NullLogger.class
com/mysql/jdbc/log/StandardLogger.class
com/mysql/jdbc/profiler/
com/mysql/jdbc/profiler/ProfileEventSink.class
com/mysql/jdbc/profiler/ProfilerEvent.class
com/mysql/jdbc/util/
com/mysql/jdbc/util/BaseBugReport.class
com/mysql/jdbc/util/ErrorMappingsDocGenerator.class
com/mysql/jdbc/util/LRUCache.class
com/mysql/jdbc/util/PropertiesDocGenerator.class
com/mysql/jdbc/util/ReadAheadInputStream.class
com/mysql/jdbc/util/ResultSetUtil.class
com/mysql/jdbc/util/ServerController.class
com/mysql/jdbc/util/TimezoneDump.class
org/
org/gjt/
org/gjt/mm/
org/gjt/mm/mysql/
org/gjt/mm/mysql/Driver.class
META-INF/INDEX.LIST

C:\mysql\mysql-connector-java-3.1.10>

-----ここまで-----------------------------------------------------

ご指摘の"com/mysql/jdbc/trace/Tracer.class"が存在していません…

ダウンロードミスでしょうか…



取り急ぎレスです。m(__)m


__________________________________
Save the earth
http://pr.mail.yahoo.co.jp/ondanka/


[前][次][番号順一覧][スレッド一覧]

     11944 2005-08-12 18:33 [leader cat <leader_c] JAVA で Mysql にコネクトできません。    
     11946 2005-08-13 02:50 ┣[Tetsuro IKEDA <tetsu]                                       
     11969 2005-08-16 10:11 ┃┗["leader_cat" <leader]                                     
     11971 2005-08-16 13:22 ┃ ┗[Tetsuro IKEDA <tetsu]                                   
     11972 2005-08-16 16:06 ┃  ┗["leader_cat" <leader]                                 
     11974 2005-08-16 16:46 ┃   ┗[Tetsuro IKEDA <tetsu]                               
->   11977 2005-08-16 17:40 ┃    ┗["leader_cat" <leader]                             
     11973 2005-08-16 16:32 ┗[KIshii <kn-ishi@xxxx]                                       
     11975 2005-08-16 16:49  ┣[Tetsuro IKEDA <tetsu]                                     
     11978 2005-08-16 17:47  ┃┗["leader_cat" <leader]                                   
     11979 2005-08-16 23:11  ┃ ┗[Tetsuro IKEDA <tetsu]                                 
     11981 2005-08-17 09:14  ┃  ┗["leader_cat" <leader]                               
     11976 2005-08-16 17:39  ┗["leader_cat" <leader]