weblogic

weblogic补丁安装脚本 CVE-2018-2893

匿名 (未验证) 提交于 2019-12-02 22:56:40
最近一直再装weblogic补丁,不厌其烦,做此脚本,一键装补丁。 不同版本修改对应版本补丁名即可。 一、weblogic10.3.6 Xms2048m -Xmx2048m " /home/weblogic/utils/bsu/ patch-client.jar $* #!/bin/ bash rm patch - catalog.xml README.txt unzip p27919965_1036_Generic. zip sleep 2 mv patch -catalog_26112.xml patch - catalog.xml # find oldPatchid config mkdir cache_dir cp patch -catalog.xml ./ cache_dir echo " ======Next is version of weblogic=============== " sh ../bsu. sh -prod_dir=../../../wlserver_10. 3 / -status=applied -verbose -view > version cat version grep " Patch ID " version > restxt > patchId flag = 0 cat restxt | while read line do #

Specify default schema for JDBC pool in weblogic/oracle

こ雲淡風輕ζ 提交于 2019-12-02 22:31:29
We use the same user for multiple projects and I want to have a different default schema for different connection pools. Is there a way to specify the default schema in the weblogic JDBC configuration? Ok, I figured it out myself: If you go to Data Source -> Configuration -> Connection Pool -> click Advanced , There is Init SQL there that will be executed for initialization of newly created physical db connection, we can put: SQL ALTER SESSION SET CURRENT_SCHEMA=animals to make the default schema. 来源: https://stackoverflow.com/questions/16065230/specify-default-schema-for-jdbc-pool-in-weblogic

shell脚本实现服务器进程监控

匿名 (未验证) 提交于 2019-12-02 21:59:42
写作背景:   项目是基于java、weblogic及timer的处理模式,每次服务部署之后timer的整体状态是一个盲区,因为100多个进程,是否有启动遗漏或者启动重复的,想做到一目了然是件困难的事情。所以我考虑用shell脚本的文件查找与匹配方法来解决这个问题,简单记录下,仅供参考。 程序说明: 1)通过将系统定义的进程(timer)配置到配置文件process_signal.config中 2)将服务器当前所有的java进程存储到process_current.txt中 3)逐行读取process_signal.config中的进程,到process_current.txt中进行匹配 4)没有匹配到则为启动遗漏,存入到process_invalid.txt中,匹配到1次正常(不做处理),匹配到大于1次,则将timer名称及启动次数记录到process_invalid.txt中。 5)通过定时器30分钟一次执行脚本,使用SQLLOAD将process_invalid.txt加载到数据表中,对数据库表进行监控。 脚本说明: webusr@iomtimer1:/weblogic/script/process_signal >ls process_current.txt    process_invalid.txt    process_invalid_his.txt   

weblogic静默方式创建域

匿名 (未验证) 提交于 2019-12-02 21:59:42
创建域目录:mkdir -p /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/ 创建文件: create_domain.rsp read template from "/home/weblogic/Oracle/Middleware/wlserver/common/templates/wls/wls.jar"; set JavaHome "/usr/local/jdk1.7"; set ServerStartMode "dev"; find Server "AdminServer" as AdminServer; set AdminServer.ListenAddress ""; set AdminServer.ListenPort "8001"; set AdminServer.SSL.Enabled "true"; set AdminServer.SSL.ListenPort "8002"; //We can directly create a new managed server. create Server "base" as BASE; set BASE.ListenAddress ""; set BASE.ListenPort "8003"; //set BASE.SSL

Effect of enable-call-by-reference

Deadly 提交于 2019-12-02 20:41:55
I get the messages <Warning> <EJB> <BEA-010202> <Call-by-reference is not enabled for the EJB 'myEjb'. The server will have better performance if it is enabled. To enable call-by-reference, set the enable-call-by-reference element to True in the weblogic-ejb-jar.xml deployment descriptor or corresponding annotation for this EJB.> and <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.util.Collection my.sessionfassade.ejb.myFassade.myMethod(java.lang.String,java.lang.String,java.util.Collection) throws my.Exception' in EJB 'myEjb' contains a parameter of type:

Weblogic10 Classloading 问题

