weblogic

Hibernate连接Weblogic的数据源

两盒软妹~` 提交于 2019-11-30 07:21:03
因为前两天,发了关于hibernate配置多数据库连接和选择什么服务器方案的缘故,有的朋友就动了心眼儿。。呵呵,想把程序跑在weblogic上,结果接着一连串的问题都出来了, 应几个朋友的需求,要用Hibernate调用Weblogic的数据源,所以,我就写了个配置的小例子,希望能帮助大家。 第一步 :安装weblogic,配置数据源,我机器上装的是9.2,所以就拿weblogic9.2为例子讲解,数据库选用oracle,数据源名称为oracleDataSource 第二步 、Hibernate.cfg.xml的配置文件如下: <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" " http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd "> <hibernate-configuration> <session-factory> <property name="hibernate.connection.datasource">oracleDataSource</property> <property

解决weblogic下jar包冲突的问题

霸气de小男生 提交于 2019-11-30 07:19:39
刚刚帮同事解决了在weblogic部署webapp的问题; 最终的问题是jar包冲突; 找问题的过程就不赘述了,各种try之后,确定了问题; 然后我就查询了weblogic的类加载顺序的问题,不同于tomcat,weblogic的类加载顺序是: 首先加载domain/lib下的jar,然后再加载webapp/web-inf/lib下的jar 同事的项目是flex+spring,通信框架要求spring.jar必须放在web-inf/lib下; 其实目前一个最简单的解决方案就是删掉domain/lib下的spring.jar,但其他的app就不好使了; 所以问题就定位在类加载顺序的问题上,只要让weblogic的加载顺序修改为先加载web-inf/lib下的jar就ok 随后我在weblogic的文档(http://edocs.weblogicfans.net/wls/docs92/webapp/weblogic_xml.html#wp1067857)找到了如下解决方案: prefer-web-inf-classes 如果将 <prefer-web-inf-classes> 元素设置为 true,则将优先加载位于 Web 应用程序的 WEB-INF 目录中的类,然后再加载应用程序或系统类加载器中的类。默认值为 false。控制台中指定的值优先于手工设置的值。 最终的解决办法:

【教程】解决升级weblogic 12.2.1.3报错ClassNotFoundException: org.springframework.aop.framework.AopConfigException

霸气de小男生 提交于 2019-11-30 06:24:16
最近web项目的weblogic要从12.1.2升级到12.2.1.3,需要重新建域和服务,按照步骤一步一步操作,结果在启动项目的时候报错: <2019-9-18 下午02时06分52秒 CST> <Error> <Deployer> <BEA-149231> Unable to set the activation state to true for the application "*XXX". weblogic.application.ModuleException: java.lang.RuntimeException: java.lang.ClassNotFoundExceptions: org.springframework.aop.framework.AopConfigException     at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)     at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)     at weblogic.application.internal.flow

weblogic jsessionid

荒凉一梦 提交于 2019-11-30 03:58:22
I run Weblogic 10.3 locally and have a question about the sessionId that it generates. When i print session.getId() i see something that resembles this: BBp9TAACMTglQ2TDFAKR4tpyXg73LZDQJ2PtT9x8htG1tWY122aa!869187422!1308677666322 what are these exclamation points and what follows it, specifically the second pair: !1308677666322 ? It looks like sometimes the server appends it and sometimes it doesn't. I believe weblogic appends it if I use the same browser to login to my app for the second time. Is this cookie related somehow? Looking at some randomly generated Weblogic JSessionIDs from my own

Weblogic Error 403--Forbidden

爷,独闯天下 提交于 2019-11-30 03:40:49
I am trying to run a Java EE application on weblogic. The application works fine on Tomcat. I have customized the war file to include weblogic.xml. This file includes the following code:- <container-descriptor> <show-archived-real-path-enabled>true</show-archived-real-path-enabled> </container-descriptor> I have also changed the configuration in properties file of the application to reflect the port on which container is listening. server.port=7001 server.modjk.enabled=false My web.xml file includes the following code:- <servlet> <servlet-name>olatservlet</servlet-name> <servlet-class>org.olat

Shutting down Spring application makes JNDI name for datasource go away from jdbc context

元气小坏坏 提交于 2019-11-30 02:47:15
问题 I'm trying to setup a web application using Spring MVC and Spring Data JPA on my Weblogic server. The application works fine the first time I deploy it to the Weblogic server but when I stop the application the jndi name (jdbc/myDS) to my datasource disappears from the JNDI Tree on my Weblogic server, and then when I try to start the application again I get the following error: Caused By: javax.naming.NameNotFoundException: Unable to resolve 'jdbc.myDS'. Resolved 'jdbc'; remaining name 'myDS'

Weblogic中Ueditor后端配置项没有正常加载,上传插件不能正常使用!

↘锁芯ラ 提交于 2019-11-29 22:43:20
原因: 百度开源UEditor插件,在本地Tomcat运行时可正常使用;但在Weblogic上运行时提示“ 后端配置项没有正常加载,上传插件不能正常使用 ”类似提示。原因是本地Tomcat测试时,都会在webapp目录形成一个对应工程的文件夹,class和jsp均可通过位于服务器的路径读取。但是Weblogic不同,Weblogic为war包,发包后也会解压形成文件夹,但其目录位置和结构与Tomcat不同; UEditor读取配置界面为controller.jsp 问题代码:String rootPath=application.getRealPath("/"); 在weblogic中该值为null,根本不会加载配置文件,中途就报错了。 解决方案 Weblogic.xml 增加参数: <show-archived-real-path-enabled>true</show-archived-real-path-enabled> 配置位置如下图: 放置在 < prefer-web-inf-classes > true </ prefer-web-inf-classes > 下方,忽略报错 接下来还需对路径做相应调整,修改Ueditor.jar包中的ConfigManager.java 我们可以在controller.jsp看到加载配置文件的过程,先是走ActionEnter.java的

在eclipse中集成Webloic server进行debug

落花浮王杯 提交于 2019-11-29 22:43:00
在做J2EE的企业级应用的时候,最令大家头痛的就是debug EJB ,Action等组件,尤其是在eclipse中,最近在研究这方面的东东,终于可以将eclipse和Weblogic无缝集成了,大大的提高了开发效率 我搭建的调试环境是 1.Eclipse SDK Version: 3.1.2 2.Weblogic Server Plug-in :com.bea.eclipse.weblogic_1.1.1 有了这两个东东就可以开始配置了 1. 进入eclipse中,进入Window --> Preferences --> Weblogic,选择Version 7.0 or higher,因为我用的是Weblogic Server 8.1,将Webloic的各项参数配置好 2. 点击Weblogic下的ClassPath子选项,配置你想要在Weblogic启动之前加载的jar包,或者你在Weblogic启动过后需要加载的jar文件,这个就根据项目的需要了。 3. 配置Weblogic 下的Java VM Options子选项,比如说你想要在启动的时候分配给Weblogic的内存大小(-Xms32m, -Xmx512m),启动的方式(-hotspot)和需要加载的配置文件,例如-Dlog4j.properties=%Path%/log4j.properties等文件 4.

IDEA启动Weblogic项目时弹出CMD窗口提示:已使用基本服务器安全策略安装了Security Manager

梦想与她 提交于 2019-11-29 22:42:26
公司的项目使用IDEA+Weblogic搭建,每次启动项目时都是提示此信息, 每次都要手动关闭CMD窗口很烦。 首先找到Weblog安装目录,然后再部署的域下面找到bin目录 找到setDomainEnv.cmd和 setDomainEnv.sh这两个版本,一般windows都是使用.cmd后缀的文件,我们打开此文件,找到 @REM Set DERBY_FLAG, if derby is available. if exist %WL_HOME%\common\derby\lib\derby.jar ( set DERBY_FLAG=true ) 找到这段,讲DERBY_FLAG=true改为false 来源: CSDN 作者: zhonghe0820 链接: https://blog.csdn.net/u012884074/article/details/82470516

weblogic修改端口号

北慕城南 提交于 2019-11-29 22:41:55
因同事项目需要,特意搭建环境测试 修改端口号有两个方案: 1、 控制台直接修改 2、配置文件修改 控制台修改 当前端口号 8081 <2018-12-7 下午02时47分45,119秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:8081 for protocols iiop, t3, ldap, snmp, http.> <2018-12-7 下午02时47分45,120秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:8081 for protocols iiop, t3, ldap, snmp, http.> <2018-12-7 下午02时47分45,130秒 CST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.> <2018-12-7 下午02时47分45,139秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed