Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class Loading error

 
Ritu Kama
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Simon, Your solution worked
Ritu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic