0

创建新的 WebSphere 7 服务器配置文件时,我使用管理控制台(应用程序服务器 > server1 > 进程定义)定义了工作目录值,如下所示:

C:\workspace7\Myproject\workingdirectory

此文件夹包含一些配置文件 (.properties)

当我启动服务器时,它可以工作,但在系统输出中出现此消息:

属性文件未定义: C:\Program Files\IBM\SDP\runtimes\base_v7\profiles\myprofile\bin\Myproject\Myproject.properties

事实上,它应该指向:

C:\workspace7\Myproject\workingdirectory\Myproject\Myproject.properties

在服务器上执行应用程序时,此问题会导致失败。

那么,您知道为什么它没有从服务器配置文件中定义的属性中获取工作目录的良好路径吗?

环境:WebSphere 7 & RAD 8

亲切的问候,

4

1 回答 1

0

I am sorry if I sound like someone from Support, but I was not able to recreate your problem. I used RAD version 8 with a WebSphere Application Server version 7. After profile start the process clearly ran in the specified working directory. I checked it using lsof and an example application. Like Terrell already asked, are you sure about the profile settings?

Two other thing you should consider.

Personally, I would not develop a piece of software that is so dependent on the current working directory as it sounds in your question. I would rather use Java System Property settings to point to a configuration directory or something similiar.

Secondly, if you use RAD with a configured WAS (or Tomcat or whatever) server profile, make sure you check the server specific settings inside RAD (context menu of the profile). For example, per default RAD uses its own deployment path for a server profile when it deploys an application to the respective server.

于 2012-02-10T21:38:06.527 回答