JBossWeb SVN: r722 - trunk/java/org/apache/catalina/connector.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2008-07-21 07:47:33 -0400 (Mon, 21 Jul 2008)
New Revision: 722
Modified:
trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
Log:
- Better comments.
Modified: trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
===================================================================
--- trunk/java/org/apache/catalina/connector/CoyoteAdapter.java 2008-07-18 06:46:11 UTC (rev 721)
+++ trunk/java/org/apache/catalina/connector/CoyoteAdapter.java 2008-07-21 11:47:33 UTC (rev 722)
@@ -830,11 +830,11 @@
/**
* Check that the URI is normalized following character decoding.
* <p>
- * This method checks for "\", "//", "/./" and "/../". This method will
- * return false if sequences that are supposed to be normalized still
+ * This method checks for "\", 0, "//", "/./" and "/../". This method will
+ * return false if sequences that are supposed to be normalized are still
* present in the URI.
*
- * @param uriMB URI to be normalized
+ * @param uriMB URI to be checked (should be chars)
*/
public static boolean checkNormalize(MessageBytes uriMB) {
@@ -845,7 +845,7 @@
int pos = 0;
- // Check for '\' and for null byte
+ // Check for '\' and 0
for (pos = start; pos < end; pos++) {
if (c[pos] == '\\') {
return false;
@@ -864,7 +864,7 @@
}
}
- // Check for URI ending with "/." or "/.."
+ // Check for ending with "/." or "/.."
if (((end - start) >= 2) && (c[end - 1] == '.')) {
if ((c[end - 2] == '/')
|| ((c[end - 2] == '.')
@@ -878,7 +878,7 @@
return false;
}
- // Check for "/./"
+ // Check for "/../"
if (uriCC.indexOf("/../", 0, 4, 0) >= 0) {
return false;
}
16 years, 5 months
JBossWeb SVN: r721 - trunk/webapps/docs.
by jbossweb-commits@lists.jboss.org
Author: jfrederic.clere(a)jboss.com
Date: 2008-07-18 02:46:11 -0400 (Fri, 18 Jul 2008)
New Revision: 721
Modified:
trunk/webapps/docs/ssl-howto.xml
Log:
Grammar + typos: Fix Tomcat PR#45422
Modified: trunk/webapps/docs/ssl-howto.xml
===================================================================
--- trunk/webapps/docs/ssl-howto.xml 2008-07-17 22:25:15 UTC (rev 720)
+++ trunk/webapps/docs/ssl-howto.xml 2008-07-18 06:46:11 UTC (rev 721)
@@ -193,7 +193,7 @@
<p>To import an existing certificate into a JKS keystore, please read the
documentation (in your JDK documentation package) about <code>keytool</code>.
-Note that OpenSSL often adds a readable comments before the key, <code>keytool</code>does not support that, so remove the OpenSSL comments if they exist before importing the key using <code>keytool</code>.
+Note that OpenSSL often adds readable comments before the key, <code>keytool</code>does not support that, so remove the OpenSSL comments if they exist before importing the key using <code>keytool</code>.
</p>
<p>To import an existing certificate signed by your own CA into a PKCS12
keystore using OpenSSL you would execute a command like:
@@ -390,7 +390,7 @@
that SSL is required, as required by the Servlet 2.4 Specification.</p>
</em></blockquote>
-<p>There are addional option used to configure the SSL protocol.
+<p>There are additional options used to configure the SSL protocol.
You may need to add or change the following attribute
values, depending on how you configured your keystore earlier:</p>
@@ -480,8 +480,8 @@
</section>
<section name="Installing a Certificate from a Certificate Authority">
-<p>To obstain and install a Certificate from a Certificate Authority (like verisign.com, thawte.com
-or trustcenter.de) you should have read the previous section and then follow these instructions:</p>
+<p>To obtain and install a Certificate from a Certificate Authority (like verisign.com, thawte.com
+or trustcenter.de), read the previous section and then follow these instructions:</p>
<subsection name="Create a local Certificate Signing Request (CSR)">
<p>In order to obtain a Certificate from the Certificate Authority of your choice
@@ -507,20 +507,20 @@
<subsection name="Importing the Certificate">
<p>Now that you have your Certificate you can import it into you local keystore.
First of all you have to import a so called Chain Certificate or Root Certificate into your keystore.
-After that you can procede with importing your Certificate.</p>
+After that you can proceed with importing your Certificate.</p>
<ul>
<li>Download a Chain Certificate from the Certificate Authority you obtained the Certificate from.<br/>
For Verisign.com commercial certificates go to:
http://www.verisign.com/support/install/intermediate.html<br/>
For Verisign.com trial certificates go to:
- http://www.verisign.com/support/verisign-intermediate-ca/Trial_Secure_Ser...
+ http://www.verisign.com/support/verisign-intermediate-ca/Trial_Secure_Ser...<br/>
For Trustcenter.de go to:
http://www.trustcenter.de/certservices/cacerts/en/en.htm#server<br/>
For Thawte.com go to:
http://www.thawte.com/certs/trustmap.html<br/>
</li>
-<li>Import the Chain Certificate into you keystore
+<li>Import the Chain Certificate into your keystore
<source>keytool -import -alias root -keystore <your_keystore_filename> \
-trustcacerts -file <filename_of_the_chain_certificate></source>
</li>
16 years, 5 months
JBossWeb SVN: r720 - in trunk: webapps/docs and 1 other directory.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2008-07-17 18:25:15 -0400 (Thu, 17 Jul 2008)
New Revision: 720
Modified:
trunk/java/org/apache/catalina/connector/CoyoteReader.java
trunk/webapps/docs/changelog.xml
Log:
- Port patch: problems with certain long lines.
Modified: trunk/java/org/apache/catalina/connector/CoyoteReader.java
===================================================================
--- trunk/java/org/apache/catalina/connector/CoyoteReader.java 2008-07-17 18:05:56 UTC (rev 719)
+++ trunk/java/org/apache/catalina/connector/CoyoteReader.java 2008-07-17 22:25:15 UTC (rev 720)
@@ -156,7 +156,7 @@
mark(MAX_LINE_LENGTH);
while ((pos < MAX_LINE_LENGTH) && (end < 0)) {
int nRead = read(lineBuffer, pos, MAX_LINE_LENGTH - pos);
- if (nRead < 0) {
+ if (nRead < 0 && aggregator == null) {
if (pos == 0) {
return null;
}
Modified: trunk/webapps/docs/changelog.xml
===================================================================
--- trunk/webapps/docs/changelog.xml 2008-07-17 18:05:56 UTC (rev 719)
+++ trunk/webapps/docs/changelog.xml 2008-07-17 22:25:15 UTC (rev 720)
@@ -46,6 +46,10 @@
org.jboss.web should be loaded as container classes. (remm)
</fix>
<fix>
+ <bug>42727</bug>: Handle request lines that are exact multiples of 4096 in length.
+ Patch provided by Will Pugh. (markt)
+ </fix>
+ <fix>
Instance manager checks were not done properly. (remm)
</fix>
<fix>
16 years, 5 months
JBossWeb SVN: r719 - in trunk: java/org/apache/jasper/compiler and 1 other directories.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2008-07-17 14:05:56 -0400 (Thu, 17 Jul 2008)
New Revision: 719
Modified:
trunk/java/org/apache/jasper/JspCompilationContext.java
trunk/java/org/apache/jasper/compiler/JspRuntimeContext.java
trunk/java/org/apache/jasper/compiler/TagFileProcessor.java
trunk/webapps/docs/changelog.xml
Log:
- Remove mandatory usage of a URLClassLoader for the webapp classloader.
Modified: trunk/java/org/apache/jasper/JspCompilationContext.java
===================================================================
--- trunk/java/org/apache/jasper/JspCompilationContext.java 2008-07-17 17:43:56 UTC (rev 718)
+++ trunk/java/org/apache/jasper/JspCompilationContext.java 2008-07-17 18:05:56 UTC (rev 719)
@@ -77,7 +77,7 @@
protected String baseURI;
protected String outputDir;
protected ServletContext context;
- protected URLClassLoader loader;
+ protected ClassLoader loader;
protected JspRuntimeContext rctxt;
@@ -170,7 +170,7 @@
return rctxt.getParentClassLoader();
}
- public void setClassLoader(URLClassLoader loader) {
+ public void setClassLoader(ClassLoader loader) {
this.loader = loader;
}
Modified: trunk/java/org/apache/jasper/compiler/JspRuntimeContext.java
===================================================================
--- trunk/java/org/apache/jasper/compiler/JspRuntimeContext.java 2008-07-17 17:43:56 UTC (rev 718)
+++ trunk/java/org/apache/jasper/compiler/JspRuntimeContext.java 2008-07-17 18:05:56 UTC (rev 719)
@@ -110,11 +110,9 @@
this.options = options;
// Get the parent class loader
- parentClassLoader =
- (URLClassLoader) Thread.currentThread().getContextClassLoader();
+ parentClassLoader = Thread.currentThread().getContextClassLoader();
if (parentClassLoader == null) {
- parentClassLoader =
- (URLClassLoader)this.getClass().getClassLoader();
+ parentClassLoader = this.getClass().getClassLoader();
}
if (log.isDebugEnabled()) {
Modified: trunk/java/org/apache/jasper/compiler/TagFileProcessor.java
===================================================================
--- trunk/java/org/apache/jasper/compiler/TagFileProcessor.java 2008-07-17 17:43:56 UTC (rev 718)
+++ trunk/java/org/apache/jasper/compiler/TagFileProcessor.java 2008-07-17 18:05:56 UTC (rev 719)
@@ -545,8 +545,7 @@
rctxt.addWrapper(tagFilePath, wrapper);
// Use same classloader and classpath for compiling tag files
- wrapper.getJspEngineContext().setClassLoader(
- (URLClassLoader) ctxt.getClassLoader());
+ wrapper.getJspEngineContext().setClassLoader(ctxt.getClassLoader());
wrapper.getJspEngineContext().setClassPath(ctxt.getClassPath());
} else {
// Make sure that JspCompilationContext gets the latest TagInfo
Modified: trunk/webapps/docs/changelog.xml
===================================================================
--- trunk/webapps/docs/changelog.xml 2008-07-17 17:43:56 UTC (rev 718)
+++ trunk/webapps/docs/changelog.xml 2008-07-17 18:05:56 UTC (rev 719)
@@ -45,6 +45,12 @@
<fix>
org.jboss.web should be loaded as container classes. (remm)
</fix>
+ <fix>
+ Instance manager checks were not done properly. (remm)
+ </fix>
+ <fix>
+ Prevent various possible character encoding hacks. (remm)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">
@@ -53,6 +59,9 @@
<bug>42565</bug>: EL ternary expression without space before colon now works.
Patch provided by Lucas Galfaso. (markt)
</fix>
+ <fix>
+ <jira>98</jira>: Remove mandatory usage of URLClassLoader for better integration with AS. (remm)
+ </fix>
</changelog>
</subsection>
<subsection name="Native">
16 years, 5 months
JBossWeb SVN: r718 - trunk/java/org/apache/catalina/connector.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2008-07-17 13:43:56 -0400 (Thu, 17 Jul 2008)
New Revision: 718
Modified:
trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
Log:
- Add checkNormalize method to verify that the URI is still normalized
after character decoding.
Modified: trunk/java/org/apache/catalina/connector/CoyoteAdapter.java
===================================================================
--- trunk/java/org/apache/catalina/connector/CoyoteAdapter.java 2008-07-17 13:13:43 UTC (rev 717)
+++ trunk/java/org/apache/catalina/connector/CoyoteAdapter.java 2008-07-17 17:43:56 UTC (rev 718)
@@ -442,6 +442,12 @@
}
// Character decoding
convertURI(decodedURI, request);
+ // Check that the URI is still normalized
+ if (!checkNormalize(req.decodedURI())) {
+ res.setStatus(400);
+ res.setMessage("Invalid URI character encoding");
+ return false;
+ }
} else {
// The URL is chars or String, and has been sent using an in-memory
// protocol handler, we have to assume the URL has been properly
@@ -821,6 +827,67 @@
}
+ /**
+ * Check that the URI is normalized following character decoding.
+ * <p>
+ * This method checks for "\", "//", "/./" and "/../". This method will
+ * return false if sequences that are supposed to be normalized still
+ * present in the URI.
+ *
+ * @param uriMB URI to be normalized
+ */
+ public static boolean checkNormalize(MessageBytes uriMB) {
+
+ CharChunk uriCC = uriMB.getCharChunk();
+ char[] c = uriCC.getChars();
+ int start = uriCC.getStart();
+ int end = uriCC.getEnd();
+
+ int pos = 0;
+
+ // Check for '\' and for null byte
+ for (pos = start; pos < end; pos++) {
+ if (c[pos] == '\\') {
+ return false;
+ }
+ if (c[pos] == 0) {
+ return false;
+ }
+ }
+
+ // Check for "//"
+ for (pos = start; pos < (end - 1); pos++) {
+ if (c[pos] == '/') {
+ if (c[pos + 1] == '/') {
+ return false;
+ }
+ }
+ }
+
+ // Check for URI ending with "/." or "/.."
+ if (((end - start) >= 2) && (c[end - 1] == '.')) {
+ if ((c[end - 2] == '/')
+ || ((c[end - 2] == '.')
+ && (c[end - 3] == '/'))) {
+ return false;
+ }
+ }
+
+ // Check for "/./"
+ if (uriCC.indexOf("/./", 0, 3, 0) >= 0) {
+ return false;
+ }
+
+ // Check for "/./"
+ if (uriCC.indexOf("/../", 0, 4, 0) >= 0) {
+ return false;
+ }
+
+ return true;
+
+ }
+
+
// ------------------------------------------------------ Protected Methods
16 years, 5 months
JBossWeb SVN: r717 - trunk/java/org/apache/catalina/core.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2008-07-17 09:13:43 -0400 (Thu, 17 Jul 2008)
New Revision: 717
Modified:
trunk/java/org/apache/catalina/core/DefaultInstanceManager.java
Log:
- Fix ooops for instance manager checks.
Modified: trunk/java/org/apache/catalina/core/DefaultInstanceManager.java
===================================================================
--- trunk/java/org/apache/catalina/core/DefaultInstanceManager.java 2008-07-15 16:09:39 UTC (rev 716)
+++ trunk/java/org/apache/catalina/core/DefaultInstanceManager.java 2008-07-17 13:13:43 UTC (rev 717)
@@ -352,9 +352,9 @@
private void checkAccess(Class clazz) {
if (privileged) return;
- if (clazz.isAssignableFrom(Filter.class)) {
+ if (Filter.class.isAssignableFrom(clazz)) {
checkAccess(clazz, restrictedFilters);
- } else if (clazz.isAssignableFrom(Servlet.class)) {
+ } else if (Servlet.class.isAssignableFrom(clazz)) {
checkAccess(clazz, restrictedServlets);
} else {
checkAccess(clazz, restrictedListeners);
@@ -364,7 +364,7 @@
private void checkAccess(Class clazz, Properties restricted) {
while (clazz != null) {
if ("restricted".equals(restricted.getProperty(clazz.getName()))) {
- throw new SecurityException("Restricted class" + clazz);
+ throw new SecurityException("Restricted class: " + clazz.getName());
}
clazz = clazz.getSuperclass();
}
16 years, 5 months
JBossWeb SVN: r716 - trunk/java/org/jboss/web/cluster.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2008-07-15 12:09:39 -0400 (Tue, 15 Jul 2008)
New Revision: 716
Modified:
trunk/java/org/jboss/web/cluster/ClusterListener.java
Log:
- No functional change: remove duplicate nested sync block.
Modified: trunk/java/org/jboss/web/cluster/ClusterListener.java
===================================================================
--- trunk/java/org/jboss/web/cluster/ClusterListener.java 2008-07-15 16:08:30 UTC (rev 715)
+++ trunk/java/org/jboss/web/cluster/ClusterListener.java 2008-07-15 16:09:39 UTC (rev 716)
@@ -1030,35 +1030,33 @@
protected synchronized void status(Engine engine) {
// Check to add or remove proxies, and rebuild a new list if needed
- synchronized (this) {
- if (!addProxies.isEmpty() || !removeProxies.isEmpty()) {
- ArrayList<Proxy> currentProxies = new ArrayList<Proxy>();
- for (int i = 0; i < proxies.length; i++) {
- currentProxies.add(proxies[i]);
+ if (!addProxies.isEmpty() || !removeProxies.isEmpty()) {
+ ArrayList<Proxy> currentProxies = new ArrayList<Proxy>();
+ for (int i = 0; i < proxies.length; i++) {
+ currentProxies.add(proxies[i]);
+ }
+ for (int i = 0; i < addProxies.size(); i++) {
+ if (!currentProxies.contains(addProxies.get(i))) {
+ currentProxies.add(addProxies.get(i));
}
- for (int i = 0; i < addProxies.size(); i++) {
- if (!currentProxies.contains(addProxies.get(i))) {
- currentProxies.add(addProxies.get(i));
- }
+ }
+ for (int i = 0; i < removeProxies.size(); i++) {
+ if (currentProxies.contains(removeProxies.get(i))) {
+ currentProxies.remove(removeProxies.get(i));
}
- for (int i = 0; i < removeProxies.size(); i++) {
- if (currentProxies.contains(removeProxies.get(i))) {
- currentProxies.remove(removeProxies.get(i));
- }
+ }
+ addProxies.clear();
+ removeProxies.clear();
+ proxies = currentProxies.toArray(new Proxy[0]);
+ // Reset all connections
+ if (connections != null) {
+ for (int i = 0; i < connections.length; i++) {
+ closeConnection(i);
}
- addProxies.clear();
- removeProxies.clear();
- proxies = currentProxies.toArray(new Proxy[0]);
- // Reset all connections
- if (connections != null) {
- for (int i = 0; i < connections.length; i++) {
- closeConnection(i);
- }
- }
- connections = new Socket[proxies.length];
- connectionReaders = new BufferedReader[proxies.length];
- connectionWriters = new BufferedWriter[proxies.length];
}
+ connections = new Socket[proxies.length];
+ connectionReaders = new BufferedReader[proxies.length];
+ connectionWriters = new BufferedWriter[proxies.length];
}
Proxy[] local = proxies;
16 years, 5 months
JBossWeb SVN: r715 - in trunk: java/org/apache/catalina/servlets and 1 other directories.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2008-07-15 12:08:30 -0400 (Tue, 15 Jul 2008)
New Revision: 715
Modified:
trunk/java/org/apache/catalina/core/DefaultInstanceManager.java
trunk/java/org/apache/catalina/servlets/CGIServlet.java
trunk/webapps/docs/changelog.xml
Log:
- NPE in CGI.
- Minor tweak in instance manager.
Modified: trunk/java/org/apache/catalina/core/DefaultInstanceManager.java
===================================================================
--- trunk/java/org/apache/catalina/core/DefaultInstanceManager.java 2008-07-15 11:53:25 UTC (rev 714)
+++ trunk/java/org/apache/catalina/core/DefaultInstanceManager.java 2008-07-15 16:08:30 UTC (rev 715)
@@ -50,7 +50,7 @@
import org.apache.catalina.util.StringManager;
/**
- * @version $Rev:$ $Date:$
+ * @version $Rev$ $Date$
*/
public class DefaultInstanceManager implements InstanceManager {
@@ -336,7 +336,7 @@
}
protected Class loadClass(String className, ClassLoader classLoader) throws ClassNotFoundException {
- if (className.startsWith("org.apache.catalina")) {
+ if (className.startsWith("org.apache.catalina") || className.startsWith("org.jboss.web")) {
return containerClassLoader.loadClass(className);
}
try {
Modified: trunk/java/org/apache/catalina/servlets/CGIServlet.java
===================================================================
--- trunk/java/org/apache/catalina/servlets/CGIServlet.java 2008-07-15 11:53:25 UTC (rev 714)
+++ trunk/java/org/apache/catalina/servlets/CGIServlet.java 2008-07-15 16:08:30 UTC (rev 715)
@@ -1726,15 +1726,20 @@
}
}
} //replacement for Process.waitFor()
-
- // Close the output stream used
- cgiOutput.close();
}
catch (IOException e){
log ("Caught exception " + e);
throw e;
}
finally{
+ // Close the output stream if used
+ if (cgiOutput != null) {
+ try {
+ cgiOutput.close();
+ } catch (IOException ioe) {
+ log ("Exception closing output stream " + ioe);
+ }
+ }
if (debug > 4) {
log ("Running finally block");
}
Modified: trunk/webapps/docs/changelog.xml
===================================================================
--- trunk/webapps/docs/changelog.xml 2008-07-15 11:53:25 UTC (rev 714)
+++ trunk/webapps/docs/changelog.xml 2008-07-15 16:08:30 UTC (rev 715)
@@ -39,6 +39,12 @@
<fix>
<bug>42678</bug>: Only ignore docBase it it really is a subdir of appBase. (markt)
</fix>
+ <fix>
+ <bug>42722</bug>: Fix possible NPE in CGI. (markt)
+ </fix>
+ <fix>
+ org.jboss.web should be loaded as container classes. (remm)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">
@@ -49,6 +55,13 @@
</fix>
</changelog>
</subsection>
+ <subsection name="Native">
+ <changelog>
+ <fix>
+ Remove system.out. (jfclere)
+ </fix>
+ </changelog>
+ </subsection>
</section>
<section name="JBoss Web 2.1.1.CR4 (remm)">
16 years, 5 months
JBossWeb SVN: r714 - trunk/java/org/apache/tomcat/jni.
by jbossweb-commits@lists.jboss.org
Author: jfrederic.clere(a)jboss.com
Date: 2008-07-15 07:53:25 -0400 (Tue, 15 Jul 2008)
New Revision: 714
Modified:
trunk/java/org/apache/tomcat/jni/Library.java
trunk/java/org/apache/tomcat/jni/LibraryLoader.java
Log:
Remove the println and printStackTrace() and just keep the message part of the exception.
Modified: trunk/java/org/apache/tomcat/jni/Library.java
===================================================================
--- trunk/java/org/apache/tomcat/jni/Library.java 2008-07-14 16:39:43 UTC (rev 713)
+++ trunk/java/org/apache/tomcat/jni/Library.java 2008-07-15 11:53:25 UTC (rev 714)
@@ -43,6 +43,9 @@
loaded = true;
}
catch (Throwable e) {
+ if ( i > 0)
+ err += ", ";
+
String name = System.mapLibraryName(NAMES[i]);
String path = System.getProperty("java.library.path");
String sep = System.getProperty("path.separator");
@@ -50,11 +53,9 @@
for (int j=0; j<paths.length; j++) {
java.io.File fd = new java.io.File(paths[j] + System.getProperty("file.separator") + name);
if (fd.exists()) {
- e.printStackTrace();
+ err += "(Error on: " + paths[j] + System.getProperty("file.separator") + name +")";
}
}
- if ( i > 0)
- err += ", ";
err += e.getMessage();
}
if (loaded)
Modified: trunk/java/org/apache/tomcat/jni/LibraryLoader.java
===================================================================
--- trunk/java/org/apache/tomcat/jni/LibraryLoader.java 2008-07-14 16:39:43 UTC (rev 713)
+++ trunk/java/org/apache/tomcat/jni/LibraryLoader.java 2008-07-15 11:53:25 UTC (rev 714)
@@ -145,11 +145,10 @@
if (!optional) {
java.io.File fd = new java.io.File(fullPath);
if (fd.exists()) {
- d.printStackTrace();
+ throw new UnsatisfiedLinkError(" Error: " + d.getMessage() + " " );
} else {
- System.out.println("Can't find: " + fullPath);
+ throw new UnsatisfiedLinkError(" Can't find: " + fullPath + " ");
}
- throw new UnsatisfiedLinkError(dlibName);
}
}
}
16 years, 5 months
JBossWeb SVN: r713 - sandbox/webapps/html.
by jbossweb-commits@lists.jboss.org
Author: jfrederic.clere(a)jboss.com
Date: 2008-07-14 12:39:43 -0400 (Mon, 14 Jul 2008)
New Revision: 713
Added:
sandbox/webapps/html/Crash.jsp
Log:
Crash test jsp.
Added: sandbox/webapps/html/Crash.jsp
===================================================================
--- sandbox/webapps/html/Crash.jsp (rev 0)
+++ sandbox/webapps/html/Crash.jsp 2008-07-14 16:39:43 UTC (rev 713)
@@ -0,0 +1,21 @@
+<body>
+<h1> Test 1 computing </h1>
+<%
+
+ double b = 0;
+ for(int i=1; i<200000; i++)
+ {
+ for(int j=1; j<2000000; j++)
+ {
+ for(int k=1; k<2000000; k++)
+ {
+ double a = k*100000;
+ b +=a;
+ }
+ }
+%>x<%
+ }
+
+%>
+</body>
+</html>
16 years, 5 months