You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lincoln Dalgado <da...@gmail.com> on 2005/12/20 07:13:59 UTC

Invoking webservice from servlet

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

Re: Invoking webservice from servlet

Posted by Lincoln Dalgado <da...@gmail.com>.
 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 <li...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Invoking webservice from servlet

Posted by Prasad <li...@gmail.com>.
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org