weblogic

ClassCastException while parsing XML with WebLogic

核能气质少年 提交于 2019-11-29 11:46:23
问题 I'm getting the following error message: java.lang.ClassCastException: weblogic.xml.jaxp.RegistryDocumentBuilderFactory cannot be cast to javax.xml.parsers.DocumentBuilderFactory I've gone through some forums researching this. They said to remove xml-apis.jar or that JAR files were conflicting. But even though I did all the suggested steps, I'm getting the same error. 回答1: It's always the xml-apis.jar . Remove them from your classpath (e.g. remove them from WEB-INF/lib of your webapp). 回答2:

Where should I start investigating SocketTimeoutException: Read timed out

淺唱寂寞╮ 提交于 2019-11-29 10:57:52
问题 Every now and then I see following stacktrace in the log in which, HttpClient socket times out trying to access text/script content from another server. My question is what config settings should I check for my J2EE app running on Weblogic, on Linux? I am specifically looking for the following. JVM timeout params HttpClient params Weblogic timeout params or any other config like number of threads etc. J2EE Application settings like servlet config etc. Operating system resources like threads,

How to increase memory in weblogic

╄→尐↘猪︶ㄣ 提交于 2019-11-29 09:38:13
问题 I need to increase memory in weblogic. I am new in this and I dont know how. I need to set -Xss=4096k . How I can I do it ? 回答1: Xss is Thread Stack Size,, it is not the memory size you can change the memory size by changing the parameters Xmx the most important parameters are : -Xms1536m -Xmx1536m -XX:MaxPermSize=512m Xmx - is the max size of the heap. Xms - is the initial size of the heap.( give it the same as Xmx ) XX:MaxPermSize - is is used to hold reflective of the VM itself such as

Using Jersey 2.x web service on Weblogic 12.1.1

若如初见. 提交于 2019-11-29 07:09:47
I'm trying to deploy Jersey 2.13 web services to Weblogic 12.1.1. This version of weblogic is compliant with JSR-311 JAX-RS 1.1 specification whereas Jersey 2.x provides implementation for JAX-RS 2.0 Oracle has an instruction on how to upgrade the version of Jersey JAX-RS RI : http://docs.oracle.com/cd/E24329_01/web.1211/e24983/version.htm However even this doesn't help solving all of the deployment issues. I'm packaging the application in EAR containing WAR. In order to override weblogic jars I've included added the following weblogic-application.xml file : <?xml version="1.0" encoding="ISO

Weblogic11g for linux使用手册

泄露秘密 提交于 2019-11-29 05:56:46
Weblogic操作手册 For linux 1. 安装 为了管理上的方便和要求,由某一用户(组)管理 weblogic 及其衍生的应用。本文以 weblogic 用户为例,之后的安装及配置管理都在 weblogic 用户下进行。 1.1. JDK安装 强烈建议使用 oracle jrockit 最新版本,可从 oracle 官网下载。安装过程参见相关的安装手册。 1.2. W eblogic安装 安装过程参见相关的安装手册。 2. 域的管理 由于 weblogic 域相当于一个独立的应用服务器(使用独立的 JAVA 进程),建议应用系统的各子系统独立部署于不同的域,使其降低耦合,减少相互影响程度。已广发东莞社保金融卡系统为例,该系统包括管理系统、交换系统和社保 FTP 服务三个子系统,可分别创建三个 weblogic 域,分别部署子系统,在某个子系统出现异常时,不会造成其它子系统的停机,每个域服务的关闭和启动都互不影响,异常发生时,保证业务不会完全中断(实际经验是主要是管理系统发生异常)。 2.1. 创建域 假设 weblogic 安装目录是 /home/weblogic /Oracle/Middleware11g 。 1、在 <weblogic 安装目录 > /wlserver_10.3/common/bin 下,执行 ./config.sh 2、选择“创建新的

linux下weblogic10.3.6的安装

