In my spring application, I am trying to create a new file to the temp directory using
File tmpFile = new File(System.getProperty("user.dir") + File.separator + file.getOriginalFilename());
The file is properly created in the Tomcat environment under the temp directory.
But, deploying the same to the websphere, the path which is the java is trying to write to is
C:\Program Files\IBM\WebSphere\AppServer_1\profiles\AppSrv01\temp\WIN7VSNode04\server1\application\application.war\C:\Program Files\IBM\WebSphere\AppServer_1\profiles\AppSrv01\file to be attached.extension
which throws the file not found exception (The filename, directory name, or volume label syntax is incorrect.)
Is there some java settings needs to be changed to the websphere environment? what may be the reason causing this?
Thanks in advance.
Cheers.