如何刷新weblogic上的jsp [英] How do I refresh jsp's on weblogic

查看:182
本文介绍了如何刷新weblogic上的jsp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在生产模式下对weblogic 10.0进行爆炸式战争。

I'm running an exploded war on weblogic 10.0 in production mode.

我想修改一个jsp而不必完全重新部署应用程序。我似乎无法使用weblogic.Deployer进行部分重新部署 - 请参阅:

I want to modify a jsp without having to fully redeploy the application. I can't seem to achieve this using the weblogic.Deployer with a partial redployment - see:

http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs100/deployment/redeploy.html #wp1025739

这一定是一个相当标准的问题 - 有没有人有解决方案?

This must be a fairly standard problem - has anyone got a solution?

推荐答案

根据您提供的链接, weblogic.Deployer 是您的朋友:

According to the link you have provided, weblogic.Deployer is your friend:


更新已部署应用程序中的静态文件



在生产环境中,您可能偶尔需要
刷新
Web应用程序的静态内容
模块-HTML文件,图像文件,JSP,
等等 - 无需重新部署
整个应用程序。如果您将
Web应用程序或Enterprise
应用程序部署为展开存档
目录,则可以使用
weblogic.Deployer实用程序更新
一个或多个已更改静态文件
就地。请参阅 避免不必要的
JSP编译

dev2dev.com
调整Web应用程序

要在部署单元中重新部署与
关联的单个文件,请在结尾处指定
文件名。 redeploy
命令。例如:

To redeploy a single file associated within a deployment unit, specify the file name at the end of the redeploy command. For example:

java weblogic.Deployer -adminurl http://localhost:7001 -user weblogic
   -password weblogic -name myApp -redeploy myApp/copyright.html

始终指定更新的
文件的路径名相对于展开的归档目录的根目录
。在上面的示例
中,Web应用程序
作为Enterprise
应用程序的一部分进行部署,因此指定了模块目录
myApp / copyright。 html )。

如果Web应用程序模块已经作为独立模块部署了
,那么
而不是作为Enterprise
应用程序的一部分,该文件将单独指定
copyright.html )。

If the Web application module had been deployed as a stand-alone module, rather than as part of an Enterprise Application, the file would have been specified alone (copyright.html).

您还可以通过指定
目录名而不是单个
文件来重新部署整个
目录的文件。例如:

You can also redeploy an entire directory of files by specifying a directory name instead of a single file. For example:

java weblogic.Deployer -adminurl http://localhost:7001 -user weblogic
   -password weblogic -name myApp -redeploy myApp/myjsps

在上面的例子中,所有文件和
子目录位于Enterprise
应用程序的myjsps
子目录中的就地重新部署。

In the above example, all files and subdirectories located in the myjsps subdirectory of the Enterprise Application are redeployed in-place.

AFAIK,此适用到了生产模式。因此,它必须是您使用的命令中的语法问题。

AFAIK, this apply to the production mode too. So it must be a syntax problem in the command you use.

这篇关于如何刷新weblogic上的jsp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