jboss

JBoss7.1.0: Can't find a persistence unit named null in subdeployment

北慕城南 提交于 2019-12-25 07:59:05
问题 I have a project with 3 modules inside: factory-ear, factory-ejb and factory-web. It deployed to JBoss7 as EAR with ejb.jar and web.war inside. When I trying to get EntityManager in my EJB class @PersistenceContext(unitName = "manager1") private EntityManager em; I get error JBAS011440: Can't find a persistence unit named manager1 in subdeployment "factory-ejb-1.0-SNAPSHOT.jar" of deployment "factory.ear" My persistence.xml <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0"

System.out.println messages in JBoss EAP 6.2 logs

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 07:48:00
问题 I am deploying to JBoss EAP 6. My application is issuing some System.out.println calls that I would like to see on the JBoss console. Currently I don't see any messages there. My WAR has a logging.properties file with the following contents: org.apache.catalina.session.level=ALL java.util.logging.ConsoleHandler.level=ALL org.apache.catalina.core.ContainerBase.[Catalina].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].handlers = java.util.logging.ConsoleHandler I need those

M2E Eclipse Maven Workspace resolution and CDI

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 07:24:45
问题 I have a war project A that I am deploying to JBoss AS7 that uses CDI and all works fine. But I want to use some classes in another project B, which I added to my pom.xml and turned on workspace resolution for, because these classes will be shared by multiple war projects. Now these classes work perfectly fine as long as they are in the war project A, but when I move them to B, the CDI on them stops working. The other project B has a webapp/WEB-INF/beans.xml, but when looking at the deployed

Timeout exception after upgrading to infispan 8.2

前提是你 提交于 2019-12-25 07:15:23
问题 Infinispan times out when I try to start a cache after upgrading to infinispan 8.2.2. I use the following configuration: Configuration createConfiguration(boolean persistent) { LockingConfigurationBuilder confBuilder = new ConfigurationBuilder().clustering().cacheMode(CacheMode.REPL_SYNC).sync() .replTimeout(60, TimeUnit.SECONDS) .persistence() .passivation(Boolean.FALSE) .addClusterLoader().preload(false).shared(Boolean.FALSE) .remoteCallTimeout(60, TimeUnit.SECONDS) .transaction()

Why does a remote EJB Call throw a org.jboss.remoting.serialization.ClassLoaderUtility Exception?

£可爱£侵袭症+ 提交于 2019-12-25 06:48:15
问题 I have a login module which calls a remote EJB (JBOSS 5.1) to get a javax.security.auth.Subject: public Subject getSubject (String a, String b) throws FailedLoginException On the remote side the subject is filled as follows: MyOwnPrincipalInterface principal = (MyOwnPrincipalInterface)new MyOwnPrincipalImpl("name"); subject.getPrincipals().add(principal); The client always throws a Exception: ... Caused by: java.lang.ClassNotFoundException: my.packages.MyOwnPrincipalImpl org.jboss.remoting

Error when trying to create a new JBOSS OpenShift project

我只是一个虾纸丫 提交于 2019-12-25 06:48:06
问题 I am trying to have a play around with openshift, but am running into a config issue at the first hurdle. i have RedHatJBOSS Developer Studio 8.0.0 installed, and have the JBOSS Integration and SOA Development Plugin installed. I also have an openshift user account and can login just fine to their website. Basically, when I select the create openshift project from the JBoss central page, and enter my valid openshift credentials and pres next, it tries to connect and immediately throws an

Xalan Configuration JBOSS

和自甴很熟 提交于 2019-12-25 06:48:05
问题 In Using Xalan I get this error when I call a function of this library (For example : PrintTraceListener ptl = new PrintTraceListener(pw) ) I got this error in console Caused by: java.lang.ClassNotFoundException: org.apache.xalan.trace.PrintTraceListener from [Module "deployment.ReceptionPartenairesSATest.ear.sa.war:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) .... Caused by: java.lang.NoClassDefFoundError: org/apache/xalan

WAR outside the EAR, not able to reference JAR inside EAR. In wildfly 8

会有一股神秘感。 提交于 2019-12-25 06:47:00
问题 I am migrating to Wildfly 8.2 from JBoss 5.1, I am deploying a Web Service using the resteasy and some EAR which has the code to get the requested data from the DB. Both the EAR which has multiple (6) JARs, but when I call the Web Service, it is not able to find the EAR and refer it's JARs 14:57:48,183 INFO [stdout] (default task-4) InitialContextFactory not defined - using default: org.jnp.interfaces.NamingContextFactory 14:57:48,184 ERROR [stderr] (default task-4) javax.naming

How to use org.jboss.varia.property.SystemPropertiesService and org.jboss.util.property.PropertyListener

╄→гoц情女王★ 提交于 2019-12-25 05:50:29
问题 All I have seen the jboss-service.xml which use an extended SystemPropertiesService class to reference to custom property file. But I didn't totally understood this kind of usage yet. Could someone please give me some help to understand how to use these two class? thanks. 回答1: The SystemPropertiesService is very useful to define properties that then can be accessed from your application, it's usually used to parametrize the application without having to change to code, or even the application

Change Activation-Config-Property on deployment via JBoss CLI

断了今生、忘了曾经 提交于 2019-12-25 05:12:11
问题 We would like to deploy an EAR containing message driven beans with JBoss CLI. For each environment there are different activation config property values. Our question: is it possible to change the values of the activation config properties after deploying the EAR with JBoss CLI? We know we could use property substitution. However this seems to set the activation properties at server startup. In contrast we would like to change the values at any time (maybe as long as application is disabled)