2012/5/6 Eric Charles <e...@apache.org>: > Hi Ioan, > > Not sure, but can you try starting from the bin folder ('sudo ./james > start') ? If it still does not work, what 'sudo ./run.sh' gives?
First option didn't work but you where right on target with run.sh. I've traced the problem in the wrapper.conf. Changing wrapper.java.classpath.2=../conf to wrapper.java.classpath.2=../conf/lib solves the problem. I'll add an issue and fix it. > Also, it the jar located directly in conf/lib (and not in a subfolder?). :~/apache-james-3.0-beta4$ find . -name "mysql*" ./conf/lib/mysql-connector-java-5.1.20-bin.jar ./lib/mysql-connector-java-5.1.20-bin.jar > Thx, > Eric > > > On 05/06/2012 04:25 PM, Ioan Eugen Stan wrote: >> >> Hello, >> >> I've tried doing a james [1] install on my amazon instance with MySQL >> as a back-end. I've MySQL connector mysql-connector-java-5.1.20.zip, >> unzipped and copied it to conf/lib and lib/ but when I start james >> with: $ sudo bin/james start it stops. Wrapper log shows: >> >> INFO | jvm 1 | 2012/05/06 13:56:55 | 45 James INFO >> [WrapperSimpleAppMain] openjpa.Runtime - Starting OpenJPA 2.1.0 >> INFO | jvm 1 | 2012/05/06 13:56:55 | 79 James INFO >> [WrapperSimpleAppMain] openjpa.jdbc.JDBC - Using dictionary class >> "org.apache.openjpa.jdbc.sql.MySQLDictionary". >> INFO | jvm 1 | 2012/05/06 13:56:55 | Cannot load JDBC driver >> class 'com.mysql.jdbc.Driver' >> INFO | jvm 1 | 2012/05/06 13:56:55 | >> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver >> >> My james-database.properties looks like this: >> >> # Use derby as default >> database.driverClassName=com.mysql.jdbc.Driver >> database.url=jdbc:mysql://localhost:3306/james >> database.username= ** user name ** >> database.password= ** secret ** >> >> vendorAdapter.database=MYSQL >> openjpa.streaming=false >> >> I didn't change anything else. >> >> I'm running: >> java version "1.6.0_18" >> OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze1) >> OpenJDK Client VM (build 14.0-b16, mixed mode, sharing) >> >> >> Any ideas why the lib is not picked up on the class-path? >> >> [1] >> http://lnx.apollo-hw.ro/apache//james/apache-james/3.0beta4/apache-james-3.0-beta4-app.zip >> [2] http://wiki.apache.org/james/V3ConfigTutorial >> > > -- > eric | http://about.echarles.net | @echarles > > --------------------------------------------------------------------- > To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org > For additional commands, e-mail: server-dev-h...@james.apache.org > -- Ioan Eugen Stan http://ieugen.blogspot.com/ *** http://bucharest-jug.github.com/ *** --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org