How can I deploy an exploded web app through WebLogic 11g administrative console?

亡梦爱人 提交于 2019-12-22 18:32:38

问题


I need to deploy a web applicataion as an exploded archive (instead of .war) due to some legacy servlet path location code used in it (ServletContext.getRealPath()). I only have web-based admin console access to the WebLogic 11g server that I intend to deploy to. However, I can't figure how to do it. I see an option for deploying archives, but not directories.

Thanks!


回答1:


http://download.oracle.com/docs/cd/E13222_01/wls/docs81/deployment/overview.html

"WebLogic Server supports deployments that are packaged either as archive files using the jar utility, or as exploded archive directories".




回答2:


The link http://download.oracle.com/docs/cd/E13222_01/wls/docs81/deployment/overview.html is for version 8.1. In newer versions this option does not exist in the admin console (production mode).

The only way is if you somehow access the operating system, or ask somebody to, unzip the war file in some place and then install from that directory (through admin console). You can also upload the war using admin console, and then in the uploaded directory ask to whom as access to SO to unzip it in that place.

You can also try some ninja stuff like: upload the war that you want to expand. Then make another war that contains code that unzips the war you want to expand.




回答3:


To solve your problem in weblogic11gR1,In admin console in configuration tab -->web-App container click the option "Archived Real path enabled" so that you can access the servletcontext.getRealpath().



来源:https://stackoverflow.com/questions/6431425/how-can-i-deploy-an-exploded-web-app-through-weblogic-11g-administrative-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!