老外的文章,原文url https://ofbiz.dev.java.net/servlets/ProjectForumMessageView?messageID=1055&forumID=281
主题 | Re: Shared libraries with Tomcat |
---|---|
日期 | 2003-8-26 23:40:18 |
主体 | Yes, the Ofbiz Tomcat IS somewhat complex... but it "should" be as simple as deploying each war file ;) Here is what I've done.. and it's running on Tomcat 4.1.18 as well as 4.1.24: (on Linux, MacOSX and Win/2K) Ran the appropriate catalina deploy ant tag... then made sure the following files where there.. (from the $CATALINA_HOME) shared/classes have the following files.. cache.properties cybersource.properties debug.properties entityengine.xml general.properties inventoryalerts.properties jndiservers.xml localdtds.properties payflow.properties payment.properties prodsearch.properties security.properties security.xml serverstats.properties serviceengine.xml taxware.properties tyrexdomain.xml url.properties $CH/shared/lib has the following files: DataVision.jar EdenLib.jar JPublish.jar MinML.jar axis.jar batik.jar bsf.jar bsh.jar cactus.jar carol.jar castor-0.9.3.9.jar clutil.jar commonapp.jar commons-beanutils.jar commons-cli.jar commons-collections.jar commons-dbcp.jar commons-digester.jar commons-discovery.jar commons-fileupload-1.0-dev.jar commons-fileupload.jar commons-httpclient.jar commons-logging.jar commons-pool.jar commons-vfs-providers.jar commons-vfs.jar cvslib.jar dom4j.jar enhydra-jdbc.jar fop.jar freemarker.jar hsqldb.jar itext-0.92.jar jacl.jar jakarta-oro-2.0.6.jar jakarta-poi-1.5.1-final.jar jasperreports-applet.jar jasperreports.jar jaxrpc.jar jcalendar.jar jms_1.0.2a.jar jonas_timer.jar jotm.jar jotm_iiop_stubs.jar jotm_jrmp_stubs.jar js.jar jta_1.0.1.jar junit.jar jython.jar log4j.jar logkit-1.0.jar lucene-1.2.jar mm.mysql-2.0.14-bin.jar monolog.jar objectweb-datasource.jar ofbcore-datafile.jar ofbcore-entity.jar ofbcore-extentity.jar ofbcore-extutil.jar ofbcore-minilang.jar ofbcore-rules.jar ofbcore-service.jar ofbcore-share.jar ofbcore-webapp.jar ofbcore-workflow.jar ots-jts_1.0.jar postgresql.jar remoteExperimentServer.jar saaj.jar sapdbc.jar tyrex-1.0.jar velocity-1.3.jar velocity-dep-1.3.jar weka.jar wsdl4j.jar xalan.jar Obviously, not all are needed. It has been much quicker to just load them up! ;) If you cannot change the default tomcat configuration, then you'll have to load up each webapp/lib.. however, I'm not sure what that will do to the shared functions... Adjusted the server.xml to point to my ofbiz working dir.. Previously, modified the ecommerce deployment descriptor to remove unused tag libs.. but I think Andy has this in CVS now.. Depending on where you grabed the source... You may wish to review the web.xml.. as Tomcat actually relies on it. Modified the entityengine.xml with appropriate dbms configuration info.. Fired it up.... |