weblogic

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

依然范特西╮ 提交于 2019-11-27 22:14:42
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 prevented it from fulfilling the request. And the log file has the exception: org.springframework

CommonJ TimerManager versus EJB3 TimerService

最后都变了- 提交于 2019-11-27 21:50:28
问题 I have to implement a simple (not clustered) timer for WebLogic and it seems there are two different 'standard' options Timer and Work Manager API (CommonJ) EJB3.0 TimerService Does anyone have any advice on using the CommonJ TimerManager versus using the EJB3 TimerService in WebLogic 10.0? Thank you. 回答1: TimerService in EJB 3.0 is somewhat limited as compared to CommonJ Timer Manager. For example, it requires boilerplate code and container-specific configuration to implement flexible task

How to Force Thread Dump in Eclipse?

家住魔仙堡 提交于 2019-11-27 19:42:02
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? 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 simpler in Unix, of course). If I type at a command prompt jstack 7088 , I have the wanted stack dump per

Optimal number of connections in connection pool

依然范特西╮ 提交于 2019-11-27 19:16:22
问题 Currently we are using 4 cpu windows box with 8gb RAM with MySQL 5.x installed on same box. We are using Weblogic application server for our application. We are targeting for 200 concurrent users for our application (Obviously not for same module/screen). So what is optimal number of connections should we configured in connection pool (min and max number) (We are using weblogic AS' connection pooling mechanism) ? 回答1: There is a very simple answer to this question: The number of connections

how to debug java web application in eclips with weblogic server

左心房为你撑大大i 提交于 2019-11-27 18:45:22
问题 I have java application with Eclipse IDE and WebLogic 11g server. Is it possible to debug application remotely? if yes how? 回答1: Add the following line to the script file used to start Weblogic server, e.g. startWeblogic.cmd set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n The Weblogic Server console should display the message: Listening for transport dt_socket at address: 8453 In eclipse follow the instructions below: Select Run > Debug

weblogic的ssrf漏洞

余生颓废 提交于 2019-11-27 18:41:01
前言 什么是ssrf SSRF(Server-Side Request Forgery:服务器端请求伪造) 是一种由攻击者构造形成由服务端发起请求的一个安全漏洞。 一般情况下,SSRF攻击的目标是从外网无法访问的内部系统。 举一个例子: 比如一个添加图文的功能,填入标题内容和封面图然后提交在网站前台显示,对于这个功能的图片它除了可以让你上传以外,还支持填入远程图片地址,如果你填入了远程的图片地址,则该网站会加载远程图过来进行显示,而如果程序写法不严谨或者过滤不严格,则加载图片地址的这个功能可能就可以包含进行一些恶意的脚本文件,或者你输入内网的 ip 或者一些系统的文件都会被解析执行,这个我们一般叫它 SSRF 即服务端请求伪造。 危害:一般我们是无法请求到系统上的文件的,内网的 ip 我们也是无法访问的,有了 SSRF 后,我们提交的加载连接是用服务器进行加载解析,实际上相当于我们以存在 SSRF 这个服务器为跳板进行的一些加载操作。 一般ssrf漏洞的页面是get请求,访问内网地址的时候返回的是状态码,根据返回信息,我们可以对内网的IP和端口进行信息收集,可以收集到一些内网机子的断开开放情况 比如redis服务,如果内网有IP开启6379端口,那么我们就可以用存在ssrf的机子给含有redis服务的机子发送命令,然后反弹shell.

Weblogic Configuration - prefer-web-inf-classes

家住魔仙堡 提交于 2019-11-27 18:19:52
问题 prefer-web-inf-classes has to be specified for the classes specified in Web-INF to take precendence over classes present in application library of weblogic server. I have a special case where I need the class loader to use one specific jar from WEB-INF folder. Is there any way of doing this? 回答1: You may want to look at Filtering Classloaders? This allows to specify on a package-by-package level just which classloader to use. You want to be very careful with this, though. Are you sure you

jaxws 2.1.5 on weblogic 10.3.1 instead of pre-installed jaxws 2.1.1?

核能气质少年 提交于 2019-11-27 16:44:09
问题 Is it possible, and when yes, how? 回答1: Actually, the JAX-WS implementation bundled in WebLogic 10.3 is based on JAX-WS RI 2.1.4 as documented in the What's New in WebLogic Server: The WebLogic Server implementation of JAX-WS is based on the JAX-WS Reference Implementation (RI), Version 2.1.4, and includes enhancements to the tool layer to simplify the building and deployment of JAX-WS services and to ease the migration from JAX-RPC to JAX-WS. The following features and enhancements are

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-27 14:28:06
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? 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~ Package your war insider an EAR and use WebLogic Filtering classloader that you configure in a weblogic

Indirectly referenced from required .class file

纵饮孤独 提交于 2019-11-27 13:27:10
问题 I'm getting an error message when I try to build my project in eclipse: The type weblogic.utils.expressions.ExpressionMap cannot be resolved. It is indirectly referenced from required .class files I've looked online for a solution and cannot find one (except for those sites that make you pay for help). Anyone have any idea of a way to find out how to go about solving this problem? Any help is appreciated, thanks! 回答1: How are you adding your Weblogic classes to the classpath in Eclipse? Are