aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Class Loading error