dcsimg
REMOTE ACCESS TO DOMINO SERVER (JAVA TOOLKIT) HELP
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   evajguru_evajguru
Posted On:   Wednesday, September 4, 2002 05:09 AM

Hello! I need your help. Please. - I have a Domino server in computer A. - In computer B I have a web server, where i have the servlets that will connect to domino server ¿ok? In this computer B I have a lotus client too, so I got send email to domino server from a java application in this machine but I don't want that; I need do it from a servlet that run in a machine that haven't a lotus client. And this is the problem, from a servlet nothing work. So In resume: The remote access to Domino server DON'T WORK I have configured the server so: - In notes.ini I have activated task   More>>

Hello!


I need your help. Please.



- I have a Domino server in computer A.

- In computer B I have a web server, where i have the servlets that will connect to domino server ¿ok?



In this computer B I have a lotus client too, so I got send email to domino server from a java application in
this machine but I don't want that; I need do it from a servlet that run in a machine that haven't a lotus client.
And this is the problem, from a servlet nothing work.



So In resume: The remote access to Domino server DON'T WORK



I have configured the server so:



- In notes.ini I have activated tasks: HTTP and DIIOP

- In Domino server exits the DIIOP_IOR_txt

- The classpath:

In computer B where I have the web server I put: dco.jar and NCSO.jar

In computer A with Domino server Do i must put something in the classpath? I don't understand



- In server document:

+ Basics tab:

- Server name: pc008/Soft3

- Domain name: Soft3

- Fully qualified Internet host name: pc008.SOFT3

+ Security tab:

- Security Settings:

- Compare Notes public keys against those stored in Directory: NO

- Allow anonymous Notes connections: YES (I tried it with NO too but it didn't work)

- Check passwords on Notes ID's: Disabled

- Server Access:

- Only allow server access to users listed in this Directory: No

- The rest are blank.

- Java/COM Restrictions:

- Run restricted Java/Javascript/COM: *

- Run unrestricted Java/Javascript/COM: *

+ Ports tab:

- Internet Ports tab:

- Mail tab:

I think that i haven't changed nothing here. So it has:

TCP/IP port number: 143(Mail IMAP) 110(Mail POP) 25(Mail SMTP Inbound) 25(SMTP Outbound)

TCP/IP por status: All enabled

Authentication options:

Name & password: Yes(Mail IMAP) Yes (Mail POP) No(Mail SMTP Inbound) N/A(SMTP Outbound)

Anonymous: N/A(Mail IMAP) N/A(Mail POP) Yes(Mail SMTP Inbound) N/A(SMTP Outbound)

and ...

- IIOP tab:

TCP/IP port number: 63148

TCP/IP port status: enabled

Authentication options:

Name & password: Yes

Anonymous: No

+ Internet Protocols tab:

- HTTP tab:

Host name(s): empty (I don't know what it is)

Bind to host name: Disabled



- I need use JavaUserClasses in notes.ini?? I am confused about it I don´t know if i must put
JavaUserClasses = ...ncso.jar in domino server.



- The users I have are:

First name: prueba

Last name: prueba

User name: prueba prueba/Soft3 ; prueba prueba

Short name/UserID: pprueba

email: pruebaprueba@SOFT3

Internet password: probando



First name: Mayte

Last name: Davila

User name: Mayte Davila/Soft3 ; Mayte Davila

Short name/UserID: MDavila

email: MayteDavila@SOFT3



- THE SOURCE CODE IS:

I use the api dco.jar


lotus.dco.beans.DCOMail mail1 = new lotus.dco.beans.DCOMail();

lotus.dco.beans.DCOSession dcosession1 = new lotus.dco.beans.DCOSession();


dcosession1.login("129.0.0.008","pprueba","probando");


mail1.setSendTo("Mayte Davila/SOFT3@SOFT3");

mail1.setCopyTo("");

mail1.setBlindCopyTo("");

mail1.setSubject("A ver si funciona desde un servlet");

mail1.setBody("Pues eso a ver si funciona desde un servlet");


mail1.setAttachmentFileName("");


mail1.setReturnReceipt(false);

mail1.setImportance(DCOMail.HIGH_IMPORTANCE);

mail1.setDeliveryPriority(DCOMail.HIGH_PRIORITY);

mail1.setDeliveryReport(DCOMail.CONFIRMDELIVERY_REPORT );

mail1.setDcoSession(dcosession1);


mail1.send();



- In dcosession1.login("129.0.0.008","pprueba","probando");
I'd tryed the IP address of the Domino Server (129.0.0.008) but it did not work, also the
server name (pc008 or pc008/Soft3) and nothing. ¿Do i must put any port too? ¿What?

I must use the short name/UserID and Internet password or what?



- The error when i run the servlet:


java.io.IOException: Server returned HTTP response code: 401 for URL: http://129.0.0.008:8
0/diiop_ior.txt

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at java.net.URL.openStream(Unknown Source)

....

Sorry, mail was not sent: lotus.dco.beans.DCOException: Could not get IOR from HTTP server
, possibly due to invalid user name, password, or server name.

lotus.dco.beans.DCOException: Could not get IOR from HTTP server, possibly due to invalid
user name, password, or server name.

at lotus.dco.beans.DCOSession.createNotesSession(DCOSession.java:481)

at lotus.dco.beans.DCOSession.login(DCOSession.java:329)

....


And in server console i see: User not authenticated [diiop_ior.txt]

   <<Less

Re: REMOTE ACCESS TO DOMINO SERVER (JAVA TOOLKIT) HELP

Posted By:   eugen_cristea  
Posted On:   Monday, September 23, 2002 09:01 PM

Try for username "prueba prueba".

Re: REMOTE ACCESS TO DOMINO SERVER (JAVA TOOLKIT) HELP

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, September 4, 2002 07:46 AM

From the config entries you have listed, it looks like your Domino server is configured to accept unauthenticated & anonymous incoming SMTP connections on port 25. So why not just use the JavaMail API, to send ordinary Internet mail to it? that way you avoid all the proprietary Domino nonsense.

About | Sitemap | Contact