<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Web Service called by servlet in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/web-service-called-by-servlet/m-p/264241#M217371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to implement a servlet that use FirstWebServiceClient in SDK. My servlet is named "TestServlet" an calls the web service sample simply in doGet() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;My goal &lt;/STRONG&gt;&lt;SPAN&gt;is to build a servlet based application that works in CRUD on the alfresco repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now I tried to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. *.war deploying in the alfresco's tomcat instance and call &lt;/SPAN&gt;&lt;A href="http://localhost:8080/MyApp/TestServlet" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/MyApp/TestServlet&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The doGet() method call of TestServlet class creates the sample content in company_home, but it also shutdown tomcat. stderr.log reports:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;1-dic-2010 12.25.01 org.apache.coyote.http11.Http11AprProtocol pause&lt;BR /&gt;INFO: Pausing Coyote HTTP/1.1 on http-8080&lt;BR /&gt;1-dic-2010 12.25.01 org.apache.coyote.ajp.AjpAprProtocol pause&lt;BR /&gt;INFO: Pausing Coyote AJP/1.3 on ajp-8009&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I also tried to deploy MyApp.war in another tomcat instance (configured to run on different ports that alfresco has in its one). So I have 2 tomcat instances (alfresco on 8080 and MyApp on 8085)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Calling TestServlet I have the same result as above (sample content is created in company_home but tomcat shut down). This is the log.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;1-dic-2010 12.41.10 org.apache.coyote.http11.Http11Protocol pause&lt;BR /&gt;INFO: Pausing Coyote HTTP/1.1 on http-8085&lt;BR /&gt;1-dic-2010 12.41.11 org.apache.catalina.core.StandardService stop&lt;BR /&gt;INFO: Stopping service Catalina&lt;BR /&gt;1-dic-2010 12.41.11 org.apache.catalina.core.StandardWrapper unload&lt;BR /&gt;INFO: Waiting for 1 instance(s) to be deallocated&lt;BR /&gt;1-dic-2010 12.41.12 org.apache.catalina.core.StandardWrapper unload&lt;BR /&gt;INFO: Waiting for 1 instance(s) to be deallocated&lt;BR /&gt;1-dic-2010 12.41.13 org.apache.catalina.core.StandardWrapper unload&lt;BR /&gt;INFO: Waiting for 1 instance(s) to be deallocated&lt;BR /&gt;1-dic-2010 12.41.13 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads&lt;BR /&gt;GRAVE: The web application [/MyApp] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.&lt;BR /&gt;1-dic-2010 12.41.13 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap&lt;BR /&gt;GRAVE: The web application [/MyApp] created a ThreadLocal with key of type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@168497f6]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@5b14a306]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.&lt;BR /&gt;1-dic-2010 12.41.13 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap&lt;BR /&gt;GRAVE: The web application [/MyApp] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1] (value [org.apache.xml.security.utils.UnsyncByteArrayOutputStream$1@1e5bd978]) and a value of type [byte[]] (value [[B@202264da]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.&lt;BR /&gt;1-dic-2010 12.41.13 org.apache.coyote.http11.Http11Protocol destroy&lt;BR /&gt;INFO: Stopping Coyote HTTP/1.1 on http-8085&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Which is the best approach to achieve this goal?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Dec 2010 11:50:41 GMT</pubDate>
    <dc:creator>cristian</dc:creator>
    <dc:date>2010-12-01T11:50:41Z</dc:date>
    <item>
      <title>Web Service called by servlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-called-by-servlet/m-p/264241#M217371</link>
      <description>Hi all. I would like to implement a servlet that use FirstWebServiceClient in SDK. My servlet is named "TestServlet" an calls the web service sample simply in doGet() method.My goal is to build a servlet based application that works in CRUD on the alfresco repository.For now I tried to:1. *.war depl</description>
      <pubDate>Wed, 01 Dec 2010 11:50:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-called-by-servlet/m-p/264241#M217371</guid>
      <dc:creator>cristian</dc:creator>
      <dc:date>2010-12-01T11:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Web Service called by servlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-called-by-servlet/m-p/264242#M217372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check your code and remove all System.exit() commands. That could cause Tomcat to shutdown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see that there is one in FirstWebServiceClient.java.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 13:36:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-called-by-servlet/m-p/264242#M217372</guid>
      <dc:creator>jcustovic</dc:creator>
      <dc:date>2010-12-01T13:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Web Service called by servlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-called-by-servlet/m-p/264243#M217373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks&amp;nbsp; :!:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 13:47:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-called-by-servlet/m-p/264243#M217373</guid>
      <dc:creator>cristian</dc:creator>
      <dc:date>2010-12-01T13:47:38Z</dc:date>
    </item>
  </channel>
</rss>

