Error Generating Artifacts For The Following Wsdl Https
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 Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the 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 Possible causes can be invoking https when the application is not configured for security up vote 4 down vote favorite I create web service @WebService(serviceName = "DynamipsService2") @Stateless() public class DynamipsService2 { @WebMethod(operationName = "StartSession") public static String StartSession(@WebParam(name = "key") String key) { try { return "100-Session started"; } catch (Exception ex) { return null; } } } I want to test but on the page http://localhost:8080/DynamipsService2/DynamipsService2?Tester crash bug Error generating artifacts for the following WSDL http://localhost:8080/DynamipsService2/DynamipsService2?WSDL Possible causes can be invoking https when the application is not configured for security I created other Web services in the same assembly and it works. java web-services share|improve this question asked Jun 25 '11 at 7:03 Mediator 4,5821874138 1)Did you run wsgen to produce required artifacts?2)How do you publish the web service? –Cratylus Jun 25 '11 at 11:59 @user384706, I do noy understand your questions –Mediator Jun 25 '11 at 12:14 add a comment| 6 Answers 6 active oldest votes up vote 1 down vote accepted I had the same problem and the reason apeared in the Server's log. I'm useing Glassfish 3.1 with netBeans 7. And the error I got in the Glassfish output was: INFO: [ERROR] com.sun.tools.javac.Main is not available in the classpath, requires Suns JDK version 5.0 or latter. I googled a bit and it appeared to be because the glassfish server was working with the openjdk that came with ubuntu. If your problem is the same the solution I found was to remove the openjdk jre, like this: sudo apt-get remove openjdk-6-jre sudo apt-get autoremove Hope this is useful. PS: I assigned /usr/lib/jvm/java-6-sun/bin/java in the java tab at the serv
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 Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the 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 Java Web Service in Glassfish with https http://stackoverflow.com/questions/6476401/possible-causes-can-be-invoking-https-when-the-application-is-not-configured-for up vote 0 down vote favorite I'm trying to deploy a web service in Glassfish 3.1 which works with http and https. It works fine in http but when trying in https it says Error generating artifacts for the following WSDL https://*.:8181/UserWebService/UserWebService?WSDL Possible causes can be invoking https when the application is not configured for security The server log says: Invalid request scheme for Endpoint UserWebService. Expected http://stackoverflow.com/questions/11122143/java-web-service-in-glassfish-with-https http . Received https Failed to parse metadata returned from server at .... [ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s): At least one WSDL with at least one service definition needs to be provided. Failed to parse the WSDL. As I said, it works perfectly through http but it fails with https. What is wrong? Should I change anything in my NetBeans project? Thanks! java web-services netbeans https share|improve this question asked Jun 20 '12 at 14:47 Ibai 263419 Is your server configured to support SSL? –Ravi Jun 20 '12 at 15:19 Yes, I followed this tutorial: javadude.wordpress.com/2010/04/06/… and when opening the index page it shows the "lock" correctly. –Ibai Jun 20 '12 at 15:21 Is your WSDL accessible over https ? Also do the service URL contains https ? –Santosh Jun 20 '12 at 15:26 I think it's not accssible, Santosh, it returns a "blank" page. How can I make it accessible? –Ibai Jun 20 '12 at 15:34 1 You can find solution here: stackoverflow.com/questions/8882056/… –Mephysto Jul 25 '12 at 7:20 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote My prob
Speaker BureauLog inRegisterSearchSearchCancelError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this https://community.oracle.com/thread/2534678 page. Please enter a title. You can not post a http://metro.1045641.n5.nabble.com/Error-generating-artifacts-for-the-following-WSDL-td5710087.html blank message. Please type your message and try again. More discussions in Java Technologies for Web Services All PlacesJavaJava EE (Java Enterprise Edition)Java Technologies for Web Services This discussion is archived 2 Replies Latest reply on May 6, 2013 9:09 AM by Ajay error generating Sharma Unable to test https Web service url. Ajay Sharma May 6, 2013 7:23 AM Hi, I deployed a Java web service on Glassfish server. While testing the web service I got two URL. Links: [server]http://AJAYPC:8787/TestWS/TWS?Tester [server]https://AJAYPC:8181/TestWS/TWS?TesterI am able to test web service using first url but when I clicked on url with "https" error generating artifacts I got following error on browser Error generating artifacts for the following WSDL https://AJAYPC:8181/TestWS/TWS?WSDL Possible causes can be invoking https when the application is not configured for securityHow can I test the https URL ? regards, Ajay Sharma I have the same question Show 0 Likes(0) 3144Views Tags: none (add) This content has been marked as final. Show 2 replies 1. Re: Unable to test https Web service url. r035198x May 6, 2013 7:48 AM (in response to Ajay Sharma) Have you configured the application for https? http://docs.oracle.com/cd/E17802_01/webservices/webservices/reference/tutorials/wsit/doc/WSIT_Security5.html Like Show 0 Likes(0) Actions 2. Re: Unable to test https Web service url. Ajay Sharma May 6, 2013 9:09 AM (in response to r035198x) Hi, Thanks You. I added following code in web service class static { //WORKAROUND. TO BE REMOVED. HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() { @Override public boolean verify(String hostname, SSLSession sslSession) { if(hostname.equals("AJAYPC")){ return true; } return false; //throw new UnsupportedOpe
♦ ♦ | Report Content as Inappropriate ♦ ♦ Error generating artifacts for the following WSDL I converted a stand-alone java application into a web service. The deploy on glassfish server is successful. When I test the webservice, I get the following error. Error generating artifacts for the following WSDL http://localhost:8080/Dec/Dec?WSDLPossible causes can be invoking https when the application is not configured for security My java application has 3 classes. @WebService(serviceName = "Dec") @Stateless() public class Dec { int num; .... class Data{ public int []a; public Data(int num) { a= new int[num]; } }; class T{ public double sum; ... }; //operations }; I tried to convert a java application with a single class to a web service and that worked perfectly. Please help me with a way out of this issue. -- [Message sent by forum member 'rathipearl'] View Post: http://forums.java.net/node/892851 forums Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Error generating artifacts for the following WSDL Perhaps working with code that we know works, and then back-tracking to your classes to determine the problem, might help. I'd try blog article #3 and then #11 here: http://www.jroller.com/gmazza/entry/blog_article_index-- [Message sent by forum member 'gmazza'] View Post: http://forums.java.net/node/892851 « Return to Metro - Users | 1 view|%1 views Loading... Free forum by Nabble Edit this page