Why the kie-Server cannot be deployed to EAP? - jboss

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
}

Related

JMS with ActiveMQ Artemis configuration problem

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]"]
}

Wildfly 10: Cannot upload deployment, Required services that are not installed

Every time I deploy a war file in wildfly 10, I got this following error :
Cannot upload deployment: {"WFLYCTL0080: Failed services" =>
{"jboss.deployment.unit.\"member.war\".FIRST_MODULE_USE" =>
"org.jboss.msc.service.StartException in service
jboss.deployment.unit.\"member.war\".FIRST_MODULE_USE: WFLYSRV0153:
Failed to process phase FIRST_MODULE_USE of deployment \"member.war\"
Caused by:
org.jboss.as.server.deployment.DeploymentUnitProcessingException:
WFLYJCA0064: Exception deploying datasource java:/PostgresDS Caused
by: org.jboss.msc.service.DuplicateServiceException: Service
jboss.data-source.\"jboss.naming.context.java.PostgresDS\" is already
registered"},"WFLYCTL0412: Required services that are not installed:"
=> ["jboss.deployment.unit.\"member.war\".FIRST_MODULE_USE"],"WFLYCTL0180:
Services with missing/unavailable dependencies" => undefined}
It happens when I changed my persistence.xml and *-ds.xml which is telling my application to use the PostgresDS as its datasource.
Without looking at the files, it seems like you are registering your data source twice, once in the *-ds.xml and once in the persistence.xml (or maybe in the standalone.xml?).
Regarding missing/unavailable dependencies, are you certain the the Postgres SQL Module is installed in Wildfly and the driver is configured in the standalone.xml?
See also:
Wildfly DuplicateServiceException
How to add PostgreSQL datasource to WildFly 9.0?

Wildfly DefaultJMSConnectionFactory is missing on WAR deployment

I'm trying to deploy the openscoring.io war file to Wildfly. This is my first attempt and anything with Wildfly so I could be missing something simple.
When deploying / enabling the war I get the following error:
Unable to modify deployment.
Unexpected HTTP response: 500
Request {
"operation" => "deploy",
"address" => [("deployment" => "openscoring-webapp-1.2-SNAPSHOT.war")] }
Response
Internal Server Error {
"outcome" => "failed",
"failure-description" => {"WFLYCTL0180: Services with missing/unavailable dependencies" =>
["jboss.naming.context.java.module.\"openscoring-webapp-1.2-SNAPSHOT\".\"openscoring-webapp-1.2-SNAPSHOT\".DefaultJMSConnectionFactory
is missing
[jboss.naming.context.java.jboss.DefaultJMSConnectionFactory]"]},
"rolled-back" => true }
I've looked through the domain.xml and can see that the DefaultJMSConnectionFactory is there
<entries>
<entry name="java:/JmsXA"/>
<!-- Global JNDI entry used to provide a default JMS Connection factory to EE application -->
<entry name="java:jboss/DefaultJMSConnectionFactory"/>
</entries>
Any ideas on where to go next would really be appreciated. Thanks in advance.
Try starting Wildfly using the standalone-full configuration (./standalone.sh --server-config=standalone-full.xml). The default configuration contains the web profile only which does not include JMS.

Deployment failed in WildFly 8.2.0 Final

I tried to deployed a war file in Wildfly 8.2.0 Server and while I'm enabling the war it is throwing the following errors.
Failed to enable nxp-bd-server.war.
Unexpected HTTP response: 500
Request{
"address" => [("deployment" => "nxp-bd-server.war")],
"operation" => "deploy"}Response
Internal Server Error{
"outcome" => "failed",
"failure-description" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.undertow.deployment.default-server.default-host./nxp-bd-server.UndertowDeploymentInfoService is missing [jboss.security.security-domain.sp]"]},
"rolled-back" => true}
Is there any other configuration am I missing?
Deployed the sqljdbc-4.0.jar first
please check this answer https://stackoverflow.com/a/31963449/4917517. Try to cleanup the deployments section. Might be the same problem.
<deployments>
//remove this part
<deployment name="your_file.war" runtime-name="your_file.war">
<fs-archive path=".../your_file.war"/>
</deployment>
...
</deployments>

Deployment issue of spring with JAX-WS WAR in JBOSS

I am using Spring, Maven and creating a web service in eclipse. While deploying the WAR in JBOSS I am getting following error-
Internal Server Error
{
"outcome" => "failed",
"failure-description" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"NextGen-web1.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"NextGen-web1.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"NextGen-web1.war\"
Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
Caused by: java.lang.reflect.UndeclaredThrowableException
Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"}},
"rolled-back" => true
}
you must include this library in your pom.xml:
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>3.3.1.redhat-9</version>
</dependency>