4

我正在使用Rational Application Developer开发JSR168 portlet并将它们部署到Websphere Portal 6.1。现在我想调试它们。

我想做的是这个工作流程:

  1. 开发 portlet 并设置断点
  2. 以调试模式启动 Portal
  3. 使用 RAD 中的鼠标右键上下文菜单部署 portlet
  4. 打开门户,创建页面,放置portlet
  5. 启动应该让我到达断点的操作
  6. 使用 RAD 中的调试透视图进行调试

有可能吗,那里有教程吗?

4

3 回答 3

1

使用 Rational Software Developer 或 Architect 时,您需要不时清理 Websphere 临时目录,包括门户网站和应用程序服务器。每当有什么奇怪的地方,清理它们。

您的工作空间可能是另一个问题。如果干净的临时目录对我不起作用,我会创建一个新工作区。为了减少每个新工作区的配置任务,我进行了基本设置并将其检查到 subversion 或 GIT。

于 2011-04-02T06:12:09.430 回答
1

在本地开发机器上设置门户服务器的过程非常简单。起初我没有找到设置信息,但它们可在IBM 网站https://www-304.ibm.com/support/docview.wss?uid=swg21330952 for Portal 6.1上找到。

安装花了我几个小时,但之后您可以在Rational Application Developer中添加 Portal并启动它。这在旧机器上速度太慢了,而且你真的很想拥有 4GB 的 RAM 来每天使用它。

如果 Portal 正在运行,请右键单击您的 portlet 项目并从上下文菜单中选择Deploy portlet...。Portlet 将被部署。

我必须检查@Nachtfrost 是否正确清理临时目录以重新启用右键单击部署。

如果右键单击部署对您不起作用,请尝试以下方法:(这将不允许您调试 portlet!它只是作为一种解决方法来运行它们

  1. Export your portlet as WAR (right-click the project, choose Export... from context menu
  2. Right-click Portal in your Servers view and choose Open Portal from the context menu
  3. Log in as admin, go to Administration
  4. Go to the web applications menu (I'm writing this from memory, so try to find the menu somewhere around the Portlet administration menu)
  5. Install your portlet from the WAR file, like any other web app
  6. Create a new page, place your portlet on that page
于 2011-04-09T13:47:36.633 回答
0

I have a bad habit of giving my dev portal server a real DNS name via a hosts file, but letting it pick up the IP address from a DHCP server. Weeks go by, and DHCP hands out a new address - at which time portlet Debugging in Rational will not work. This is true even if the Server is configured for localhost in Rational.

If portlet debugging was working and has now stopped, make sure your DNS to IP is valid.

于 2011-07-08T20:50:07.667 回答