• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot create simple JAX-WS Client

 
Mike London
Ranch Hand
Posts: 1290
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to get Servlet Context working in a simple JAX-WS Web Service, I tried to to create a client to access the service.

Although the service deploys OK, when I try to create the WS Client using the URL to create the Java code from WSDL, I get:

"Exception in thread "main" AssertionError .....schema_reference: Failed to read schema document 'xjc.xsd' because 'file' access is not allowed due to restriction set by the accessExternalSchema property.'

Say what? Huh?

------

Doing some Google Searches finds others with the same issue and the fact that this restriction was added in JDK 7, but no solutions. Therefore, what I should do in the IDE (Intelij, in my case) so I can actually create a simple WS client like before??

Would greatly appreciate any suggestions.

Thanks,

-mike
 
Mike London
Ranch Hand
Posts: 1290
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Yes, I found this and this part did work:


---

The only problem with this approach is that each time you install a new JDK version, you'll have to remember to move the "jaxp.properties" file over to the new JDK.

I submitted a feature request to try and have the IDE take care of this for me as a background item.

Thanks very much for your reply.

-- mike
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!