Server Hung Web Application
Hi All,
Deploy the following Web Application to make any of the server in your welogic domain to Hung.
index.jsp
<html>
<head>
<title>Request Page</title>
</head>
<body>
<form action="firstrequest">
<table border="0" align="center">
<tr><td colspan="2" align="center">Welcome Testing Servlet</td></tr>
<tr>
<td align="center">
First NAME : <input type="text" name="HOSTNAME">
</td>
<td align="center">
Second NAME : <input type="text" name="instancename">
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="submit" name="button" value="Click">
<input type="submit" name="button" value="Close" onclick="window.close()">
</td>
</tr>
</table>
</form>
</body>
</html>
Web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app>
<servlet>
<servlet-name>application</servlet-name>
<servlet-class>SampleServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>application</servlet-name>
<url-pattern>/firstrequest</url-pattern>
</servlet-mapping>
</web-app>
SampleServlet.java
/**
*
* @author Sathya
*/
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class SampleServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
System.out.println("Entering servlet............");
try {
double d = Double.parseDouble("2.2250738585072012e-308");
System.out.println("Value: " + d);
} catch (Exception e) {
e.printStackTrace();
}
}
}
Thanks
Sathya