[daisy] Problems with automated install
Marc Portier
mpo at outerthought.org
Mon Aug 7 01:15:59 CDT 2006
Andreas,
Driver's classname has capital D
change
driverClass=com.mysql.jdbc.driver
to
driverClass=com.mysql.jdbc.Driver
HTH,
-marc=
Andreas Deininger wrote:
> Hi,
>
> I realized that Daisy supports supplying property files to the
> installation programs for automated installs. However, I couldn't get
> that working. That's what I did:
>
> I created a property-file daisy-repository-init.properties:
>
> dbUrl=jdbc:mysql://localhost:3306/daisytest
> dbUser=root
> dbUserPassword=pw
> driverClass=com.mysql.jdbc.driver
> driverClassPath=/path/to/daisyhome/lib/mysql/jars/mysql-connector-java-3.1.12-bin.jar
>
> ...
>
> Now, if I execute:
> $./daisy-repository-init -c daisy-repository-init.properties
>
> I get the following error:
>
> Exception in thread "main" java.lang.ClassNotFoundException:
> com.mysql.jdbc.driver
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:242)
> at
> org.outerj.daisy.jdbcutil.DriverLoader.loadDatabaseDriver(DriverLoader.java:50)
>
> at
> org.outerj.daisy.install.InstallHelper$DatabaseParams.loadDriver(InstallHelper.java:150)
>
> at
> org.outerj.daisy.install.RepositoryServerInit.runAutomatedInstall(RepositoryServerInit.java:382)
>
> at
> org.outerj.daisy.install.RepositoryServerInit.install(RepositoryServerInit.java:77)
>
> at
> org.outerj.daisy.install.RepositoryServerInit.main(RepositoryServerInit.java:52)
>
>
> What I am I doing wrong? Is the property driverClassPath given in a
> correct format? If not, how should it look like? Or is there any other
> error?
>
> Thanks for your help
>
> Regards
> Andreas
> _______________________________________________
> daisy community mailing list
> Professional Daisy support:
> http://outerthought.org/site/services/daisy/daisysupport.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
>
--
Marc Portier http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at http://blogs.cocoondev.org/mpo/
mpo at outerthought.org mpo at apache.org
More information about the daisy
mailing list