Hi Java web service experts,
I am working on a web service project. My goal is to create a client java program to consume the vendor web service and deliver a data file. I am at the part where I am able to generate the proxy classes from the vendor wsdl document through JDeveloper. Now I start to work to create the java stand alone client application. My issue is I am not able to debug or run my java program because of this following error. I think it has to do with the imported vendor.xml document in Jdeveloper but I am not sure. Below is the error
The target vendor.xml cannot be started because it is not a runnable
target. The target run cannot be started because it does not exist.
I've researched into this issue but not much information came up after all. I am new to this web service and would appreciated all the help.
Thank you for responding to my question. To answer the question, the vendor.xml document generated by Jdeveloper together with other skeleton classes. I try to compile or run a very simple java client program that I built just to test out if it compiles or run properly and I get that error. It points to the vendor xml document and says that it cannot run or start because it does not exist.
Related
I have some assignments where i have to make a Ajax call to run the server. I used Eclipse and create my local host using Apache tomcat when i start to create a dynamic project an error message comes telling me:
it doesn't allow me to create dynamic project.
if someone here know the answer .It would be great
I followed this tutorial -documentation about Liferay Web service.
I runned Lifaray on tomcat
If I use http://localhost:8080/api/axis/Portal_UserService?wsdl by browser I have a response.
When I create a webService Client on Eclipse and I put this url http://localhost:8080/api/axis/Portal_UserService?wsdl in the Service Definition...
but I have this error message:
No server can be found and WebServiceProject does not exist. Choose an existing project or use the preferences to configure a server runtime.
Why?
create dynamic web project and configure a server then add wsdl .
This does not mean that the server (e.g. Liferay) can't be found but notifies you that Eclipse doesn't know where to put/how to configure the resulting WebService: It needs a server runtime and a WebServiceProject - e.g. you can create a WebServiceClient inside a project - if no suitable project exists, eclipse will complain.
So: Everything is fine on the Liferay side. You'll need infrastructure in your IDE to be able to go forward with this operation
I could not find any solution to this, for some reason Eclipse didn't recognize a valid wsdl. I downloaded a trial version of IntelliJ IDEA 13 Ultimate and setup the Web Service Client through there. Everything worked properly.
I have create one simple web service and I deploy it to the axis2 web application based on this tutorial
After creating my service, I am able to deploy it to the server and I can see the WSDL file by this url: localhost:8084/axis2/services/HelloAxisWorld?wsdl
Now, I want to call this service by an independent java application. I found some pieces of code that makes the invocation, but I am facing problems because I suppose that I don't include the proper libraries in my project.
Does anybody knows an example to call the web service by using axis2?
A simple Google for 'axis2 client tutorial' gives me this. It covers setting up your classpath properly, generating java from the WSDL via wsdl2java, and developing the client from this.
I used SOAPUI to call a web service and generate the axis2 java code. My question is how would I go about compiling and running this application as I get error after error when I try to compile it. There are so many external libraries that I am having to add manually. How would I go about getting my program running.
What error messages are you getting when you are compiling it? Need a lot more info to work it out, i was havign problems with SOAP using JAX-WS and it turned out to be the network configuration.
Are you running locally or remotely?
-ben
I'm in the arduous process of trying to upgrade a couple of our servers to use a current version of the application installed on it and I've gotten a bit stuck. I've gotten everything replaced and have narrowed my issue down to 1 .jar file. If I use the new version of this specific file, I can not get the service to start, and using the old version (and the new version of every other file), it runs fine.
When I try to start the service I get this message: Could not start <service> service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error.
I've looked in the event viewer, and all it has are these entries every time I try to start it:
<Service> has started
Could not find the service start class
<service> has failed to start
Is there some place else that I can look that might be able to give a bit more information on why it's failing to start?
We are using the 'JavaService' utility to create the windows process. This server is also running jboss.
EDIT: I have also determined that it is not an issue with my SQL database as I just did all of the upgrades between the versions. I still can't get it to start with the new .jar, and the old .jar still works.
Thanks!
You can't execute a java application as a service. Windows services implement a specific interface that java.exe or javaw.com do not. You will need a wrapper to implement this functionality. One such wrapper is http://wrapper.tanukisoftware.org.
As Pierre mentioned, you can't run java directly as a Windows service. Apache commons daemon (a.k.a. Procrun) is another tool that will adapt a java application for use as a Windows service.
I found the issue!
After days and days of looking around at configuration files, I finally noticed something: We are now using log4j for logging but it wasn't included in the .jar's manifest! I added it to the manifest and it now starts up!
Thanks for your help everyone :]