早过忘川 提交于 2019-11-29 05:55:30
环境准备 linux操作系统:centos64位 jdk版本:1.7 安装包:wls1036_generic.jar 到官网下载 http://www.oracle.com/technetwork/cn/middleware/weblogic/downloads/wls-main-091116-zhs.html 安装步骤 1.创建weblogic用户 useradd weblogic 2.设置weblogic用户密码 passwd weblogic 3.上传wls1036_generic.jar到linux上,并复制到weblogic文件夹下并赋予安装文件可执行的权限 cp wls1036_generic.jar /home/weblogic/ chmod a+x wls1036_generic.jar 4.切换到weblogic目录下,执行安装 cd weblogic/ java -jar wls1036_generic.jar -mode=console 5.在出现控制台后按界面提示执行下一步 6.等待安装,当出现以下界面时代表weblogic安装成功,输入exit安装结束 7.安装完成后,需要配置domain域(domain是weblogic中最大的概念,一个域下面包含着weblogic应用服务器中的所有东西,weblogic应用服务器的启动

Hibernate的Antlr在Weblogic中产生Jar冲突的历史缘故以及解决办法

我的未来我决定 提交于 2019-11-29 05:55:20
Hibernate使用的文法分析器是antlr,WebLogic同样也是。 不少用户碰到ClassNotFoundException: org.hibernate.hql.ast.HqlToken的典型问题,这个典型问题已经通过配置weblogic.xml,要求Web应用优先加载WEB-INF的Jar(即应用Classloader)而非WebLogic的System Classloader得以勉强解决: <weblogic-web-app> <container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor> </weblogic-web-app> Hibernate 3.0的用户发现上述的方法依然不能解决问题,因为Hibernate使用了Class.forName去Load一个类,而JVM加载类的方式是先 System Classloader(WebLogic),后Application Classloader(Web应用),于是,应用即使采用prefer-web-inf-classes策略,但Class.forName还是 Load了WebLogic的Antlr!! Hibernate 3.1迅速解决了这个问题

解决weblogic下FileUpload类NoSuchMethodError问题

别来无恙 提交于 2019-11-29 05:54:58
现象 在weblogic应用服务器下使用commons-fileuplad.jar上传文件的时候,报错: java.lang.NoSuchMethodError:org.apache.commons.fileupload.FileUpload.getItemIterator(Lorg/apache/commons/fileupload/RequestContext;) Lorg/apache/commons/fileupload/File ItemIterator; 原因分析 weblogic启动的时候,加载自带的 commons-fileuplad.jar,由于版本过低, FileUpload不支持该方法,所以报错。 解决办法 特别注意weblogic自带的 commons-fileuplad.jar,路径在: /opt/Oracle/MiddleWare/wlserver_10.3/server/lib/ commons-fileuplad.jar 上传高版本的jar后,问题解决。 来源: oschina 链接: https://my.oschina.net/u/781254/blog/194497

Suse 系统下 Weblogic12C 安装整合部署 Hibernate + Spring ...

不打扰是莪最后的温柔 提交于 2019-11-29 05:54:47
Suse 系统下 Weblogic12C 安装整合部署 关于Weblogic12的安装以及部署,请参照 WebLogic安装手册.pdf 由于公司客户需要,现在需要移植现成的银行系统到weblogic上部署,发现原来在tomcat上好好的系统,一到了weblogic就完全没呼吸了,弄了几天,问题解决 接下来讲解整合出现的问题 1. 关于项目部署出现 Servlet response already usestream, Writer not possible 更新Myfaces包到 1.2.12 步骤:删除项目中的myfaces-shared-impl-3.0.5.jar,myfaces-impl-1.2.5.jar, myfaces-api-1.2.5.jar 解压myfaces-core-assembly-1.2.12-bin.zip,获取lib目录下所有jar包,替换项目中重复的jar包。 Lib的jar包如下: commons-beanutils-1.8.3.jar commons-codec-1.3.jar commons-collections-3.2.jar commons-digester-1.8.jar commons-discovery-0.4.jar commons-logging-1.1.1.jar myfaces-api-1.2.12.jar

External properties file with Weblogic

别来无恙 提交于 2019-11-29 04:32:10
I'm looking for the best way to use an external properties file with an application that is going to be deployed on Weblogic 10.3 server. I read a number of articles on the site but I don't want to hard-code the path to the properties file or put the file in the domains/mydomain folder. Is there a dynamic way of doing this so when the application is deployed the properties file is also installed for example under the deployments folder and read from there? Many thanks Another alternative that does not require putting the file in a place other applications will read it is to use the Generic