Galera, tenho o tomcat 6 e instalei o AXIS 1.4
Esse é o retorno do Validation
Axis Happiness Page
Examining webapp configuration
[code]Language: [en] [ja]
Needed Components
Found SAAJ API ( javax.xml.soap.SOAPMessage ) at C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\saaj.jar
Found JAX-RPC API ( javax.xml.rpc.Service ) at C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\jaxrpc.jar
Found Apache-Axis ( org.apache.axis.transport.http.AxisServlet ) at C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\axis.jar
Found Jakarta-Commons Discovery ( org.apache.commons.discovery.Resource ) at C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar
Found Jakarta-Commons Logging ( org.apache.commons.logging.Log ) at C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar
Found Log4j ( org.apache.log4j.Layout ) at C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar
Found IBM’s WSDL4Java ( com.ibm.wsdl.factory.WSDLFactoryImpl ) at C:\Program Files\Apache Software Foundation\Tomcat 6.0\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 C:\Program Files\Apache Software Foundation\Tomcat 6.0\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/
Found Java Secure Socket Extension ( javax.net.ssl.SSLSocketFactory ) at an unknown location
The core axis libraries are present.2 wanted optional axis librar(ies) are missing[/code]
Depois criei uma classe com o nome Servico.jws
public class Servico {
public int soma(int valor1, int valor2) {
return valor1 + valor2;
}
}
Mas quando eu tento dar o comando: http://localhost:8080/axis/Servico.jws?wsdl, recebo a seguinte mensagem:
[code]AXIS error
Sorry, something seems to have gone wrong… here are the details:
Fault - Error while compiling: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses\Servico.java
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.compileError
faultSubcode:
faultString: Error while compiling: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses\Servico.java
faultActor:
faultNode:
faultDetail:
{}Errors:Error compiling C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses\Servico.java:
Line 0, column 0: could not parse error message: error: Invalid class file format in C:\Program Files\Java\jre1.5.0_15\lib\rt.jar(java/lang/Object.class). The major.minor version ‘49.0’ is too recent for this tool to understand.
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses\Servico.java:1: Superclass java.lang.Object of class Servico not found.
public class Servico {[/code]
Alguma dica ???