霸气de小男生 提交于 2019-12-02 20:29:36
首先要说说Weblogic的classloading的机制(不同的Applicaiton Server,classloading的方式各有不同)。简而言之,weblogic默认情况下采用的是 parent first 的方式。但这个parent first,是有“讲究”(tricky)的。 1。父类加载器和子类加载器之间的关系类似于Java中,父类和子类之间的对象关系。 2。Weblogic 会将所有load到的class缓存 到cache中。(子类classloader能看到父类classloader加载到cache中的class) 默认情况下,当我们的应用程序(ear,war)运行时,会先去cache中查找class,如果找不到。就去System Classpath loader 里去找class。如果System Classpath loader里能找到你需要的类,那么不好意思,你在ear和war包里包含的class就没用了。 如果System ClassPath Loader找不到,接下来去ear的class path里找,接着去EJB class path里找,最后到war的class path里找。一旦找到了该类,就会load起这个类,并将该类放入cache中。 上面的描述,没什么奇怪,但需要注意的是下面的情况。当应用程序执行时

Troubleshooting connections stuck in CLOSE_WAIT status

坚强是说给别人听的谎言 提交于 2019-12-02 20:25:22
I have a Java application running in WebLogic 11g on Windows, which after several days, becomes unresponsive. One suspicious symptom I've noticed is that a large number of connections (about 3000) show up in netstat with a CLOSE_WAIT status even when the server is idle. Since the application server is managing the client connections, I'm not sure what's causing this. We also make a number of web service calls that loopback to the same server, but I believe those connections get closed properly. What else could cause this and how does one troubleshoot a problem like this? Rafael Colucci I have

weblogic配置

爷,独闯天下 提交于 2019-12-02 20:14:55
一、安装jdk 二、安装部署weblogic 1.提供安装文件网盘下载:到oracle官网下载安装包 2.安装过程不在详述了,可自行修改安装地址,各种“下一步”,完成安装。 Weblogic创建域 安装完成后,【开始菜单】-->【Oracle Weblogic】-->【Weblogic Server 11gR1】-->【Tools】-->【Configuration Wizard】,打开Fusion Middleware配置向导。 1.勾选【创建新的Weblogic域】,点击下一步。 2.选择自动生成即可,不用动,点击下一步。 3.【域名】自行输入,这就是在 \user_projects\domains\ 下的文件夹名称,我这里用的cmcatv,【域位置】不用更改即可,点击下一步。 4.配置管理员用户名和口令,name=weblogic,password=weblogic10,点击下一步。 5.配置域启动模式和JDK,这儿可以不用配置,选择默认的开发者模式和自带的JDK即可,也可以根据情况自行调整JDK,点击下一步。 6.可选配置中,勾选【管理服务器】,点击下一步。 7.可以更改server名称和端口号。我设置成了name=weblogic,port=7001,address不用变。点击下一步。 8.接下来就交给软件自动配置了,完成如图。 到这里,就创建好了自己的一个域

Spring整合Weblogic jms实战

白昼怎懂夜的黑 提交于 2019-12-02 19:49:47
本文主要介绍weblogic jms的配置,包括JMS 服务器和JMS 模块(连接工厂、队列、远程 SAF 上下文、SAF 导入目的地、SAF 错误处理)的配置;并在Spring环境下进行消息的监听及发送;为了更多的使用webloigc jms的功能,发送的队列使用saf配置的远程weblogic jms队列(两边的weblogic版本须一致),当然本地也是可以的。本文中demo所使用的软件环境为:weblogic 10.3.6.0、spring 5.1.2.RELEASE 注:saf配置的远程队列只能发送消息,不能监听消息。 1、weblogic jms配置 1.1、配置JMS 服务器 注:需配置持久性存储,没有就创建一个 1.2、配置JMS 模块 下面的功能都是在JMS 模块中配置;连接工厂、队列、远程 SAF 上下文、SAF 导入目的地、SAF 错误处理 这里就不一一截图配置过程了,按页面提示配置就行;配置结果如下 连接工厂 需设置jndi,程序里会用到 SAF 远程上下文 配置的远程地址及用户名密码信息 SAF 导入目的地 配置的远程的队列消息及对应到本地的jndi SAF 错误处理 程序配置错误处理策略属性,选配 队列 需设置jndi,程序里会用到 SAF 导入目的地配置的队列消息如下: 点击队列名称: 本地 JNDI 名称程序里会用到

Adding custom object to JNDI on Weblogic 10

廉价感情. 提交于 2019-12-02 19:38:10
Is it possible to add a custom object (String or URL) to JNDI using Weblogic Server Administration Console (Weblogic 10.0) or by editing server's configuration file (config.xml)? I don't think so. Quoting Load objects in the JNDI tree : Using the Administration Console, you can load WebLogic Server J2EE services and components, such as RMI, JMS, EJBs, and JDBC Data Sources, in the JNDI tree. And indeed, I couldn't find a way to add a String or URL using the console. AFAIK, the standard way is to put an env-entry in your deployment descriptor (web.xml, ejb-jar.xml): <env-entry> <env-entry-name