jersey webservices post url 403 forbidden error - java

i have issue with restful webservices POST url when i'm calling outside the server through POSTMAN. It works fine locally on windows server through POSTMAN.
I have GET URL's which are working fine remotely and locally.
I tried disabling firewalls on windows server but it does not work.
webservices war file is deployed into Tomcat 7.
Need help to troubleshoot this issue, please advice.

Related

Apache CXF not working with waffle windows authentication framework

We are using waffle for NTLM login in our application. we are able to successfully achieve the windows authentication but with waffle, Apache CXF is not when Service.create method tries to get the WSDL file by hitting URL it gets a 401 error. please us to figure out how can we make cxf workable with waffles.
Your help will be appreciated.
we had already tried jcifs but it not working in our case.

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.

Deploy Maven Project using Eclipse and Tomcat

I developed a very simple web service using eclipse for edit the code and tomcat 8.5 for deploy the web service. The Name of maven project is PruebaMaven and I can deploy that with success getting the classic hello world.
My problem is that when I want to access an a method associate to localhost:8080/PruebaMaven/Services/Login/Validate, the tomcat response is HTTP 404 - Not found
The method that I want to access is a POST type, so I'm expecting that the response of the tomcat server be a HTTP 405.
I dont know if my thinking is correct or im wrong and the response of tomcat is apropiate. In the case that my thinking is correct, somebody know where is my issue?

How to automatically use Windows credential of the server in a java web application

I want to read the contents of a sharepoint website, however since this requires login credentials I receive a HTTP Unauthorized 401 error. My set up is basically a Tomcat server running on an Windows machine, and what I want is to deploy a servlet on the Tomcat server. This servlet when receives a request should use the credentials of the server Windows machine and parse the sharepoint website.
Could anyone point me to an example in order to achieve this?

apache ReverseProxy configuration (apache web server url is changed to jboss server's url)

I have configured apache web server with jboss and integrated using mod_jk, now the problem is when i hit the url of webserver http://webserv.my.project.com:8080/index.html, after login to the application the url is automatically changed to appserver that is http://appserv.my.project.com:8080/login.jsp,
problem: url is changed to application server
expected: url should be same as webserver throughout the session
I got the solution for the problem, I need to configure ReverseProxy at apache web server side. i followed below links to resolve the issue
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
http://www.apachetutor.org/admin/reverseproxies

Categories

Resources