I have application deployed on Tomcat 5.5. on Windows Server 2003 R2. From application we try to connect to webservices hosted on IIS 6.0 on the same machine. Our webservice client is JAX-WS with CXF implementation. Webservices are authorised by NTLM.
We have problem with HTTP authentication. It is authenticated by user under which Tomcat service runs not by the user which is speciefied in HTTP conduit setting in CXF. So the service account overrides setting in application. If we start user Tomcat service the account used for web services, it works.
If Tomcat runs standalone (not as a service), or if it runs on different machine the account from CXF setting is used.
If we configure IIS to Basic authentication account from CXF settings is used.
So the only non working scenario (when service user of Tomcat overrides CXF setting) is Tomcat as service on the same machine as IIS with NTLM authentication. But this is the configuraiton we need to get work.
Please help, it's getting me crazy for 3 days now..
subject: Tomcat as windows service and NTLM autentication against webserviceshosted on IIS