What functionality I will miss if I will remove ejb3 subsystem from standalone.xml? - jboss

I want to prevent usage of ejb3 in my system, so I want to remove ejb3 subsystem from standalone.xml:
<subsystem xmlns="urn:jboss:domain:ejb3:1.2">
…
</subsystem>
What additional functionality I will miss in addition to ejb3?

You wont loose anything beyond ejb3.

Related

Enable logging in Scalardb

How do I enable logging in Scalardb? Does it support logback? The ScalarDB logic in my application is throwing NullPointerException. I want to enable traces to understand where the problem might be.
Scalar DB uses slfj4 so various logging frameworks such as logback and log4j can be used.
https://github.com/scalar-labs/scalardb/blob/master/build.gradle
You need to build your application with such logging frameworks and configure
them properly.
For more information regarding slf4j, please refer to slf4j site.
This seem to work - <logger name="com.scalar" level="DEBUG" additivity="true"> <appender-ref ref="STDOUT"/> </logger>

What is Jboss standalone.xml? what is the purpose of it?

I know to run the JBoss we need the standalone.xml, but I do not understand the content in the standalone.xml file.
Can someone explain to me what is defined in it with an example?
Thanks
If you look in the $JBOSS_HOME/docs/schema there are several schemas that make up the standalone.xml file.
standalone.xml file contains all the information regarding modules used by the JBOSS or wildfly. If you want to know about each and every module then read this http://wildscribe.github.io/WildFly/15.0/index.html.
In addditon to this, if you want to learn about the attributes of the sub-systems then access https://developer.jboss.org/wiki/JBossDTDs

How to remove KeyCloak from Wildfly?

I recently configured KeyCloak in my existing Wildfly server using the overlay installation:
bin/jboss-cli.sh --file=bin/keycloak-install.cli
I would like to remove it or disable it now. I'm pretty new to Wildfly. I think it should be the same way how to disable a subsystem?
The easiest way to achieve it will be to open standalone.xml file in the %JBossHome%>standalone>configuration folder and remove/comment out the keycloak subsystem.
The subsystem configuration will look something like this
<subsystem xmlns="urn:jboss:domain:keycloak-server:1.1">
<web-context>auth</web-context>
</subsystem>

Unexpected element '{urn:jboss:domain:keycloak:1.0}subsystem

Happy New Year to all.
I have a keycloak/wildfly question.
I am attempting to secure my war for WildFly 9.0.2.Final deployment. I follow the directions in section 7.2.1 of http://docs.jboss.org/keycloak/docs/1.0.4.Final/userguide/pdf/keycloak-reference-guide-en-US.pdf
I get the error Unexpected element '{urn:jboss:domain:keycloak:1.0}subsystem
I have carefully followed each step as listed below.
cd $WILDFLY_HOME
unzip keycloak-wildfly-adapter-dist.zip
edit the standalone.xml and add the following:
<server xmlns="urn:jboss:domain:1.4">
<extensions>
<extension module="org.keycloak.keycloak-wildfly-subsystem"/>
...
</extensions>
<profile>
<subsystem xmlns="urn:jboss:domain:keycloak:1.0"/>
...
</profile>
It is the line subsystem xmlns="urn:jboss:domain:keycloak:1.0 that is flagged in the error.
What am I missing? Thank you in advance.
May be it's a little bit too late. I think the problem could be that you forget to merge modules, bins folder from key-cloak into Jboss, so that the container itself doesn't recognize the keycloak.

How to set WildFly 9.0.1.Final httpUri encoding

For the reason that I want to use JavaEE7 and JPA2.1, I turned to WildFly9.0.1 Final which meets my requirement.
WildFly9.0.1 Final is using undertow as the Web Server.
Chinese Characters(in UTF-8 encoding) from web browser transferred to the jboss Server turned TO Garbled words,below is the log:
2015-08-02 18:58:38,893 INFO com.gcable.action.people.people_type.PeopleTypeAction.printHttpRequest:76
- peopleTypes[0].pt_name=[Ljava.lang.String;#3e31e9ad[{│フテ¥ᄒᄋ│ミᄄ}]
I am going mad! God save me!
I have tried this in standalone.xml:
<servlet-container name="default" default-encoding="UTF-8">
But it doesn't work.
Also I have tried to add jboss-web.xml in WEB-INF in my deployed war:
<jboss-web version="9.0" xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/j2ee/schema/jboss-web_9_0.xsd">
<default-encoding>UTF-8</default-encoding>
It doesn't work too.
I solved the problem by setting the encoding in the http-listener of the standalone.xml (i use the standalone-full.xml but i guess it makes no difference)
<http-listener name="default" socket-binding="http" url-charset="ISO-8859-1"/>
Sorry for the late answer but i got the same problem today. Hope it will be helpful.
I finally tried to down-grade my JPA2.1 to 2.0.
Jboss EAP 6.2 perfectly encodes the none-english characters.
By the way,
I found sth here to make JBOSS EAP6 which in fact is a JavaEE6 Container to USE JPA2.1 instead of using 2.0