Hi list,

I am trying to get started with axis, and have tomcat running on my setup. I copied axis from xml-axis/webapp/ to my webapps folder, happyaxis.jsp says all the needed components were found. I have pasted the rest of the mesage at the bottom.

The problem is when I copy Calculator.java as jws in my webapp/axis/ folder and try to access http://localhost:8080/axis/Calculator.jws as described in http://ws.apache.org/axis/java/install.html, I am getting a "No service is available at this URL".

Please let me know if there is some installation I missed.

Also I have used wsdl2java to generate the java files and compiled them successfully, please tell me what is the preferred place for putting them so that it is available to axis. Also what should be the service location URL I should be using in WSDL so that axis can map them to my classes, I tried with Namespace HWService and http://localhost:8080/axis/services/HWService, but I am again getting the same "No service is available at this URL".

thanks in advance,


happyaxis.jsp output:

Examining webapp configuration

Needed Components

Found SAAJ API (javax.xml.soap.SOAPMessage) at /opt/jakarta-tomcat-5.5.9/webapps/axis/WEB-INF/lib/saaj.jar
Found JAX-RPC API (javax.xml.rpc.Service) at /opt/jakarta-tomcat-5.5.9/webapps/axis/WEB-INF/lib/jaxrpc.jar
Found Apache-Axis (org.apache.axis.transport.http.AxisServlet) at /opt/jakarta-tomcat-5.5.9/webapps/axis/WEB-INF/lib/axis.jar
Found Jakarta-Commons Discovery (org.apache.commons.discovery.Resource) at /opt/jakarta-tomcat-5.5.9/webapps/axis/WEB-INF/lib/commons-discovery.jar
Found Jakarta-Commons Logging (org.apache.commons.logging.Log) at /opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar
Found IBM's WSDL4Java (com.ibm.wsdl.factory.WSDLFactoryImpl) at /opt/jakarta-tomcat-5.5.9/webapps/axis/WEB-INF/lib/wsdl4j.jar
Found JAXP implementation (javax.xml.parsers.SAXParserFactory)
Found Activation API (javax.activation.DataHandler) at /opt/jakarta-tomcat-5.5.9/common/lib/activation.jar

Optional Components

Warning: could not find class javax.mail.internet.MimeMessage from file mail.jar
Attachments will not work
See http://java.sun.com/products/javamail/

Warning: could not find class org.apache.xml.security.Init from file xmlsec.jar
XML Security is not supported
See http://xml.apache.org/security/

The core axis libraries are present. 2 optional axis libraries are missing

Note: On Tomcat 4.x, you may need to put libraries that contain java.* or javax.* packages into CATALINA_HOME/commons/lib

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 version2.4
XML Parsercom.sun.org.apache.xerces.internal.jaxp.SAXParserImpl

Examining System Properties

java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path=/usr/java/jdk1.5.0/jre/lib/i386
java.vm.version=1.5.0-b64
shared.loader=${catalina.base}/shared/classes,${catalina.base }/shared/lib/*.jar
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url="">path.separator=:
java.vm.name=Java HotSpot(TM) Client VM
tomcat.util.buf.StringCache.byte.enabled=true
file.encoding.pkg=sun.io
user.country=US
sun.os.patch.level=unknown
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/opt/jakarta-tomcat-5.5.9/bin
java.runtime.version=1.5.0-b64
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.endorsed.dirs=/opt/jakarta-tomcat-5.5.9/common/endorsed
os.arch=i386
java.io.tmpdir=/opt/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=Linux
sun.jnu.encoding=UTF-8
java.library.path=/usr/java/jdk1.5.0/jre/lib/i386/client:/usr/java/jdk1.5.0/jre/lib/i386:/usr/java/jdk1.5.0/jre/../lib/i386
java.specification.name=Java Platform API Specification
java.class.version=49.0
sun.management.compiler=HotSpot Client Compiler
os.version=2.6.9-1.667
user.home=/home/amitu
user.timezone=Asia/Calcutta
catalina.useNaming=true
java.awt.printerjob=sun.print.PSPrinterJob
java.specification.version=1.5
file.encoding=UTF-8
catalina.home=/opt/jakarta-tomcat-5.5.9
user.name=amitu
java.class.path=:/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
java.vm.specification.version=1.0
sun.arch.data.model=32
java.home=/usr/java/jdk1.5.0/jre
java.specification.vendor=Sun Microsystems Inc.
user.language=en
java.vm.info=mixed mode, sharing
java.version=1.5.0
java.ext.dirs=/usr/java/jdk1.5.0/jre/lib/ext
sun.boot.class.path=/usr/java/jdk1.5.0/jre/lib/rt.jar:/usr/java/jdk1.5.0/jre/lib/i18n.jar:/usr/java/jdk1.5.0/jre/lib/sunrsasign.jar:/usr/java/jdk1.5.0/jre/lib/jsse.jar:/usr/java/jdk1.5.0/jre/lib/jce.jar:/usr/java/jdk1.5.0/jre/lib/charsets.jar:/usr/java/jdk1.5.0/jre/classes
java.vendor=Sun Microsystems Inc.
server.loader=${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar
catalina.base=/opt/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=little
sun.io.unicode.encoding=UnicodeLittle
package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
sun.cpu.isalist=


Platform: Apache Tomcat/5.5.9

--
Amit Upadhyay
Blog: http://www.rootshell.be/~upadhyay
+91-9820-859-701


Reply via email to