How to solve Wildfly server console issue? - jboss

wildfly server start successfully. then I go to console and click on runtime and getting error.
Unable to load required resources for column 'standalone-server-column': "WFLYCTL0030: No resource definition is registered for address [
(\"subsystem\" => \"core-management\"),
(\"service\" => \"configuration-changes\")
]"
how to solve this????
Please help me out....advance thanks.

Related

Can not create jms-queue in wildfly using jboss-cli

I started wildfly 24 server with standalone-full.xml profile, when i run following command in jboss-cli to create jms-queue i get following error
[standalone#localhost:9990 /] jms-queue --profile=full add --queue-address=foo --entries=["java:/jms/queue/foo"]
WFLYCTL0175: Resource [
("subsystem" => "messaging-activemq"),
("server" => "default")
] does not exist; a resource at address [
("subsystem" => "messaging-activemq"),
("server" => "default"),
("jms-queue" => "foo")
] cannot be created until all ancestor resources have been added
What am i missing here? Any reference docs to create the jms server, queues?
Update:
I tried to create the server using web console first
And it filed with the required capabilities are not available, any documentation refernece that indicates what are the required capabilities i need to added prior configuring JMS
Yes don't use the profile parameter which is used in domain mode.
jms-queue add --queue-address=foo --entries=["java:/jms/queue/foo"]
works properly.
The issue is i was using wildfly "WildFly Preview EE 9.1 Distribution" the correct verirsion is "Jakarta EE 8 Full & Web Distribution"

JBoss application deployment failed with WFLYCTL0288

I'm very new to JBoss and trying to deploy my application on jboss-eap-7.0 but it failed with error -
"{\"WFLYCTL0288: One or more services were unable to start due to one or more indirect dependencies not being available.\" => {
\"Services that were unable to start:\" => [
\"jboss.deployment.unit.\\\"xy.war\\\".component.\\\"com.abc.xy.InitializationServlet\\\".START\",
\"jboss.deployment.unit.\\\"xy.war\\\".component.\\\"com.abc.xy.commonui.components.AjaxTree.Servlets.TreeController\\\".START\",
\"jboss.deployment.unit.\\\"xy.war\\\".component.\\\"com.abc.xy.commonui.components.customlistbox.xyCustomListBoxTag\\\".START\",
\"jboss.deployment.unit.\\\"xy.war\\\".component.\\\"com.abc.xy.commonui.components.exprbuilder.xyExprBuilderController\\\".START\",
\"jboss.deployment.unit.\\\"xy.war\\\".component.\\\"org.zkoss.zk.ui.http.HttpSessionListener\\\".START\",
\"jboss.deployment.unit.\\\"xy.war\\\".deploymentCompleteService\",
\"jboss.deployment.unit.\\\"xy.war\\\".ejb3.client-context.registration-service\",
\"jboss.undertow.deployment.default-server.default-host./xy\",
\"jboss.undertow.deployment.default-server.default-host./xy.UndertowDeploymentInfoService\"
],
\"Services that may be the cause:\" => [\"jboss.remoting.remotingConnectorInfoService.http-remoting-connector\"]
}}"
Can someone help to understand how this can be fixed?

Using logstash for email alert

I installed logstash 5.5.2 in our windows server and I would like to send an email alert when I identify some sentences.
My output section is the following:
output {
tcp {
host => "host.com"
port => 1234
codec => "json_lines"
}
if "The message was Server with id " in [log_message] {
email {
to => "<myName#company.com>"
from => "<otherName#company.com>"
subject => "Issue appearance"
body => "The input is: %{incident}"
domain => "smtp.intra.company.com"
port => 25
#via => "smtp"
}
}
}
During my debug I got the following messages:
[2017-09-11T13:19:39,181][ERROR][logstash.plugins.registry] Problems loading a plugin with {:type=>"output", :name=>"email", :path=>"logstash/outputs/email", :error_message=>"NameError", :error_class=>NameError
[2017-09-11T13:19:39,186][DEBUG][logstash.plugins.registry] Problems loading the plugin with {:type=>"output", :name=>"email"}
[2017-09-11T13:19:39,195][ERROR][logstash.agent ] Cannot create pipeline {:reason=>"Couldn't find any output plugin named 'email'. Are you sure this is correct? Trying to load the email output plugin resulted in this error: Problems loading the requested plugin named email of type output.
Which I guess says that I don't have the email plugin installed.
Can someone suggest a way to fix this?
Using another solution is not an option, just in case that someone suggests it.
Thanks and regards,
Fotis
I tried to follow the instructions in the official documentation
But the option of creating an offline plugin pack didn't work.
So what I did, was to create a running logstash instance on my client, run the command to install the output-email plugin logstash-plugin install logstash-output-email and afterwards I copied this instance on my server(which had no internet access).

Setup MariaDB XA on WildFly through UI

Similar to How to setup MariaDB JNDI on Wildfly 10? but specifically done through the Web UI.
I can create the non-XA data source with no issues but I am having issues creating the XA version.
I did the deployment of the mariadb-client.jar using the WildFly deploy UI with no issues. I can verify that the non-XA datasource works well.
However, when I do the same approach with the XA driver, when testing the connection I get the following error on the logs (not visible on the error dialog
Caused by: javax.resource.ResourceException: IJ031101: XADataSourceClass is undefined
at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXADataSource(XAManagedConnectionFactory.java:621))
When I try to configure the driver configuration manually I just get Unknown Error and the datasource does not even get created
"failure-description" => {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {
"WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.MariaDBXA"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"org.wildfly.data-source.PacXA is missing [jboss.jdbc-driver.MariaDBXA]",
"jboss.driver-demander.java:/PacXA is missing [jboss.jdbc-driver.MariaDBXA]"
]
The driver classes I am using are as noted in https://issues.jboss.org/browse/JBEAP-2405 where I put it in the screen that accepts them.
driver-class: org.mariadb.jdbc.Driver
xa-datasource-class: org.mariadb.jdbc.MariaDbDataSource (NOT org.mariadb.jdbc.MySQLDataSource)
Also when looking at the XML when selecting from JAR vs entering the configuration on screen, nothing gets populated on xa-datasource-class. I know I can edit the XML but like I said I wanted to do it through the administration console.
Refer https://issues.jboss.org/browse/JBEAP-2405 for sample configuration. Make sure you are providing correct driver name.

The resource not available error in eclipse ,jsp and tomcat and mysql

I am using eclipse indigo(javaEE) and apache tomcat 7.0.23. the jsp code
pstatement = connection.prepareStatement(queryString);
pstatement.setString(1, name);
pstatement.setString(2, city);
pstatement.setString(3, phone);
updateQuery = pstatement.executeUpdate();
is giving error as the requested resource jsp1/prepared_statement_query.jsp is not available.
The simple .jsp file executes properly and shows the successful connection, but not for insertion into the database. I am not getting whether there is problem with the database connection or the running of the server?
Is it any kind of 404 error? is the file "prepared_statement_query.jsp" not in the place where it should be?
If the error is - "404 Requested Resource Not Found" then find the file in proper place.
And Kindly post the complete stack trace for better understanding of the issue.