jboss-eap-6

JBoss: Binding values into JNDI in JBoss EAP 6 similar to JNDIBindingServiceMgr

▼魔方 西西 提交于 2020-01-10 04:18:06
问题 How do I bind an arbitrary string to JNDI in JBoss EAP 6? I used to do it through org.jboss.naming.JNDIBindingServiceMgr MBean in previous EAP version. Is there anything similar to org.jboss.naming.JNDIBindingServiceMgr in JBoss EAP 6? We are migrating applications from jboss-5.1.EAP to jboss-eap-6.1. We need to bind some things into JNDI, so applications can look up values of environment variables. Many thanks. 回答1: You can do the following: standalone.xml: <subsystem xmlns="urn:jboss:domain

How to refer to a file present within src/main/resources folder deployed in a jboss env?

拥有回忆 提交于 2020-01-06 04:36:06
问题 I need to look up for an image present in src/main/resources folder in a web application. Its an Apache CXF SAOP based web application. We are running it in a jboss env(jboss-eap-6.4) After building the war, the same is deployed. However, I am unable to get the correct path to the above file. Please suggest. I have tried multiple options. File logo= new File("src/main/resources/image.jpg"); logo.getAbsolutePath(); // This works great when Junit tested, however breaks with the server. Neither

java.lang.NoClassDefFoundError: Could not initialize class javax.imageio.ImageIO jboss EAP 6

狂风中的少年 提交于 2020-01-03 13:57:03
问题 We are using the JBoss EAP 6; Everything works well till production environment. But Post deployment in production, we are getting the below error: java.lang.NoClassDefFoundError: Could not initialize class javax.imageio.ImageIO The error happening in one of the servlet where we are creating the Captcha. This is the line where this error is happening : ImageIO.write(bufferedImage, "png", baos); Here is the stack trace for the Error : Server:server-three] Caused by: java.lang

jboss eap workaround default setting connection: autocommit = true

那年仲夏 提交于 2019-12-25 04:12:05
问题 I'm working on a websphere 6.1 migration to jboss EAP 6.3. I find that the deployment process is very simple in jboss content that my old server contains only wars. the configuration of shared libraries has passed without problem, but the problem is with the configuration of datasources a java.sql.SQLException error: You can not commit with autocommit set! block passage. I searched on google most say that this is the standard, and that we must change the code to setAutoCommit (Fasle). But in

How to use @EJB in this local context with JBoss 6.4

我是研究僧i 提交于 2019-12-24 19:07:57
问题 I actually have problem with the annotation @EJB both with local and remote use. But in this question I would like to focus on the local use. In this experiment I use Jboss EAP 6.4. In the image below I try to show my EAR-structure and where the problem occurs, the red arrow . My code in LocalCallSessionBean that should be injected looks like: @EJB(mappedName="StatelessBean") private static BeanLocal beanLocal; public static String returnAString(String parameter) { try { String string_2 =

Dozer Singleton Startup Bean injetced as Null

ぐ巨炮叔叔 提交于 2019-12-24 13:26:25
问题 I have created an instatiator bean for Dozer (http://dozer.sourceforge.net/). But when I Inject this EJB it throws nullpointer exception. Here is my Singleton Startup Bean for intialising Dozer package com.unijunction.ordercloud.common.rest; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; import javax.inject.Singleton; import javax.ejb.Startup; import org.dozer.DozerBeanMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @Startup @Singleton public class

JBoss EAP 6.4: NoClassDefFoundError on class sun.security.jca.GetInstance

元气小坏坏 提交于 2019-12-24 01:54:53
问题 I have a deployment that calls javax.crypto.SecretKeyFactory.getInstance . The class javax.crypto.SecretKeyFactory appears to load correctly, but when the method tries to create an instance it throws a NoClassDefFoundError on sun/security/jca/GetInstance Looking at the OpenJDK8 sources shows that relevant javax.crypto.SecretKeyFactory constructor refers explicitly to a method in sun.security.jca.GetInstance , so it's normal that it tries to load it. What's odd is that both javax/crypto

Session replication on EAP JBOSS 6.0

試著忘記壹切 提交于 2019-12-23 03:17:09
问题 I am working on Struts 2 framework with EAP Jboss 6. My project session variables were stored and retrieved using 'HTTP Session Map'. When I moved on to the Domain mode of Jboss with Clustering my session values were lost while switching between different nodes of the server. Then I configured Sticky session and stored the session values in Cookies. Even though I could able to retrieve value from cookie on the first request, the HTTP session was lost. Currently I'm using Apache Mod Cluster

Error in setExceptionListener in sending message via JmsTemplate to ActivemQ (as external broker of Jboss-eap)

。_饼干妹妹 提交于 2019-12-23 02:42:45
问题 Based on this article, I've connected Jboss eap 6.2 to an external ActivemQ 5.9.0 . For sending/receiving message i'm using JmsTemplate and DefaultMessageListenerContainer in spring-jms 4.1.1 . Receiving message is working fine, but in sending message i get this error: 11:33:37,059 ERROR [stderr] java.lang.reflect.InvocationTargetException 11:33:37,060 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 11:33:37,060 ERROR [stderr] at sun.reflect

error when deploying Java WS in Jboss 6.3.0 EAP

会有一股神秘感。 提交于 2019-12-19 03:08:20
问题 I am migrating an application with Java WS from Jboss 5.1.0 to Jboss 6.3.0 EAP. It works fine with Jboss 5.1.0 but I am getting error while deploying the same in Jboss 6.3.0 EAP. 14:42:10,887 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deploy ment.unit."my-app.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."dtm-banking. war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "dtm