2 Counts of Inaccessiblewsdlexception

Asked

Viewed 673 times

-1

I am developing an application that consumes a third party web service.

When I run the application via Eclipse it works perfectly.

But when running via command line, the error "2 Counts of Inaccessiblewsdlexception" is displayed whenever I call any of your services.

Command Line: java -Xms256m -Xmx1024m -jar C: Omni clients fac java Icaptorecob.jar

What should I do? What’s the difference between running for Eclipse and running out of it?

  • Please post the full stacktrace of the error

  • Marquezani, sorry for the delay. It’s hard to catch the error stacktrace because I’m running through the command line. But the error was as follows: Unexpected Error: java.security.Invalidalgorithmparameterexception: the trustAnchors Parameter must be non-empty.

  • This error is when the system does not find the certificate (.JKS file). However the certificate is in the specified folder.

1 answer

0

Create the folder classes inside the WEB-INF folder, then create the folder META-INF inside the briefcase classes.

The structure will look like this: WEB-INF/classes/META-INF.

Put up the file jax-ws-catalog.xml in the briefcase META-INF newborn.

Put up the file nomedoarquivo.wsdl in the briefcase META-INF newborn.

The archive jax-ws-catalog.xml shall contain the following information:

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<system systemId="http://localhost/wsdl/nomedoarquivo.wsdl" uri="nomedoarquivo.wsdl"/></catalog>

Now just reference the wsdl to the address http://localhost/wsdl/filename.wsdl in your class of Service.

When the system searches wsdl at the address http://localhost/wsdl/filename.wsdl, it will be redirected to the local file.

  • Thank you. I will this weekend make the tests. Put the result then.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.