-
1. Re: NoSuchMethodError: org.jboss.messaging.core.contract.PersistenceManager.setSupportsTxAge
andey Sep 18, 2017 8:03 AM (in response to viniciusmaia)There is something wrong with the messaging jar that is being used in your setup.
The exception is thrown from the method "setSupportsTxAge" of the class "org.jboss.messaging.core.contract.PersistenceManager".
This class and method is present in the jar "/client/jboss-messaging-client.jar" which is provided by JBoss EAP [1].
Now, i tend to believe that this jar file has either been replaced or some other jar has been placed in your application which is causing the issue.
it is a possibility that you might be using the "jboss-messaging-client.jar" from the community version of JBoss 5.1. The community version of JBoss does not has the method "setSupportsTxAge" and thus you are seeing this error. In your installation/application you need to find the jar files which has the class "org.jboss.messaging.core.contract.PersistenceManager" and then see if it contains the method "setSupportsTxAge" or not.
-
2. Re: NoSuchMethodError: org.jboss.messaging.core.contract.PersistenceManager.setSupportsTxAge
viniciusmaia Sep 18, 2017 9:31 AM (in response to viniciusmaia)Hello Anup,
Thx for your reply. I really appreciate, but that does not make sense.
My problem is because I am migrating the container from a server to another. In the "srv_prd," it is working fine.
I transferred the entire JBoss from the srv_prd to the srv_prd_new, set the new IP address and started the container. It does not work.
I copied that container to another srv_prd_new2 and there, the container worked!
That's why I do not understand the error. The jar files and references do not change, just the servers, and in this particular new server, it isn't working. Is it any chance that the SO be the cause?
Regards,
Vinicius
-
3. Re: NoSuchMethodError: org.jboss.messaging.core.contract.PersistenceManager.setSupportsTxAge
andey Sep 19, 2017 2:35 AM (in response to viniciusmaia)1 of 1 people found this helpfulYou have some conflict with your lib. there is possibility of having multiple version of jms jar either in your project or the other libs you are using may also have some dependency on some other version, so it gets conflict with each other.
-
4. Re: NoSuchMethodError: org.jboss.messaging.core.contract.PersistenceManager.setSupportsTxAge
viniciusmaia Oct 10, 2017 8:33 AM (in response to viniciusmaia)You were right. I found the correct jboss-messaging-client.jar file that came with my JBoss version. I copied the file jboss-messaging-client.jar from my JBoss/production/lib folder and put it into my application container. It works!
My only concern is why the other jboss-messaging-client.jar was working fine with this same JBoss container in another server.