Skip to main content

URLClassloader issue in jaxws-maven-plugin

1 reply [Last post]
waffle
Offline
Joined: 2006-02-18
Points: 0

We have encountered a problem in wsgen involving the URLClassLoader that required us to add jars to the system endorsed directory. It would be far better to enhance the plugin to support the definition of a list of directories in pom.xml that could be used to populate java.endorsed.dirs.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jungicz
Offline
Joined: 2004-08-17
Points: 0

as of 2.2.1 you should not be required to put anything to endorsed dir - this is done automatically for relevant APIs. You can pass extra VM options to wsgen/wsimport if needed using 'vmArgs/vmArg' see: https://jax-ws-commons.java.net/jaxws-maven-plugin/wsgen-mojo.html#vmArgs