weblogic

java.lang.NoClassDefFoundError: org/dom4j/Document

筅森魡賤 提交于 2019-12-18 08:26:33
问题 I have a class called XMLtoXML.java and this is one of it's methods... import org.dom4j.Document; import org.dom4j.Element; import org.dom4j.Node; import org.dom4j.io.OutputFormat; import org.dom4j.io.XMLWriter; public Object[] process(Object data) { String templateXML = null; Object result[] = null; String inputxml = null; String templateNumber = null; Iterator iterator = null; String scenarioConfigUrl = null; Node inputNode; Node outputNode; String subTemplateXML = null; String outputXml =

JAVA定位CPU占用率高

三世轮回 提交于 2019-12-18 05:25:21
一、top命令定位cpu占用率高的进程号(pid),找到pid后,top -p pid -H,记录出cpu占用率高的线程号(tid),用printf "%x\n" tid将其转换为16进制 二、使用jstack打印进程信息,为准确定位可以多来几次,jstack pid > pid_1.log 三、打开日志文件,找到十六进制的线程信息,可定位到具体类的某一行。 示例 1、 1 Tasks: 546 total, 1 running, 544 sleeping, 0 stopped, 1 zombie 2 Cpu(s): 15.3%us, 0.1%sy, 0.0%ni, 84.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st 3 Mem: 24633804k total, 23710152k used, 923652k free, 784472k buffers 4 Swap: 32764556k total, 127120k used, 32637436k free, 7000668k cached 5 6 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7 25930 weblogic 18 0 5311m 4.5g 29m S 488.1 19.3 35663:17 java 8 16830

External properties file with Weblogic

好久不见. 提交于 2019-12-18 04:12:43
问题 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 回答1: Another alternative

Weblogic Transaction Timeout : how to set in admin console in WebLogic AS 8.1

[亡魂溺海] 提交于 2019-12-17 22:27:45
问题 I face the following exception: weblogic.transaction.internal.TimedOutException: Transaction timed out after 300 seconds this is set within the Stateless Session EJB Bean as javax.transaction.UserTransaction jtaTransaction.setTransactionTimeout(300) but I cannot figure out, where in the application console to set this property. 回答1: After logging in, on the home page of the Server Console you should see 3 sections: Information and Resources Domain Configurations Services Configurations Under

Session Management in microservices

走远了吗. 提交于 2019-12-17 22:24:29
问题 We have the following setup. STM (Stingrey Traffic Manager) does load balancing + session stickiness Weblogic 'cluster' Auth handled by a third party tool Therefore I do not have to worry about session with regards to horizontal scaling/ running multiple instances of the application. STM/ Weblogic cluster makes sure that the subsequent request come to same managed server. What we currently have is a monolithic application and we are trying to move to microservices. Also we do not wan't to

Tomcat 8 - LDAP: NameNotFoundException error code 32, remaining name empty string

孤街醉人 提交于 2019-12-17 20:34:51
问题 Trying to migrate an application from WebLogic 12.2.1 to Tomcat 8.5.4 , what under Weblogic was an entry as Foreign JNDI Providers for an LDAP connection has been migrated to a new Resource under Tomcat. Following this advice on Stack Overflow, a custom LdapContextFactory has been packaged as a new jar file under Tomcat lib folder. In the Tomcat server.xml file the following GlobalNamingResources/Resource has been configured: <Resource name="ldapConnection" auth="Container" type="javax.naming

Custom arguments to set in Weblogic JVM

纵饮孤独 提交于 2019-12-17 19:18:41
问题 I need a custom property to set per each server JVM in Weblogic. What is the better approach doing it? I know we can specify the argments like below: In the Domain Structure pane, expand the Servers node. Click the name of the server that you want to configure. In the right pane, click Server Start. Select Lock & Edit. In the Arguments text box, provide the JVM options. After inserting your options, click Save. Then click Activate Changes. Restart the server so that the new settings are used.

Weblogic datasource disappears from JNDI tree

寵の児 提交于 2019-12-17 18:35:14
问题 We are using weblogic version 12C. Steps to reproduce the issue: - Create the datasource. Deploy the application to weblogic. Application works fine. Update the deployed ear with the new one. Application is not able to connect the datasource. Datasource not available in the JNDI tree. We need to create either a new datasource everytime or save the datasource setting again. Can someone please check and let me know if you know some solution for this? 回答1: I had the same problem. Adding

Weblogic remote debugging using eclipse

五迷三道 提交于 2019-12-17 16:57:07
问题 My Weblogic is installed in a Red hat OS machine. In the startWebLogic.sh i have added this line JAVA_OPTIONS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n %JAVA_OPTIONS%" When I try to connect from my Eclipse I get a "Failed to connect to remote VM. Connection refused. Connection refused: connect" message. Can you please tell me where I may be going wrong? 回答1: In the startWebLogic.sh file in the bin folder, in the RHEL add this line -Xdebug -Xnoagent

JSF 2 Issues in Application Servers?

拟墨画扇 提交于 2019-12-17 16:34:02
问题 I am familiar with the classloading trouble when using JSF 2 in Websphere 7. I'd like to know if there are similar problems on other fullstack application servers. What about JBoss 5+, WebLogi 10+, etc? Are there any known issues with JSF 2 and if so, what needs to be done to get JSF 2 running on these servers? Thx 回答1: On WebSphere 5.x up to with the current 8.x you need to set the WAR and EAR classloader to PARENT_LAST in the WAS admin console whenever you want to bundle and use your own