Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.txt | 2012-10-07 | 3.7 kB | |
motan-1.0.zip | 2012-10-03 | 589.3 kB | |
releasenotes.txt | 2012-10-03 | 307 Bytes | |
Totals: 3 Items | 593.3 kB | 0 |
Release 1.0 - 24.03.2012 New in release 1.0: Logging with log4cplus - like log4j configurable by file log4cplus.properties Can run as windows service Ported to Linux Project files for Microsoft Visual C++ 2010 Project files for NetBeans 7.01 Memory leak control with nvwa (Windows only) Building for Windows Motan needs Xerces-c 3.1.1 from http://xerces.apache.org/xerces-c/download.cgi and Xalan-c 1.11 from http://svn.apache.org/... Assuming your development path <DEVELOP> (p. e. ~/develop or C:\develop), the recommended directory layout for windows is as follows: <DEVELOP>\libs\windows\log4cplus-1.0.4-rc9 <DEVELOP>\libs\windows\Xerces-C_3_1_1 <DEVELOP>\libs\windows\Xalan-C_1_9_0 <DEVELOP>\motan With VC10, open <DEVELOP>\motan\trunk\projects\win32\vc10\motan.sln In <DEVELOP>\motan\trunk\src\libmotan\logging.h set the desired logging to LOG_LOG4CPLUS. When building Xalan with the VC10 IDE, XalanMsgLib needs the xerces dll. A solution is to copy it from <DEVELOP>\libs\windows\Xerces-C_3_1_1\Build\Win32\VC10\Debug\xerces-c_3_1D.dll resp. <DEVELOP>\libs\windows\Xerces-C_3_1_1\Build\Win32\VC10\Release\xerces-c_3_1.dll to <DEVELOP>\libs\windows\Xalan-C_1_9_0\Build\Win32\VC10\Debug or <DEVELOP>\libs\windows\Xalan-C_1_9_0\Build\Win32\VC10\Release after building Xerces. Before starting VC set the environment variable TESTPATH to a location for the testing, p. e. T:\bin The build process will copy the executables and configuration files to the test path. After building start motan.exe from %TESTPATH% Using a browser navigate to http://localhost:8080/index.html Installing as Windows Service Start 'motan.exe -i' to install the windows service. Change the startup settings from the service console (services.msc). Use 'motan.exe -r' to uninstall the windows service. To run several instances of the service, you need several instances of motan.exe with different names: ...\motan1\motan1.exe ...\motan2\motan2.exe Configure the http adapter for separate ports (motan.xml). Configure the logging for separate files. Building for Linux For Linux, use the version 1.11 of Xalan-c (from the repository http://svn.apache.org/repos/asf/xalan/c/trunk ). The layout for linux goes like this: <DEVELOP>/libs/linux/log4cplus-1.0.4-rc9 <DEVELOP>/libs/linux/Xerces-C_3_1_1 <DEVELOP>/libs/linux/xalan-c-1.11 <DEVELOP>/motan With NetBeans, open ... Without NetBeans, use the <DEVELOP>/.../build.xml with Ant. 28.09.2012 Release 0.9 Motan is a C++ servlet container finally published as open source. For the time being, building for WIN32 with VC++6 is supported, other platforms to follow. Getting started: - Decompress archive under a development directory, p. e. c:\develop - Set system variable TESTPATH to your test directory (p. e. set TESTPATH=C:\TEST). - Install XERCES-C (2.7) and XALAN-C (2.10) under the same directory: c:\develop\xerces-c-src_2_7_0 and c:\develop\Xalan-C_1_10_0 - You will need xerces-c_2_7D.dll and Xalan-C_1_10D.dll in your path or in the test directory - You will need MSVCRTD.DLL and MSVCP60D.DLL in your path or in the test directory - Build project 'demoServlets' with MS Visual C++ 6. This creates %TESTPATH%\webroot and the application %TESTPATH%\webroot\demo - Start %TESTPATH%\motan.exe and point your browser to http://localhost/demo/index.html Test the first servlet: The path 'demo' corresponds to the application directory under your %TESTPATH%\webroot. The demonstration is mapped to the demoServlet according the <servlet-mapping> entry in %TESTPATH%\webroot\demo\web.xml. Author: Walter Frei 14.08.2007