- I didn't fail, with something like an error in stdout or something; it just didn't 'start' the RAR AMQ connection like it would with the MDB.jar case. There is a message in the log that is suspicious (more on that below)
- Layers are: legacy-security, resource-adapters, ejb. And yeah exactly like in my other email thread. Can provide lots more details as needed.
- Took the ear and dropped it into full WF21 install; worked as expected. EAR is very simple; has only the MDB.jar in it.
- JDK 11
- I am doing something that might be strange: in the pom, I specify <hollow-jar>true</hollow-jar>; but I have a cli session where I literally deploy the rar and then the EAR (or MDB.jar). I did this because when I did a deploy of rar -- and tried to boot via java -jar hollow.jar --deployment=myjar.jar ; it would complain saying something is already deployed. On whim, I tried to deploy my artifact via cli session and that actually worked. The only difference between two tests is 'deploy --name=SilvertipMDB build/Silvertip.ear' vs 'deploy --name=SilvertipMDB build/Silvertip.jar'
log/stdout snippet of mdb.jar case (i.e. this is working case):
07:21:46,713 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-5) WFLYJCA0002: Bound JCA ConnectionFactory [java:/amq/ConnectionFactory]
07:21:46,744 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0042: Started message driven bean 'SimpleMDB' with 'AMQBroker' resource adapter
07:21:46,759 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0010: Deployed "SilvertipMDB" (runtime-name : "SilvertipMDB")
07:21:46,760 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0010: Deployed "ActiveMQ-RAR" (runtime-name : "activemq-rar.rar")
07:21:46,818 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
2020-10-21 07:21:46,824 [ler Boot Thread] INFO ActiveMQEndpointWorker - Starting
2020-10-21 07:21:46,834 [ult-threads - 1] INFO ActiveMQEndpointWorker - Establishing connection to broker [failover:(ssl://queuebroker-a.dev1.promnetwork.com:61617,ssl://queuebroker-b.dev1.promnetwork.com:61617)?nested.verifyHostName=false]
07:21:46,836 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) started in 4845ms - Started 337 of 380 services (117 services are lazy, passive or on-demand)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.activemq.util.IntrospectionSupport (vfs:/content/activemq-rar.rar/activemq-client-5.15.12.jar) to method sun.security.ssl.SSLSocketImpl.setHost(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.apache.activemq.util.IntrospectionSupport
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-10-21 07:21:47,594 [ActiveMQ Task-1] INFO FailoverTransport - Successfully connected to ssl://queuebroker-a.dev1.promnetwork.com:61617?verifyHostName=false
2020-10-21 07:21:47,658 [ult-threads - 1] INFO ActiveMQEndpointWorker - Successfully established connection to broker [failover:(ssl://queuebroker-a.dev1.blahblah
.com:61617,ssl://queuebroker-b.dev1.blahblah.com:61617)?nested.verifyHostName=false]
log/stdout snippet of EAR case (i.e. this is not working case):
07:31:29,055 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-2) IJ020002: Deployed: file:/tmp/wildfly-bootable-server3282619647081843523/standalone/tmp/vfs/temp/tempf72bf7fa7b180e49/content-a76eca7014baed03/contents/
07:31:29,058 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-8) WFLYJCA0002: Bound JCA ConnectionFactory [java:/amq/ConnectionFactory]
07:31:29,066 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0010: Deployed "SilvertipMDB" (runtime-name : "SilvertipMDB")
07:31:29,068 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0010: Deployed "ActiveMQ-RAR" (runtime-name : "activemq-rar.rar")
07:31:29,112 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
07:31:29,114 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) started in 5187ms - Started 315 of 359 services (117 services are lazy, passive or on-demand)