To configure iASP with Tomcat, follow the instructions below:
- Create a context path for iASP in <tomcat_home>/conf/server.xml.
Between the server.xml <ContextManager>
... </ContextManager> block, add (replace iasp_home with
the path to your copy of iASP):
<Context path="/iasp"
docBase=<iasp_home>
debug="0"
reloadable="true" >
</Context>
- Create a directory named WEB-INF under <iasp_home>,
and a file named web.xml under <iasp_home>/WEB-INF/.
Web..xml should contain the following context:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>
Dispatcher.DispatcherServlet
</servlet-name>
<servlet-class>
Dispatcher.DispatcherServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
Dispatcher.DispatcherServlet
</servlet-name>
<url-pattern>
*.asp
</url-pattern>
</servlet-mapping>
</web-app>
- Add all iASP jar files to the Tomcat system environment. For example:
setenv CLASSPATH <iasp_home>/lib/iasplib.jar:<iasp_home>/lib/asp2j.jar
...(on UNIX)
set classpath=<iasp_home>/lib/iasplib.jar;<iasp_home>/lib/asp2j.jar
... (on windows)
- Restart Tomcat server and run iASP samples at http://<hostname>:<port>/iasp/
If you encounter any problems or errors, please contact support@halcyonsoft.com
|