jboss

Unable to profile JBoss 5 using jvisualvm

走远了吗. 提交于 2020-01-23 11:22:09
问题 I've been getting some java.lang.OutOfMemoryError: GC overhead limit exceeded errors while running my Java app overnight: java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid6376.hprof ... Heap dump file created [512149941 bytes in 23.586 secs] 23:34:52,163 WARN [HDScanner] Scan failed java.lang.OutOfMemoryError: Java heap space 23:34:52,298 ERROR [ContainerBase] Exception invoking periodic operation: java.lang.OutOfMemoryError: Java heap space 23:34:52,321 ERROR [JIoEndpoint]

JBoss EAP 6 configure single server for remote debugging in domain mode

此生再无相见时 提交于 2020-01-23 10:50:08
问题 I have Domain controller, one Host controller and one server running in the same machine. I'm using IDEA to connect to the remote server for debugging but it's not stopping on break points even though it's running the code (i've verified with system outs). I've enabled HOST_CONTROLLER_JAVA_OPTS and PROCESS_CONTROLLER_JAVA_OPTS for remote debugging in $JBOSS_HOME/bin/domain.conf: # Sample JPDA settings for remote socket debuging. PROCESS_CONTROLLER_JAVA_OPTS="$PROCESS_CONTROLLER_JAVA_OPTS

Web app won't join Infinispan cluster

萝らか妹 提交于 2020-01-23 10:36:26
问题 I've been playing around with Infinispan lately, having had no previous experience with Infinispan. I've come across an interesting problem and I wondered if anyone might be able to shed some light on it. I have a standalone Java application (GridGrabber.jar) that bundles the Infinispan jars and has a class to add/remove and list items from the grid. Within the application I create the CacheManager as follows: DefaultCacheManager m = new DefaultCacheManager("cluster.xml"); The application

@EJB inject from different jar

僤鯓⒐⒋嵵緔 提交于 2020-01-23 08:07:49
问题 I'm trying to inject a bean located in a different jar file then the bean i'm trying to inject it into. Both beans are just basic @Stateless beans with local and remote interfaces. If i use the normal injection @EJB IBean injectedBean; or @EJB IBeanLocal injectedBean; i get a NullPointerException when deploying the application. If i use: @EJB(mappedName="Bean") IBean injectedBean; or @EJB(mappedName="Bean") IBeanLocal injectedBean; everything works and JBoss throws no deployment errors. I

How to log ip address on JBoss

时间秒杀一切 提交于 2020-01-22 22:50:41
问题 I want to log the IP address of the client who is calling my WS. How can I do that on JBoss? EDIT: I would like to use log4J configuration on JBOSS if possible. 回答1: Append the following to your conversion pattern parameter in log4j configuration xml. %X{RemoteAddress} And in your code you can log the ip address as follows: MDC.put("RemoteAddress", request.getRemoteAddr()) 回答2: Read this, in case you are provind functionality via EJB3. 来源: https://stackoverflow.com/questions/3346365/how-to

How to log ip address on JBoss

戏子无情 提交于 2020-01-22 22:49:22
问题 I want to log the IP address of the client who is calling my WS. How can I do that on JBoss? EDIT: I would like to use log4J configuration on JBOSS if possible. 回答1: Append the following to your conversion pattern parameter in log4j configuration xml. %X{RemoteAddress} And in your code you can log the ip address as follows: MDC.put("RemoteAddress", request.getRemoteAddr()) 回答2: Read this, in case you are provind functionality via EJB3. 来源: https://stackoverflow.com/questions/3346365/how-to

What version of JBoss I am running?

空扰寡人 提交于 2020-01-22 10:43:20
问题 (As asked in title:) How do I tell what version of JBoss I am running? I am also curious what version of tomcat I am running. Does a specific version of JBoss correspond to a certain version of tomcat? 回答1: JBoss has an MBean called Server. That reports the build and version of JBoss itself. Once you know the version, you can see what components are involved. It is not that well cataloged, but you can see it in the release notes. 回答2: In your JBoss lib Directory: Open the file jboss-system

What version of JBoss I am running?

我们两清 提交于 2020-01-22 10:42:04
问题 (As asked in title:) How do I tell what version of JBoss I am running? I am also curious what version of tomcat I am running. Does a specific version of JBoss correspond to a certain version of tomcat? 回答1: JBoss has an MBean called Server. That reports the build and version of JBoss itself. Once you know the version, you can see what components are involved. It is not that well cataloged, but you can see it in the release notes. 回答2: In your JBoss lib Directory: Open the file jboss-system

How do Migrate Java, Spring Project to use JNDI datasources

喜你入骨 提交于 2020-01-22 03:26:05
问题 I have a Java project that runs from the command line. It is using Spring. At the current time my project is mySQL. Use can see from the config.xml below <bean id="mysqldataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver" /> <property name="url" value="mysqldataSource.url" /> <property name="username" value="mysqldataSource.username" /> <property name="password" value="mysqldataSource.password" /> <

How to get text/xml as UTF-8 from a multipart/form-data request with RESTeasy?

我与影子孤独终老i 提交于 2020-01-21 23:52:47
问题 thanks for your answer, but using an InputStream instead of using getBody(...) does also not work. The code below returns the same result as the one from my original post. final InputStream inStream = fileUploadInput.getFormDataPart(searchedInput, InputStream.class, null); // get bytes final byte[] inBytes = new byte[1024]; final ByteArrayOutputStream outBytes = new ByteArrayOutputStream(inBytes.length); int length = 0; while((length = inStream.read(inBytes)) >= 0) { outBytes.write(inBytes, 0