You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2022/07/16 12:23:34 UTC

[directory-fortress-enmasse] branch master updated: set rest logger to info

This is an automated email from the ASF dual-hosted git repository.

smckinney pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-fortress-enmasse.git


The following commit(s) were added to refs/heads/master by this push:
     new 08c648e  set rest logger to info
08c648e is described below

commit 08c648eb479320d2fae1fd4c0ce6c7591550b08a
Author: Shawn McKinney <sm...@symas.com>
AuthorDate: Sat Jul 16 07:23:27 2022 -0500

    set rest logger to info
---
 dependency.txt                                     | 107 +++++++++++++++++++++
 rest-tree.txt                                      | 101 +++++++++++++++++++
 .../fortress/rest/JacksonFieldOnlyMapper.sav       |  45 +++++++++
 src/main/resources/log4j2.xml                      |   1 +
 .../fortress/rest/JsonSerializationTest.sav        |  44 +++++++++
 tree.txt                                           | 107 +++++++++++++++++++++
 6 files changed, 405 insertions(+)

diff --git a/dependency.txt b/dependency.txt
new file mode 100644
index 0000000..f41e5de
--- /dev/null
+++ b/dependency.txt
@@ -0,0 +1,107 @@
+[INFO] Scanning for projects...
+[WARNING] 
+[WARNING] Some problems were encountered while building the effective model for org.apache.directory.fortress:fortress-rest:war:2.0.8-SNAPSHOT
+[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:tomcat-maven-plugin is missing. @ line 298, column 15
+[WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter.
+[WARNING] 
+[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
+[WARNING] 
+[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
+[WARNING] 
+[INFO] 
+[INFO] ------------< org.apache.directory.fortress:fortress-rest >-------------
+[INFO] Building Apache Fortress Rest 2.0.8-SNAPSHOT
+[INFO] --------------------------------[ war ]---------------------------------
+[INFO] 
+[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ fortress-rest ---
+[INFO] org.apache.directory.fortress:fortress-rest:war:2.0.8-SNAPSHOT
+[INFO] +- org.apache.directory.fortress:fortress-realm-impl:jar:2.0.7:compile
+[INFO] |  +- org.apache.directory.fortress:fortress-core:jar:2.0.7:compile
+[INFO] |  |  +- org.apache.directory.api:api-all:jar:2.1.0:compile
+[INFO] |  |  |  +- org.apache.servicemix.bundles:org.apache.servicemix.bundles.xpp3:jar:1.1.4c_7:compile
+[INFO] |  |  |  +- org.apache.servicemix.bundles:org.apache.servicemix.bundles.dom4j:jar:2.1.3_1:compile
+[INFO] |  |  |  +- org.apache.commons:commons-pool2:jar:2.9.0:compile
+[INFO] |  |  |  +- org.apache.mina:mina-core:jar:2.1.3:compile
+[INFO] |  |  |  +- org.apache.commons:commons-lang3:jar:3.12.0:compile
+[INFO] |  |  |  \- org.apache.servicemix.bundles:org.apache.servicemix.bundles.antlr:jar:2.7.7_5:compile
+[INFO] |  |  +- org.apache.directory.api:api-ldap-extras-codec:jar:2.1.0:compile
+[INFO] |  |  |  +- org.apache.directory.api:api-ldap-codec-core:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-util:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-asn1-api:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-asn1-ber:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-i18n:jar:2.1.0:compile
+[INFO] |  |  |  |  \- org.apache.directory.api:api-ldap-model:jar:2.1.0:compile
+[INFO] |  |  |  \- org.apache.directory.api:api-ldap-extras-codec-api:jar:2.1.0:compile
+[INFO] |  |  +- commons-configuration:commons-configuration:jar:1.10:compile
+[INFO] |  |  |  \- commons-lang:commons-lang:jar:2.6:compile
+[INFO] |  |  +- commons-io:commons-io:jar:2.10.0:compile
+[INFO] |  |  +- org.apache.httpcomponents:httpclient:jar:4.5.13:compile
+[INFO] |  |  |  \- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
+[INFO] |  |  +- net.sf.ehcache:ehcache-core:jar:2.6.11:compile
+[INFO] |  |  +- org.apache.ant:ant:jar:1.10.12:compile
+[INFO] |  |  |  \- org.apache.ant:ant-launcher:jar:1.10.12:compile
+[INFO] |  |  +- org.jasypt:jasypt:jar:1.9.3:compile
+[INFO] |  |  +- org.jgrapht:jgrapht-core:jar:1.4.0:compile
+[INFO] |  |  |  \- org.jheaps:jheaps:jar:0.11:compile
+[INFO] |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.12.3:compile
+[INFO] |  |  +- org.openldap:accelerator-api:jar:1.0-RC41:compile
+[INFO] |  |  +- org.openldap:accelerator-impl:jar:1.0-RC41:compile
+[INFO] |  |  +- javax:javaee-api:jar:8.0.1:compile
+[INFO] |  |  |  \- com.sun.mail:javax.mail:jar:1.6.2:compile
+[INFO] |  |  |     \- javax.activation:activation:jar:1.1:compile
+[INFO] |  |  \- javax.xml.bind:jaxb-api:jar:2.3.0:compile
+[INFO] |  +- org.apache.commons:commons-collections4:jar:4.4:compile
+[INFO] |  +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.15.0:compile
+[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.29:compile
+[INFO] +- org.apache.cxf:cxf-core:jar:3.5.1:compile
+[INFO] |  +- org.glassfish.jaxb:jaxb-runtime:jar:2.3.5:compile
+[INFO] |  +- com.fasterxml.woodstox:woodstox-core:jar:6.2.7:compile
+[INFO] |  |  \- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
+[INFO] |  +- org.apache.ws.xmlschema:xmlschema-core:jar:2.3.0:compile
+[INFO] |  +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
+[INFO] |  |  \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
+[INFO] |  +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
+[INFO] |  +- jakarta.xml.ws:jakarta.xml.ws-api:jar:2.3.3:compile
+[INFO] |  +- jakarta.jws:jakarta.jws-api:jar:2.1.0:compile
+[INFO] |  +- jakarta.xml.soap:jakarta.xml.soap-api:jar:1.4.2:compile
+[INFO] |  +- com.sun.activation:jakarta.activation:jar:1.2.2:compile
+[INFO] |  +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.5.3:runtime
+[INFO] |  |  \- org.jvnet.staxex:stax-ex:jar:1.8.3:runtime
+[INFO] |  \- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
+[INFO] +- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:3.5.1:compile
+[INFO] |  +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile
+[INFO] |  +- org.apache.cxf:cxf-rt-transports-http:jar:3.5.1:compile
+[INFO] |  \- org.apache.cxf:cxf-rt-security:jar:3.5.1:compile
+[INFO] +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.13.2:compile
+[INFO] |  +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.13.2:compile
+[INFO] |  |  +- com.fasterxml.jackson.core:jackson-core:jar:2.13.2:compile
+[INFO] |  |  \- com.fasterxml.jackson.core:jackson-databind:jar:2.13.2:compile
+[INFO] |  \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.13.2:compile
+[INFO] +- org.springframework:spring-core:jar:5.3.17:compile
+[INFO] |  \- org.springframework:spring-jcl:jar:5.3.17:compile
+[INFO] +- org.springframework.security:spring-security-web:jar:5.6.2:compile
+[INFO] |  +- org.springframework.security:spring-security-core:jar:5.6.2:compile
+[INFO] |  |  \- org.springframework.security:spring-security-crypto:jar:5.6.2:compile
+[INFO] |  +- org.springframework:spring-aop:jar:5.3.16:compile
+[INFO] |  +- org.springframework:spring-beans:jar:5.3.16:compile
+[INFO] |  +- org.springframework:spring-context:jar:5.3.16:compile
+[INFO] |  +- org.springframework:spring-expression:jar:5.3.16:compile
+[INFO] |  \- org.springframework:spring-web:jar:5.3.16:compile
+[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
+[INFO] +- org.apache.logging.log4j:log4j-core:jar:2.17.2:compile
+[INFO] +- commons-httpclient:commons-httpclient:jar:3.1:test
+[INFO] |  +- commons-logging:commons-logging:jar:1.0.4:compile
+[INFO] |  \- commons-codec:commons-codec:jar:1.2:compile
+[INFO] +- junit:junit:jar:4.13.2:test
+[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
+[INFO] +- com.sun.xml.bind:jaxb-impl:jar:3.0.2:compile
+[INFO] |  \- com.sun.xml.bind:jaxb-core:jar:3.0.2:compile
+[INFO] \- org.glassfish.jaxb:jaxb-core:jar:3.0.2:compile
+[INFO]    +- org.glassfish.jaxb:txw2:jar:3.0.2:compile
+[INFO]    \- com.sun.istack:istack-commons-runtime:jar:4.0.1:compile
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD SUCCESS
+[INFO] ------------------------------------------------------------------------
+[INFO] Total time:  2.521 s
+[INFO] Finished at: 2022-03-31T14:38:00-05:00
+[INFO] ------------------------------------------------------------------------
diff --git a/rest-tree.txt b/rest-tree.txt
new file mode 100644
index 0000000..5392e53
--- /dev/null
+++ b/rest-tree.txt
@@ -0,0 +1,101 @@
+[INFO] Scanning for projects...
+[WARNING] 
+[WARNING] Some problems were encountered while building the effective model for org.apache.directory.fortress:fortress-rest:war:2.0.8-SNAPSHOT
+[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:tomcat-maven-plugin is missing. @ line 414, column 15
+[WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter.
+[WARNING] 
+[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
+[WARNING] 
+[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
+[WARNING] 
+[INFO] 
+[INFO] ------------< org.apache.directory.fortress:fortress-rest >-------------
+[INFO] Building Apache Fortress Rest 2.0.8-SNAPSHOT
+[INFO] --------------------------------[ war ]---------------------------------
+[INFO] 
+[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ fortress-rest ---
+[INFO] org.apache.directory.fortress:fortress-rest:war:2.0.8-SNAPSHOT
+[INFO] +- org.apache.directory.fortress:fortress-realm-impl:jar:2.0.8-SNAPSHOT:compile
+[INFO] |  +- org.apache.directory.fortress:fortress-core:jar:2.0.8-SNAPSHOT:compile
+[INFO] |  |  +- org.apache.directory.api:api-all:jar:2.1.0:compile
+[INFO] |  |  |  +- org.apache.servicemix.bundles:org.apache.servicemix.bundles.xpp3:jar:1.1.4c_7:compile
+[INFO] |  |  |  +- org.apache.servicemix.bundles:org.apache.servicemix.bundles.dom4j:jar:2.1.3_1:compile
+[INFO] |  |  |  +- org.apache.commons:commons-pool2:jar:2.9.0:compile
+[INFO] |  |  |  +- org.apache.mina:mina-core:jar:2.1.3:compile
+[INFO] |  |  |  +- org.apache.commons:commons-lang3:jar:3.12.0:compile
+[INFO] |  |  |  \- org.apache.servicemix.bundles:org.apache.servicemix.bundles.antlr:jar:2.7.7_5:compile
+[INFO] |  |  +- org.apache.directory.api:api-ldap-extras-codec:jar:2.1.0:compile
+[INFO] |  |  |  +- org.apache.directory.api:api-ldap-codec-core:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-util:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-asn1-api:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-asn1-ber:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-i18n:jar:2.1.0:compile
+[INFO] |  |  |  |  \- org.apache.directory.api:api-ldap-model:jar:2.1.0:compile
+[INFO] |  |  |  \- org.apache.directory.api:api-ldap-extras-codec-api:jar:2.1.0:compile
+[INFO] |  |  +- commons-configuration:commons-configuration:jar:1.10:compile
+[INFO] |  |  |  \- commons-lang:commons-lang:jar:2.6:compile
+[INFO] |  |  +- commons-io:commons-io:jar:2.11.0:compile
+[INFO] |  |  +- org.apache.httpcomponents:httpclient:jar:4.5.13:compile
+[INFO] |  |  |  \- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
+[INFO] |  |  +- net.sf.ehcache:ehcache:jar:2.10.9.2:compile
+[INFO] |  |  +- org.apache.ant:ant:jar:1.10.12:compile
+[INFO] |  |  |  \- org.apache.ant:ant-launcher:jar:1.10.12:compile
+[INFO] |  |  +- org.jasypt:jasypt:jar:1.9.3:compile
+[INFO] |  |  +- org.jgrapht:jgrapht-core:jar:1.4.0:compile
+[INFO] |  |  |  \- org.jheaps:jheaps:jar:0.11:compile
+[INFO] |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.2:compile
+[INFO] |  |  +- org.openldap:accelerator-api:jar:1.0-RC41:compile
+[INFO] |  |  +- org.openldap:accelerator-impl:jar:1.0-RC41:compile
+[INFO] |  |  \- jakarta.platform:jakarta.jakartaee-api:jar:9.0.0:compile
+[INFO] |  +- org.apache.commons:commons-collections4:jar:4.4:compile
+[INFO] |  +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.17.2:compile
+[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.36:compile
+[INFO] +- org.apache.cxf:cxf-core:jar:3.5.2:compile
+[INFO] |  +- org.glassfish.jaxb:jaxb-runtime:jar:2.3.5:compile
+[INFO] |  |  +- org.glassfish.jaxb:txw2:jar:2.3.5:compile
+[INFO] |  |  \- com.sun.istack:istack-commons-runtime:jar:3.0.12:compile
+[INFO] |  +- com.fasterxml.woodstox:woodstox-core:jar:6.2.7:compile
+[INFO] |  |  \- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
+[INFO] |  +- org.apache.ws.xmlschema:xmlschema-core:jar:2.3.0:compile
+[INFO] |  +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
+[INFO] |  +- jakarta.xml.ws:jakarta.xml.ws-api:jar:2.3.3:compile
+[INFO] |  +- jakarta.jws:jakarta.jws-api:jar:2.1.0:compile
+[INFO] |  +- jakarta.xml.soap:jakarta.xml.soap-api:jar:1.4.2:compile
+[INFO] |  +- com.sun.activation:jakarta.activation:jar:1.2.2:compile
+[INFO] |  +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.5.3:runtime
+[INFO] |  |  \- org.jvnet.staxex:stax-ex:jar:1.8.3:runtime
+[INFO] |  \- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
+[INFO] +- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:3.5.2:compile
+[INFO] |  +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile
+[INFO] |  +- org.apache.cxf:cxf-rt-transports-http:jar:3.5.2:compile
+[INFO] |  \- org.apache.cxf:cxf-rt-security:jar:3.5.2:compile
+[INFO] +- com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-json-provider:jar:2.13.2:compile
+[INFO] |  +- com.fasterxml.jackson.jakarta.rs:jackson-jakarta-rs-base:jar:2.13.2:compile
+[INFO] |  |  +- com.fasterxml.jackson.core:jackson-core:jar:2.13.2:compile
+[INFO] |  |  \- com.fasterxml.jackson.core:jackson-databind:jar:2.13.2:compile
+[INFO] |  \- com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:jar:2.13.2:compile
+[INFO] +- org.springframework:spring-core:jar:5.3.19:compile
+[INFO] |  \- org.springframework:spring-jcl:jar:5.3.19:compile
+[INFO] +- org.springframework.security:spring-security-web:jar:5.6.2:compile
+[INFO] |  +- org.springframework.security:spring-security-core:jar:5.6.2:compile
+[INFO] |  |  \- org.springframework.security:spring-security-crypto:jar:5.6.2:compile
+[INFO] |  +- org.springframework:spring-aop:jar:5.3.16:compile
+[INFO] |  +- org.springframework:spring-beans:jar:5.3.16:compile
+[INFO] |  +- org.springframework:spring-context:jar:5.3.16:compile
+[INFO] |  +- org.springframework:spring-expression:jar:5.3.16:compile
+[INFO] |  \- org.springframework:spring-web:jar:5.3.16:compile
+[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
+[INFO] +- org.apache.logging.log4j:log4j-core:jar:2.17.2:compile
+[INFO] +- commons-httpclient:commons-httpclient:jar:3.1:test
+[INFO] |  +- commons-logging:commons-logging:jar:1.0.4:compile
+[INFO] |  \- commons-codec:commons-codec:jar:1.2:compile
+[INFO] +- junit:junit:jar:4.13.2:test
+[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
+[INFO] \- jakarta.xml.bind:jakarta.xml.bind-api:jar:4.0.0:compile
+[INFO]    \- jakarta.activation:jakarta.activation-api:jar:2.1.0:compile
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD SUCCESS
+[INFO] ------------------------------------------------------------------------
+[INFO] Total time:  1.655 s
+[INFO] Finished at: 2022-05-13T12:52:26-05:00
+[INFO] ------------------------------------------------------------------------
diff --git a/src/main/java/org/apache/directory/fortress/rest/JacksonFieldOnlyMapper.sav b/src/main/java/org/apache/directory/fortress/rest/JacksonFieldOnlyMapper.sav
new file mode 100644
index 0000000..41cc7d0
--- /dev/null
+++ b/src/main/java/org/apache/directory/fortress/rest/JacksonFieldOnlyMapper.sav
@@ -0,0 +1,45 @@
+/*
+ *   Licensed to the Apache Software Foundation (ASF) under one
+ *   or more contributor license agreements.  See the NOTICE file
+ *   distributed with this work for additional information
+ *   regarding copyright ownership.  The ASF licenses this file
+ *   to you under the Apache License, Version 2.0 (the
+ *   "License"); you may not use this file except in compliance
+ *   with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing,
+ *   software distributed under the License is distributed on an
+ *   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *   KIND, either express or implied.  See the License for the
+ *   specific language governing permissions and limitations
+ *   under the License.
+ *
+ */
+package org.apache.directory.fortress.rest;
+
+import org.apache.directory.fortress.core.model.FortEntity;
+
+import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
+import com.fasterxml.jackson.annotation.PropertyAccessor;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+/**
+ * This class is used to marshall/unmarshall subtypes of {@link FortEntity} using only the fields.
+ * This mapper ignores all the getter and setters.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class JacksonFieldOnlyMapper extends ObjectMapper
+{
+    public JacksonFieldOnlyMapper()
+    {
+        super();
+        // allow access to fields
+        setVisibility(PropertyAccessor.FIELD, Visibility.ANY);
+        setVisibility(PropertyAccessor.GETTER, Visibility.NONE); // and do not use getters and setters
+        setVisibility(PropertyAccessor.IS_GETTER, Visibility.NONE);
+        setVisibility(PropertyAccessor.SETTER, Visibility.NONE);
+    }
+}
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
index 82c7cc8..db56eae 100644
--- a/src/main/resources/log4j2.xml
+++ b/src/main/resources/log4j2.xml
@@ -26,6 +26,7 @@
     <Loggers>
         <Logger name="org.apache.directory.fortress.rest.FortressInterceptor" level="info"/>
         <Logger name="org.apache.directory.fortress.core" level="info"/>
+        <Logger name="org.apache.directory.fortress.rest" level="info"/>
         <Root level="warn">
             <AppenderRef ref="console"/>
         </Root>
diff --git a/src/test/java/org/apache/directory/fortress/rest/JsonSerializationTest.sav b/src/test/java/org/apache/directory/fortress/rest/JsonSerializationTest.sav
new file mode 100644
index 0000000..b83f55a
--- /dev/null
+++ b/src/test/java/org/apache/directory/fortress/rest/JsonSerializationTest.sav
@@ -0,0 +1,44 @@
+/*
+ *   Licensed to the Apache Software Foundation (ASF) under one
+ *   or more contributor license agreements.  See the NOTICE file
+ *   distributed with this work for additional information
+ *   regarding copyright ownership.  The ASF licenses this file
+ *   to you under the Apache License, Version 2.0 (the
+ *   "License"); you may not use this file except in compliance
+ *   with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing,
+ *   software distributed under the License is distributed on an
+ *   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *   KIND, either express or implied.  See the License for the
+ *   specific language governing permissions and limitations
+ *   under the License.
+ *
+ */
+package org.apache.directory.fortress.rest;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+
+import org.apache.directory.fortress.core.model.User;
+import org.junit.Test;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+/**
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class JsonSerializationTest {
+    @Test
+    public void testFqcn() throws Exception {
+        User u = new User();
+        JacksonFieldOnlyMapper om = new JacksonFieldOnlyMapper();
+        byte[] data = om.writeValueAsBytes(u);
+        JsonNode json = om.readTree(data);
+        assertEquals(User.class.getName(), json.get("fqcn").asText());
+        User read = om.readValue(data, User.class);
+        assertNotNull(read);
+    }
+}
diff --git a/tree.txt b/tree.txt
new file mode 100644
index 0000000..742e319
--- /dev/null
+++ b/tree.txt
@@ -0,0 +1,107 @@
+[INFO] Scanning for projects...
+[WARNING] 
+[WARNING] Some problems were encountered while building the effective model for org.apache.directory.fortress:fortress-rest:war:2.0.8-SNAPSHOT
+[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:tomcat-maven-plugin is missing. @ line 298, column 15
+[WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter.
+[WARNING] 
+[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
+[WARNING] 
+[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
+[WARNING] 
+[INFO] 
+[INFO] ------------< org.apache.directory.fortress:fortress-rest >-------------
+[INFO] Building Apache Fortress Rest 2.0.8-SNAPSHOT
+[INFO] --------------------------------[ war ]---------------------------------
+[INFO] 
+[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ fortress-rest ---
+[INFO] org.apache.directory.fortress:fortress-rest:war:2.0.8-SNAPSHOT
+[INFO] +- org.apache.directory.fortress:fortress-realm-impl:jar:2.0.7:compile
+[INFO] |  +- org.apache.directory.fortress:fortress-core:jar:2.0.7:compile
+[INFO] |  |  +- org.apache.directory.api:api-all:jar:2.1.0:compile
+[INFO] |  |  |  +- org.apache.servicemix.bundles:org.apache.servicemix.bundles.xpp3:jar:1.1.4c_7:compile
+[INFO] |  |  |  +- org.apache.servicemix.bundles:org.apache.servicemix.bundles.dom4j:jar:2.1.3_1:compile
+[INFO] |  |  |  +- org.apache.commons:commons-pool2:jar:2.9.0:compile
+[INFO] |  |  |  +- org.apache.mina:mina-core:jar:2.1.3:compile
+[INFO] |  |  |  +- org.apache.commons:commons-lang3:jar:3.12.0:compile
+[INFO] |  |  |  \- org.apache.servicemix.bundles:org.apache.servicemix.bundles.antlr:jar:2.7.7_5:compile
+[INFO] |  |  +- org.apache.directory.api:api-ldap-extras-codec:jar:2.1.0:compile
+[INFO] |  |  |  +- org.apache.directory.api:api-ldap-codec-core:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-util:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-asn1-api:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-asn1-ber:jar:2.1.0:compile
+[INFO] |  |  |  |  +- org.apache.directory.api:api-i18n:jar:2.1.0:compile
+[INFO] |  |  |  |  \- org.apache.directory.api:api-ldap-model:jar:2.1.0:compile
+[INFO] |  |  |  \- org.apache.directory.api:api-ldap-extras-codec-api:jar:2.1.0:compile
+[INFO] |  |  +- commons-configuration:commons-configuration:jar:1.10:compile
+[INFO] |  |  |  \- commons-lang:commons-lang:jar:2.6:compile
+[INFO] |  |  +- commons-io:commons-io:jar:2.10.0:compile
+[INFO] |  |  +- org.apache.httpcomponents:httpclient:jar:4.5.13:compile
+[INFO] |  |  |  \- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
+[INFO] |  |  +- net.sf.ehcache:ehcache-core:jar:2.6.11:compile
+[INFO] |  |  +- org.apache.ant:ant:jar:1.10.12:compile
+[INFO] |  |  |  \- org.apache.ant:ant-launcher:jar:1.10.12:compile
+[INFO] |  |  +- org.jasypt:jasypt:jar:1.9.3:compile
+[INFO] |  |  +- org.jgrapht:jgrapht-core:jar:1.4.0:compile
+[INFO] |  |  |  \- org.jheaps:jheaps:jar:0.11:compile
+[INFO] |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.12.3:compile
+[INFO] |  |  +- org.openldap:accelerator-api:jar:1.0-RC41:compile
+[INFO] |  |  +- org.openldap:accelerator-impl:jar:1.0-RC41:compile
+[INFO] |  |  +- javax:javaee-api:jar:8.0.1:compile
+[INFO] |  |  |  \- com.sun.mail:javax.mail:jar:1.6.2:compile
+[INFO] |  |  |     \- javax.activation:activation:jar:1.1:compile
+[INFO] |  |  \- javax.xml.bind:jaxb-api:jar:2.3.0:compile
+[INFO] |  +- org.apache.commons:commons-collections4:jar:4.4:compile
+[INFO] |  +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.15.0:compile
+[INFO] |  \- org.slf4j:slf4j-api:jar:1.7.29:compile
+[INFO] +- org.apache.cxf:cxf-core:jar:3.5.1:compile
+[INFO] |  +- org.glassfish.jaxb:jaxb-runtime:jar:2.3.5:compile
+[INFO] |  +- com.fasterxml.woodstox:woodstox-core:jar:6.2.7:compile
+[INFO] |  |  \- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
+[INFO] |  +- org.apache.ws.xmlschema:xmlschema-core:jar:2.3.0:compile
+[INFO] |  +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
+[INFO] |  |  \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
+[INFO] |  +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
+[INFO] |  +- jakarta.xml.ws:jakarta.xml.ws-api:jar:2.3.3:compile
+[INFO] |  +- jakarta.jws:jakarta.jws-api:jar:2.1.0:compile
+[INFO] |  +- jakarta.xml.soap:jakarta.xml.soap-api:jar:1.4.2:compile
+[INFO] |  +- com.sun.activation:jakarta.activation:jar:1.2.2:compile
+[INFO] |  +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.5.3:runtime
+[INFO] |  |  \- org.jvnet.staxex:stax-ex:jar:1.8.3:runtime
+[INFO] |  \- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
+[INFO] +- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:3.5.1:compile
+[INFO] |  +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile
+[INFO] |  +- org.apache.cxf:cxf-rt-transports-http:jar:3.5.1:compile
+[INFO] |  \- org.apache.cxf:cxf-rt-security:jar:3.5.1:compile
+[INFO] +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.13.2:compile
+[INFO] |  +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.13.2:compile
+[INFO] |  |  +- com.fasterxml.jackson.core:jackson-core:jar:2.13.2:compile
+[INFO] |  |  \- com.fasterxml.jackson.core:jackson-databind:jar:2.13.2:compile
+[INFO] |  \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.13.2:compile
+[INFO] +- org.springframework:spring-core:jar:5.3.17:compile
+[INFO] |  \- org.springframework:spring-jcl:jar:5.3.17:compile
+[INFO] +- org.springframework.security:spring-security-web:jar:5.6.2:compile
+[INFO] |  +- org.springframework.security:spring-security-core:jar:5.6.2:compile
+[INFO] |  |  \- org.springframework.security:spring-security-crypto:jar:5.6.2:compile
+[INFO] |  +- org.springframework:spring-aop:jar:5.3.16:compile
+[INFO] |  +- org.springframework:spring-beans:jar:5.3.16:compile
+[INFO] |  +- org.springframework:spring-context:jar:5.3.16:compile
+[INFO] |  +- org.springframework:spring-expression:jar:5.3.16:compile
+[INFO] |  \- org.springframework:spring-web:jar:5.3.16:compile
+[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
+[INFO] +- org.apache.logging.log4j:log4j-core:jar:2.17.2:compile
+[INFO] +- commons-httpclient:commons-httpclient:jar:3.1:test
+[INFO] |  +- commons-logging:commons-logging:jar:1.0.4:compile
+[INFO] |  \- commons-codec:commons-codec:jar:1.2:compile
+[INFO] +- junit:junit:jar:4.13.2:test
+[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
+[INFO] +- com.sun.xml.bind:jaxb-impl:jar:3.0.2:compile
+[INFO] |  \- com.sun.xml.bind:jaxb-core:jar:3.0.2:compile
+[INFO] \- org.glassfish.jaxb:jaxb-core:jar:3.0.2:compile
+[INFO]    +- org.glassfish.jaxb:txw2:jar:3.0.2:compile
+[INFO]    \- com.sun.istack:istack-commons-runtime:jar:4.0.1:compile
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD SUCCESS
+[INFO] ------------------------------------------------------------------------
+[INFO] Total time:  1.754 s
+[INFO] Finished at: 2022-04-10T12:53:53-05:00
+[INFO] ------------------------------------------------------------------------