• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp.error.session.multiple  RSS feed

 
Keith Harrison
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guru's.

I have not had a lot of experience with JSP's and I have come across a problem. I have tested a new site on a local tomcat installation and all worked fine but when I upload it to a live tomcat server, I get an Internal Server Error and for the life of me cannot work out why! I know the exception report is pointing out the reason for the exception but I need help in understanding why it has happended.

I include this jspf file in other jsp's to control a session:

<%@ page session="false" %>
<%
HttpSession session = request.getSession(false);
if(session == null ||
session.getAttribute(QueryToolConstants.USER_NAME) == null) {
request.setAttribute(QueryToolConstants.MESSAGE, "Unable to validate session. Please log-in.");
RequestDispatcher rd = request.getRequestDispatcher("/index.jsp");
rd.forward(request, response);
return;
}
%>

When I loggin on the live uploaded version, I get this error:

Type:
Exception report
Message:
Internal Server Error
Description:
The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /QueryToolSessionControl.jspf(0,0) jsp.error.session.multiple
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:140)
at org.apache.jasper.compiler.Validator$PageDirectiveVisitor.visit(Validator.java:166)
at org.apache.jasper.compiler.Node$PageDirective.accept(Node.java:280)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
.......


Could somebody help me please by pointing me in the right direction?

Many thanks,
Keith.

[ August 14, 2006: Message edited by: Keith Harrison ]
[ August 14, 2006: Message edited by: Keith Harrison ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's an incomplete stack trace.
Look in your {tomcat install}/logs directory to find the full stack trace.
There is usually a "root cause" section that explains what type of excption was thrown and where.
 
Keith Harrison
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
That's an incomplete stack trace.
Look in your {tomcat install}/logs directory to find the full stack trace.
There is usually a "root cause" section that explains what type of excption was thrown and where.


Problem sorted.

solution: By default fragment files were not mapped.
 
Akshay Bondre
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Keith Harrison:


Problem sorted.

solution: By default fragment files were not mapped.



What exactly do you mean by fragment files were not mapped? .. I am getting the same exception.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
akkyy bond,
This thread is over two years old.
It is likely that the original poster is no longer around to answer your question.

Why don't you start a new thread and explain your problem fully, with relevant code samples?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!