Migrating from JBoss 4.0.0 to 4.2.1
by Richard Boehme
Hi. I'm migrating from JBoss 4.0.0 to 4.2.1 so that I can use Hibernate
3 in my application. I have copied all of the jboss/lib/* and
jboss/server/all/lib as well as the jars from the hibernate3
distribution to my server's lib directory.
In a nutshell, it's looking for org.jboss.xml.binding.ObjectModelFactory
and org.jboss.hibernate.har.HARDeployer
However, I cannot find these files in either the jboss 4.2.1
distribution or the Hibernate 3 distribution. I have also looked at the
jboss 4.2.1 source and have searched my entire library tree. The
application has no problems starting up with JBoss 4.0.0.
Searching for answers via Google and newsgroups also doesn't turn up
much of use.
Does anyone know where the jars containing these files might be found
and what they are named?
Log excerpts below.
Thank you.
Richard
2007-07-25 10:00:01,572 ERROR [org.jboss.deployment.MainDeployer] Could
not create deployment:
file:/rfid/jboss-4.2.1.GA/server/XXXXXX/deploy/jboss-ws4ee.sar/
org.jboss.deployment.DeploymentException: - nested throwable:
(java.lang.reflect.UndeclaredThrowableException)
at
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at
org.jboss.system.ServiceController.install(ServiceController.java:226)
.
.
.
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
at
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
at
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
... 75 more
Caused by: java.lang.NoClassDefFoundError:
org/jboss/xml/binding/ObjectModelFactory
at java.lang.Class.getDeclaredConstructors0(Native Method)
2007-07-25 10:00:07,170 ERROR [org.jboss.deployment.MainDeployer] Could
not create deployment:
file:/rfid/jboss-4.2.1.GA/server/XXXXXX/deploy/hibernate-deployer-service.xml
org.jboss.deployment.DeploymentException: No ClassLoaders found for:
org.jboss.hibernate.har.HARDeployer; - nested throwable:
(java.lang.ClassNotFoundException: No ClassLoaders found for:
org.jboss.hibernate.har.HARDeployer)
at
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at
org.jboss.system.ServiceController.install(ServiceController.java:226)
.
.
.
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for:
org.jboss.hibernate.har.HARDeployer
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
at
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
18Â years, 9Â months
[EJB 3.0] - EJB3 & JBossMQ JMS Unexpected delivery of messages
by karl.martens
I'm trying to get JBossMQ on JBoss AS 4.2.1 to participate in a JTA transaction. The client is an EJB 3.0 stateless session bean and I'm using and EJB 3.0 message driven bean to accept the messages. It appears that the messages are participating in the JTA transaction and being delivered properly (at the right time), however upon restart of JBoss the messages are being redelivered.
I've completed the steps documented in the JBoss wiki http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMQDB for changing the underlying JMS database to MySQL and I'm using the @Resource(mappedName="java:/JmsXA") connection factory in the client to generate the message.
The behaviours I'm witnessing are as follows:
1) The client client initiates the message and nothing appears in the database until the outermost Stateless session bean commits (Expected)
2) Once committed the message appears in the database with TXOP of 'A' (Expected)
3) The message driven bean receives the message after the client has committed (Expected)
4) The message has a TXOP value of 'A' and it remains 'A' until the end of the OnMessage call. Upon completion of the onMessage method the TXOP value is changed to 'D' (Expected)
5) I stop and restart JBoss, all the messages in the database are being delivered even though they have TXOP value of 'D' (Unexpected)
Some other details that may be useful, I'm sending the messages to a queue and the acknowledge mode is Auto-Acknowledge.
Any ideas where I'm going wrong? How do I prevent the message from being delivered a second time, unless there was a problem with the first delivery?
I've asked this question on the JMS forum as well (http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067608#4067608). It was indicated to me that the before mentioned configuration is no longer valid in an EJB3 environment. Does anyone know how I configure JBossMQ with a MySQL persistence provider to participate in a JTA transaction and for the Message Driven Bean to properly remove the message from the queue upon completion?
"adrian(a)jboss.org" wrote : TXOP="D" means the transaction was prepared but not committed.
|
| Besides that, EJB3 questions are answered in the EJB3 forum.
| ConfigJBossMDB is useless for EJB3 its a whole different implementation.
|
| Nag the EJB3 developers to create a ConfigJBossMDBEJB3 like I've been
| trying to do for a while now. ;-)
Thanks,
Karl Martens
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067614#4067614
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067614
18Â years, 9Â months