Everything Java Apache Geospatial Open Source. Hello Shinning Stars!!! Vincent Massol, Raphael Luta, Santiago Gala, Carsten Z.

Wednesday, May 12, 2004

== Axis 1.2 Web Application Installation ==

Before continuing with HowToTutorial we must install and test the Axis web application within Geronimo.

Download the Axis binaries. We are using 1.2 beta

cd $AXIS_HOME/webapps/axis

Create a geronimo-jetty.xml, our's looks like this,


xmlns="http://geronimo.apache.org/xml/ns/web/jetty"
configId="org/apache/axis/webapp"
parentId="org/apache/geronimo/Server"
>
/axis
false


Modify the web.xml so that Jetty is happy. Working version below,


xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
Apache-Axis


org.apache.axis.transport.http.AxisHTTPSessionListener



AxisServlet

org.apache.axis.transport.http.AxisServlet




AdminServlet

org.apache.axis.transport.http.AdminServlet

100



SOAPMonitorService

org.apache.axis.monitor.SOAPMonitorService


SOAPMonitorPort
5001

100



AxisServlet
/servlet/AxisServlet



AxisServlet
*.jws



AxisServlet
/services/*



SOAPMonitorService
/SOAPMonitor







5




wsdl
text/xml




xsd
text/xml



index.html
index.jsp
index.jws




Add the additional jars required by Axis. Our axis/WEB-INF/lib looks like this,

activation.jar
axis-ant.jar
axis.jar
commons-discovery.jar
commons-logging.jar
jaxrpc.jar
log4j-1.2.8.jar
mail.jar
saaj.jar
wsdl4j.jar
xmlsec.jar

Note : See also the tag dependancy for an alternative way of using libraries.

Create a the axis.war

jar -cf ../axis.war *

Deploy the war

cd incubator-geronimo/target

java -jar bin/deployer.jar --install --module axis.war

Start the Geronimo server

java -jar bin/server.jar org/apache/axis/webapp

http://localhost:8080/axis/happyaxis.jsp should report total bliss.

More information is available at the root of the context, http://gisig.com:8080/axis/

No comments:

Blog Archive