Websphere is giving error while writing the servlet

Hi,

On my machine I installed WebSphere Application Developer and Lotus Notes 6.0. I am writing a servlet in websphere and i am using the statement import lotus.domino.*. Its giving the error can not resolve the name. What could be the settings I need to do to resolve this error. I am not getting how WSAD and Domino will be connected. While installing the Domino server I saw that there is a plug-in for websphere. But I don’t know how they will be connected ??

Thanks

Jai

Subject: Websphere is giving error while writing the servlet

I believe the plugin to which you refer is a Domino plug-in for Websphere which is part of the Websphere installation. This allows Single Sign On (SSO) configuration between the servers but is not required to integrate Domino in your Websphere applications.

There are two basic ways to connect to Domino from a Java Web Application, remote and local. Remote can be on the same machine or a different machine and uses NCSO.jar classes. Local must be on the same local machine and uses Notes.jar classes.

There’s plenty of discussion in this newsgroup and elswhere that is readily available using the search function. You might also want to take a look at articles available at http://www.looseleaf.net/ and http://www.davison.uk.net/index.jsp

The error you specified with respect to the import statement, you need to add the appropriate jar, Notes.jar or NCSO.jar, to the project library and to the WTE container, as well.

Happy coding!

Neill

Subject: RE: Websphere is giving error while writing the servlet

Hi,

Thanks for your response. Could you please tell me where I need to keep the .jar files in the WebSphere server. I could not able to figure it out. Thanks for your help.

jai

Subject: RE: Websphere is giving error while writing the servlet

No problem. You can specify the jar file from the Server perspective, Server Configuration view and double click on the server configuration or right click and select Open. Specify the jar on the Paths tab.

Another gotcha you may happen across in Production or using a remote server attach, is to make sure the system environment Path includes the Notes executable directory. This is because Notes.jar uses native dll’s and if you have more than one version of Notes installed on your machine, make sure the correct executable directory is specified in the Path statement. Obviously this doesn’t apply when using NCSO.jar.

What does apply when using NCSO.jar is the Security tab on the Domino server document. You will have to give permission to an individual, group, or Anonymous in the Java/JavaScript/COM access field to establish a connection.

There are some other issues you’ll invariably run across that are discussed in this forum and elsewhere. Hope this helps.

Neill

Subject: RE: Websphere is giving error while writing the servlet

Hi Neill,I have Domino 6 and WebSphere 4.0.3 on my machine. Both are on the same m/c. I used the Notes.jar file. I set the class path for Notes.jar. But I am getting this error.

[5/7/03 1:33:46:934 EDT] 73850b82 WebGroup X SRVE0026E: [Servlet Error]-[GetDatabaseServlet]: java.lang.NoClassDefFoundError: lotus/domino/NotesException

at java.lang.Class.newInstance0(Native Method)

GetDatabaseServlet-> this is the servlet being called from a form.

Could you please tell me what could be the reason.

Thanks

Jai