You are on page 1of 8

Instalacin de Apache Axis

Download axis-bin-1_4.tar.gz de la pgina de Axis. Copia de la carpeta axis desde axis-1_4\webapps\axis en las webapps de tomcat5 de apolo. La Axis Happiness Page: http://apolo.rp.ec.gba.gov.ar:8080/axis/happyaxis.jsp me indica que falta la componente opcional XML Security API. Download xmlsec-1.2.97.jar de la pgina de Apache XML Security http://xml.apache.org/security/dist/java-library/old/ Copia de xmlsec-1.2.97.jar a webapps/axis/WEB-INF/ (tal vez habra que copiarla en tomcat5/common/lib, pero no lo tom sin reiniciar tomcat) Restart de la webapp axis La Axis Happiness Page: http://apolo.rp.ec.gba.gov.ar:8080/axis/happyaxis.jsp me indica que est todo OK. Axis Happiness Page: ----------------------------------------------------------------------------------------------------------

Axis Happiness Page


Examining webapp configuration
Language: [en] [ja]

Needed Components

Found SAAJ API ( javax.xml.soap.SOAPMessage ) at /web/jakarta-tomcat5.5.9/webapps/axis/WEB-INF/lib/saaj.jar

Found JAX-RPC API ( javax.xml.rpc.Service ) at /web/jakarta-tomcat5.5.9/webapps/axis/WEB-INF/lib/jaxrpc.jar

Found Apache-Axis ( org.apache.axis.transport.http.AxisServlet ) at /web/jakartatomcat-5.5.9/webapps/axis/WEB-INF/lib/axis.jar

Found Jakarta-Commons Discovery ( org.apache.commons.discovery.Resource ) at /web/jakarta-tomcat-5.5.9/webapps/axis/WEB-INF/lib/commons-discovery0.2.jar

Found Jakarta-Commons Logging ( org.apache.commons.logging.Log ) at /web/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar

Found Log4j ( org.apache.log4j.Layout ) at /web/jakarta-tomcat5.5.9/webapps/axis/WEB-INF/lib/log4j-1.2.8.jar

Found IBM's WSDL4Java ( com.ibm.wsdl.factory.WSDLFactoryImpl ) at /web/jakarta-tomcat-5.5.9/webapps/axis/WEB-INF/lib/wsdl4j-1.5.1.jar

Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location

Found Activation API ( javax.activation.DataHandler ) at /web/jakarta-tomcat5.5.9/common/lib/activation.jar

Optional Components

Found Mail API ( javax.mail.internet.MimeMessage ) at /web/jakarta-tomcat5.5.9/common/lib/mail.jar

Found XML Security API ( org.apache.xml.security.Init ) at /web/jakarta-tomcat5.5.9/webapps/axis/WEB-INF/lib/xmlsec-1.2.97.jar

Found Java Secure Socket Extension ( javax.net.ssl.SSLSocketFactory ) at an unknown location

The core axis libraries are present.The optional components are present.
Note: Even if everything this page probes for is present, there is no guarantee your web service will work, because there are many configuration options that we do not check for. These tests are necessary but not sufficient

Examining Application Server


Servlet version 2.4

XML Parser XML ParserLocation

org.apache.xerces.jaxp.SAXParserImpl an unknown location

Examining System Properties


