Start tomcat9 on eclipse

Hi ill try to start my tomcat 9 by eclipse and i get this error. I look the mesaghe and say somthing about catalina.jar but i dont see any error there. Anyona nows how fix this?? Thax and regards. java.util.concurrent.ExecutionException: org...
more »

2017-09-03 16:09 (0) Answers

Handle "multipart/related" in java servlet

A Servlet, running under Jetty 8, receives the following request: Header: Content-Type = multipart/related; boundary=example Data: --example content-type: text/xml; charset=UTF-8 data1here --example content-type: text/xml; charset=UTF-8 data2he...
more »

2017-09-03 13:09 (2) Answers

use @WebServlet annotation in maven jetty plugin

I build an web application in my ecplise with maven plugin I want debug it in jetty. this is my code: @WebServlet(name="Startup",value="/", urlPatterns = {}, loadOnStartup = 1) public class Startup extends HttpServlet { private static final lon...
more »

2017-06-25 18:06 (0) Answers

Eclipse: jsp:include action with servlet

Well, here again strucked on a suppoused no problem. I have a simple servlet "" that prints a string (Dynamic Web Project name is "JspCallingServlet" and its context root is "/") DynamicWebProject Explorer import; i...
more »

2017-04-18 12:04 (1) Answers

Integrated to Jenkins

Login Screen of the application takes the user to the config screen where the user has to enter three fields for host,port & resources which will be saved in the server code i.e SVN.This is integrated to Jenkins. ...
more »

2017-04-05 08:04 (0) Answers

How to pass byte data from C# to Servlet in Java

I am trying to pass byte data from C# to java servlet . The code is as follows : byte[] data = futronicApp.getFingerVerificationData(name,SampleModel); String passingData = "cust_no=" + name + "&serial=" + serial + "&temp=" + data; jsonpar...
more »

2017-04-02 06:04 (2) Answers

Strange message with servlets

I am using eclipse with tomcat here is my servlet ,the problem is when I click the button called GetStared it redirects me to empty html page with the text "surved at :myproject123" . myproject123 is the name of my project in the eclipse IDE. @WebSe...
more »

2017-03-14 21:03 (1) Answers

Are jackson web servlets thread safe?

I am wondering how, in concept, the web requests different from threads that I can create in application itself? Do they suffer from same problems as threads do (locking, have to make state-objects thread - safe) Are various HTTPRequests in any jav...
more »

2017-03-10 20:03 (2) Answers

Calling servlet from GWT test case

I have implemented a test case 'A' in one project and calling a class 'B' in that test case which is located in another project. Internally that class 'B' calls servlet 'C' by creating RequestBuilder object and calling send method on it. That servlet...
more »

2017-03-07 14:03 (0) Answers

Error loading webappClasLoader

My netbeans server side code works perfectly until I recently update my project through tortoise-svn software. Now when i "clean and build" project, it build WAR file perfectly, but when i run my app, it shows me following error. then it will contin...
more »

2017-02-27 16:02 (0) Answers

servlet connection to remote mysql

I am trying to connect my java servlet program in local in eclipse IDE to my remote SQL database which is created in a web hosting. AdminLoginServlet- package dao; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedS...
more »

2017-02-25 16:02 (0) Answers

Is JAX-RS built on top of Servlet API? How?

I've been reading that the JAX-RS is built on top of servlets. Is this literally true, or it just mean that it is a higher level component? If it is, how does that work? Does JAX-RS create a servlet which parses the request and manually initializes @...
more »

2016-12-30 14:12 (3) Answers

Java/Servlet error with calculation class

We've recently started to work with servlets and so far so good. We're able to make most work, yet we encounter an issue when attempting to calculate a price, see below public int retrievePrice(int type, int height, int width) throws Exception{ ...
more »

2016-11-25 12:11 (0) Answers