weblogic

Prevent Weblogic 12c from using system's slf4j binding

£可爱£侵袭症+ 提交于 2019-11-27 00:24:00
问题 We're building new systen using slf4j as logging facade. When deploying on newly Weblogic 12c, we found this error on console log: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/Oracle/Middleware2/modules/org.slf4j.jdk14_1.6.1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [zip:/opt/Oracle/Middleware2/user_projects/domains/m3/servers/AdminServer/tmp/_WL_user/test/t030q4/war/WEB-INF/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl

XSLT attribute node (id) cannot be created after the children of the containing element

走远了吗. 提交于 2019-11-26 23:45:42
问题 Typically i am doing an XSLT process over a Weblogic12 server. I kept running into this issue net.sf.saxon.trans.DynamicError: An attribute node (id) cannot be created after the children of the containing element Before the migration, our team had no problems at all... Any idea why? i recently upgraded from BEA Weblogic3 to Oracle Enterprise Weblogic 12. Or am i missing a library? This is plaguing our entire team! Thanks! EDIT 1: Error points to <xsl:attribute name="id"> in <xsl:template name

How to Force Thread Dump in Eclipse?

被刻印的时光 ゝ 提交于 2019-11-26 22:50:38
问题 I'm launching a Weblogic application inside Eclipse via the BEA Weblogic Server v9.2 runtime environment. If this were running straight from the command-line, I'd do a ctrl-BREAK to force a thread dump. Is there a way to do it in Eclipse? 回答1: Indeed (thanks VonC to point to the SO thread), Dustin, in a comment to his message, points to jstack. I have run a little Java application (with GUI) in Eclipse, I can see the related javaw.exe in Windows' process manager and its PID, 7088 (it is even

浅谈WebLogic和Tomcat

人盡茶涼 提交于 2019-11-26 22:24:51
J2ee开发主要是浏览器和服务器进行交互的一种结构.逻辑都是在后台进行处理,然后再把结果传输回给浏览器。可以看出服务器在这种架构是非常重要的。 这几天接触到两种Java的web服务器,做项目用的Tomcat,看视频看的是WebLogic Server(WLS),都是web服务器,有什么区别和联系呢? (一)先简单介绍一下这两种服务器。 WebLogic 是美国bea公司出品的一个application server,确切的说是一个基于Javaee架构的中间件,纯java开发的,最新版本WebLogic Server 9.0是迄今为止发布的最卓越的BEA应用服务器。BEA WebLogic是用于开发、集成、部署和管理大型分布式Web应用、网络应用和数据库应用的Java应用服务器。将Java的动态功能和Java Enterprise标准的安全性引入大型网络应用的开发、集成、部署和管理之中。完全遵循J2EE 1.4规范。 Tomcat 服务器是一个免费的开源的Web 应用服务器,是Apache 软件基金会的Jakarta 项目中的一个核心项目,由Apache、Sun 和其他一些公司及个人共同开发而成。因为Tomcat 技术先进、性能稳定,运行时占用的系统资源小,扩展性好,支持负载平衡与邮件服务等开发应用系统常用的功能;而且很重要的是她免费,因而深受Java

Spring Boot exception: Could not open ServletContext resource [/WEB-INF/dispatcherServlet-servlet.xml]

断了今生、忘了曾经 提交于 2019-11-26 20:56:58
问题 I have developed this proof of concept https://github.com/DISID/disid-proofs/tree/master/spring-boot-weblogic to test the deployment of Spring Boot applications in Weblogic 12c (12.2.1). The application deploys and starts successfully, but when I try to connect to it (i.e. /accounts?number=1234 ) the error below is shown: Error 500--Internal Server Error From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.5.1 500 Internal Server Error The server encountered an unexpected condition which

Weblogic 任意文件上传漏洞(CVE-2018-2894)

