Thanks Prasad. I just added the servers certificate to "C:\ProgramFiles\Java\j2re1.4.2_05\lib\security\cacerts"And the ssl validation exception disappeared.It looks like tomcat uses different keystores when it is started as service as opposed to it being started with startup.bat Note that I had earlier added the servers certificate to C:\JDK1.4\jre\lib\security\cacerts because of which the application was working fine with startup.bat
-- Lincoln On 12/21/05, Prasad <[EMAIL PROTECTED]> wrote: > > Lincoln Dalgado wrote: > > >Hi, > > > >I am invoking a SSL based web service from inside a servlet. > > > >The service is invoked successfully when I use startup.bat to start > tomcat. > > > >However if I start tomcat as a service, I get a > > > >Caused by: sun.security.validator.ValidatorException: No trusted > certificate > >found > > > >at sun.security.validator.SimpleValidator.buildTrustedChain(Unknown > Source) > > > >And idea what might be causing this to happen? > > > >Thanks, > > > >Lincoln > > > > > > > I think by starting TC as a service you are running it with a null > session i.e. no particular user account in action but local system > account. > If that is the case, then it might be an issue with finding proper > Keystore that otherwise would be located in the current users home > directory. > > I am too new for my answers to be relied upon but just thought of > reflecting something I wonder could have happened. Please wait for > experts :) > -Prasad. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >