JMS with ActiveMQ Artemis configuration problem - activemq-artemis

Have been trying to deploy Java EE application on JBoss EAP 7.2 which uses one #ApplicationScoped producer class, it creates topic and sends message and one MessageDrivenBean, which overrides onMessage method. Deployment is unsuccessful due to following errors:
18:15:14,260 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 6) WFLYCTL0013: Operation ("redeploy") failed - address: ([("deployment" => "MQTesting.war")]) - failure description:
{
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.module.MQTesting.MQTesting.DefaultJMSConnectionFactory"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.MQTesting.MQTesting.env.ActiveMQProducer.connectionFactory is missing [jboss.naming.context.java.module.MQTesting.MQTesting.DefaultJMSConnectionFactory]"]
}
18:15:14,260 ERROR [org.jboss.as.server] (management-handler-thread - 6) WFLYSRV0011: Redeploy of deployment "MQTesting.war" was rolled back with the following failure message:
{
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.module.MQTesting.MQTesting.DefaultJMSConnectionFactory"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.MQTesting.MQTesting.env.ActiveMQProducer.connectionFactory is missing [jboss.naming.context.java.module.MQTesting.MQTesting.DefaultJMSConnectionFactory]"]
}
I'm using standalone.xml as JBoss configuration file. DefaultJMSConnectionFactory is created in standalone.xml file.
I'm trying to get connection factory this way:
#Resource
private ConnectionFactory connectionFactory;
Also copied Wildfly extension for messaging and messaging subsystem from standalone-full.xml.
Message Driven Bean, which implements MessageListener is started as it is shown in log file. However, after that this error happens and deployment is unsuccessful.
edit:
It is giving me this error on standalone-full.xml and Server boot fails.
ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "messaging-activemq"),
("server" => "default")
]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => ["jboss.http-upgrade-registry.default"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.messaging-activemq.default is missing [jboss.http-upgrade-registry.default]"]
}

Related

Deployment failed when deploying application from eclipse jboss server

I am trying to deploy an ear file in Jboss server configured to eclipse, but when i try to deploy it always ends up in time out exception. I tried to increase my server time out but it doesn't seems to be helping.
But the same ear when I try to deploy in same server outside of eclipse it is deployed successfully unable to find out the root case even after going through several relevant issues over google.
As per my observation the issue doesn't seems to be due to jboss config as the same ear and server seems to be up and running when deployed directly.
Following is the server stack-trace:
2019-05-23 12:08:35,858 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.domain.management.security.SecurityRealmAddHandler$ServiceInstallStepHandler#708d860b for operation {"address" => [("core-service" => "management"),("security-realm" => "HTTPSRealm")],"operation" => "add","map-groups-to-roles" => undefined} at address [
("core-service" => "management"),
("security-realm" => "HTTPSRealm")
] failed handling operation rollback -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
at org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:511)
at org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1369)
at org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1328)
at org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1311)
at org.jboss.as.controller.AbstractOperationContext$Step.access$300(AbstractOperationContext.java:1185)
at org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:767)
at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:644)
at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1349)
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:495)
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:389)
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:351)
at org.jboss.as.server.ServerService.boot(ServerService.java:402)
at org.jboss.as.server.ServerService.boot(ServerService.java:371)
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:301)
at java.lang.Thread.run(Thread.java:748)
2019-05-23 12:08:35,859 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.domain.management.security.SecurityRealmAddHandler$ServiceInstallStepHandler#708d860b for operation {"address" => [("core-service" => "management"),("security-realm" => "HTTPSRealm")],"operation" => "add","map-groups-to-roles" => undefined} at address [
("core-service" => "management"),
("security-realm" => "HTTPSRealm")
] failed handling operation rollback -- java.util.concurrent.TimeoutException
2019-05-23 12:08:39,648 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 70) WFLYJPA0011: Stopping Persistence Unit (phase 2 of 2) Service 'poject-1.ear/poject-2.jar#PlatformModel'
2019-05-23 12:08:39,655 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 70) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'poject-1.ear/poject-2.jar#PlatformModel'
2019-05-23 12:08:40,860 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.domain.management.security.SecurityRealmAddHandler$ServiceInstallStepHandler#708d860b for operation {"address" => [("core-service" => "management"),("security-realm" => "ApplicationRealm")],"operation" => "add","map-groups-to-roles" => undefined} at address [
("core-service" => "management"),
("security-realm" => "ApplicationRealm")
] failed handling operation rollback -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
at org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:511)
at org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1369)
at org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1328)
at org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1311)
at org.jboss.as.controller.AbstractOperationContext$Step.access$300(AbstractOperationContext.java:1185)
at org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:767)
at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:644)
at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1349)
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:495)
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:389)
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:351)
at org.jboss.as.server.ServerService.boot(ServerService.java:402)
at org.jboss.as.server.ServerService.boot(ServerService.java:371)
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:301)
at java.lang.Thread.run(Thread.java:748)
Following are few handy details:
Eclipse version : photon
Jboss : 7.0 eap
Jdk : 1.8
Kindly help me out if any additional information is required.
Thanks in advance.
After too many trails I found out the actual reason for the issue the issue is due to memory where in eclipse integrated Jboss server the Vm arguments for launch configuration has xms and xmx as 256 and 512 mb respectively.
After increasing min and max value was successfully able to deploy application even through eclipse

Wildfly 11 Elytron - Properties File Based Authentication failing with required services not installed

I have a new instance of Wildfly 11, where I am trying to setup Properties File Based Authentication within Elytron. I'm using the Standalone-full.xml and manually deploying the application outside of an IDE.
https://docs.jboss.org/author/display/WFLY/Properties+File+Based+Authentication+Migration
I created the myApp-user and myApp-roles properties files with name valued pairs and included #$REALM_NAME=myAppPropRealm$
I ran the following CLI commands to create the
Create Prop Realm
/subsystem=elytron/properties-realm=myAppPropRealm:add(groups-attribute=groups,groups-properties={path=myApp-roles.properties,relative-to=jboss.server.config.dir},users-properties={path=myApp-users.properties,relative-to=jboss.server.config.dir,plain-text=true})
Configure Security-Domain
/subsystem=elytron/security-domain=myAppSecurityDomain:add(realms=[{realm=myAppPropRealm,role-decoder=groups-to-roles}],default-realm=myAppPropRealm,permission-mapper=default-permission-mapper)
Configure http-authentication-factory
/subsystem=elytron/http-authentication-factory=myApp-http-auth:add(http-server-mechanism-factory=global,security-domain=myAppSecurityDomain,mechanism-configurations=[{mechanism-name=BASIC,mechanism-realm-configurations=[{realm-name=myApp_ApplicationDomain}]}])
Configure application-security-domain in Undertow
/subsystem=undertow/application-security-domain=myApp_ApplicationDomain:add(http-authentication-factory=myApp-http-auth)
JBoss-web.xml
</jboss-web>
<security-domain>myApp_ApplicationDomain</security-domain>
</jboss-web>
I get the following error when my app tries to deploy
2018-11-29 09:06:55,695 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "MyApplication-ws.war")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => ["jboss.security.security-domain.myApp_ApplicationDomain"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
I suspect it is because I have not defined 'myApp_ApplicationDomain' but this is where I'm stuck. What commands do I run to add/reference
the myApp_ApplicationDomain?
Wildfly is looging for legacy security domain jboss.security.security-domain.myApp_ApplicationDomain for some reason. But seems you have correctly declared myApp_ApplicationDomain in undertow. Most probably you are using myApp_ApplicationDomain somewhere outside of undertow subsystem.

jasper server war deployment over jboss getting failed

I am trying to deploy jaserserver war on jsboss but its getting failded
war putted at location #location
`D:\Software\jboss-as-7.1.1.Final\standalone\deployments
jboss server log Server
15:18:24,371 ERROR [org.jboss.as.controller.management-operation] (Cont*roller Boot Thread) JBAS01461
2: Operation ("deploy") failed - address: ([("deployment" => "jasperserver.war")]) - failure descrip
tion: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.m
odule.jasperserver.jasperserver.env.jdbc.jasperserver is missing [jboss.naming.context.java.jdbc.jas
perserver]"]}*
I any clue what is going wrong ? i am running jboss server using standalone.bat (run as a administrator )

Why the kie-Server cannot be deployed to EAP?

Kie-Server is an important component of Drools 6.3.0.Last week I meet problem when I try to install kie-Workbench on tomcat, and I finally change platform to JBoss EAP to solve it.But now I meet a new problem when I install kie-Server on EAP.
When I deploy the war packages, the EAP return failure massage to me and I find no solution on Drools document, the failure message as follows:
Failed to enable kie-server-6.3.0.Final-ee6.war.
Unexpected HTTP response: 500
Request
{
"address" => [("deployment" => "kie-server-6.3.0.Final-ee6.war")],
"operation" => "deploy"
}
Response
Internal Server Error
{
"outcome" => "failed",
"failure-description" => {"JBAS014671: 失败的服务" => {"jboss.deployment.unit.\"kie-server-6.3.0.Final-ee6.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"kie-server-6.3.0.Final-ee6.war\".PARSE: JBAS018733: 处理 PARSE 的 deployment \"kie-server-6.3.0.Final-ee6.war\" 阶段失败`
Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service jboss.ejb.default-resource-adapter-name-service not found"}},
"rolled-back" => true
}

Deploy JAR file on WildFly 8.2

I want to deploy an EJB Maven project and when I try so, an error message appears like this.
The error message :
17:45:21,005 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "dashboard-ejb.jar")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"dashboard-ejb.jar#dashboard-ejb\".FIRST_PHASE is missing [jboss.naming.context.java.dsOoredoo]"]}
To note, I've created a datasource called dsOoredoo.
Does anyone have an idea?