版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、2/22/20221 Mini presentation for weblogic (1) -如何解决与WEBLOGIC 相关的中文问题-如何实现在被管理服务上的动态部署 2/22/20222如何解决与WEBLOGIC 相关的中文问题n情况一:JSP 文件中的中文提示信息不能正确显示w解决方法:在JSP 文件中加入 可以解决这个问题2/22/20223如何解决与WEBLOGIC 相关的中文问题n情况二:JSP文件中包含中文提示信息时,不能正确编译w解决方法:在weblogic.xml文件的部分加入 compilerSupportsEncoding true encoding GBK 可解决这个
2、问题。2/22/20224如何解决与WEBLOGIC 相关的中文问题n情况三:从数据库中检索出来的中文显示不正确时,在这种情况下,如果数据库使用的是中文字符集,并使用的是Type 2 Jdbc Driver时,对于Weblogic 而言,当使用其提供的oci driver时,可加入Weblogic.codeset=GBK的属性可解决这个问题2/22/20225如何解决与WEBLOGIC 相关的中文问题n情况四:在JSP文件之间传递中文时,如果不能正确传递中文数据,可在web.xml文件中加入 weblogic.httpd.inputCharset./* GBK 可解决这个问题。2/22/202
3、26如何解决与WEBLOGIC 相关的中文问题n情况五:为使浏览器能正确显示中文,应在 HTML 部分增加: 2/22/20227如何实现在被管理SERVER上的动态部署情况描述:在WEBLOGIC的运行过程中,如果组成webapp 或ejb的内容发生变化,weblogic 如何进行处理,分两种情况:1当应用是部署在admin server 上,weblogic会根据一定的间隔自动重载最新的文件,实现自动部署。你可以在console 上通过domainapplications-Auto Deployed Enabled(yes) 和Auto Update Interval 来实现这个功能2/2
4、2/20228如何实现在被管理SERVER上的动态部署2当应用是部署在managed server上时,weblogic本身没有提供象在admin server上的自动部署功能,但可以实现相关应用的动态部署,有以下几种方法:A:手动方法一a: 在console deploymentsrelevant section (forexample,webapp) undeploy 这个应用b: 更新应用c:然后重新deploy这个应用2/22/20229如何实现在被管理SERVER上的动态部署B:手动方法二使用weblogic.deploy命令,可以实现对webapp(.war),ejb(.jar),
5、application(.ear)的动态部署,具体命令格式如下:$java weblogic.deploy options action password application name source Actions:Delete- Deletes the application specified by the application name.Deploy-Deploys a J2EE application .jar, .war, .rar, or .ear file to the specified server.List-Lists all applications in the
6、specified WebLogic Server.Undeploy-Removes an existing application from the specified server.Update-Redeploys an application in the specified server.2/22/202210如何实现在被管理SERVER上的动态部署Other Required Arguments:Password-Specifies the system password for the WebLogic Server.application name-dentifies the n
7、ame of the application. The application name can be specified at deployment time, either with the deployment or console utilities.Source-Specifies the exact location of the application archive file (.jar, .war, or .ear), or the path to the top level of an application directory.2/22/202211如何实现在被管理SER
8、VER上的动态部署Options:-component componentname:target1, target2Component to be deployed on various targets, must be specified as: componentname:target1,target2 where componentname is the name of the .jar, .rar or .war file without the extension. This option can be specified multiple times for any number
9、of components (.jar, .rar or .war). To deploy an .ear file, enter each of its components separately using this option and specify the .ear using the -source argument. For example, to deploy jubilee.jar and wallance.war in an .ear called myDogApp.ear, enter:weblogic.deploy -component jubilie:myserver
10、 -component wallance:myserverdeploy gumby1234 appnamemyDogApp.ear (Enter the above command on a single line.)If the components are in exploded directory format, use their directory name in place of the archive file name. 2/22/202212如何实现在被管理SERVER上的动态部署-debugPrints detailed debugging information to s
11、tdout during the deployment process.-helpPrints a list of all options available for the deploy utility.-host hostSpecifies the host name of the WebLogic Server to use for deploying the J2EE application (.jar, .war, .ear). If you do not specify this option, the deploy utility attempts to connect usin
12、g the host name localhost.-jspRefreshComponentNameSpecifies the webapp component to which the refreshed files are being copied. Use this option together with the -jspRefreshFiles option to refresh static files. For more information on using this option, see Refreshing Static Components in Deploying
13、Web Applications.2/22/202213如何实现在被管理SERVER上的动态部署-jspRefreshFilesRefreshes static files such as JSPs, HTML files, image files such as .gif and .jpg, and text files. Class files may not be refreshed. To update class files, use the update flag to redeploy your application. For more information on using
14、 this option, see Refreshing Static Components in Deploying Web Applications.-port portSpecifies the port number of the WebLogic Server to use for deploying the J2EE application .jar, .war, or .ear file.Note: If you do not specify the -port option, deploy connects uses a default of 7001.-url urlSpec
15、ifies the URL of a Weblogic Server. The default is localhost:7001.-username usernameName of the user with which a connection will be made. The default is system.-version:Prints the version of the deploy utility.2/22/202214如何实现在被管理SERVER上的动态部署C:手动方法三使用weblogic提供的管理接口,编写应用来实现对相关应用的动态部署。Weblogic提供的管理接口
16、是weblogic.refresh,具体使用如下:% java weblogic.refresh -url -username -password -application -component -files -delete -root url is the URL of your WebLogic Administration Server. username is the username for system administration. password is your system administration password. application is the name o
17、f an Enterprise Application that contains the Web Application being refreshed. If your Web Application is not part of an Enterprise Application, enter the name of the Web Application. component is the name of the Web Application being refreshed. 2/22/202215如何实现在被管理SERVER上的动态部署files is a comma-separa
18、ted list of files to be refreshed. The files can be specified using wildcards, e.g., *.jsp or *.gif. Note that to specify multiple files you cannot use both wildcards and multiple comma-separated files. Filenames must be relative filenames to the root of the Web Application, so if the file is ball.g
19、if and is contained in a subdirectory foo of the Web Application root directory, the filename is fooball.gif. If a file does not exist on the server, it will be created, along with any specified subdirectories. if delete is set, named files will be deleted. root is the directory from which files should be picked up for refresh. Default is the
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年纤维板制造行业技术路线图报告及未来五至十年龙头崛起与格局重塑
- 2026年人造板制造行业市场准入研究报告及未来五至十年供应链韧性与安全
- 2026年室内娱乐活动行业产业趋势报告及未来五至十年市场空间与盈利前景
- 2026年互联网零售行业分析报告及未来五至十年竞争格局分析
- 2026年中国广西国际经济技术合作公司人员招聘考试备考试题及答案详解
- 2026年珠宝首饰零售行业市场深度调研报告及未来五至十年技术路径与产业化前景
- 2026年公共就业服务行业发展研究报告及未来五至十年资本热度与投融资趋势
- 2026年物联网技术服务行业市场调研报告及未来五至十年投资机会分析
- 2026年黄山市烟草专卖局人员招聘考试备考题库及答案详解
- 2026年中国卫星网络集团有限公司人员招聘考试备考试题及答案详解
- 彩钢顶屋面维修工程维修施工方案
- 普通动物学题库-普通动物学习题及答案
- 大学室长培训
- 雨课堂学堂在线学堂云《神经网络理论及应用(北工商)》单元测试考核答案
- 2025重庆日报报业集团所属企业招聘3人笔试历年典型考点题库附带答案详解试卷3套
- 雨课堂在线学堂《走进医学》作业单元考核答案
- 2025-2026学年浙美版二年级美术上册全册教案
- 人教版二年级数学上册第二单元1~6的表内乘法达标测试卷(含答案)
- 义乌商贸城租房合同范本
- 医药代表开发医院经验分享
- 《网评员管理办法》
评论
0/150
提交评论