落花浮王杯 提交于 2019-11-26 20:21:36
Weblogic 任意文件上传漏洞(CVE-2018-2894) Oracle 7月更新中,修复了Weblogic Web Service Test Page中一处任意文件上传漏洞,Web Service Test Page 在“生产模式”下默认不开启,所以该漏洞有一定限制。 利用该漏洞,可以上传任意jsp文件,进而获取服务器权限。 访问 http://your-ip:7001/ws_utc/config.do ,设置Work Home Dir为 /u01/oracle/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_internal/com.oracle.webservices.wls.ws-testclient-app-wls/4mcj4y/war/css 。我将目录设置为 ws_utc 应用的静态文件css目录,访问这个目录是无需权限的,这一点很重要。 然后点击安全 -> 增加,然后上传webshell: 上传后,查看返回的数据包,其中有时间戳: 访问 http://192.168.88.173:7001/ws_utc/css/config/keystore/[时间戳]_[文件名] 连接 来源: https://blog.csdn.net/haha13l4/article/details

SessionTimeout: web.xml vs session.maxInactiveInterval()

僤鯓⒐⒋嵵緔 提交于 2019-11-26 19:36:51
I'm trying to timeout an HttpSession in Java. My container is WebLogic. Currently, we have our session timeout set in the web.xml file, like this <session-config> <session-timeout>15</session-timeout> </session-config> Now, I'm being told that this will terminate the session (or is it all sessions?) in the 15th minute of use, regardless their activity. I'm wondering if this approach is the correct one, or should I programatically set the time limit of inactivity by session.setMaxInactiveInterval(15 * 60); //15 minutes I don't want to drop all sessions at 15 minutes, only those that have been

Weblogic 10.3.1.0 is using com.bea.core.apache.commons.net_1.0.0.0_1-4-1.jar… I want to use commons-net-2.0.jar from my code

三世轮回 提交于 2019-11-26 16:45:40
问题 Weblogic 10.3.1.0 is using com.bea.core.apache.commons.net_1.0.0.0_1-4-1.jar... I want to use commons-net-2.0.jar from my code. How can I force it to use the newer JAR in my code only? 回答1: I want to use commons-net-2.0.jar from my code. WebLogic uses a parent class loader first strategy and you basically have two options to tweak this behavior: Use the prefer-web-inf-classes element in a weblogic.xml Web application deployment descriptor (that goes in WEB-INF next to the web.xml ) ~or~

How to lookup JNDI resources on WebLogic?

狂风中的少年 提交于 2019-11-26 12:45:22
问题 I deployed a legacy application on WebLogic 11g. The application has the following code: Context context = new InitialContext(); dataSource = (javax.sql.DataSource) context.lookup(\"java:myDataSource\"); I also have a data source configured in WebLogic with the JNDI name of: jdbc/myDataSource When the above java code runs, I get the following exception: javax.naming.NameNotFoundException: While trying to look up /myDataSource in /app/webapp/axis2.war/60105275.; remaining name \'/myDataSource\

WebLogic配置config.xml启动失败

不羁的心 提交于 2019-11-26 08:13:07
还是云缴费项目,这期间踩了太多坑,现在专门做一个详细总结。该项目开发过程中,用的是Tomcat8,Jdk1.8和Oracle11以及Eclipse开发完成的,测试也没什么问题,上了生产,真是被WebLogic坑惨了。一直觉得WebLogic跟Tomcat差不多,大同小异,所以上生产部署的时候,直接打了War包丢到autodeploy目录下,然后运行启动脚本startWebLogic.sh即可,想象中跟实际还是差距蛮大,差点搞吐血。 以上就是生产环境的机器配置(每一台机器的Ip我打了马赛克),项目流程如下图,其中AP是内网,WEB走外网,Windows是各分行公用,无上传下载通道,其上只有一个Ie浏览器可以登录WebLogic控制台: 这项目最想吐槽的一点就是,Windows上无法安装Navicat或者PL/SQL Developer之类的可视化工具,而且AP上未安装Oracle Client工具,单单安装这个Client连接Oracle都搞了两天,安装这玩意要各种配置,最后还是搞定了,当然,只安装在了AP1上,这就导致我项目只能放在AP1上,实在无力吐槽,Client不是应该提前配好吗,而且每个AP上都应该配才ok嘛。 好吧,吐槽完毕,传了项目以后,自动部署根本失效,不会对war包进行解压,控制台可以访问,登录控制台,部署下根本没有任何项目,这跟Tomcat咋就完全不一样呢?