[ http://issues.apache.org/jira/browse/AXIS2-709?page=all ] Deepal Jayasinghe resolved AXIS2-709: -------------------------------------
Resolution: Fixed Fixed in current SVN > IOException when when a module with its own jars in the 'lib' dir is deployed > ----------------------------------------------------------------------------- > > Key: AXIS2-709 > URL: http://issues.apache.org/jira/browse/AXIS2-709 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Reporter: Ruchith Udayanga Fernando > Assignee: Deepal Jayasinghe > > Report from Yanlun: > Original mail: http://marc.theaimsgroup.com/?l=axis-dev&m=114721187825993&w=2 > In following code of org.apache.axis2.deployment.util.Utils, the > File.createTempFile("axis2", entryName.substring(4)); got IO exception and > said "Invalid path". Add the line "new > File(System.getProperty("java.io.tmpdir")).mkdirs();" can solve this problem. > > Please take a look, > > See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4847239 for the > proposed walkaround. > > Thanks, > > Yanlun > > > if ((entryName != null) && > entryName.toLowerCase().startsWith("lib/") > && entryName.toLowerCase().endsWith(".jar")) { > byte data[] = new byte[2048]; > int count; > new File(System.getProperty("java.io.tmpdir")).mkdirs(); > File f = File.createTempFile("axis2", > entryName.substring(4)); > f.deleteOnExit(); > FileOutputStream out = new FileOutputStream(f); > while ((count = zin.read(data, 0, 2048)) != -1) { > out.write(data, 0, count); > } > out.close(); > array.add(f.toURL()); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]