jboss6.x

How to layout Java EE projects using common JPA entities?

风流意气都作罢 提交于 2019-12-06 08:53:51
问题 I have two eclipse Java EE 6 projects packaged in a WAR-file using maven 3. Now they should share JPA entities in a 3rd project among them, since they both use the same database. When doing the research for my question, I found some hints mentioning for example a reference in a persistence.xml to a common jar, but I wasn't successful to make it work. So specifically asked: 1) Does the project, containing the common entities, has a persistence.xml file? If so, how does it differ from the one

I can't start jboss with a JPA issue

瘦欲@ 提交于 2019-12-06 06:39:05
I am migrating from WAS8.5.5 to JBoss EAP6.4. I got an error message as Caused by: org.jboss.modules.ModuleNotFoundException: openjpa:main I created directory as C:\Applications\jboss64\jboss-eap-6.4\modules\system\layers\base\org\apache\openjpa\main I put the openjpa-2.4.1.jar and serp-1.13.1.jar into it along with the module.xml. <?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.1" name="org.apache.openjpa"> <resources> <resource-root path="openjpa-2.4.1.jar"/> <resource-root path="serp-1.13.1.jar"/> <!-- Insert resources here --> </resources> <dependencies> <module

How to configure JMS in Jboss 6?

扶醉桌前 提交于 2019-12-06 04:21:35
问题 I newbie to JMS(java Messaging service). I want to run sample JMS application using jboss 6. I have tired searching google and got like this. Those link are refer jboss 7. 1.How to configure JMS in jboss 6? 2.Is there Jboss7 have in built-in JMS? or need configure manually? 3.sample Application using Jboss 6? 回答1: In Jboss 7 (and 6 as well) you have bundled HornetQ server. In Jboss 6 it is located in deploy\hornetq.sar. If you want to add destination you can specify it in hornetq-jms.xml file

Calling remote ESB client error

◇◆丶佛笑我妖孽 提交于 2019-12-06 03:56:28
I am trying to send and esb message from remote client, but I am constantly getting this error: org.jboss.soa.esb.listeners.message.MessageDeliverException: org.apache.ws.scout.transport.TransportException: java.lang.reflect.InvocationTargetException at org.jboss.soa.esb.client.ServiceInvoker.loadServiceClusterInfo(ServiceInvoker.java:545) at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:174) at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:155) at org.jboss.soa.esb.client.ServiceInvoker.<init>(ServiceInvoker.java:197) at cz.certicon.esb.test.SenderESB

JBoss 6: Injecting EJB into servlet

北城余情 提交于 2019-12-05 22:44:52
Folks, I am very annoyed by having to re-learn and waste time with this stuff every time a new version of JBoss rolls around. I have a stateless EJB that is discovered and declared in the JNDI space: 10:01:53,044 INFO [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: DTalk/UserManager/local - EJB3.x Default Local Business Interface DTalk/UserManager/local-com.doctalk.ejb.UserManagerLocal - EJB3.x Local Business Interface I need to use this EJB in a servlet which is part of a war which is part of the EAR that contains the EJB. I'd

StaleObjectStateException on high frequency updates

一世执手 提交于 2019-12-05 21:27:15
We're using Hibernate 3.6.3.Final and MySQL 5.5.8 for a web application. The backend is running on a JBoss 6.0.0 Final server. Most of the time things work really well but occasionally we're getting a StaleObjectStateException. After a while of experimenting we figured out that it can be reproduced by sending requests to the backend with a high frequency (ie. clicking a button which triggers the request as fast as possible). As far as I know the exception means that a domain object got fetched from the database and when Hibernate tried to persist it again it noticed that another transaction

log4j Logger messages are not displayed on JBoss webapp

 ̄綄美尐妖づ 提交于 2019-12-05 18:41:23
I use Jboss 6 and my static Logger logger = Logger.getLogger(Foo.class); displays nothing Tried adding log4 to my project, removing it, placing a log4j file on my main/resources folder, placing no log4j file and no results. Only System.Out seems to work, but it doesn't provide all the information I would like to see I even see Hibernate log working but not mine What am I missing? Turns out my logging does work. Hibernate logging is controlled by the jboss logging settings. My logging began to work as soon as I placed the log4j on right next to the classes folder, and placing log4j jar with the

Listening for login events in JBoss AS 6

北慕城南 提交于 2019-12-04 22:49:37
问题 I have an application running in JBoss AS6. Authentication is working using the "FORM" auth method, and the user is logging in correctly. I would like to be able to call a piece of custom, static code whenever a user successfully logs in. Unfortunately, I cannot find any listener, or hook, or callback, which will execute code on successful login. The HttpSessionListener does have an event for "sessionCreated", but this is called as soon as a user accesses any page, even if they have not

How to layout Java EE projects using common JPA entities?

微笑、不失礼 提交于 2019-12-04 11:46:07
I have two eclipse Java EE 6 projects packaged in a WAR-file using maven 3. Now they should share JPA entities in a 3rd project among them, since they both use the same database. When doing the research for my question, I found some hints mentioning for example a reference in a persistence.xml to a common jar, but I wasn't successful to make it work. So specifically asked: 1) Does the project, containing the common entities, has a persistence.xml file? If so, how does it differ from the one in the other projects? 2) How exactly are the commonly used entities referenced in the two projects? Do

java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy

北城以北 提交于 2019-12-04 07:34:21
I am trying to deploy my project on JBoss 6.0. I am using Netbeans 7.0.1, Spring 3.0.2 and JSF2.0. The project is running fine in Tomcat. But when I trying to deploy on JBoss, I am getting the following error: *** DEPLOYMENTS IN ERROR: Name -> Error vfs:///C:/jboss-6.0.0.Final/server/default/deploy/WebApplication3.war -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///C:/jboss- 6.0.0.Final/server/default/deploy/WebApplication3.war DEPLOYMENTS IN ERROR: Deployment "vfs:///C:/jboss- 6.0.0.Final/server/default/deploy/WebApplication3.war" is in error due to the following