I'm trying to make an https connection from a servlet, using JSSE 1.0.2. I've made some tests with a standalone client and specifying the jar's I need in the classpath using -cp in the command line, and it works fine. The problem is that the same code in a servlet under WAS 3.5 Advanced doesn't find the necessary jar files. I've put them in Default Servlet Engine's classpath and also in Default Server's classpath. Could anyone tell me how to add jar files to a servlet's classpath or a way to see what classpath is using a servlet? Thanks in advance, Horaci Macias
Matthew X. Brown
Ranch Hand
Joined: Nov 08, 2000
Posts: 165
posted
0
One way is to add the new classes to the was lib directory. Make sure you update your classpath statements to reflect the change. This is a common place to put classes so that they are easily accessed.
Horaci Macias
Ranch Hand
Joined: Nov 08, 2001
Posts: 74
posted
0
I've put jsse.jar, jnet.jar and jcert.jar under was lib directory, and I've added them in the advanced tab of Web Application they belong to, and also in the Dependend classpath of the node they belong to, but I still can't found the classes. Any other help ?
luckas
Greenhorn
Joined: Dec 05, 2001
Posts: 2
posted
0
(First of all sorry for my English) I solve it putting the classes into a path that websphere knows. When you execute the servlet (http://localhost/servlet/myservlet) in the explorer window you must see the classpath (find it). You can put the files under this directory. It works for me.