com.sun.management.jmxremote.authenticate=false java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition java.protocol.handler.pkgs=org.apache.axis.transport| sun.boot.library.path=/usr/jdk/instances/jdk1.5.0/jre/lib/sparc java.vm.version=1.5.0_01-b08 entirex.sdk.default.trace.propertiesfile=system properties shared.loader=${catalina.base}/shared/classes,$ {catalina.base}/shared/lib/*.jar java.vm.vendor=Sun Microsystems Inc. java.vendor.url=http://java.sun.com/ path.separator=: java.rmi.server.randomIDs=true java.vm.name=Java HotSpot(TM) Server VM tomcat.util.buf.StringCache.byte.enabled=true file.encoding.pkg=sun.io user.country=AR sun.os.patch.level=unknown com.sun.management.jmxremote.port=9004 java.vm.specification.name=Java Virtual Machine Specification user.dir=/users/usuarios java.runtime.version=1.5.0_01-b08 java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment java.endorsed.dirs=/web/jakarta-tomcat-5.5.9/common/endorsed os.arch=sparc java.io.tmpdir=/web/jakarta-tomcat-5.5.9/temp line.separator= java.vm.specification.vendor=Sun Microsystems Inc. java.util.logging.manager=org.apache.juli.ClassLoaderLogManager java.naming.factory.url.pkgs=org.apache.naming os.name=SunOS sun.jnu.encoding=ISO8859-1 java.library.path=/usr/jdk/instances/jdk1.5.0/jre/lib/sparc/serv er:/usr/jdk/instances/jdk1.5.0/jre/lib/sparc:/usr/jdk/instances/ jdk1.5.0/jre/../lib/sparc:/usr/sag/common/lib::/usr/sag/common/a rg/lib:/usr/sag/common/lib:/usr/sag/common/lib::/usr/lib java.specification.name=Java Platform API Specification java.class.version=49.0 sun.management.compiler=HotSpot Server Compiler os.version=5.10 user.home=/users/usuarios user.timezone=America/Buenos_Aires catalina.useNaming=true java.awt.printerjob=sun.print.PSPrinterJob java.specification.version=1.5 file.encoding=ISO8859-1 catalina.home=/web/jakarta-tomcat-5.5.9 user.name=lp1394 java.class.path=:/web/jakarta-tomcat-5.5.9/webapps/RegProp/WEBINF/Propiedades:/web/jakarta-tomcat-5.5.9/bin:/web/jakartatomcat-5.5.9/bin/bootstrap.jar:/web/jakarta-tomcat5.5.9/bin/commons-logging-api.jar

java.naming.factory.initial=org.apache.naming.java.javaURLContex tFactory package.definition=sun.,java.,org.apache.catalina.,org.apache.co yote.,org.apache.tomcat.,org.apache.jasper. java.vm.specification.version=1.0 sun.arch.data.model=32 java.home=/usr/jdk/instances/jdk1.5.0/jre org.xmldb.common.xml.queries.XPathQueryFactory=org.xmldb.common. xml.queries.xalan2.XPathQueryFactoryImpl java.specification.vendor=Sun Microsystems Inc. user.language=es java.vm.info=mixed mode com.sun.management.jmxremote.ssl=false java.version=1.5.0_01 java.ext.dirs=/usr/jdk/instances/jdk1.5.0/jre/lib/ext sun.boot.class.path=/web/jakarta-tomcat5.5.9/common/endorsed/commons-collections-3.1.jar:/web/jakartatomcat-5.5.9/common/endorsed/xml-apis.jar:/web/jakarta-tomcat5.5.9/common/endorsed/resolver.jar:/web/jakarta-tomcat5.5.9/common/endorsed/xalan.jar:/web/jakarta-tomcat5.5.9/common/endorsed/xercesImpl.jar:/usr/jdk/instances/jdk1.5.0 /jre/lib/rt.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/i18n.jar:/us r/jdk/instances/jdk1.5.0/jre/lib/sunrsasign.jar:/usr/jdk/instanc es/jdk1.5.0/jre/lib/jsse.jar:/usr/jdk/instances/jdk1.5.0/jre/lib /jce.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/charsets.jar:/usr/j dk/instances/jdk1.5.0/jre/classes java.vendor=Sun Microsystems Inc. server.loader=${catalina.home}/server/classes,$ {catalina.home}/server/lib/*.jar java.security.auth.login.config=/web/jakarta-tomcat5.5.9/conf/jaas.conf catalina.base=/web/jakarta-tomcat-5.5.9 file.separator=/ java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi common.loader=${catalina.home}/common/classes,$ {catalina.home}/common/i18n/*.jar,$ {catalina.home}/common/endorsed/*.jar,$ {catalina.home}/common/lib/*.jar sun.cpu.endian=big sun.io.unicode.encoding=UnicodeBig package.access=sun.,org.apache.catalina.,org.apache.coyote.,org. apache.tomcat.,org.apache.jasper.,sun.beans. sun.cpu.isalist=sparcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis2 sparcv8plus+vis sparcv8plus sparcv8 sparcv8fsmuld sparcv7 sparc

Platform: Apache Tomcat/5.5.9 ---------------------------------------------------------------------------------------------------------La pgina inicial de Axis http://apolo.rp.ec.gba.gov.ar:8080/axis/:

Apache-AXIS
Language: [en] [ja] Hello! Welcome to Apache-Axis. What do you want to do today?

Validation - Validate the local installation's configuration see below if this does not work. List - View the list of deployed Web services Call - Call a local endpoint that list's the caller's http headers (or see its WSDL). Visit - Visit the Apache-Axis Home Page Administer Axis - [disabled by default for security reasons] SOAPMonitor - [disabled by default for security reasons]

To enable the disabled features, uncomment the appropriate declarations in WEBINF/web.xml in the webapplication and restart it.

Validating Axis
If the "happyaxis" validation page displays an exception instead of a status page, the likely cause is that you have multiple XML parsers in your classpath. Clean up your classpath by eliminating extraneous parsers. If you have problems getting Axis to work, consult the Axis Wiki and then try the Axis user mailing list. Habilito la Administracin de Axis descomentando la declaracin del AdminServlet en el web.xml de /axis:
---------------------------------------------------------------------<!-- uncomment this if you want the admin servlet --> <!-<servlet-mapping> <servlet-name>AdminServlet</servlet-name> <url-pattern>/servlet/AdminServlet</url-pattern> </servlet-mapping> --> ---------------------------------------------------------------------Y habilitando la administracin remota (sacado de la Axis Users Guide): ----------------------------------------------------------------------

Remote Administration
Note that by default, the Axis server is configured to only accept administration requests from the machine on which it resides - if you wish to enable remote administration, you must set the "enableRemoteAdmin" property of the AdminService to true. To do this, find the "server-config.wsdd" file in your webapp's WEB-INF directory. In it, you'll see a deployment for the AdminService. Add an option as follows:
<service name="AdminService" provider="java:MSG"> <parameter name="className" value="org.apache.axis.util.Admin"/> <parameter name="allowedMethods" value="*"/> <parameter name="enableRemoteAdmin" value="true"/> </service>

----------------------------------------------------------------------------------------------------------

No tengo este archivo server-config.wsdd. Lo trato de generar. En los pasos de instalacin, parece ser que primero tengo que instalar el servicio AdminService lo cual se hace con el programa AdminClient. ----------------------------------------------------------------------------------------------------------

Run the admin client


Execute the following command from the samples/stock directory. If you are not in this directory you will get a "java.io.FileNotFoundException: deploy.wsdd (The system cannot find the file specified)" exception. On Windows On UNIX

java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd

If you get some java client error (like ClassNotFoundException), then you haven't set up your AXISCLASSPATH (or CLASSPATH) variable right, mistyped the classname, or did some other standard error. Tracking down such problems are foundational Java development skills--if you don't know how to do these things, learn them now! Note: You may need to replace localhost with your host name, and 8080 with the port number used by your web server. If you have renamed the web application to something other than "axis" change the URL appropriately. If you get some AxisFault listing, then the client is working, but the deployment was unsuccessful. This is where the knowledge of the sockets API to TCP and the basics of the HTTP that Web Service development requires begins to be needed. If you got some socket error like connection refused, the computer at the far end isn't talking to you, so find the cause of that and fix it. If you get an HTTP error code back find out what the error means and correct the problem. These skills are fundamental to using web services. The user's guide covers the AdminClient in more detail, and there is also an Ant task to automate the use of Axis in your Ant build scripts. --------------------------------------------------------------------------------------------------------root@zone-apolo-S10:/web/jakarta-tomcat-5.5.9/webapps/axis/WEB-INF/lib > java -c p axis.jar:commons-discovery-0.2.jar:commons-logging-1.0.4.jar:jaxrpc.jar:log4j1.2.8.jar:saaj.jar:wsdl4j-1.5.1.jar org.apache.axis.client.AdminClient -lhttp:// localhost:8080/axis/services/AdminService deploy.wsdd log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR esourceBundle). log4j:WARN Please initialize the log4j system properly. Processing file deploy.wsdd <Admin>Done processing</Admin>

Me gener el server-config.wsdd en el cual cambio <parameter name="enableRemoteAdmin" value="false"/> por <parameter name="enableRemoteAdmin" value="true"/>

Error: Instal Apache AXIS1

Instalacin Apache AXIS2


Download axis2-1.4.1-war.zip desde http://ws.apache.org/axis2/index.html Copiar axis2-1.4.1.war en tomcat5/webapps

You might also like