[opencms-dev] OpenCMS Install

Steffen Petter spetter at web.de
Wed Sep 27 13:49:09 CEST 2000



> Hi All,
>
> I'm trying to install the latest OpenCMS version on Linux but I'm getting
> errors when trying to
> initialize the database with the workplace files. I think this might be an
> error with the MySQL
> JDBC driver. The error I get is:
>
> Caught Exception: [CmsException]: 0 Unknown exception
> Detailed Error: NO MESSAGE
> Caught Exception: java.lang.ClassNotFoundException:
org.gjt.mm.mysql.Driver
>
>
>         at java.lang.Throwable.<init>(Throwable.java:96)
>         at java.lang.Exception.<init>(Exception.java:44)
>         at com.opencms.core.CmsException.<init>(CmsException.java:323)
>         at com.opencms.file.CmsRbManager.init(CmsRbManager.java:98)
>         at com.opencms.core.OpenCms.<init>(OpenCms.java:125)
>         at com.opencms.core.CmsShell.init(CmsShell.java:1031)
>         at com.opencms.core.CmsShell.main(CmsShell.java:1104)
>
> I have the path to the mysql jar file in my classpath also
>
> export CLASSPATH=$CLASSPATH:/usr/src/mm.mysql.jdbc-1.2c/mysql_uncomp.jar
>

Hi,

you don't need to setup the mysql jar in the classpath permanently.
try this (only on UNIX/Linux)
1.) Make sure you have this structure: /path/to/opencms -> sevlets ->
ExternalComponents
2.) Within the directory ExternalComponents you create the symbolic links to
your jar packages,
     e.g  ln -s /usr/src/mm.mysql.jdbc-1.2c/mysql_uncomp.jar mysql.jar
     So you only have to change this links if you have another version and
you don't need to change the configuration files (e.g. servlets.properties)
3.) Try the command: (to initialize the database)
java ... -classpath
/path/to/opencms/servlets/ExternalComponents/mysql.jar:/path/to/opencms/serv
lets/ExternalComponents/xerces.jar:/path/to/opencms/servlets/opencms.jar
<classname> <property file> < /path/to/opencms/config/cmssetup.txt
4.) Later you have to setup the repositories for the servlets. Here, you can
also use these paths.

I hope, I could help you!

Steffen.
BTW: Sorry, I can't speak and write English very well but I try it.







More information about the opencms-dev mailing list