关于在Websphere中部署项目产生文件名过长的问题的solution

关于在Websphere中部署项目产生文件名过长的问题的solution

Problem:

An error such as the following can occur when you are deploying an application to WAS 6 in Windows®: "java.io.IOException: The URI length is greater than the Windows limit of 259 characters"

Cause:

The length limit on Windows is imposed by the JDK 1.4

Solution:

Shorten the temp directory used by WebSphere ® Application Server (WAS), following the steps described below:
  1. Create a directory with a short name on the C drive, for example, C:\tmp.
  2. Start the WebSphere Application Server V6.0, and using the WAS Administrative Console, navigate to the servers Application Servers > server1 > Java™ and Process Management > Process Definition > Java Virtual Machine page.
  3. In the Generic JVM arguments, fill in: -Dworkspace.user.root=C:\tmp
  4. Save and re-start the WebSphere Application Server
When the server restarts, it will then use the C:\tmp directory as the WebSphere Application Server temp directory. This fixes the problem.

你可能感兴趣的:(关于在Websphere中部署项目产生文件名过长的问题的solution)