首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

不重起weblogic清除服务器缓存有关问题

2011-12-20 
不重起weblogic清除服务器缓存问题我用weblogic8.1+jsp,最近常出现一些问题:上传到公网服务器的文件一般在

不重起weblogic清除服务器缓存问题
我用weblogic8.1+jsp,最近常出现一些问题:
上传到公网服务器的文件一般在服务器自动生成.class文件
有时不生成最新的.class文件
即使把数据库连接改为错误的连接文件都能正常显示
停止weblogic服务器,手工删除对应的.class文件,
再启动weblogic服务器,这时的文件才是正确的文件
我已经设置了不缓存
<%
//////////////////////////////////////设置不缓存
response.setHeader( "Cache-Control ", "no-cache ");
response.setHeader( "Cache-Control ", "no-store ");
response.setDateHeader( "Expires ",   0);
response.setHeader( "Pragma ", "no-cache ");
%>
哪位大侠知道不重起weblogic服务器,怎样让weblogic使用最新修改的文件生成新的.class并生效

[解决办法]
如果你把工程部署在一个domain域里面,默认设置下,weblogic运行时装载的是tmp文件夹下的编译文件(类似于tomcat的workdir)你只要清除tmp下的文件再访问下页面就可以了。
[解决办法]
one way would be to use the WebLogic console to hot-redeploy the EJB in question. However, this will cause a deployment exception (extends RemoteException) to any client that tries to use a remote or home reference it was holding before the redeploy.
热部署一下试试
[解决办法]
关注下
[解决办法]
mark

热点排行