Is there a free MySQL driver?

Dear All,
Thank you for your replies to my previous posting. I explored the JDBC resources site that was indicated. It appears that the drivers that are available for MySQL have to be paid for.
I was under the impression that a JDBC driver for MySql would be free, especially since the database itself can be obtained for free under the GNU license. Did I miss something when I was looking?
Adwait

All of the JDBC(TM) 3.0 API, including both the
java.sql and javax.sql packages, is bundled with the
Java 2 Platform, Standard Edition, version 1.4
(J2SE).
Eh? What does that have to do with a JDBC driver for MySQL?

Similar Messages

  • Problem getting MySQL driver loaded in ODI Studio (ODI 11g)

    Hello -
    I am trying to create a new data server in the physical architecture under the MySQL technology. Since there is no MySQL JDBC driver included as there was in ODI 10g, I looked into the documentation to find a similar drivers directory that I had used in ODI 10g for loading other JDBC drivers. I would like to be able to select the MySQL Connector/J driver from the drop-down list of usable drivers in the Driver dialog window. I found this link, that explains how to install drivers:
    http://download.oracle.com/docs/cd/E14571_01/core.1111/e16453/install.htm#CHDBIFAJ
    I followed the documents instructions, added the file "mysql-connector-java-5.1.13-bin.jar" to my directory "C:\Documents and Settings\<my username>\Application Data\odi\oracledi\userlib" and restarted ODI Studio. I still cannot get the app to recognize the new driver to use, am I missing a step or is there a known issue with this method? More importantly has anyone been able to get this to register with the Driver dialog box successfully?
    With ODI Studio open, I attempted to delete the mysql jar file from my userlib directory and there was an error that said the file was in use... so I assume that ODI Studio is using the file but not registering it within the Driver selection dialog.

    I think we found our own answer... apparently the ODI Studio interface does not dynamically load that drop-down list from registered drivers in the classpath. We can still use the driver name by manually typing it into the "JDBC Driver:" text box.

  • Free hard drive space suddenly increased

    I was in Finder and just noticed that my MBP's free hard drive space increased from ~249GB to 317GB (68 gigs!!) within the past week. I haven't deleted anything major from my computer... Any ideas why this might have happened? Is there a way I can find out what may have been deleted?

    If you use Time Machine, it's probably OSX deleting expired "Local snapshots."   See #30 in Time Machine - Frequently Asked Questions for details.

  • Setting up the Mysql Driver

    Does anyone know of a good link, regarding the setup of a Mysql jdbc driver on a Unix platform. I need to setup a test page and do not know which *.jar file should be referenced in the classpath. Is it a matter of just downloading the [???] jar file or should I make use of connectors?
    Thanx in advance

    Hi,
    I have been using MySQL with Java on both windows and Linux for a while now. All I had to do was to
    1) Download the mm.mysql-2.0.11-bin.jar file from www.mysql.com
    2) Include this JAR file in the classpath.
    3) Open a connection to the database using code like this:
    String driverClass = "org.gjt.mm.mysql.Driver",
    String url = "jdbc:mysql://localhost/databaseName",
    String user = "root",
    String password = "");
    Class.forName(driverClass).newInstance();
    Connection connection = DriverManager.getConnection(url, user, password);
    This should do the job.
    If you are looking for an easy way of reading and writing objects in databases, I suggest you take a look at the Mr. Persister API that we are releasing on monday May 3rd. It is free, and it does all the tedious and boring work of JDBC for you, with only 5% overhead compared to custom JDBC code. Mr. Persister was developed on MySQL, so it will also work with your project. Check it out here:
    http://www.jenkov.dk/projects/mrpersister/mrpersister.jsp
    Kind Regards,
    Jakob Jenkov
    www.jenkov.com

  • Strange behaviour of jdbc-mysql driver

    I am trying to store japanese characters in mysql and display also after reading from the database using JSP. I am using the following code.
    <%@ page contentType="text/html; charset=UTF-8"%>
    ....... some code ......
    <%
    Class.forName( "org.gjt.mm.mysql.Driver" );
    Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/DB?useUnicode=true&characterEncoding=UTF-8", "user", "pass" );
    Statement st = con.createStatement();
    st.executeUpdate( "insert into test values('" + request.getParameter( "imgname" ) + "')" );
    ResultSet rs = st.executeQuery( "select * from test" );
    while( rs.next() ) {
    %> DB Value: <%= rs.getString( "imgname" ) %>
    <% } %>
    I found one strange behaviour. I have to change the DriverManger.getConnection line to the following, to write the data correctly in the database.
    DriverManager.getConnection("jdbc:mysql://localhost:3306/DB","user","pass")
    If I read from the database using the same parameters as above, I am getting garbled data.
    To retrieve the data correctly from the database I have to use the following line instead of the previous one.
    DriverManager.getConnection("jdbc:mysql://localhost:3306/DB?useUnicode=true&characterEncoding=UTF-8", "user", "pass" );
    In short, I have to pass different parameters to DriverManager.getConnection() for writing and reading from the database. But it is not possible practically. I am using mm.mysql-2.0.8 jdbc-mysql driver, mysql is 3.23.47 and english windows 2000.
    I have tried the string.getBytes("UTF-8") and new String( getBytes(string), "UTF-8") methods, but not getting the correct data.
    Can anybody guide me how can I store and display the japanese character correctly?
    Thanks to all,
    gaurang.

    I downloaded the latese driver from sourceforge, but still the same thing is happening. Is there any other thing which I should do?
    Thanks
    gaurang.

  • The MySQL driver exception!!

    Hi guys, I got a problem with the MySQL driver. I have installed the MySQL connector to classpath. Then I wrote a test program to test if the driver is working well. This test program showed very thing is working well. This test program can connect the database and pick up data from there.However, when I wrote another program that must be using MySQL, the exception "com.mysql.jdbc.Driver" occured. That looked like the MySQL driver has not been installed well or is not working well. But how this happened? How can I solve this problem???
    Thanks a lot.

    Hi,thanks a lot for ur reply.
    Another problem in this case is that, I have 2 computers running this "problem" program. Acturely, most of job have been done in 1st machine and this "problem" program works very well. Then for some reasons, I gotta move this "problem" program to 2nd machine. At first, I just move the .class file to 2nd machine, but it appears exception"com.mysql.jdbc.Driver". Then I move all the source code and compile it. It also appears the same exception. Does that mean the classpath in 2nd machine has some problems?
    Thanks for any reply.

  • I am having problem with Segate free agent drive.

    Since I installed Mountain lion on my iMac 24" I am having problem with a previously installed Seagate drive.  When I am in finder and click on the Free Agent drive, I get the following error.  VTDecoderXPCService quit unexpectedly. I click reopen and a few seconds later I get same message.  This did not occur when I was using Snow Leopard  Very annoying. Any suggestions?  Note I have many movies and important data on this drive and don't want to lose. What does this error mean and is there some way to correct?

    http://changux.co/solving-vtdecoderxpcservice-quit-unexpectedly

  • Kodo not recovering from bad connection in new MySQL driver

    Hi,
         I'm using kodo 2.4.1 and the latest stable MySQL driver 3.0.6. After
    leaving the application inactive for a few hours, the connection to
    mysql is no longer usable. This did not occur with MySQL version 2.0.14
    (as I believe Kodo weren't reusing the connections).
         Are there any properties that I could set, so Kodo can keep the
    connection active or recover from the problem?
    Makas

    Ok, thanks Marc, like I said though, I am now re-using MySQL 2.0.14
    driver. I'm not sure if I'm gaining any advantages with MySQL 3.0.6 anyway.
    But I'll probably upgrade it after the next Kodo is released.
    Makas
    Marc Prud'hommeaux wrote:
    Makas-
    Sorry ... I didn't test the property I sent. The problem is that our
    options parsing does not deal with spaces (this will be fixed in the
    next release).
    Instead of ValidateConnectionSQL="SELECT 1", you should be able to use
    ValidateConnectionSQL=SELECT(1), which does not contain spaces.
    In article <[email protected]>, Makas Tzavellas wrote:
    Marc,
    Using the properties you wrote, kodo doesn't seems to be able to parse
    it. I've also tried various other combinations with no success. I'm now
    going to use the older mysql driver.
    Marc Prud'hommeaux wrote:
    Makas-
    Kodo should be re-using the MySQL Connection in exactly the same way,
    regardless of the version. The problem is that it looks like MySQL people
    slipped in an "optimization" into 3.0.6 whereby Connection.isClosed()
    does not actually test the state of the Connection, but instead just
    returns true if and only if Connection.close() has been invoked.
    You can get around this by specifying some SQL to validate the
    Connections. The following property should do the trick:
    com.solarmetric.kodo.impl.jdbc.DictionaryProperties=\
    ValidateConnections=true \
    ValidateConnectionSQL="SELECT 1"
    Please let us know if the problem persists.
    In article <[email protected]>, Makas Tzavellas wrote:
    Hi Marc,
         Here're the stack trace of the exception and the kodo properties. There
    isn't any long running transaction. The application is basically left
    idle for some time and subsequent connections fails. It could be
    connections obtained from the pool, but I'm not sure.
         I will re-use mysql 2.0.14 for now. Please let me know if I'm missing
    any other properties or if you need more info.
    # Kodo JDO Properties configuration
    # To evaluate or purchase a license key, visit http://www.solarmetric.com
    com.solarmetric.kodo.CacheReferenceSize=1000
    com.solarmetric.kodo.ee.ManagedRuntimeProperties=TransactionManagerName=java:/TransactionManager
    javax.jdo.PersistenceManagerFactoryClass=com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory
    javax.jdo.option.ConnectionDriverName=org.gjt.mm.mysql.Driver
    javax.jdo.option.ConnectionUserName=
    javax.jdo.option.ConnectionPassword=
    javax.jdo.option.ConnectionURL=jdbc:mysql://hostname/database?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true
    javax.jdo.option.MinPool=0
    javax.jdo.option.MaxPool=20
    javax.jdo.option.Optimistic=true
    javax.jdo.option.RetainValues=true
    javax.jdo.option.NontransactionalRead=false
    com.solarmetric.kodo.impl.jdbc.ConnectionTestTimeout=10
    com.solarmetric.kodo.impl.jdbc.AutoReturnTimeout=10
    com.solarmetric.kodo.impl.jdbc.DictionaryClass=com.solarmetric.kodo.impl.jdbc.schema.dict.MySQLDictionary
    com.solarmetric.kodo.DataCacheProperties=Port=5555
    Addresses=repository2.kl.ewarna.com:5555;repository.kl.ewarna.com:5555
    CacheSize=5000
    com.solarmetric.kodo.DataCacheClass=com.ewarna.pdm.sessions.PDMCache
    =========== Stack Trace ================================
    Communication link failure: java.io.IOException [code=0;state=08S01]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT t0.M_IDX, t3.JDOCLASSX, t3.JDOLOCKX, t3.M_CREATIONDATEX,
    t3.M_DELETEDDATEX, t3.M_HOSTADDRESSX, t3.M_LASTMODIFIEDDATEX,
    t3.M_NAMEX, t3.M_OLDIDX, t3.M_ID_M_OWNERX, t0.M_ID_M_ACCOUNTX,
    t0.M_FULLNAMEX, t0.M_PASSWORDX, t0.M_PASSWORDEXPIRYDATEX, t3.M_NAMEX
    >>>>FROM ABSTRACTENTITYX t2, ABSTRACTENTITYX t3, Accounts t1, Users t0 WHERE>>>>>>>((((((t2.M_NAMEX = 'development' AND t3.M_NAMEX = 'ewarna') AND>>>>(t3.M_DELETEDDATEX IS NULL)) AND (t2.M_DELETEDDATEX IS NULL)) AND>>>>(t3.M_DELETEDDATEX IS NULL)) AND t3.JDOCLASSX =>>>>'com.ewarna.pdm.entities.storage.UserPE') AND t0.M_IDX = t3.M_IDX AND>>>>t0.M_ID_M_ACCOUNTX = t1.M_IDX AND t1.M_IDX = t2.M_IDX) ORDER BY>>>>t3.M_NAMEX ASC
    [PRE=SELECT t0.M_IDX, t3.JDOCLASSX, t3.JDOLOCKX, t3.M_CREATIONDATEX,
    t3.M_DELETEDDATEX, t3.M_HOSTADDRESSX, t3.M_LASTMODIFIEDDATEX,
    t3.M_NAMEX, t3.M_OLDIDX, t3.M_ID_M_OWNERX, t0.M_ID_M_ACCOUNTX,
    t0.M_FULLNAMEX, t0.M_PASSWORDX, t0.M_PASSWORDEXPIRYDATEX, t3.M_NAMEX
    >>>>FROM ABSTRACTENTITYX t2, ABSTRACTENTITYX t3, Accounts t1, Users t0 WHERE>>>>>>>((((((t2.M_NAMEX = ? AND t3.M_NAMEX = ?) AND (t3.M_DELETEDDATEX IS>>>>NULL)) AND (t2.M_DELETEDDATEX IS NULL)) AND (t3.M_DELETEDDATEX IS NULL))>>>>AND t3.JDOCLASSX = ?) AND t0.M_IDX = t3.M_IDX AND t0.M_ID_M_ACCOUNTX =>>>>t1.M_IDX AND t1.M_IDX = t2.M_IDX) ORDER BY t3.M_NAMEX ASC
    Communication link failure: java.io.IOException
         at
    com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExceptions.java:23)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:742)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java:92)
         at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
         at
    com.ewarna.pdm.sessions.BasicQuery.getByAdvancedFormula(BasicQuery.java:137)
         at
    com.ewarna.pdm.sessions.BasicQuery.getByAdvancedFormula(BasicQuery.java:65)
         at com.ewarna.pdm.sessions.BasicQuery.getByFormula(BasicQuery.java:205)
         at
    com.ewarna.handlers.storage.SessionHandler$1.execute(SessionHandler.java:116)
         at
    com.ewarna.pdm.sessions.JDOCallBackExecutor.execute(JDOCallBackExecutor.java:40)
         at
    com.ewarna.handlers.storage.SessionHandler.login(SessionHandler.java:140)
         at
    com.ewarna.pdm.soap.AbstractSoapService.login(AbstractSoapService.java:44)
         at
    com.ewarna.pdm.soap.xfs.SoapServiceXFSImpl.login(SoapServiceXFSImpl.java:1199)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.soap.server.RPCRouter.invoke(RPCRouter.java:146)
         at
    org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129)
         at
    org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:354)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
         at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    NestedThrowablesStackTrace:
    java.sql.SQLException: Communication link failure: java.io.IOException
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1606)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:886)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:945)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:1809)
         at
    com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1458)
         at
    com.solarmetric.datasource.PreparedStatementWrapper.executeQuery(PreparedStatementWrapper.java:93)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryInternal(SQLExecutionManagerImpl.java:769)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(SQLExecutionManagerImpl.java:692)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:373)
         at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:357)
         at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(ClassMapping.java:1221)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:717)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java:92)
         at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
         at
    com.ewarna.pdm.sessions.BasicQuery.getByAdvancedFormula(BasicQuery.java:137)
         at
    com.ewarna.pdm.sessions.BasicQuery.getByAdvancedFormula(BasicQuery.java:65)
         at com.ewarna.pdm.sessions.BasicQuery.getByFormula(BasicQuery.java:205)
         at
    com.ewarna.handlers.storage.SessionHandler$1.execute(SessionHandler.java:116)
         at
    com.ewarna.pdm.sessions.JDOCallBackExecutor.execute(JDOCallBackExecutor.java:40)
         at
    com.ewarna.handlers.storage.SessionHandler.login(SessionHandler.java:140)
         at
    com.ewarna.pdm.soap.AbstractSoapService.login(AbstractSoapService.java:44)
         at
    com.ewarna.pdm.soap.xfs.SoapServiceXFSImpl.login(SoapServiceXFSImpl.java:1199)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.soap.server.RPCRouter.invoke(RPCRouter.java:146)
         at
    org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129)
         at
    org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:354)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
         at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:536)
    Marc Prud'hommeaux wrote:
    Makas-
    Is Kodo idle during a long-running transaction, or does the error occur
    when a new Connection is allocated? If the former, then there is nothing
    we can do: MySQL shouldn't be dropping an open Connection while a
    transaction is active. If the latter, then the property
    com.solarmetric.kodo.impl.jdbc.ConnectionTestTimeout specified the
    number of seconds between which the connection should be tested for
    valididty when removed from the pool.
    See also:
    http://docs.solarmetric.com/manual.html#com.solarmetric.kodo.impl.jdbc.ConnectionTestTimeout
    If this does not help, can you let us know your properties and some
    details about your application?
    In article <[email protected]>, Makas Tzavellas wrote:
    Hi,
         I'm using kodo 2.4.1 and the latest stable MySQL driver 3.0.6. After
    leaving the application inactive for a few hours, the connection to
    mysql is no longer usable. This did not occur with MySQL version 2.0.14
    (as I believe Kodo weren't reusing the connections).
         Are there any properties that I could set, so Kodo can keep the
    connection active or recover from the problem?
    Makas

  • How to bound a JNDI reference to MySQL driver?

    Hi.
    Hi.
    I am trying to write a simple J2EE application that would use Entety EJB with bean persisatance. I have downloaded driver from the www.mysql.org, copied it to the lib/system directory and modified J2EE_CLASSPATH in bin/userconfig.bat. I am using reference implementation server and with deploytool in �tools/serverconfiguration/datasourses/standard� I am specifying driver: org.gjt.mm.mysql.Driver or com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource and in datasourses in JNDI Name I write �jdbc/mydb� and in JDBC URL �jdbc:mysql://localhost:3306/this�, problem comes up when I try to reference �jdbc/mydb� from an entity bean, during deployment process of application it says that it is not bound
    Binding name:`java:comp/env/jdbc\persondb`
    Warning: Reference reference java:comp/env/jdbc\persondb is using a JNDI name that is not bound: jdbc\mydb
    I do not get it, what I am doing wrong? Please help me to find out how to bind a JNDI name to MySQL

    Hi! I had the same problem, too. I�m Brazilian and I�ve been learning the English language yet, but I�ll try to describe how to configure J2EE with MySQL.
    I am using MySQL version 4.1.7 with J2EE version 1.3 on Windows XP Professional. The driver version of MySQL is 3.0.16.
    You have to configure the following two files:
    - <J2EE_HOME>\bin\setenv.bat
    - <J2EE_HOME>\config\resource.properties
    Do the following steps:
    1) Copy the JAR file of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar) to <J2EE_HOME>\lib directory.
    2) In <J2EE_HOME>\bin directory open the setenv.bat file and analize the code. It is not hard to understand the code, it is just the classpath configuration of J2EE. After understand it, add a reference of MySQL driver (mysql-connector-java-3.0.16-ga-bin.jar), that was copied to <J2EE_HOME>\lib directory.
    3) Run the <J2EE_HOME>\bin\j2eeadmin.bat to configure the resource.properties file.There are two command lines to be executed, as below:
    - j2eeadmin.bat -addJdbcDriver <CLASS NAME OF THE DRIVER>
    - j2eeadmin.bat -addJdbcDatasource <JNDI NAME> <URL>
    For example:
    - j2eeadmin.bat -addJdbcDriver "com.mysql.jdbc.Driver"
    - j2eeadmin.bat -addJdbcDatasource "jdbc/mysql/test" "jdbc:mysql://localhost/test?user=username&password=pass"
    4) After run j2eeadmin.bat, the resource.properties file will be modified. But when I did it and when I executed the verbose command to start J2EE, some error messages was exhibited. So I decided to open the resource.properties file and I noticed that the character "\" was added erroneously in a lot of places of the code. It did not seem correct, so I decided to remove these characters replacing them. I was right! After I did it, I run verbose again and no more message error ocurred. I think it is a bug of J2EE.
    Finish! I modified the datasource JNDI to access MySQL and then I run my EAR application. No problems occurred. My application is running succesfully.
    Good luck!

  • Old mySql driver, or missing something?

    Hi,
    i am a nub in web applications in java.
    I have a system using jrun4 (and tomcat 5 as a second app server), mysql 5, and the java connector driver connector/j 3.1.11 .
    The mysql database is running on port 3306.
    I am trying to make a connection to the database so i ve writen the following simple jsp program:
    <%@ page language="java" import="java.sql.*" %>
    <%
         try {
              String sAddress = (String)session.getValue("ADDRESS");
              String sDatabase = (String)session.getValue("DATABASE");
              String sUsername = (String)session.getValue("USERNAME");
              String sPassword = (String)session.getValue("PASSWORD");
              if (sAddress == null || sDatabase == null || sUsername == null || sPassword == null) {
                   sAddress = request.getParameter("ADDRESS");
                   sDatabase = request.getParameter("DATABASE");
                   sUsername = request.getParameter("USERNAME");
                   sPassword = request.getParameter("PASSWORD");
              // try a connection
              Class.forName("org.gjt.mm.mysql.Driver").newInstance();
              Connection conn = DriverManager.getConnection("jdbc:mysql://" + sAddress + "/" + sDatabase +"?user=" + sUsername + "&password=" + sPassword);
              conn.createStatement();
              conn.close();
              // put connection data into session
              session.putValue("ADDRESS", sAddress);
              session.putValue("DATABASE", sDatabase);
              session.putValue("USERNAME", sUsername);
              session.putValue("PASSWORD", sPassword);
              // proceed with success
              response.sendRedirect("menu.html");
              return;
         } catch (Exception e) {
              out.print("<font color=red><center>" + e.toString() + "</center></font><br>\n");
    %>
    When i try to run it will throw a the following exception:
    java.sql.SQLException: Cannot connect to MySQL server on null:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.UnknownHostException)
    i think that the main reason this is happening is because its trying to find:
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    while the driver connector/j 3.1.11(which is the latest on www.mysql.com)is providing a class name:
    com.mysql.jdbc.Driver
    so i looked and found a very old connector driver: mm.mysql.2.0.12
    which is providing name class: org.gjt.mm.mysql.Driver.
    the problem is still there though...
    Am i missing something????
    Is there a special way to install that driver???
    What step do you think i should follow???
    Do you think its something else that might be responsible????

    Hi,
    i am a nub in web applications in java.
    I have a system using jrun4 (and tomcat 5 as a second app server), mysql 5, and the java connector driver connector/j 3.1.11 .
    The mysql database is running on port 3306.
    I am trying to make a connection to the database so i ve writen the following simple jsp program:
    <%@ page language="java" import="java.sql.*" %>
    <%
         try {
              String sAddress = (String)session.getValue("ADDRESS");
              String sDatabase = (String)session.getValue("DATABASE");
              String sUsername = (String)session.getValue("USERNAME");
              String sPassword = (String)session.getValue("PASSWORD");
              if (sAddress == null || sDatabase == null || sUsername == null || sPassword == null) {
                   sAddress = request.getParameter("ADDRESS");
                   sDatabase = request.getParameter("DATABASE");
                   sUsername = request.getParameter("USERNAME");
                   sPassword = request.getParameter("PASSWORD");
              // try a connection
              Class.forName("org.gjt.mm.mysql.Driver").newInstance();
              Connection conn = DriverManager.getConnection("jdbc:mysql://" + sAddress + "/" + sDatabase +"?user=" + sUsername + "&password=" + sPassword);
              conn.createStatement();
              conn.close();
              // put connection data into session
              session.putValue("ADDRESS", sAddress);
              session.putValue("DATABASE", sDatabase);
              session.putValue("USERNAME", sUsername);
              session.putValue("PASSWORD", sPassword);
              // proceed with success
              response.sendRedirect("menu.html");
              return;
         } catch (Exception e) {
              out.print("<font color=red><center>" + e.toString() + "</center></font><br>\n");
    %>
    When i try to run it will throw a the following exception:
    java.sql.SQLException: Cannot connect to MySQL server on null:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.UnknownHostException)
    i think that the main reason this is happening is because its trying to find:
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    while the driver connector/j 3.1.11(which is the latest on www.mysql.com)is providing a class name:
    com.mysql.jdbc.Driver
    so i looked and found a very old connector driver: mm.mysql.2.0.12
    which is providing name class: org.gjt.mm.mysql.Driver.
    the problem is still there though...
    Am i missing something????
    Is there a special way to install that driver???
    What step do you think i should follow???
    Do you think its something else that might be responsible????

  • MYSQL Driver in JBoss for BMP

    Hi
    I think For CMP bean there is no need to load the jdbcdriver in the Bean when using J Boss as a Application Server. EJB Container will laod the driver if we gave appropriate path I am USing JBoss 4.04 Application server . I copied mySQl driver into the lib folder . My main question in which .xml i need to configure my SQL jdbc driver driver name,so that EJB Container will load automatically when i start the Application Server
    Thanks in Advance
    Raghu

    The application server doesn't do the Class.forName() call for you, no matter how you configure it. I'd suggest finding the appropriate life-cycle method to put the call in yourself. Possibilities are: ejbLoad(), ejbStore() or init() of some servlet that uses the BMP Entity.
    Brian

  • URGENT - org.gjt.mysql.driver Issues... Please help...

    import java.sql.*;
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    public class receiving extends Applet implements ItemListener, ActionListener
    Connection conDatabase;//door to the database
    Statement cmdDatabase;//messenger
    ResultSet rsDatabase;//bucket
    private String dbURL = "jdbc:mysql://web6.duc.auburn.edu/?user=gunthms&password=tigers05";
    boolean blnSuccessfulOpen = false;
    Choice Order_No = new Choice();
    TextField txtOrder_No = new TextField(6);
    TextField txtCompany = new TextField(20);
    TextField txtLocation = new TextField(20);
    TextField txtDate_Shipped = new TextField(10);
    TextField txtBlack_Poly = new TextField(8);
    TextField txtBlue_Poly = new TextField(8);
    TextField txtBrass1 = new TextField(8);
    TextField txtBrass2 = new TextField(8);
    TextField txtTransaction_No = new TextField(8);
    TextField txtTracking_No = new TextField(18);
    Button btnAdd = new Button("Add");
    Button btnEdit = new Button("Save");
    Button btnCancel = new Button("Cancel");
    Button btnDelete = new Button("Delete");
    Button btnNext = new Button(" > ");
    Button btnLast = new Button(" >>> ");
    Button btnPrevious = new Button(" < ");
    Button btnFirst = new Button(" <<< ");
    public void init()
    //Set up panel and load database
    LoadDatabase();
    if (blnSuccessfulOpen)
    Order_No.insert("Select an Order",0);
    add(Order_No);
    add(new Label(" "));
    Order_No.addItemListener(this);
    add(new Label("Order No"));
    add(txtOrder_No);
    add(new Label("Company"));
    add(txtCompany);
    add(new Label("Location"));
    add(txtLocation);
    add(new Label(" "));
    add(new Label("Date Shipped"));
    add(txtDate_Shipped);
    add(new Label(" "));
    add(new Label("Black Poly (sqft)"));
    add(txtBlack_Poly);
    add(new Label("Blue Poly (sqft)"));
    add(txtBlue_Poly);
    add(new Label("Brass 1inch (pcs)"));
    add(txtBrass1);
    add(new Label("Brass 2inch (pcs)"));
    add(txtBrass2);
    add(new Label(" "));
    add(new Label("Transaction No"));
    add(txtTransaction_No);
    add(new Label(" "));
    add(new Label("Tracking No"));
    add(txtTracking_No);
    setTextToNotEditable();
    add(new Label(" "));
    add(btnAdd);
    btnAdd.addActionListener(this);
    add(btnEdit);
    btnEdit.addActionListener(this);
    add(btnDelete);
    btnDelete.addActionListener(this);
    add(btnCancel);
    btnCancel.addActionListener(this);
    btnCancel.setEnabled(false);
    //Navigate Buttons
    add(btnFirst);
    btnFirst.addActionListener(this);
    add(btnPrevious);
    btnPrevious.addActionListener(this);
    add(btnNext);
    btnNext.addActionListener(this);
    add(btnLast);
    btnLast.addActionListener(this);
    else
    System.err.println("Unable to populate fields");
    public void LoadDatabase()
    try
    //Load MySQL drivers
    Class.forName("org.gjt.mm.mysql.Driver");
    catch ( java.lang.ClassNotFoundException e )
    System.err.println("MySQL ORG Package Driver not found ...");
    System.err.println(e.getMessage());
    /* try
    //Load MySQL drivers
    Class.forName("com.mysql.jdbc.Driver");
    catch ( java.lang.ClassNotFoundException e )
    System.err.println("MySQL COM Package Driver not found ...");
    System.err.println(e.getMessage());
    try
    //Connect to the database
    conDatabase = DriverManager.getConnection(dbURL);
    catch(SQLException error)
    System.err.println("Unable to Connect to Database");
    try
    Statement cmdDatabase = conDatabase.createStatement();
    //Create the ResultSet
    rsDatabase = cmdDatabase.executeQuery("Select * from gunthmsjv.RECEIVING;");
    loadNumbers(rsDatabase);
    blnSuccessfulOpen = true;
    catch(SQLException error)
    System.err.println("Error in recordset");
    public void loadNumbers(ResultSet rsDatabase)
    //Fill last name list box
    try
    while(rsDatabase.next())
    Order_No.add(rsDatabase.getString("Order_No"));
    catch (SQLException error)
    System.err.println("Error in Display Record");
    public void itemStateChanged(ItemEvent event)
    //Retrieve and display the selected record
    String strOrder_No = Order_No.getSelectedItem();
    showStatus(""); //Delete instructions
    try
    Statement cmdDatabase = conDatabase.createStatement();
    rsDatabase = cmdDatabase.executeQuery(
    "Select * from gunthmsjv.RECEIVING where Order_No = '" + strOrder_No + "';");
    txtOrder_No.setText(strOrder_No);
    displayRecord(rsDatabase);
    setTextToEditable();
    catch(SQLException error)
    showStatus("Error in recordset");
    public void displayRecord(ResultSet rsDatabase)
    //Display the current record
    try
    if(rsDatabase.next())
    txtOrder_No.setText(rsDatabase.getString("Order_No"));
    txtCompany.setText(rsDatabase.getString("Company"));
    txtLocation.setText(rsDatabase.getString("Location"));
    txtDate_Shipped.setText(rsDatabase.getString("Date_Shipped"));
    txtBlack_Poly.setText(rsDatabase.getString("Black_Poly"));
    txtBlue_Poly.setText(rsDatabase.getString("Blue_Poly"));
    txtBrass1.setText(rsDatabase.getString("Brass1"));
    txtBrass2.setText(rsDatabase.getString("Brass2"));
    txtTransaction_No.setText(rsDatabase.getString("Transaction_No"));
    txtTracking_No.setText(rsDatabase.getString("Tracking_No"));
    showStatus("");
    else
    showStatus("Record not found");
    ClearTextFields();
    catch (SQLException error)
    showStatus("Error in display record");
    public void actionPerformed(ActionEvent event)
    //Test the command buttons
    Object objSource = event.getSource();
    if(objSource == btnAdd && event.getActionCommand() == "Add")
    Add();
    else if (objSource == btnAdd)
    Save();
    else if(objSource == btnEdit)
    Edit();
    else if(objSource == btnDelete)
    Delete();
    else if(objSource == btnCancel)
    Cancel();
    else if(objSource == btnFirst)
    firstRecord();
    else if(objSource == btnNext)
    nextRecord();
    else if(objSource == btnPrevious)
    previousRecord();
    else if(objSource == btnLast)
    lastRecord();
    public void setTextToNotEditable()
    //Lock the text fields
    txtOrder_No.setEditable(false);
    txtCompany.setEditable(false);
    txtLocation.setEditable(false);
    txtDate_Shipped.setEditable(false);
    txtBlack_Poly.setEditable(false);
    txtBlue_Poly.setEditable(false);
    txtBrass1.setEditable(false);
    txtBrass2.setEditable(false);
    txtTransaction_No.setEditable(false);
    txtTracking_No.setEditable(false);
    public void setTextToEditable()
    //Unlock the text fields
    txtOrder_No.setEditable(true);
    txtCompany.setEditable(true);
    txtLocation.setEditable(true);
    txtDate_Shipped.setEditable(true);
    txtBlack_Poly.setEditable(true);
    txtBlue_Poly.setEditable(true);
    txtBrass1.setEditable(true);
    txtBrass2.setEditable(true);
    txtTransaction_No.setEditable(true);
    txtTracking_No.setEditable(true);
    public void ClearTextFields()
    //Clear the Text Fields
    txtOrder_No.setText("");
    txtCompany.setText("");
    txtLocation.setText("");
    txtDate_Shipped.setText("");
    txtBlack_Poly.setText("");
    txtBlue_Poly.setText("");
    txtBrass1.setText("");
    txtBrass2.setText("");
    txtTransaction_No.setText("");
    txtTracking_No.setText("");
    public void Add()
    //Add a new record
    showStatus("");
    //Empty the text fields
    setTextToEditable();
    ClearTextFields();
    txtOrder_No.requestFocus ();
    //Change the button labels
    btnAdd.setLabel("OK");
    btnCancel.setEnabled(true);
    //Disable the Delete and Edit buttons
    btnDelete.setEnabled(false);
    btnEdit.setEnabled(false);
    public void Save()
    //Save the new record
    // Activated when Add button has an "OK" label
    if (txtOrder_No.getText().length() == 0 && txtLocation.getText().length() == 0)
    showStatus("The Customer Name or ID Number is blank");
    else
    try
    Statement cmdDatabase = conDatabase.createStatement();
    cmdDatabase.executeUpdate(
    "Insert Into gunthmsjv.RECEIVING "
    + "(Order_No,Company,Location,Date_Shipped,Black_Poly,Blue_Poly,Brass1,Brass2,Transaction_No,txtTracking_No) "
    + "Values('"
    + txtOrder_No.getText() + "', '"
    + txtCompany.getText() + "', '"
    + txtLocation.getText() + "', '"
    + txtDate_Shipped.getText() + "', '"
    + txtBlack_Poly.getText() + "', '"
    + txtBlue_Poly.getText() + "', '"
    + txtBrass1.getText() + "', '"
    + txtBrass2.getText() + "', '"
    + txtTransaction_No.getText() + "', '"
    + txtTracking_No.getText() + "')");
    //Add to name list
    Order_No.add(txtOrder_No.getText());
    //Reset buttons
    Cancel();
    catch(SQLException error)
    showStatus("Error: " + error.toString());
    public void Delete()
    //Delete the current record
    int intIndex = Order_No.getSelectedIndex();
    String strOrder_No = Order_No.getSelectedItem();
    if(intIndex == 0) //Make sure a record is selected
    //Position zero holds a message
    showStatus("Please select the record to be deleted");
    else
    try
    //Delete from Database
    Statement cmdDatabase = conDatabase.createStatement();
    cmdDatabase.executeUpdate(
    "Delete from gunthmsjv.RECEIVING where Order_No = '"
    + strOrder_No + "';");
    ClearTextFields(); //Delete from screen
    Order_No.remove(intIndex); //Delete from list
    showStatus("Record deleted"); //Display message
    catch(SQLException error)
    showStatus("Error during Delete");
    public void Cancel()
    //Enable the Delete and Edit buttons
    btnDelete.setEnabled(true);
    btnEdit.setEnabled(true);
    btnCancel.setEnabled(false);
    //Change caption of button
    btnAdd.setLabel("Add");
    //Clear the text fields and status bar
    ClearTextFields();
    showStatus("");
    public void Edit()
    //Save the modified record
    int intIndex = Order_No.getSelectedIndex();
    if(intIndex == 0) //Make sure a record is selected
    //Position zero holds a message
    showStatus("Please select the record to be changed");
    else
    String strOrder_No = Order_No.getSelectedItem();
    try
    Statement cmdDatabase = conDatabase.createStatement();
    cmdDatabase.executeUpdate(
    "Update gunthmsjv.RECEIVING "
    + "Set Order_No = '" + txtOrder_No.getText() + "', "
    + "Company = '" + txtCompany.getText() + "', "
    + "Location = '" + txtLocation.getText() + "', "
    + "Date_Shipped = '" + txtDate_Shipped.getText() + "', "
    + "Black_Poly = '" + txtBlack_Poly.getText() + "', "
    + "Blue_Poly = '" + txtBlue_Poly.getText() + "', "
    + "Brass1 = '" + txtBrass1.getText() + "', "
    + "Brass2 = '" + txtBrass2.getText() + "', "
    + "Transaction_No = '" + txtTransaction_No.getText() + "', "
    + "txtTracking_No = '" + txtTracking_No.getText() + "', ");
    if (!strOrder_No.equals(txtOrder_No.getText()))
    //Last name changed; change the list
    Order_No.remove(intIndex); //Remove the old entry
    Order_No.add(txtOrder_No.getText()); //Add the new entry
    catch(SQLException error)
    showStatus("Error during Edit");
    public void stop()
    //Terminate the connection
    try
    if (conDatabase != null)
    conDatabase.close();
    catch(SQLException error)
    showStatus("Unable to disconnect");
    public void firstRecord()
    int first = 1;
    Order_No.select(first);
    String strNewOrder_No = Order_No.getSelectedItem();
    try
    Statement cmdDatabase = conDatabase.createStatement();
    rsDatabase = cmdDatabase.executeQuery("Select * from gunthmsjv.RECEIVING where Order_No = '" + strNewOrder_No + "';");
    txtOrder_No.setText(strNewOrder_No);
    displayRecord(rsDatabase);
    catch(SQLException error)
    showStatus("item state try.");
    public void previousRecord()
    int PreviousIndex = 0;
    PreviousIndex = Order_No.getSelectedIndex();
    PreviousIndex--;
    if (PreviousIndex > 0)
    Order_No.select(PreviousIndex);
    String strNewOrder_No = Order_No.getSelectedItem();
    try
    Statement cmdDatabase = conDatabase.createStatement();
    rsDatabase = cmdDatabase.executeQuery("Select * from gunthmsjv.RECEIVING where Order_No = '" + strNewOrder_No + "';");
    txtOrder_No.setText(strNewOrder_No);
    displayRecord(rsDatabase);
    catch(SQLException error)
    showStatus("item state try.");
    else
    showStatus("You've reached the beginning of the list.");
    public void nextRecord()
    int NextIndex = 0;
    NextIndex = Order_No.getSelectedIndex();
    if(NextIndex == 0)
    NextIndex = 1;
    else
    NextIndex++;
    if (NextIndex < Order_No.getItemCount())
    Order_No.select(NextIndex);
    String strNewOrder_No = Order_No.getSelectedItem();
    try
    Statement cmdDatabase = conDatabase.createStatement();
    rsDatabase = cmdDatabase.executeQuery("Select * from gunthmsjv.RECEIVING where Order_No = '" + strNewOrder_No + "';");
    txtOrder_No.setText(strNewOrder_No);
    displayRecord(rsDatabase);
    catch(SQLException error)
    showStatus("item state try.");
    else
    showStatus("You've reached the end of the list.");
    public void lastRecord()
    int last = 0;
    while (last < Order_No.getItemCount()-1)
    last++;
    Order_No.select(last);
    String strNewOrder_No = Order_No.getSelectedItem();
    try
    Statement cmdDatabase = conDatabase.createStatement();
    rsDatabase = cmdDatabase.executeQuery("Select * from gunthmsjv.RECEIVING where Order_No = '" + strNewOrder_No + "';");
    txtOrder_No.setText(strNewOrder_No);
    displayRecord(rsDatabase);
    catch(SQLException error)
    showStatus("item state try.");
    How do I point the class.forname to a url? This class will be run off a webserver with an html file. Everytime I run it currently, it comes back with a NullPointerException so I know it can't find it. I know if I run it locally, the file runs properly... Can someone help ASAP :(

    oad: class http://www.auburn.edu/~gunthms/classes/shipping.class not found.
    java.lang.ClassNotFoundException: http:..www.auburn.edu.~gunthms.classes.shipping.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.UnknownHostException: www
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at sun.net.NetworkClient.doConnect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.doConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.<init>(Unknown Source)
         at sun.plugin.net.protocol.http.HttpClient.New(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.createConnection(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    It's just not finding it. Now if there were a way of loading that class from a jar file... or just any method at all of loading that... I think it would work... thanks alot man for your continuing help.

  • Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'

    Hi,
    I'm trying to run my web app and connect to a MySQL database but keep getting this error:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
    any ideas?
    Thanks!

    Lookup the stacktrace and find the root cause of the exception.
    My cents on a ClassNotFoundException which is rather self-explaining.
    By the way, the mentioned driver class name is a very old driver. You shouldn't be using that anymore. Surf to the MySQL homepage and download the most recent Connector/J JDBC driver for your database version. Documentation is also available over there.

  • Including org.gjt.mm.mysql.Driver with my application

    So, lets say I have a Java program that connects to an SQL server and it runs fine on my machine. I have all the nessicarry classpath's and Connector/J properly installed. But, when I run it on a client machine I get:
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.DriverNow, I can solve this issue by putting the Connector/J onto their computer but, I'm wondering if there's a way to package the application and the driver so that anyone can run it without having to install Connector/J manually.
    Any help would be much appreciated.
    Thanks!

    JonasWon wrote:
    So, lets say I have a Java program that connects to an SQL server and it runs fine on my machine. I have all the nessicarry classpath's and Connector/J properly installed. But, when I run it on a client machine I get:
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    That's the old, deprecated JDBC driver class name.
    Now, I can solve this issue by putting the Connector/J onto their computer but, I'm wondering if there's a way to package the application and the driver so that anyone can run it without having to install Connector/J manually.
    Any help would be much appreciated.
    Thanks!"install" it manually? Nobody "installs" a 3rd party JAR. These aren't quite DLLs.
    I'll assume your app is a desktop deployment. Package it into an executable JAR, add the Connector/J JAR to the Classpath in the manifest, and zip that JAR up with the Connector/J JAR. Your users will just unzip the ZIP file and execute the JAR.
    %

  • Org.gjt.mm.mysql.Driver

    I want to send a WAR file of my web applications to my clients. The application consiting of servlets and jsps connects to a database and requires org.gjt.mm.mysql.Driver how do i incorperate the .jar inside the WAR so my client doesn't have to fiddle with dropping jars in tomcats lib directory? I've tried including the org.gjt.mm.mysql.Driver driver jar inside the war WEB-INF/lib but it still says it cant find the driver?

    If you have set up connection pooling within Tomcat, there is no way around it. The connection pooling is controlled by Tomcat, so it requires the driver file in [TOMCAT]/common/lib.
    The only way to have a completely independant WAR file would be to handle all the database connections and connection pooling yourself within the web application.

Maybe you are looking for

  • Some text caption prefs not reflected in recorded project

    In Captivate 5: Among others, I have set the following preferences prior to recording: Font size: 12pt Vertical alignment: Top Display for: Rest of slide The text captions in the resulting recording show the following: Font size: 19pt Vertical alignm

  • Bridge CS4 won't open .NEF file in camera raw

    It says because photoshop CS4 does not recognize this type of file. I've opened plenty of Nikon .NEF files in Bridge. The difference is this is a D90 file and I've been getting D80 files. Is there a patch for newer camera models?

  • Static Groups

    I have run into a big problem setting and searching dynamic groups and was told static groups are the most supported and most understood. I created a static group and added some members; now I am trying to search for members of this group and am faci

  • How delete a planning request?Target set to Planning Mode cannot be deleted

    Hello everybody, Could someone tell me how I can delete a request in a planning cube ... I tried to switch the status green to red and then click on the trash button after selecting it but I got allways a message: Target ZCOPATRLC set to 'Planning Mo

  • My blackberry 9320 will not switch on

    Hello I have a blackberry 9320 and i havent used it in about 4 months I tried to charge it earlier it wouldnt charge the red light would stay on for apporoximatley 40 seconds and then it would go off and the screen would stay blank  Can someone tell