Getting com.sun.xml.internal.ws.model.RuntimeModelerException - java

I am having one java application through which I am consuming one web service.
But surprising thing is that on a local machine I am able to consume that web service but same code does not work with our UAT machines and throws error
Error :runtime modeler error: Wrapper class com.iwave.operations.jaxws.IncidentGet is not found. Have you run APT to generate them?
I really have no idea why it is happening.
It is working fine on some of the machines, but on few machines it is thrwoing the above error.
So any idea?
I am using jdk6u17.

Related

Getting 404 error while trying to call a service

I am facing a weird issue in my project.
After a deployment of a particular service (myServices) in a remote server I am trying to open http://serverIp:port/myServices/ and I am getting 404.
Also, I tried to open a sample html (test.html) directly by hitting http://serverIp:port/myServices/test.html and then also I got same error. The location
of test.html is webapps\myServices\test.html.
I verified that the service is running in the correct port. In fact, while I am trying to hit that service from our application its working fine.
I am facing issue only if I try to hit that service direclty.
Please help me resolving this issue.
We are using Tomcat 8 and Java 1.8
Thanks.
The service(or the application) may not be bound to the public ip, it may just be bound to localhost and hence if the other application is also running on the same machine - it will not have any issues in calling the service.

Connecting ServerEndpoint to running program

Problem: I have a Java program running on a Raspberry Pi accessing the camera that I would like to put in an HTML5 format instead of needing client software to communicate with the server, which is the current solution. The camera program needs to run regardless of whether someone is accessing the server or not.
Setup:
The method of choice to send data between the host and client is Websockets using a Payara JavaEE server. Eventually, Payara Micro will be used on the R Pi.
Camera program is debugged and works great
ServerEndpoint java program works and can be debugged / deployed
Camera and ServerEndpoint programs are in the same WAR file and deployed, however only the ServerEndpoint debuggable when deployed and accessed via a browser.
Question:
How the heck do I run the camera program and the server program and have the 2 communicate? None of the examples show how to run a class with a Main function and a ServerEndpoint.
Is there a better way to do this than how things are setup now?
Gripe: there are so many web frameworks and project names and lingo in the Java server space, is there succinct summary of it all? Servlets vs. websockets vs. HttpRequest oh my!
Well, after a few days I finally found the answer. Basically, one needs to create an EAR file that is composed of the WAR project and an Enterprise Java Bean project (EJB).
The EAR project is an Enterprise Application project. All of this falls under Java EE.
This tutorial seemed the most comprehensive:
https://www.tutorialspoint.com/ejb/index.htm

Why does POST request not work outside of Eclipse

I am running a springboot application and I ran it two ways:
1) running the spring boot app within eclipse run as -> application and selecting the Application.java for the spring boot app and running it in Eclipse itself. All the POST requests I am sending to it work perfectly fine.
2) compile the spring boot into a jar and then run it as java -jar <>.jar. The application starts fine but only SOME of the POST requests work this time.
Is there a reason why this could be happening? I am not sending the requests differently in either case. In the second case, I am getting a 500 error
OK I figured out the issue, I have an angular frontend where I am passing in Typescript objects back to the server which Spring then automatically maps to POJOs. For some reason, this mapping was working when I ran the application in Eclipse as an Eclipse application, but not when I ran the packaged JAR as a standalone server.
This is the reason behind the error, but if anyone can shed light on WHY this difference in mapping exists, it would make this less painful.

Running bat file for java web application as Windows Service giving error

I have a heavy java web application that has a module which needs to be run as soon as computer starts and 24X7. That module has a bat file to execute which fetches data from server.
I want to run that bat file as a windows service on my system (OS: Windows 7)
I created service with sc create command which successfully created. But when I try to start it, it always give error 1053 i.e. can't start service ; service does not respond correctly or in timely manner.
I followed all the related threads on stack overflow and others as well but no luck.For eg., I set servicesPipeTimeout also but it doesn't work.
Is there a way in java itself to create windows service?
I do not want to use any third party like wrapper, NSSM etc or Time Scheduler either.
Please provide me some clues if anybody faced this error and get it resolved.
Thanks in advance.The time you give means a lot to me. Thanks a lot
What you are trying will not work. While SC will not tell you otherwise, it should only be used to install a binary executable that is already a "true" windows service. Because the batch file does not implement the windows services interface, it fails with error 1053 ("The service did not respond to the start or control request in timely fashion") when you try to start the service.
To start your batch file as a service, use a "service wrapper" -- an executable that implements the windows services interface and can launch your batch file when you start the service. Microsoft's SRVANY is free and basic, but there are also commercial applications more suitable for a professional environment.

Java Run Time Critical Error

I'm having run time error,
when i running java app on my web site,
I'm using applet for make my Java App be available on the Web Page and everything seems to be right:
I tried a lot of things but error still there
When i load an app i got the following message on the Java console:
--> Critical Error: This client key (#***-***-****) expired on 12/2012.
What changes of my web application can influence my Java App,
Any idea why it happening?

Categories

Resources