weblogic

Logging JPA SQL with Weblogic 10.3

旧街凉风 提交于 2019-11-30 17:20:11
问题 By looking into the Open JPA website i've found that i can log the generated SQL by using the following: <property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO, Tool=INFO"/> If i try to add the above property to my persistence.xml i get the following warning from weblogic: <Warning> <J2EE> <BEA-160202> <You have specified a ope njpa.Log setting in your configuration for persistence unit services.ear#services-ejb.jar#exp#exp. This setting will be ignored, and all log messages will

Weblogic application context root is war file name instead of name specified in weblogic.xml

亡梦爱人 提交于 2019-11-30 15:15:20
问题 I have an application which I have deployed using Maven to Weblogic 10.3.6 . I have specified context root in weblogic.xml as <context-root>/myapps</context-root> The problem I am having is it is taking the war file name as context root instead of the name I have specified in weblogic.xml How can I change the context root instead of the name taking war file name as context root? Weblogic.xml <?xml version="1.0" encoding="UTF-8"?> <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic

cannot send message to weblogic queues

ε祈祈猫儿з 提交于 2019-11-30 13:43:17
Iam trying to send a string message into a JMS queue created in weblogic server. Iam using Eclipse ide and when i run my web application i get the following error and the tomcat server gets shutdown.The error is javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: failed to unmarshal class weblogic.security.acl.internal.AuthenticatedUser; nested exception is: java.io.StreamCorruptedException: invalid type code: 31] at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:74) at weblogic.jndi.internal.ExceptionTranslator

sl4j/logback under weblogic

泪湿孤枕 提交于 2019-11-30 11:39:28
I'm trying to configure sl4j/logback under Weblogic12. I deploy ear file, which has war file, which has WEB-INF\classes\logback.xml Here is the config: <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> </encoder> </appender> <root level="debug"> <appender-ref ref="STDOUT" /> </root> </configuration> My code to log : private static final Logger logger = LoggerFactory.getLogger(FrontEndServlet.class); //...... logger.info("info test"); logger.debug("debug test"); logger.error("error test");

WebLogic stuck thread protection

六眼飞鱼酱① 提交于 2019-11-30 11:01:47
By default WebLogic kills stuck threads after 15 min (600 s), this is controlled by StuckThreadMaxTime parameter. However, I cannot find more details on how exactly "stuckness" is defined. Specifically: What is the point at which 15 min countdown begins. Request processing start? Last wait() -like method? Something else? Does this apply only to request-processing threads or to all threads? I.e. can a request-processing thread "escape" this protection by spawning a worker thread for a long task? Especially, can it delegate response writing to such a worker without 15 min countdown? My usecase

How do I have weblogic reload cached JSPs on restart

一个人想着一个人 提交于 2019-11-30 09:08:02
Our method of deploying a new version of an app for weblogic (11g) is to copy over top of the existing ear file and then stop and restart the weblogic server. We do a start/stop of weblogic rather than a redeployment, because of the known permgen issue (where eventually we will run out of perm gen and have to bounce the weblogic server). However, this method of deploying has a drawback-- new JSP versions are not seen by weblogic. In order to fix this we have had to wipe out the contents of the tmp directory that maintain a cache of the compiled JSPs prior to restarting the server. Is there a

ClassCastException while parsing XML with WebLogic

这一生的挚爱 提交于 2019-11-30 08:45:49
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. It's always the xml-apis.jar . Remove them from your classpath (e.g. remove them from WEB-INF/lib of your webapp). I think Banang is right. Forum http://forum.springsource.org/showthread.php?t=22597 describes solution for similar

Where should I start investigating SocketTimeoutException: Read timed out

£可爱£侵袭症+ 提交于 2019-11-30 08:05:09
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, file handlers and cpu Any other config settings that might influence the socket connection Would thread

How to increase memory in weblogic

无人久伴 提交于 2019-11-30 07:23:25
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 ? 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 class objects and method objects ( it's independent from the heap size,, give it the 1/3 to 1/4 of the Xms size

解决Weblogic与Hibernate的jar冲突

余生长醉 提交于 2019-11-30 07:21:18
项目运行的时候,提示找不到org.hibernate.hql.ast.HqlToken这个类,可我jar包明明有啊,上网一搜,原来是Weblogic11已经带了antlr,所以没有用到了hibernate3相关的antlr-2.7.5H3.jar包,所以只要把antlr-2.7.5H3.jar的classpath提到weblogic.jar的前面就OK了 Linux中: 拷贝antlr-2.7.5H3.jar 到 ${WL_HOME}/server/lib,然后打开你domain的startWeblogic.sh文件 将 CLASSPATH=${CLASSPATH}${CLASSPATHSEP}${MEDREC_WEBLOGIC_CLASSPATH} 修改为 export HIBERNATE_CLASSPATH="${WL_HOME}/server/lib/antlr-2.7.5H3.jar" CLASSPATH=${HIBERNATE_CLASSPATH}${CLASSPATH}${CLASSPATHSEP}${MEDREC_WEBLOGIC_CLASSPATH} 就ok了 Windows中的写法有点不一样,大同小异,写法如下 set HIBERNATE_CLASSPATH=%WL_HOME%\server\lib\antlr-2.7.5H3.jar; set CLASSPATH