screen-scraper server model goes wrong on linux pc
We cannot find the original source of an exception.
When screen-scraper is invoked from the commandline for adding a task,
an exception is caught by an interpreted java script that we are calling.
The exception is not very descriptive:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
It would at first glance appear that CLASSPATH is not set, but it is:
# CLASSPATH=$HOME/ss/mysql-connector-java-5.1.5-bin.jar:$CLASSPATH java -jar screen-scraper.jar -s "generic - call-script" -p "scrapeFile=foo.quote"
if we inspect the jar we can also conclude that the driver indeed does exist:
# ls -la com/mysql/jdbc/Driver.class
-rw-r--r-- 1 foo foo 692 2007-10-05 21:08 com/mysql/jdbc/Driver.class
This is obviously not a lot of information, but with some luck maybe someone has
experienced similar issues. Any information would be greatly appreciated.
screen-scraper server model goes wrong on linux pc
[quote="swilsonmc"]max,
In order to ensure that screen-scraper has access to the mysql driver, we recommend that you place the mysql driver jar file in the lib\ext folder where screen-scraper is installed. This should take care of any issue you're having with the classpath.
See "Working with external Java libraries" on this page.
http://www.screen-scraper.com/support/docs/using_scripts.php
Thanks,
Scott[/quote]
cool, it works.
Thanks.
screen-scraper server model goes wrong on linux pc
max,
In order to ensure that screen-scraper has access to the mysql driver, we recommend that you place the mysql driver jar file in the lib\ext folder where screen-scraper is installed. This should take care of any issue you're having with the classpath.
See "Working with external Java libraries" on this page.
http://www.screen-scraper.com/support/docs/using_scripts.php
Thanks,
Scott
screen-scraper server model goes wrong on linux pc
[quote="swilsonmc"]max,
What version of screen-scraper is this happening with? Also, what flavor of Linux are you running it on?
-Scott[/quote]
hi Scott
FYI,ss 3.0 on ubuntu 7.10
screen-scraper server model goes wrong on linux pc
max,
What version of screen-scraper is this happening with? Also, what flavor of Linux are you running it on?
-Scott
screen-scraper server model goes wrong on linux pc
any1 knows why?