weblogic

Tomcat vs Weblogic JNDI Lookup

守給你的承諾、 提交于 2019-11-26 08:10:42
问题 The Weblogic servers we are using have been configured to allow JNDI datasource names like \"appds\". For development (localhost), we might be running Tomcat and when declared in the <context> section of server.xml, Tomcat will hang JNDI datasources on \"java:comp/env/jdbc/*\" in the JNDI tree. Problem: in Weblogic, the JNDI lookup is \"appds\" whilst in Tomcat, it seems that that I must provide the formal \"java:comp/env/jdbc/appds\". I\'m afraid the Tomcat version is an implicit standard

SessionTimeout: web.xml vs session.maxInactiveInterval()

拜拜、爱过 提交于 2019-11-26 07:22:00
问题 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

How to set order of jars in WebLogic?

拥有回忆 提交于 2019-11-26 06:45:59
问题 In my application I am using Joda-Time 2.0 but in my WebLogic path there is library Joda-Time 1.2. How can I change the order and tell WebLogic to use my library? Now it is using its own library, not mine. I just added a Maven project dependency to Joda-Time 2.0. 回答1: There are several ways of doing this. Change your startWeblogic.cmd(sh) in the bin folder for your domain, look for the classpath setting and add the new joda before any other WebLogic jars as was said above, you can change your

weblogic动态调试环境搭建

僤鯓⒐⒋嵵緔 提交于 2019-11-25 21:39:15
一:docker配置修改以支持远程调试 Docker-compose.yml 添加8453端口,该端口会是远程调试端口 Docker-compose up -d 下载并运行镜像 修改weblogic配置文件以支持远程调试 进入docker docker exec -it cve-2018-2628_weblogic_1 /bin/bash /root/Oracle/Middleware/user_projects/domains/base_domain/bin/setDomainEnv.sh 添加export debugFlag=“true" 完成后,重启docker镜像 docker-compose restart 二:配置IDEA 拷贝docker中的web logic 源码到本地 Docker cp 容器名:/root ./weblogic_jars 我这里容器名为cve-2018-2628_weblogic_1,启动docker为root账号 所以 docker cp cve-2018-2628_weblogic_1:/root ./weblogic_jars 即保存docker的根目录到本地的weblogic_jar Idea open project 打开 weblogic_jars/Oracle/Middleware/wlserver_10.3目录 File—>