This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Class Loading error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Class Loading error" Watch "Class Loading error" New topic
Author

Class Loading error

Ritu Kama
Ranch Hand

Joined: Sep 10, 2001
Posts: 72
Hi,
I have a program that works just fine if I run it standalone. However, If I try to invoke it using JSP with jsp:useBean tag, I get 500 error on method invocation. Any ideas?? To add to complexity this class uses some third party jars. The class load works fine but as soon as I try to instantiate an object of third party class, I get this 500 error.
Implementation is on Websphere.
Thanks
Ritu
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
Have you put the 3rd party JAR files in the WEB-INF/lib directory of your web application? Also, have you used the fully qualified classname (e.g. com.mycompany.MyClass) in the <jsp:useBean> tag?
Simon
Ritu Kama
Ranch Hand

Joined: Sep 10, 2001
Posts: 72
Hi,
Not done both. I have the libs in a separate lib directory but not under WEB_INF/lib. I will try both solutions and come back with my response. Thanks a lot.
Ritu
Ritu Kama
Ranch Hand

Joined: Sep 10, 2001
Posts: 72
Thanks Simon, Your solution worked
Ritu
 
 
subject: Class Loading error
 
Similar Threads
Problem Compiling JSP with IIS 4.0 and JRun 2.3
Problem packaging my app as jar file
Tomcat ignoring 500 error-page
Editable JComboBox as cell editor in JTable
Third Party libraries in Tomcat