简体   繁体   English

如何在Weblogic服务器中热交换JSP文件

[英]How to hot swap a jsp file in weblogic server

Currently I have my weblogic server for my local set to nostage. 目前,我将本地的weblogic服务器设置为nostage。 I read that this would enable me to make hotswaps to jsp files but I am not seeing any change when even after I clear the cache. 我读到这将使我能够对jsp文件进行热交换,但是即使清除缓存后也看不到任何变化。 I don't want to have to bounce my server everytime I want a simple html change to be made. 我不想每次想要进行简单的html更改时都必须跳出服务器。 Any ideas on how to make a hot swap in weblogic? 关于如何在weblogic中进行热插拔的任何想法?

Undeploy your component, delete all cache/temp data dir and try to deploy your component in command line with the appropriate flag : 取消部署组件,删除所有缓存/临时数据目录,然后尝试在命令行中使用适当的标志部署组件:

java weblogic.Deployer  -adminurl http://localhost:7001 -user weblogic
   -password weblogic -name mydeploymentname 
   -targets myserver -nostage 
   -deploy c:\localfiles\myapp.ear

and don't forget to set the CLASSPATH with the weblogic.jar before in this way : 并且不要忘了以这种方式在weblogic.jar之前设置CLASSPATH:

SET CLASSPATH=yourWeblogicServer\server\lib\weblogic.jar

Else, for hot swapping, you have another alternative : use the Eclipse WTP plugin to deploy your component. 否则,对于热交换,您还有另一种选择:使用Eclipse WTP插件部署组件。

And the last alternative if you don't deploy EAR is using a servlet container like Tomcat when you are are working on the web part of the application. 如果您不部署EAR,则最后一种选择是在处理应用程序的Web部件时使用Tomcat之类的servlet容器。 You will gain much time with it. 您将获得很多时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM