IntelliJ Java IDE
The moose likes Websphere and the fly likes WebSphere's classpaths and IBM's jre Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "WebSphere Watch "WebSphere New topic
Author

WebSphere's classpaths and IBM's jre

Horaci Macias
Ranch Hand

Joined: Nov 08, 2001
Posts: 74
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
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
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
(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.
 
 
subject: WebSphere's classpaths and IBM's jre
 
Threads others viewed
Servlet programming - Jar files
Help me with the calling of jasper reports through java code
Taglib file outside WEB-INF
What is the classpath for Tomcat 5.5?
Problems installing Tomcat/XP
developer file tools