Hello, i am trying to send a request to a servlet using HttpURLConnection
the request and JAXB part are perfectly sent, But my servlet do not react.
This is my XML without a <welcome-file>
On my Servlet i am just putting a System.out.println("hello") in the Post part in order to be sure that he receive something, but nothing.
I tried the url in a browser just to be sure that it's correct and it seems to be, because i got my System.out.println on the screeen
I will be thankfull if you help me to resolve this
I already use Servlet for J2EE projects, but this is my fisrt time to try it with a Swing client.
First i lunch tomcat, even Client is sending requests, logs on apache don't change. "seems he receive nothing, but the url is correct because he run perfectly on a browser and my servlet "serv" react well"
i create a package "Servlet" wich contain my servlet "Serv" i agree with you if my naming is not good, but it's just to do some tests
I believe, your servlet works when invoked from a browser but does not when invoked from the client as the client may not be using the HTTP protocol. In your Swing client, please try to set the HTTP protocol for communicating with the servlet.