如何在weblogic上刷新jsp [英] How do I refresh jsp's on weblogic
问题描述
我正在生产模式下对 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 应用程序或企业作为分解档案的应用程序目录,您可以使用要更新的 weblogic.Deployer 实用程序一个或多个更改的静态文件到位.参见 避免不必要的JSP编译dev2dev.com调整 Web 应用程序一>.
Updating Static Files in a Deployed Application
In a production environment, you may occasionally need to refresh the static content of a Web application module—HTML files, image files, JSPs, and so forth—without redeploying the entire application. If you deployed a Web application or an Enterprise Application as an exploded archive directory, you can use the weblogic.Deployer utility to update one or more changed static files in-place. See
Avoiding Unnecessary JSP Compilation on dev2dev.comTuning Web Applications.
重新部署关联的单个文件在部署单元中,指定重新部署结束时的文件名命令.例如:
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 应用程序作为企业的一部分进行部署应用程序,所以模块目录指定 (myApp/copyright.html
).
Always specify the pathname to updated
files relative to the root directory
of the exploded archive directory. In
the above example, the Web application
is deployed as part of an Enterprise
Application, so the module directory
is specified (myApp/copyright.html
).
如果 Web 应用程序模块已经作为独立模块部署,而不是作为企业的一部分应用程序,文件本来是单独指定(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
在上面的例子中,所有文件和位于 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屋!