Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp bean not compiling

mohan kannan
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
I have installed tomcat4.0.1 on win98 and have set up own context for running servlets and jsps
I am not putting the files in default examples folder.
While all jsps without usebean included in the jsp run successfully.
But I am getting error while running jsp's that contains usebean tag
The bean class has been placed under tomcat4.0.1 webapp/mycontext/web-inf/classes directory.
This directory web-inf and classes manually created for this context
error received is as below
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: Unable to compile class for JSP
An error occurred at line: 3 in the jsp file: /addmember.jsp
Generated servlet error:
C:\jakarta-tomcat-4.0.1\work\localhost\_\addmember$ Class org.apache.jsp.MemberBean not found.
MemberBean bb = null;
The same jsp when uploaded to server able to locate the memberbean and compiles successfully but not in locat system
thanks in advance
Gabriel Fox
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello There,
It seems like a path or classpath problem;
I have the following suggesstions:
1.check this: fully qualified class name( by convention) must be
be used in class attribute of jsp:usebean
2.check the path specified for all logic where the bean is used
3.If the bean is in it's package(ie a package for all Ur beans),
then U can try this at dos-prompt:
C:\set classpath=%classpath%;C:\
OR : set classpath in control panel to the drive NOT package
It seems like a path problem.You can sort it out....
[This message has been edited by Gabriel Fox (edited December 22, 2001).]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic