日期:2014-05-19 浏览次数:20824 次
fullFileName = new StringBuffer("d:\\upload\\");//上传的文件的路径
<2010-9-1 下午02时51分23秒 CST> <Error> <HTTP> <BEA-101005> <[weblogic.servlet.internal.WebAppServletContext@8777c - appName: '_appsdir_zhpower_dir', name: 'zhpower', context-path: '/zhpower', spec-version: '2.5'] getRealPath() called with unsafe path: "d:\upload". java.io.IOException: 文件名、目录名或卷标语法不正确。 at java.io.WinNTFileSystem.canonicalize0(Native Method) at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396) at java.io.File.getCanonicalPath(File.java:559) at weblogic.servlet.internal.WebAppServletContext.getRealPath(WebAppServletContext.java:748) at com.jspsmart.upload.SmartUpload.isVirtual(SmartUpload.java:734) Truncated. see log file for complete stacktrace >
fullFileName = new StringBuffer("\\upload\\");//上传的文件的路径
<?xml version='1.0' encoding='UTF-8'?> <weblogic-web-app xmlns=' http://www.bea.com/ns/weblogic/weblogic-web-app'> <virtual-directory-mapping> <local-path>D:/upload</local-path> <url-pattern>/*</url-pattern> < irtual-directory-mapping> </weblogic-web-app>