You should be doing the following to run initialize.sh: cd dist/multiprocess-zk-example-proprietary ./initialize.sh
The class path is pulled in from options.env.unix, which should include your jar: >>>>>> C:\wip\mcf\trunk\dist\multiprocess-zk-example-proprietary>more options.env.unix -Xms512m -Xmx512m -Dorg.apache.manifoldcf.configfile=./properties.xml -cp .:../lib/mcf-core.jar:../lib/mcf-agents.jar:../lib/mcf-pull-agent.jar:../lib/hsqldb-2.3.2.jar:../lib/postgresql-42.1.3.jar:../lib/commons-codec-1.10.jar:../lib/commons-collections-3.2.1.jar:../lib/commons-collections4-4.1.jar:../lib/commons-discovery-0.5.jar:../lib/commons-el-1.0.jar:../lib/commons-exec-1.3.jar:../lib/commons-fileupload-1.3.3.jar:../lib/commons-io-2.5.jar:../lib/commons-lang-2.6.jar:../lib/commons-lang3-3.6.jar:../lib/commons-logging-1.2.jar:../lib/ecj-4.3.1.jar:../lib/gson-2.8.0.jar:../lib/guava-25.1-jre.jar:../lib/httpclient-4.5.6.jar:../lib/httpcore-4.4.10.jar:../lib/jasper-6.0.35.jar:../lib/jasper-el-6.0.35.jar:../lib/javax.servlet-api-3.1.0.jar:../lib/jna-4.3.0.jar:../lib/jna-platform-4.3.0.jar:../lib/json-simple-1.1.1.jar:../lib/jsp-api-2.1-glassfish-2.1.v20091210.jar:../lib/juli-6.0.35.jar:../lib/log4j-1.2-api-2.4.1.jar:../lib/log4j-api-2.4.1.jar:../lib/log4j-core-2.4.1.jar:../lib/mail-1.4.5.jar:../lib/serializer-2.7.1.jar:../lib/slf4j-api-1.7.25.jar:../lib/slf4j-simple-1.7.25.jar:../lib/velocity-1.7.jar:../lib/xalan-2.7.1.jar:../lib/xercesImpl-2.10.0.jar:../lib/xml-apis-1.4.01.jar:../lib/zookeeper-3.4.10.jar:../lib-proprietary/jtds-1.2.4.jar:../lib-proprietary/mariadb-java-client-1.1.7.jar:../lib-proprietary/mysql-connector-java-5.1.33.jar: <<<<<< If it does not include your jar, it's because you did not rebuild after you placed the jar in the appropriate place. Karl On Wed, Feb 20, 2019 at 10:58 AM Karl Wright <[email protected]> wrote: > The question is: how are you *starting* the processes? and what process > are you seeing the error from? You should *not* need to make any changes > to the configuration if you put the jar file in place before building. > > Karl > > > On Wed, Feb 20, 2019 at 9:47 AM Bisonti Mario <[email protected]> > wrote: > >> Thanks, Karl but I didn’t download manually the .jar files. >> >> >> >> I compiled MCF 2.12 and I found the jar in the lib-proprietary folder. >> >> >> >> I added in properties.xml the : >> >> >> >> <libdir path="../lib-proprietary"/> >> >> >> >> I tried to : >> >> initialize.sh the db but I have the same error. >> >> >> >> >> >> >> >> >> >> *Da:* Karl Wright <[email protected]> >> *Inviato:* mercoledì 20 febbraio 2019 15:15 >> *A:* [email protected] >> *Oggetto:* Re: Threw exception: 'Driver class not found: >> net.sourceforge.jtds.jdbc.Driver' >> >> >> >> Hi Mario, >> >> >> >> You can't just plop down a jar in a directory and have this work, because >> ManifoldCF requires all JDBC drivers to be in the root classpath. They are >> therefore built into the classpath, which should happen if you use the >> startup scripts. Please review the "how-to-build-and-deploy" page. >> >> >> >> Karl >> >> >> >> >> >> On Wed, Feb 20, 2019 at 9:09 AM Bisonti Mario <[email protected]> >> wrote: >> >> >> >> Hallo, I would like to use MSSQL as repository. >> >> >> >> I use /opt/manifoldcf/multiprocess-zk-example-proprietary/ so I added in >> properties.xml >> >> . >> >> . >> >> <libdir path="../lib-proprietary"/> >> >> . >> >> >> >> My MCF 2.12 was compiled by me. >> >> In the folder: >> /opt/manifoldcf/lib-proprietary I ave the files: >> >> jtds-1.2.4.jar >> >> mariadb-java-client-1.1.7.jar >> >> mysql-connector-java-5.1.33.jar >> >> jtds-1.2.4.jar >> >> >> >> My tomcat startup script points to: >> >> Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC >> -Dorg.apache.manifoldcf.configfile=/opt/manifoldcf/multiprocess-zk-example-proprietary/properties.xml' >> >> >> >> I restarted all, but when I try to use a MSSQL repository I obtain: >> >> Threw exception: 'Driver class not found: >> net.sourceforge.jtds.jdbc.Driver' >> >> >> >> What could I check? >> >> Thanks a lot >> >> >> >> Mario >> >> >> >>
