On Saturday 23 November 2002 09:51 pm, Casper Brands wrote: > Hi all, > > I get exacly the same error as Frank Oling... > > Everything looks fine in the logs when starting the staging enviroment > (execpt for an RMCI error) but when i go to staging/wiab/edit/addCat.jsp it > gives the following error: > > nl.framfab.mmbase.wiab.content.ContentException: can not create 'wiab' > (.....) cause: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 with exeptions it's not the first one you encounter that is the "bad guy" but usualy the last one (in the stack trace) .
anyway to get wiab running with mysql you need to do the following: download the mysql driver from mysql.com (mysql-connector-java-2.0.14) unzip and copy it to wiab/lib/ext/ (make shure servlets.jar is not in lib/ext but in lib) download tomcat if you want tomat jakarta-tomcat-4.1.12 and "play around with xerces and xml-apis" .. very funny rm -rf jakarta-tomcat-4.1.12/common/endorsed/*.jar copy xerces.jar xalan.jar and xml-apis.jar from wiab/lib/ext to jakarta-tomcat-4.1.12/common/endorsed/ download mmbase 1.5.1 cp mmbase/config/default/databases/mysql.xml wiab/config/common/databases/ cp mmbase/config/default/dtd/database_1_0.dtd wiab/config/common/dtd/ create a build.properties in wiab with content rmi.port=1111 staging.database.type=mysql staging.database.url=jdbc:mysql://$$HOST:$$PORT/$$DBM staging.database.driver=com.mysql.jdbc.Driver staging.database.user=superuser staging.database.password=superpasswd staging.database.database=mmbase staging.database.port=3306 staging.database.host=localhost live.database.type=mysql live.database.url=jdbc:mysql://$$HOST:$$PORT/$$DBM live.database.driver=com.mysql.jdbc.Driver live.database.user=superuser live.database.password=superpasswd live.database.database=mmbase live.database.port=3306 live.database.host=localhost plug and pray
