I have a Web Archive .war, which i have successfully installed in websphere using the Admin Console. The JSP pages in the .war use some classes from external jars. How should i make these external jars available to the web archive Jsp pages ? I am using websphere version 5. I have also tried putting the path to these external jars in Shared Library, and then using this Shared Library in the .war - Libraries. But i still get class not found exception. Any ideas ?
You can put them in the WEB-INF/lib directory. Also, make sure they are checked as java jar dependencies in the properties. If they are only in the build path, they could be found at compile time, but not runtime.
Where are these external jars located? Why don't you want to place them in the EAR or WAR? If you really want to use an external jar, you can point to it directly in the build path. But it's risky since you have to make sure it is in the server's classpath when deploying.
How do i ensure jars are in the servers classpath ? The way to do it is by using Shared Library - but it does not work for me.... I do not want to make these jars part of .wars because then i will have to place them in many (each) .wars. Many .wars are using these same external jars.
ok.. i think i solved the problem in some way. I placed all the common external jars in <WebsphereHome>/AppServer/lib/ext directory. The include statements in JSP files in the .war were able to find these jars... But, my earlier approach of using shared libraries through Admin Console should have worked too, but it didn't !
I don't even know how to spell CIA. But this tiny ad does: