我的Java知识库
随笔 - 21, 文章 - 10, 评论 - 4, 引用 - 0
数据加载中……

关于在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.

posted on 2007-02-01 16:45 yangrui 阅读(324) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: