Skip to main content

Thread: MySQL connector not found


hi,

quite new ubuntu , struggle tomcat , mysql connector.

installed tomcat (apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples) , runs without problems.

installed mysql (apt-get install mysql-server) , seems run without problems too.

changed default jre (update-java-alternatives -s java-6-sun).

weird thing - if put connector-jar web application (web-inf/lib), connection works. if put connector-jar usr/share/java, not work. if write jar location classpath , try "java com.mysql.jdbc.driver", nosuchmethoderror:main, means, jar found?!

datasource in tomcat context.xml is:

<resource name="jdbc/myresource" auth="container" type="javax.sql.datasource" maxactive="100" maxidle="30" maxwait="10000" username="username" password="password" driverclassname="com.mysql.jdbc.driver" url="jdbc:mysql://localhost:3306/myschema" />

how can make database connection work without putting jar web-inf/lib folder of web application?

hi! looks typical case of environment variables problem. try installing libmysql-java. install connector require @ make known across system.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] MySQL connector not found


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support