java.lang.NoSuchMethodError when sending message from WildFly 10 to remote ActiveMQ Artemis - wildfly

We're working on a JMS based application deployed under WildFly 10. Now we're migrating from the embedded ActiveMQ Artemis server to a standalone one.
The same application server hosts a JBPM instance (version 6.5). When we try to send messages we have this error:
java.lang.NoSuchMethodError: io.netty.util.internal.PlatformDependent.getContextClassLoader()Ljava/lang/ClassLoader.
We think there is a compatibility problem on Netty, so we also tried to install another Netty version on JBoss but it doesn't work and the server doesn't start.
Do you have any suggestions?

Related

Running ActiveMQ Artemis web console in embedded mode

In the artemis example folder, there is a sample that helped me run artemis in embedded mode. This is helpful for me when dealing with unit tests.
Is it possible to view the console in browser (localhost:8161) after running the server in embedded mode.
I found that the console war file is listed in bootstrap.xml file and I tried to place bootstrap.xml file in classpath as well but still not able to run console.
Is it possible to view web console when artemis run in embedded mode?
When you run your own embedded instance of ActiveMQ Artemis the bootstrap.xml file isn't used. That file is only used by a standalone broker. The application which embeds the broker is itself responsible for bootstrapping it (i.e. configuring and passing in all the prerequisites).
By default a standalone broker will configure and start an embedded instance of Jetty. It will also deploy the web console WAR to this Jetty instance. All this is defined in bootstrap.xml.
However, when you embed your own broker all you get is the broker. If you want a web server in your application to serve any web applications (e.g. the ActiveMQ Artemis web console) then you'll have to embed that yourself as well along with the broker.

Weblogic and Websphere JMS Queue Communication

Currently in Weblogic we are running two applications and communicating through JMS Queue. Now one of the application we are moving to Liberty Server. What are the configuration we need to do for JMS Queue connection between Weblogic and Websphere.
Depending on which JMS Provider are you using, you have several options:
if provider has compatible JMS Resource Adapter (e.g. WebSphere MQ) - you can use that RA together with Liberty jca feature
if provider has a sort of thin client, you can embed that client libraries together with your application, and manually setup connection
if your current provider doesn't support any of above, you can use external JMS server that has compatible JMS RA (for example WebSphere MQ) and integrate it with both WebLogic and Liberty.
Update based on comments
There is no simple way to access Liberty JNDI externally - see this post Connect to Websphere Liberty jmsServer from remote application server
You could try to access embedded JMS via API. It is discussed here: https://www.ibm.com/mysupport/s/question/0D50z000062ktc3CAA/helloworld-jms-client-connecting-to-embedded-liberty-jms-server?language=en_US
But to be honest, if I were you I would either:
use external JMS Provider that is compatible with both runtimes e.g. WebSphere MQ
or rewrite interface between WebLogic and Liberty to REST, so that WebLogic invokes via REST simple application that reads the request and puts it to the queue in embedded Liberty JMS engine to avoid calling JMS engine externally.

Jboss EAP 6.4 Server logs are not properly updated

JBoss startup and Server logs are not getting updated completely like started in XXXX ms. But all the services are being deployed successfully. Is there any way to debug why the logs are not printing?
Thanks,
Kusuma
Just check on your the logging subsystem configuration in your standalone.xml.
If that's not the issue, this is probably a problem with your application configuration and not JBoss, probably you just have to exclude some logging libraries in your jboss-deployment-structure.xml, to use the provided and not the jboss instance libs.

How does MDB on WildFly consume messages from JBOSS 5.1

How to configure MDB on WildFly to read JMS messages from other cluster running JBOSS Messaging on JBOSS 5.1 ?
You should use a JMS bridge : https://docs.jboss.org/author/display/WFLY8/Messaging+configuration#Messagingconfiguration-JMSBridge

JGroups with JBoss application server

Where can I find a basic example of code for using Jgroups with JBoss application server.
Jboss application server (version 7 or 6) ships with JGroups (used for custering).
I simply want to reuse this jgroups module in order to do server to server messaging.
[1] provides a good starting point.
[1] http://piotrnowicki.com/2013/02/using-jgroups-directly-from-jboss-as-7-component/