jboss-4.0.x

How to configure JBoss 4.0.* to make session cookie HttpOnly and secure?

喜欢而已 提交于 2021-01-28 12:13:17
问题 i tried < Context cookies="true" crossContext="true"> < SessionCookie secure="true" httpOnly="true" /> in context.xml but it is not recognising in jboss4.0 and i tried in java program String sessionid = req.getSession().getId(); resp.setHeader("SET-COOKIE", "JSESSIONID=" + sessionid + ";Path="+req.getContextPath()+"; Secure; Domain="+req.getServerName()+"; HttpOnly"); for 2nd request it not allowing to get session validation object for session so it is showing session expired page and i tried

How to troubleshoot Out Of Memory error on Production system

倾然丶 夕夏残阳落幕 提交于 2019-12-30 05:29:25
问题 We are using JBoss_4_0_4_GA with JDK 1.5.0 (no updates) on a Windows The JBoss server is run within a Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org. Since the JVM is so old I cannot even use the -XX:+HeapDumpOnOutOfMemoryError option on the JVM. What are my option to find out the issue? As usual the Out of Memory exception is happening on different parts of the application. I do not have the liberty to upgrade the JVM right away. The current VM settings Java Additional Parameters

upload.parseRequest(request) returns empty list in commons.fileUpload

自作多情 提交于 2019-12-07 14:44:23
问题 I am using org.apache.commons.fileUpload.FileItem and other related classes for uploading files from local machine to server (Although for the current testing both the machines are same). I am having .jsp file as UI and servlet to handle the upload. Now when the request reaches statement List items = upload.parseRequest(request); it returns empty list. I googled this thing at many places. Most of them specifying the symptons that parserequest() returns empty. But Could not find out the exact

upload.parseRequest(request) returns empty list in commons.fileUpload

不羁岁月 提交于 2019-12-05 20:32:52
I am using org.apache.commons.fileUpload.FileItem and other related classes for uploading files from local machine to server (Although for the current testing both the machines are same). I am having .jsp file as UI and servlet to handle the upload. Now when the request reaches statement List items = upload.parseRequest(request); it returns empty list. I googled this thing at many places. Most of them specifying the symptons that parserequest() returns empty. But Could not find out the exact solution to avoid this. At one place I could see that Tomcat may have filters that may have parsed The

How to troubleshoot Out Of Memory error on Production system

送分小仙女□ 提交于 2019-11-30 16:59:28
We are using JBoss_4_0_4_GA with JDK 1.5.0 (no updates) on a Windows The JBoss server is run within a Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org . Since the JVM is so old I cannot even use the -XX:+HeapDumpOnOutOfMemoryError option on the JVM. What are my option to find out the issue? As usual the Out of Memory exception is happening on different parts of the application. I do not have the liberty to upgrade the JVM right away. The current VM settings Java Additional Parameters wrapper.java.additional.1=-Xms512m wrapper.java.additional.2=-Xmx1024m wrapper.java.additional.3=-Dsun