sounds like a permissions error on the work folders /tomcat/apache-tomcat-6.0.18/work fu...@127.0.0.1 /tomcat/apache-tomcat-6.0.18/work $ ls -al total 0 drwx------+ 3 ???????? ???????? 0
at a min i would turn on read/execute for tomcat work folder chmod +x . chmod +r . $ ls -al total 0 drwxr-xr-x+ 3 ???????? ???????? 0 Oct 7 19:43 . Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 17 Dec 2009 13:52:59 +0100 > Subject: Http session lost b/w struts actions on Linux but not in Win > From: johan.thorsel...@gmail.com > To: users@tomcat.apache.org > > request.getSession() returns an incorrect null on Linux, but on Windows it's > OK. > > I have an ordinary Struts2 web app deployed on Tomcat 6.0.20, together with > a JAAS-solution where I have my own Valve class. > > The Valve repeatedly executes invoke() with the following code-snippet (here > very much simplified): > . > . > . > if (LOGGER.isDebugEnabled()) { > if (request.getSession() == null) { > // Log incorrect event (1) > } else { > // Log OK (2) > } > if (request.getSession(true) == null) { > // Log incorrect event (3) > } else { > // Log OK (4) > } > } > > /* > * Here a NullPointerException occurs > */ > request.getSession().setAttribute("...",...); > . > . > . > In the first request the session is not lost, everything is fine with (2) > and (4). In the following requests getSession() returns null (1) and (3). > > This occurs on Linux, not on Windows, both with Tomcat 6.0.20. > > On Windows Java version 1.6.0_16 is used > > On RedHat Linux Java version 1.6.0_13 is used > > > Regards > > Johan _________________________________________________________________ Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. http://clk.atdmt.com/GBL/go/171222985/direct/01/