I have developed and published a Java web service on Glassfish server using Netbeans. I can test and use the wsdl file properly using my local application. When I deployed the war file on the server (temporarily I am using jelastic.com as my server), I can access the wsdl file using the URL
http://fesdvi.jelastic.servint.net/FESWebService/Diagnose?WSDL
But cannot test the web service using url
http://fesdvi.jelastic.servint.net/FESWebService/Diagnose?Tester
It gives me following error message
Error generating artifacts for the following WSDL (removed http:// as cannot post more than 2 links) fesdvi.jelastic.servint.net/FESWebService/Diagnose?WSDL
Possible causes can be invoking https when the application is not configured for security
PS: I am not using secured http.
Please help me to sort out this problem.
Following is the extract from the server-instance.log
[ERROR] Connection refused
Failed to read the WSDL document: because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not .
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.|#]
wsimport failed|#]
Moreover I am trying to find the wsdl on the server but I am not able to find, I am still exploring the application deployment structure in jelastic..
It looks like the root cause of the issue is wrong endpoints settings,
since you have uploaded your project with local machine settings.
It is possible to see list of all Web Service endpoints at the Admin Console. After you have logged to it, look at tree in the left, find item "Applications" expand it and click on your WebApplication. You will see the table, in action column you will find "View Endpoint" links (They should contain the URL of your environment and correct ports).
Also, I think that the Eclipse plugin from Jelastic (http://docs.jelastic.com/eclipse-plugin-user-manual) will help you to solve this issues.
P.S. If this will not help, you should to contact with your Hosting Provider Support and ask them about the help.
Related
I am new to Azure Functions and I am trying to follow the tutorial https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-java
to create a basic HTTP Trigger Function using Visual Studio code and to deploy the same to Azure.
I have created the function and executed it locally and has deployed the Java HTTP Trigger Function to Azure as well, but while trying to execute the function in Azure I am getting the following error:
Can anyone please help me in resolving the above error.
Thanks & regards,
Preethi H R
We have also tried to reproduced the issue ,But its working fine after following the below steps and configuration.
After Creating java function with http trigger and deployed to Azure checked the following if same or not which you have created in your local with version details.
Including that please check the configuration file if any of the localsettings is missed because when we deploy azure function to azure from local(VS/VSC) need to configure the localsettings manually in the configuration section.
For example:-
Tested successfully via postman in our environment:-
Please refer the below links for the similar issues:-
Similar SO THREAD| The resource you are looking for has been removed, had its name changed, or is temporarily unavailable" Laravel on Azure .
GitHub| Deployment error - Error: The resource you are looking for has been removed, had its name changed .
Got my Glass last week. Working on running the Java version of the Quick Starter Glassware demo. I am having trouble with the OAuth callback. Do I need set this up myself? Or is there source included in the sample somewhere? Please help!
Clarification: I have set up my own project with the Java Quick Starter app's code, deployed it in EC2 and have set up the Client-ID and Client-secret in the Google APIs Console. I set the Redirect URI as http://<my server>/<my-app>/oauth2callback. When I visit the app in the browser, I get a 404 error that /oauth2callback is not found. I also tried setting the Redirect URI to just my app's root, i.e. http://<my server>/<my app>. Strangely, I still get the same error that /oauth2callback is not found.
Additional questions: Can you please clarify what the callback URL needs to be set to? Is the handler code already included in the quick-start-demo app or do I need to provide that code?
I think the problem is that you're not using a URL that actually maps to your server and servlet container. Try hitting the URLs directly from a browser and make sure they show up in your server and servlet container logs.
The callback url needs to be set to the oauth2callback servlet, relative to the path that leads to the server and servlet container. I don't know how you've set these up, so I can only guess, but it sounds like the <my app> portion isn't correct.
The handler code is included as part of the webapp. See the web.xml file to see the path mapping and the servlet object that it maps to. In this case, around line 53, oauth2callback is mapped to the com.google.glassware.AuthServlet class.
Update: See also the answer posted at Java Google glass starter project mapping in AWS EC2
I am trying to write a small Java client for consuming services provided by Microsoft Exchange server through Exchange Web Services (EWS). For experimenting I set up Exchange Online account from here.
Then I configured my Outlook client to use the newly created mail on exchange and outlook's Test Email Auto-Configuration windows I tried to retrieve the link for Services.wsdl for that client:
Then I tried hitting Availability Services url, entered the username and password and it opened following page:
I then tried to hit the url specified on that page for service.wsdl, but it gave Page Not Found error. SO
Q1 where will I get WSDL file, and
Q2 which link should I hit while developing Java client. In my office environment I get WSDL file over configured Exchange server which directly opens WSDL file but am guessing what should be in case of exchange online.
Q1 - The WSDL file can be downloaded from the Exchange server endpoint that you wish to hit. I don't have credentials to try this, but this should work:
https://outlook.office365.com/EWS/Services.wsdl
It's usually in the EWS directory and named Services.wsdl. I just looked at your other screenshots above and inferred the same format.
Q2 - For Office 365 (which you are testing with), Microsoft recommends this approach for manually finding the URL to hit for API calls. (Alternative much more detailed desciption here: How to get services.wsdl for Office 365?)
However building the stubs yourself and finding URLs to invoke is a lot of work that you don't have to do if you use a pre-built Java library such as Microsoft's own EWS Java API or this 3rd party library. They both do basically the same thing, which is to expose Java classes in a Jar that allow you to make calls to any Exchange server. They will also take care of automatically discovering the URL to use, if you wish (it's a feature called Autodiscover).
I'm trying to generate a web service client with the eclipse Web Service Client wizard. However, the wsdl needs http authentication, and haven't found a way to enter the authentication information.
Open the wsdl in a browser and enter the login information when prompted. Once the wsdl opens save it to a file on your hard drive. Use the file with eclipse to generate your code. Then you may have to replace the endpoint value in the java code created because it will contain the location of the file instead of the deployed wsdl. I've had to do it this way a couple of times to get around the authentication piece.
i am having trouble with my web application developed in GWT. the application allows users to upload and download using an upload servlet and a download servlet, the upload servlet was created using the gwtUpload library. the download servlet is using regular HTTPServlet.
when i run the application within eclipse the download servlet works fine, when i deploy it to tomcat, when a user selects to upload a file, the file does not download, when a user selects a link to download a file, this error is returned
type Status report
message /testhibernategilead/downloadServlet
description The requested resource (/testhibernategilead/downloadServlet) is not available.
can anyone explain why this is
The requested resource (/testhibernategilead/downloadServlet) is not available.
This is the same as a 404 Page Not Found. In other words, the URL is wrong, or the requested resource is indeed actually not there where you expect it to be.
If you are certain that the URL is correct, then you need to read the server logs if the server and the servlets started without problems. If a servlet fails during startup, then it will be unavailable that way.
I think this is due to the application's root directory misconfiguration in tomcat.
You can try adding the module base to your URL like this:
String servlet_url = GWT.getModuleBaseURL()+"testhibernategilead/downloadServlet";
Remember: GWT.getModuleBaseURL() puts a "/" at the end of the returned string.