28234

Google App Engine backend servlet not responding

Question:

I built a servlet that I'm trying to run in the backend. But after starting the the backend and sending post message to <a href="http://mybackend.myapp.appspot.com/update" rel="nofollow">http://mybackend.myapp.appspot.com/update</a> nothing is appening.<br /> when I access: <a href="http://myapp.appspot.com/update" rel="nofollow">http://myapp.appspot.com/update</a> the servlet is working but not in backend.<br /> What am I doing wrong?

<strong>Servlet code:</strong>

public class UpdateServlet extends HttpServlet { @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { System.out.println("start long task"); } }

<strong>backends.xml</strong>

<backends> <backend name="mybackend"> <class>B1</class> <options> <dynamic>true</dynamic> <public>true</public> </options> </backend> </backends>

<strong>web.xml</strong>

<servlet> <servlet-name>update</servlet-name> <servlet-class>server.UpdateServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>update</servlet-name> <url-pattern>/update</url-pattern> </servlet-mapping>

Answer1:

The servlet at http://mybackend.myapp.appspot.com/update sends a HTTP 302 redirect http://my-life.appspot.com. So it's your code that's doing it.

Recommend

  • Tex: wrapfig package problem aligning text
  • How to navigate to other page without animation Flutter
  • Keep activity always on top of stack, or in focus when rogue apps launch activities?
  • Bind a function to multiple dynamically created buttons in kivy?
  • Sending Objects over Java Socket really slow
  • What is the purpose of set clock skew in wcf security mode settings
  • Intersection of characters in two strings
  • How to enable LDAP extension in XAMPP environment
  • Background beacon detection and Notification (Both iOS and Android) for Eddystone beacon?
  • create circular Auto Horizontal Scroll View?
  • Why am I getting an Argument exception when creating event handler dynamically?
  • Populating a database table with returned JSON
  • Julia 1.0 UndefVarError - Scope of Variable
  • When to use the tag in the head and body section of a html page? [duplicate]
  • How to merge objects within array based on attribute
  • Floating parent div grows to hypothetical width of floating child div
  • Google Spreadsheet Script to Blink a range of Cells
  • Neo4j…how to get a visual representation of my data?
  • Support of :after in IE7
  • how to get the location(lat/lng) on google maps v3 from the location(x,y)
  • Cloud Code: Creating a Parse.File from URL
  • Terminal run dalvikvm with am.jar
  • SpringBoot: Bypass OncePerRequestFilter filters
  • How do I add a mouse over tooltip to an Image using .DrawImage()
  • Will this work on all screen sizes?
  • How to handle div that is created dynamically in a table
  • Send array to next viewcontroller iOs xcode [duplicate]
  • Spring Boot fails to start
  • Unity3d lost directional light shadows after generate assetBundle (.unity3d file)
  • Make checkout phone field optional for specific countries in WooCommerce
  • Codeigniniter insert data through models and controller
  • VLOOKUP in IMPORTRANGE
  • Sign a Pdf using custom digital signature in Java
  • PHP Permalinks.. how to change?
  • Spring Boot not autowiring @Repository
  • What does the “id” field in an Android “Google Play Music” broadcast intent correspond to?
  • How to mutate multiple variables without repeating codes?
  • ReferenceError: TextEncoder is not defined
  • ARKit code issue {unknown error -1=ffffffffffffffff error: Task failed with exit 1}