jboss

Wildfly 10.1 Consuming All Cores

╄→尐↘猪︶ㄣ 提交于 2020-01-13 19:48:11
问题 We have recently upgraded our banking application from java 1.6 to 1.8 and jboss 4.x to wildfly 10.1. We have observed that java consuming all the cores (10), available on the machine. Can someone tell what is the reason, normally with jboss 4.x max CPU utilisation was up to 4 cores. Do i need to configure anything for Garbage collection? Below is the result of (added on process consuming high cpu) ps -eLo pid,lwp,nlwp,ruser,pcpu,stime,etime,args|grep 3630 Below is the hex for each LWP

Managed Mbeans from ManagementFactory in JDK1.6 - NotCompliantMBeanException:

谁说胖子不能爱 提交于 2020-01-13 16:24:31
问题 I was using ManagementFactory to get ManagedMbeans in JDK1.5 and JBOSS 4.X. Now wanted to move my same code to JDK 1.6. The Mbean part breaks throwing the exception Caused by: javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Object Caused by: java.lang.Exception: Unable to register platform (JVM) MBeans with JBoss MBeanServer 回答1: Here's 2 approaches: Make JBossAS use the platform MBeanServer. Create your own proxies that implement the

Classloading order in JBoss

被刻印的时光 ゝ 提交于 2020-01-13 10:49:25
问题 I'd like to know if the default behavior of JBoss server (4.2.3.GA in my case) is loading the classes in parent-first or parent-last mode. And in case it work as I suspect in parent-last mode (i.e. first trying to load classes from the application's WEB-INF/lib and only if they are not found go to server\lib), how can I configure it to work in the opposite- first trying to load classes from outside and only looking inside the application afterwards. 回答1: It sounds like you need to set

How to start jboss 7.1.1 server and deploy project in jboss 7.1.1

北城以北 提交于 2020-01-13 10:27:08
问题 I use JBoss 7 server so I downloaded JBoss 7.1.1 version and unzip this zip file. Then I go to bin folder and double click on standalone.bat but new cmd window open and close within 2 -3 sec. If I run it using cmd, I get: E:\jboss-as-7.1.1.Final\bin>standalone.bat Calling "E:\jboss-as-7.1.1.Final\bin\standalone.conf.bat" then it stops. So the JBoss server does not start. How can I run JBoss server and deploy projects in it on Window 7? 回答1: Give JAVA_HOME environment variable in your System

How to configure jboss repository properly for my repository manager

谁说胖子不能爱 提交于 2020-01-13 10:19:12
问题 https://repository.jboss.org/nexus/content/groups/public-jboss/ https://repository.jboss.org/nexus/content/groups/public/ https://repository.jboss.org/nexus/content/repositories/releases/ Which repository am I supposed to use? I am unable to view the listing of any of the above repositories when I paste this URL on my browser? What settings should I use to pull jboss release artifacts in Nexus? 回答1: First you have to add the JBoss repo - http://repository.jboss.org/nexus/content/groups/public

Upload large file to JBoss Issue from Asp.net Client

可紊 提交于 2020-01-13 07:28:06
问题 All , I had a JBoss application which uses apache-common-fileupload component, I had tested it can be uploaded large file from a asp.net Client which use HttpWebRequest in post method. But after several times of successful upload.It failed with a exception below in JBoss console. Please help to check it .Thanks. org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly at org.apache.commons.fileupload

JBoss 7.1, JSF, RichFaces - rich components don't want to render

前提是你 提交于 2020-01-13 06:50:08
问题 I'm learing RichFaces now for my JSF project, but i have problem with rendering rich components in my enviroment. I have added RichFaces jar(all 4 jars from RichFaces page) to JBoss modules (E:\JBoss\modules\org\richfaces\main) with module.xml: <module xmlns="urn:jboss:module:1.1" name="org.richfaces"> <resources> <resource-root path="richfaces-components-api-4.2.1.Final.jar"/> <resource-root path="richfaces-components-ui-4.2.1.Final.jar"/> <resource-root path="richfaces-core-api-4.2.1.Final

java.lang.ClassCastException: oracle.sql.CLOB cannot be cast to oracle.sql.CLOB

泄露秘密 提交于 2020-01-13 04:10:09
问题 I recently upgraded an application to run using JAVA 7 and JBoss 7.1.1 This application was originally developed on JAVA 5 and Jboss 4.2.2. This application uses hibernate 3 for persistence. On the new platform, the application is failing when there is an attempt to INSERT into a table with CLOB fields with the above error. I am using ojdbc14.jar (backend database Oracle 10.2.0.3) These are things that I have verified in jboss 7.1.1 configuration: Creation of the correct module for Oracle.

JBOSS 7 with two contexts. One with SSL Mutual Auth and the other just SSL

匆匆过客 提交于 2020-01-12 09:14:25
问题 We are having a problem to configure our JBoss. We are tring to configure it to make it possible to use at the same time Mutual auth and to don't use it. Like: https://example.com/contextA/ (Requires SSL Mutual auth) https://example.com/contextB/ (Just SSL) Is it possible? What I could do is to make or all the JBoss use SSL mutual auth or don't. How can I configure it to be both at the same time? My contextA web.xml: <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3

JEE6 REST Service @AroundInvoke Interceptor is injecting a null HttpServletRequest object

折月煮酒 提交于 2020-01-12 07:54:05
问题 I have an @AroundInvoke REST Web Service interceptor that I would like to use for logging common data such as the class and method, the remote IP address and the response time. Getting the class and method name is simple using the InvocationContext, and the remote IP is available via the HttpServletRequest, as long as the Rest Service being intercepted includes a @Context HttpServletRequest in its parameter list. However some REST methods do not have a HttpServletRequest in their parameters,