It's not a secret anymore!*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "javabean in tomcat" Watch "javabean in tomcat" New topic
Author

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.
exception
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.
Thanks,
Ash
Jason Lee
Greenhorn

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.
Jason
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javabean in tomcat