Axis2/services/listservices Internal Server Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About org.apache.axis2.axisfault: connection has been shutdown Us Learn more about Stack Overflow the company Business Learn more about hiring
Axis2 Internal Server Error
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the axis2 download Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Internal server error axis2 Tomcat
Sun.security.validator.validatorexception: Pkix Path Building Failed
service wsdl up vote 1 down vote favorite I'm getting an Internal server error when try to see the wsdl from a service that I deployed in axis2. Only the sample service of axis works "Version?wsdl". Funny thing is that I'm able to see the xsd from my service, i.e "service?xsd", but not the wsdl. Any ideas? I'm using axis2-1.5.6 and Tomcat 7.0. java web-services tomcat7 unable to find valid certification path to requested target axis2 share|improve this question asked Oct 23 '14 at 15:50 Rodrigo Morbach 306 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote If you are using https, you have to add following to your axis2.xml file
= {Location where you installed Tomcat} Installation1. Download Tomcat 7 2. Download latest Axis2 version 3. Install Tomcat 7 4.
Keytool
Drop Axis2 WAR distribution to $TOMCAT_HOME/webapps. 5. Unzip Axis2 WARdistribution Now start Tomcat server. - Go to $TOMCAT_HOME/bin - Type >sh startup.sh ;tail -f ../logs/catalina.out (Assuming you are in Unix) Try accessing http://localhost:8080/axis2 You should see Axis2 home page. There you will see links to list services, validate installation and to administer installation. Now try to access HTTPS URL -https://localhost:8080/axis2 Oops !! http://stackoverflow.com/questions/26532124/internal-server-error-axis2-tomcat-service-wsdl This will say the secure connection failed. In FireFox you will get an error code "ssl_error_rx_record_too_long". Inherently you cannot have a single port for HTTPS and HTTP. In above we were trying to access HTTPS URL from HTTP port. Server does not have a valid certificate to provide in that URL. Therefore browser truncates the connection, saying "ssl error" So what is http://thejaka-amila.blogspot.com/2012/04/tomcat-axis2-and-https.html the port which HTTPS runs ? This we havent configured yet. Configuring SSL for Tomcat Step 1- Creating self signed certificates and keystores Type following in a command line >keytool -genkey -alias tomcat -keyalg RSA -keystore tomcat.jks -keysize 2048 Answer the questions prompted. Step 2 - Making configuration changes 1. Go to Tomcat configuration directory (E.g :- ~/development/Tools/webservers/apache-tomcat-7.0.23/conf) 2. Open server.xml 3. Uncomment following configurations,
Tomcat by defining a Connector with a key store in the server configuration http://dulanja.blogspot.com/2012/12/why-tomcat-gives-internal-server-error.html (server.xml) file. What is not working is Axis2 in that server. When we try to access a service wsdl using the web browser the Internal Server Error message is displayed. This happens due to axis2 configuration missing the HTTPS transport receiver. Following should be added to Axis2.xml in the Tomcat Axis2 internal server web app.