OK, I figured out the problem, it was because there was a "?" in the URL, which
wasn't translated into something that the Windows Filesystem could cope with.
I fixed the problem by making the highlighted changes to getSchemaTempFile() in
org.jboss.ws.metadata.wsdl.xsd.SchemaUtils:
| /** Get the temp file for a given namespace
| */
| public static File getSchemaTempFile(String targetNS) throws IOException
| {
| if (targetNS.length() == 0)
| throw new IllegalArgumentException("Invalid null target
namespace");
|
| String fname = targetNS;
| if (fname.indexOf("://") > 0)
| fname = fname.substring(fname.indexOf("://") + 3);
|
| File tmpdir = null;
| try
| {
| SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
| ServerConfig serverConfig =
spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();File tmpDir =
serverConfig.getServerTempDir();
| tmpdir = serverConfig.getServerTempDir();
| tmpdir = new File(tmpdir.getCanonicalPath() + "/jbossws");
| tmpdir.mkdirs();
| }
| catch (Throwable th)
| {
| // ignore if the server config cannot be found
| // this would be the case if we are on the client side
| }
|
| fname = fname.replace('/', '_');
| fname = fname.replace(':', '_');
| fname = fname.replace('?', '_');
|
| File file = null;
| try {
| file = File.createTempFile("JBossWS_" + fname, ".xsd",
tmpdir);
| } catch (IOException x) {
| System.out.println("FILE: JBossWS_" + fname);
| System.out.println("TMPDIR: " + tmpdir.getCanonicalFile());
| throw x;
| }
| return file;
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144624#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...