<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to solve Tomcat 302 error problem?</title><link>https://answers.axonivy.com/questions/1770/how-to-solve-tomcat-302-error-problem</link><description>&lt;p&gt;We try to call an IVY process start link (/ivy/myprocess.ivp?id=213214) by an external application. As response we expect a JSON object. &lt;/p&gt;
&lt;p&gt;But it seems that the IVY Tomcat redirect our request (error 302), so we do not get the response back. Does anybody know to solve this problem?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1770/how-to-solve-tomcat-302-error-problem" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 12 May 2016 13:36:13 -0400</lastBuildDate><item><title>Comment by peter_muc on Dominik Regli's answer</title><link>https://answers.axonivy.com/questions/1770/how-to-solve-tomcat-302-error-problem#1774</link><description>&lt;p&gt;For info:&lt;/p&gt;
&lt;p&gt;....at the end we were able to identifiy the problem in general: if IVY does make a redirect (e.g. to a process end page), the Tomact blocks somehow the final response. We guess this problem is caused by Tomcat CORS (&lt;a href="https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#CORS_Filter_and_HttpServletRequest_attributes"&gt;link&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;Anyways, with the help of the suggested approach &lt;a href="http://answers.axonivy.com/questions/1453/can-i-expose-api-as-rest-service"&gt;link&lt;/a&gt; we were able to set a response to the external call.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">peter_muc</dc:creator><pubDate>Thu, 12 May 2016 13:36:13 -0400</pubDate><guid>https://answers.axonivy.com/questions/1770/how-to-solve-tomcat-302-error-problem#1774</guid></item><item><title>Answer by Dominik Regli</title><link>https://answers.axonivy.com/questions/1770/how-to-solve-tomcat-302-error-problem/1771</link><description>&lt;p&gt;Let the process flow end on a Script activity. This activity is responsible to end the Request and write the serialized JSON directly to the HTTP response. &lt;/p&gt;
&lt;p&gt;For further information, have a look at &lt;a href="http://answers.axonivy.com/questions/1453/can-i-expose-api-as-rest-service"&gt;"Can I expose api as REST service?" Q&amp;amp;A entry&lt;/a&gt;. It might help you.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dominik Regli</dc:creator><pubDate>Wed, 11 May 2016 12:21:19 -0400</pubDate><guid>https://answers.axonivy.com/questions/1770/how-to-solve-tomcat-302-error-problem/1771</guid></item></channel></rss>