weblogic

WebLogic load balancing

我的梦境 提交于 2019-12-04 14:01:10
问题 I'm currently developing a project supported on a WebLogic clustered environment. I've successfully set up the cluster, but now I want a load-balancing solution (currently, only for testing purposes, I'm using WebLogic's HttpClusterServlet with round-robin load-balancing). Is there any documentation that gives a clear comparison (with pros and cons) of the various ways of providing load-balancing for WebLogic? These are the main topics I want to cover: Performance (normal and on failover );

JPA 2.0 in WebLogic Server 10.3.6

a 夏天 提交于 2019-12-04 12:41:36
I need to use JPA 2.0 (with the EclipseLink implementation). The problem is that I also need to deploy this app in a WebLogic 10.3.6 server, which implements the Java EE 5 specification, and so, it is not required to support JPA 2. I know that there are patches that can be used to add support for JPA 2.0 in this version , but the sysadmin doesn't want to change anything in the server at all I tried adding the javax.persistence-2.1.0.jar file to my war thinking that my app would just use this file instead of the one provided by WebLogic. Does this make any sense? Is there a way to achieve this

No Dialect mapping for JDBC type: -9

我们两清 提交于 2019-12-04 12:29:19
I'm having a trouble with a native SQL query... When this code : SimpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); List<Object[]> objects = entityManager.createNativeQuery(" select ERROR_CODE, REASON, count(*) " + // " from flow_error " + // "where timestamp " + // " between to_date(:endDate,'YYYY-MM-DD HH24:MI:SS') " + // " and to_date(:startDate,'YYYY-MM-DD HH24:MI:SS') " + // " AND TRANSACTION_UUID in ( " + // " SELECT TRANSACTION_UUID " + // " FROM RJT_HIST " + // " WHERE insert_tst " + // " between to_date(:endDate,'YYYY-MM-DD HH24:MI:SS') " + // " and to_date(:startDate,

Creating WebLogic users programmatically from a standalone Java client

安稳与你 提交于 2019-12-04 11:45:16
I'm trying to create users in WebLogic (10.3.4) programmatically from a simple standalone Java client (one class --> two methods: createWeblogicUser() & main()). public void createWeblogicUser() { try { Hashtable<String, String> env = new Hashtable<String, String>(); env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); env.put(Context.SECURITY_PRINCIPAL, "weblogic"); env.put(Context.SECURITY_CREDENTIALS, "weblogic"); env.put(Context.PROVIDER_URL, "t3://myserver:7001"); InitialContext ctx = new InitialContext(env); MBeanServer wls = (MBeanServer) ctx.lookup("java

StartSSL class 1 certificate not accepted by browser (Weblogic 10.0.1)

非 Y 不嫁゛ 提交于 2019-12-04 11:35:24
问题 I have requested a class 1 certificate from StartSSL and installed it in Weblogic 10.0.1 (see screenshots). The browsers (Chrome & IE9 on Windows 7, IE8 on XPSP3) still give a certificate error (see screenshots). I think the StartSSL root certificate is available in several browsers (see here). Please advise. 回答1: StartSSL Class 1 certificates are signed by a intermediate CA, which is signed by the StartCom Root CA. For your browser to trust this certificate, it needs to know the trust chain

Session Timeout in web.xml not working for weblogic server

岁酱吖の 提交于 2019-12-04 11:28:40
I have set the timeout to 30 mins in web.xml and have successfully deployed the webapp in WebLogic. Now the app is up and running but when the max inactive interval reaches, the session doesn't timeout. This same app is timing out in tomcat properly. Can anyone please suggest some idea? Also I want to know whether there is an app specific weblogic.xml? If yes, then where do I find it? A couple of options you have: You can edit the File web.xml: Edit the session-timeout of the session-config in the file web.xml. Please note in web.xml, the session timeout is set in minutes. <session-config>

NullPointerException while deploying project on Weblogic 12.2.1

我只是一个虾纸丫 提交于 2019-12-04 09:22:27
We have a JSF application that was on Weblogic 10.3.6 and that we try to deploy on Weblogic 12.2.1. For information, we succeeded in deploying on Weblogic 12.1.3 without any changes in the project. We are facing a NullPointerException while deploying on Weblogic 12.2.1 : . . JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 . CLASSPATH=C:\tools\java8\JDK18~1.0_1\lib\tools.jar;C:\BEA122~1.1\wlserver\server\lib\weblogic.jar;C:\BEA122~1.1\oracle_common\modules\net.sf.antcontrib_1.1.0.0_1-0b3\lib\ant-contrib.jar;C:\BEA122~1.1\wlserver\modules\features\oracle.wls.common.nodemanager

EJB weblogic.ejb20.cache.CacheFullException

痞子三分冷 提交于 2019-12-04 08:25:25
I am working on one application using EJB1.2. previously running fine but from past few days I am getting following exception Exception in ejbLoad:: weblogic.ejb20.cache.CacheFullException: size=85783, target=5000, incr=1 at weblogic.ejb20.cache.EntityCache$SizeTracker.shrinkNext(JI)Lweblogic.ejb20.cache.EntityCache$MRUElement;(EntityCache.java:438) at weblogic.ejb20.cache.EntityCache.put (Ljavax.transaction.Transaction;Lweblogic.ejb20.cache.CacheKey;Ljavax.ejb.EntityBean;Lweblogic.ejb20.interfaces.CachingManager;)V(EntityCache.java:141) at weblogic.ejb20.manager.DBManager.getReadyBean(Ljavax

在eclipse中使用Weblogic

早过忘川 提交于 2019-12-04 08:19:11
1.安装Weblogic。 2.在Weblogic中配置domain。 3.在eclipse中建立web项目。 4.导人外部jar包:weblogic.jar和webservices.jar,采用外部导入的方式,保证这两个jar包在weblogic安装目录下。 5.配置run参数 VM arguments为: -Xms32m -Xmx200m -XX:MaxPermSize=128m -Dweblogic.Name=myserver -Dbea.home="D:/bea" -Dweblogic.management.username=weblogic -Dweblogic.management.password=password -Dweblogic.ProductionModeEnabled=FALSE -Djava.security.policy=B349="D:/bea/weblogic81/server/lib/weblogic.policy" 6用Weblogic发布eclipse中建立的项目,成功后就可以在eclipse中直接运行该项目了。 总结:该方法不需要插件就可以集成Weblogic开发调试了,但要做相应的配置和导入需要的jar包。 来源: oschina 链接: https://my.oschina.net/u/98173/blog/35354

Why its showing your JDK c:program files\java\jre7 is not a valid JDK while instaling weblogic server?

旧城冷巷雨未停 提交于 2019-12-04 07:51:49
问题 It's showing - This installer must be executed using a Java Development Kit (JDK) but C:\Program Files\Java\jre7 is not a valid JDK. - while instaling weblogic server. I have installed the 64 bit JDK version 1.7. Please tell where I am making a mistake? 回答1: i faced the same problem even when JAVA_HOME points to JDK this is how i resolved it , run command prompt as administrator go to the directory which contains your jar file C:\Windows\system32>cd/ C:\>cd oracleweblogic Set JAVA_HOME and