File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes javabean in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "javabean in tomcat" Watch "javabean in tomcat" New topic

javabean in tomcat

Ash sav
Ranch Hand

Joined: Apr 14, 2001
Posts: 55
Hi all,
I created a bean compile it on c:\java directory and then I placed my java file and class file in
TOMCAT-HOME\webapps\examples\WEB-INF\classes When I tried to acces my form and hit the submit button I got Internal server error as follows.
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 1 in the jsp file: /SaveName.jsp
Can Somebody tell me where I m wrong?
Is it possible to directly compile java program in TOMCAT-HOME\webapps\examples\WEB-INF\classes directory instead of compiling in other directory and then copied java file and class file in tomcat classes directory.
Jason Lee

Joined: Jul 23, 2001
Posts: 15
Yes, you can compile directly in the classes directory.
I found that after re-compiling a bean, I needed to get another start another session so that you are using an instance of the new bean...not trying to use the old one.
Or, you may just have an error in your JSP.
I agree. Here's the link:
subject: javabean in tomcat
It's not a secret anymore!