Professional Documents
Culture Documents
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: ----------------------------------------------------------------------------------------------------------
Needed Components
Optional Components
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
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
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. ----------------------------------------------------------------------------------------------------------
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"/>