Version 3

    I am developing an application that runs on Jboss AS7 and its front end, is developed on a tomcat that makes remote ejb calls to the jboss.

    In tomcat i use spring and the configuration is the following

     

       <bean id="jndiProperties"

          class="org.springframework.beans.factory.config.PropertiesFactoryBean">

          <property name="properties">

             <map>

                <entry key="java.naming.factory.url.pkgs" value="org.jboss.ejb.client.naming" />

             </map>

          </property>

       </bean>

     

       <jee:remote-slsb id="documentService"

          business-interface="document.DocumentServiceInterface"

          jndi-name="${document.jndi.name}"

          environment-ref="jndiProperties" />

     

    in jboss-esb-client.properties i have the following properties

     

    endpoint.name=client-endpoint

    remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false

     

    remote.connections=master

     

    remote.connection.master.host=localhost

    remote.connection.master.port=4447

    remote.connection.master.username=ejb

    remote.connection.master.password=whatever

    remote.connection.master.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false

     

    Everything works fine till i try to shutdown tomcat, where i get a lot of errors regarding memory leakage like the following

     

    SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.remoting3.remote.ProtocolUtils$1] (value [org.jboss.remoting3.remote.ProtocolUtils$1@1ca9271]) and a value of type [java.util.Random] (value [java.util.Random@1194685]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

    21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

    SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.marshalling.UTFUtils.BytesHolder] (value [org.jboss.marshalling.UTFUtils$BytesHolder@195fb28]) and a value of type [byte[]] (value [[B@19c2afd]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

    21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

    SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.marshalling.UTFUtils.BytesHolder] (value [org.jboss.marshalling.UTFUtils$BytesHolder@195fb28]) and a value of type [byte[]] (value [[B@1241146]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

    21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

    SEVERE: The web application [/module] created a ThreadLocal with key of type [org.xnio.Xnio$1] (value [org.xnio.Xnio$1@ea1895]) and a value of type [java.lang.Boolean] (value [true]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

    21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

    SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.remoting3.remote.ProtocolUtils$1] (value [org.jboss.remoting3.remote.ProtocolUtils$1@1ca9271]) and a value of type [java.util.Random] (value [java.util.Random@f40ddb]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

    21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

    SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.remoting3.remote.ProtocolUtils$1] (value [org.jboss.remoting3.remote.ProtocolUtils$1@1ca9271]) and a value of type [java.util.Random] (value [java.util.Random@1aad8e4]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

    21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

    SEVERE: The web application [/module] created a ThreadLocal with key of type [org.jboss.marshalling.UTFUtils.BytesHolder] (value [org.jboss.marshalling.UTFUtils$BytesHolder@195fb28]) and a value of type [byte[]] (value [[B@1858371]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

    21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

    SEVERE: The web application [/module] created a ThreadLocal with key of type [org.xnio.Xnio$1] (value [org.xnio.Xnio$1@ea1895]) and a value of type [java.lang.Boolean] (value [true]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

    21-Sep-2012 11:44:43 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

     

     

    Is it something that i am missing from the configuration or is it sth else? (i've tried jboss-client 7.1.1.Final and 7.1.2.Final with the same problem)