

- Mysql Connector Java 5.0 0 Bin Jar update#
- Mysql Connector Java 5.0 0 Bin Jar code#
- Mysql Connector Java 5.0 0 Bin Jar windows#
So i create folder META-INF/services/ and create file and write in this documen one line:ĪS7_HOME="/usr/local/jboss7/modules/com/mysql/main/mysql-connector-java-5.0.8-bin.jar"
Mysql Connector Java 5.0 0 Bin Jar update#

You can do this from your command shell by: The most straightforward solution is to simply modify the JAR and add the missing file. I dont understand how can i modify the jar: What i do wrong that i have got this error msg?Īrticle is very simple but i havent got idea what is wrong with my configuration Service (missing)Ĭom.MysqlXADataSourceĪnd i create module in com/mysql/main and copy jar in this location mysql-connector-java-5.0.8-bin and my module.xml:

I read article: and i try add mysql as module but i have got error :
Mysql Connector Java 5.0 0 Bin Jar code#
My code is the same as yours above except for formatting, better exception messages, and the username and password are different, which are case sensitive BTW.import newbie but i work with jboss4.0.2GA and i havent any problem with configure mysqlīut in jboss7 i have got problem with integrate jboss with mysql C:\Java\lib\ C:\Java\lib\ext\QTJava.zip C:\Java\hsqldb\lib C:\Java\lib\jakarta-oro-2.0.8\jakarta-oro-2.0.8.jarĬ:\Documents and Settings\Keith>echo %CATALINA_HOME%Ĭ:\Documents and Settings\Keith>echo %JAVA_HOME%Ĭ:\Java\AppServer\jdkNotice that Connector/J is not in my class path.
Mysql Connector Java 5.0 0 Bin Jar windows#
My system settings look like thisMicrosoft Windows XP Ĭ:\Documents and Settings\Keith>echo %PATH%Ĭ:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\MSSQL\BINN C:\MySQL50\bin C:\Program Files\QuickTime\QTSystem\ C:\Programįiles\Apache\ant-1.6.5\bin C:\Program Files\GNU\cvsnt C:\Program Files\Microsoft SQL Server\90\Tools\binn\ C:\java\bin C:\java\appsĮrver\bin C:\java\appserver\jdk\bin c:\program files\devstudio\sharedide\bin\ide c:\program files\devstudio\sharedide\bin c:\programĬ:\Documents and Settings\Keith>echo %CLASSPATH% I've got copies of mysql-connector-java-5.0.3-bin.jar all over the shop including:Ĭ:\Program Files\Java\jre1.5.0_08\lib\ext //how the flock did that get there?Ĭ:\Program Files\Apache\Tomcat5.5\common\libĬ:\Program Files\Apache\Tomcat5.5\shared\libĬ:\Program Files\Apache\Tomcat5.5\webapps\krc\WEB-INF\lib here's my setupĬ:\Program Files\Apache\Tomcat5.5 is "Apache Tomcat 5.5.17 Server"Ĭ:\Java\AppServer\jdk\bin\javac.exe is "javac 1.5.0_06"Ĭ:\Java\bin\java.exe is java version "1.5.0_08"Ĭ:\MySQL50\bin\mysqld.exe is Ver 5.0.22-community for Win32 on ia32 (MySQL Community Edition (GPL)) !!! What is wrong? Is it the classpath or something else, like tomcat or mysql? ("Database connection terminated") Ĭatch (Exception e) I compiled it succesfully but when i run the code with my Tomcat and Mysql open and ready i got this error :Ĭ:\Sun\AppServer\jdk\bin\java =7540 "=C:\Program Files\JetBrains\IntelliJ IDEA 5.1\bin" -Dfile.encoding=windows-1254 -classpath "C:\Sun\AppServer\jdk\jre\lib\charsets.jar C:\Sun\AppServer\jdk\jre\lib\deploy.jar C:\Sun\AppServer\jdk\jre\lib\javaws.jar Ĭ:\Sun\AppServer\jdk\jre\lib\jce.jar C:\Sun\AppServer\jdk\jre\lib\jsse.jar C:\Sun\AppServer\jdk\jre\lib\plugin.jar C:\Sun\AppServer\jdk\jre\lib\rt.jar Ĭ:\Sun\AppServer\jdk\jre\lib\ext\dnsns.jar Ĭ:\Sun\AppServer\jdk\jre\lib\ext\localedata.jar C:\Sun\AppServer\jdk\jre\lib\ext\sunjce_provider.jar C:\Sun\AppServer\jdk\jre\lib\ext\sunpkcs11.jar Ĭ:\Documents and Settings\jannisery\IdeaProjects\Connect\classes C:\Program Files\JetBrains\IntelliJ IDEA 5.1\lib\idea_rt.jar". Connect String url = "jdbc:mysql://localhost/test" Ĭlass.forName ("").newInstance () Ĭonn = DriverManager.getConnection (url, userName, password) Then i tried to compile this code as an example : I copy the "mysql-connector-java-5.0.3-bin.jar" file an pasted it to my CLASSPATH directory location which is :Ĭ:\Program files\Java\jre1.5.0_06\lib\ext\mysql-connector-java-5.0.3-bin.jar
