Wouter Oet wrote:Please TellTheDetails. Where are you getting the NullPointerException. Can you show a stacktrace?
Jesper de Jong wrote:What does your index.jsp file look like? You are calling a method or accessing a member variable somewhere in the jsp on a variable that is null. Carefully look at the code of the jsp to see what might be null there.
It's possible that this doesn't have anything to do with the version of Tomcat and Java that you're using; maybe you have forgotten to set some configuration property.
Rob Spoor wrote:Start Windows Explorer.
Go to folder "C:\Program Files\Apache Software Foundation\Tomcat 5.0" (or wherever you installed Tomcat).
Go to sub folder "work\Catalina\localhost".
Go to the sub folder for your web application.
Go to sub folder "org\apache\jsp".
Open file "index_jsp.java". Show us what line 60 is.
With Tomcat, each JSP file gets translated into a Java source file and then compiled. The folder I've directed you to is where these source and class files are stored. The index_jsp.java file is the translated Java source file of your index.jsp file. Inside the _jspService method you will see the code you put in your JSP file. Since the exception showed that the error is on line 60, that's the line you should evaluate.
Rob Spoor wrote:It appears so. Now you need to figure out why there is no such attribute. Is the session perhaps new where you expect an existing one?