This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. Weblogic 产品模式下 部署 portlet等plugin工程
weblogic 分为 开发模式,生产模式(或者叫产品模式),两者的区别主要在于,性能及部署方式上面。因为在开发模式下面,你是可以通过自动部署去部署你的web工程,这样方便了开发,但同时降低了性能,因为要随时监控着嘛。而生产模式则不能通过自动部署的方式进行部署。这里了几个weblogic 两种模式的文章以及liferay关于weblogic的文章,仅供参考:
1,weblogic 开发模式和生产模式的区别 #
2,weblogic开发模式与产品模式几种关键项的区及转换 #
3,weblogic部署方法 #
4,Weblogic 下实现自动部署 #
5,Weblogic tips #
6,Deploying Weblogic Without It's Autodeploy #
下面则是主要参考上面 文章6
环境:
Liferay Plugin SDK 6.0.6
Liferay Portal 6.0.6
Weblogic 10.3.6
前置条件:
weblogic domain以 产品模式 启动。
liferay portal设置:
1,(以windows为例)在C盘创建一个文件夹,起名为apps。
2,以管理员身份登录liferay portal,进入Control Panel.
3,在左边 server 下,点击Plugins Installation,然后点击Install More Portlets。
4,点击Configuration。
5,在 Destination Directory里填入刚才创建的 文件夹位置:c:/apps (注意:不能为c:/apps/)
6,点击 Sava,保存。
下面进行下测试:
1,在命令行进入Plugins SDK下的 portlet文件下面。
2,运行 create test "Test",得到提示,portlet工程创建成功
3,命令行 进入刚刚 创建的portlet 工程文件夹下面。
4,运行 ant war,得到提示,portlet war包生成成功。
5,回到Plugins SDK下,进入dist 文件夹,找到创建好的 test-portlet-6.0.6.1.war
6,将这个war 文件拷贝到weblogic里面portal的部署文件夹 deploy,同时注意观察weblogic 服务器的命令行提示。(注意,将war文件拷贝到deploy文件夹后,过一会会消失,同时,服务器会提示)
7,当得到提示后,通过浏览器进入weblogic console,并点击左侧的 部署。
8,点击 安装。(注意,如 安装按钮 为不可用状态,请确定 左上角 目前是否为 锁定并编辑,如不是,请点击 锁定并编辑)
9,进入之前创建 的目标文件夹(这里为 c:/apps),选择里面我们的portlet war包。点击 下一步。
10,默认配置,点击 下一步。
11,默认配置,点击 完成。
12,等一会,会提示安装成功了。
13,还需要点击 左上角的 激活更改。
14,点击之后, 会提示 准备就绪。
15,将它前面的复选框钩选上,然后点击 启动-为所有请求提供服务。
16,点击 是。
17,部署成功。
18,回到 portal中,进入control panel-》Update Manager,可以看到我们的portlet 被添加进来了。
19,同时,在前台,左上角,Add中,也是可以找到的。