# Logon to Local Natural Runtime

**URL:** <https://techcommunity.softwareag.com/t/logon-to-local-natural-runtime/171033>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, NaturalONE-Full-Edition\
**Created:** [May 8, 2013, 4:59pm UTC](https://techcommunity.softwareag.com/t/logon-to-local-natural-runtime/171033 "2013-05-08T16:59:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hubert\_Kauker1](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@Hubert\_Kauker1](https://techcommunity.softwareag.com/u/Hubert_Kauker1)\
**Post date:** [May 8, 2013, 4:59pm UTC](https://techcommunity.softwareag.com/t/logon-to-local-natural-runtime/171033/1 "2013-05-08T16:59:41Z")

</div>

Hello.

This is probably a typical question from a novice, but I must say I am greatly puzzled.  
I read all help pages in NaturalONE about deployment, but I may have missed the principal message.

The following story is documented by screenshots in the attachment.

I started out with the HelloWorld sample application.  
The project is automatically configured to use the local Natural runtime.  
Fine.  
I specified my userid and a password in the properties dialog and saved it.  
Is there a specific password required here, or is it free?

The hostname and port properties say localhost:2800.  
But they are greyed out: are they valid at all, then?

The main program is called HELLO-P in library SAMP4ONE.  
The project was successfully built.  
It runs ok in NaturalONE → Execute.

I proceeded to create a new wardeploy.xml file.  
But I am not sure which session settings I have to specify.  
Are they:

> [@](#):
>
> Hostname=localhost  
> Port=2800  
> Application-name=HELLO-P  
> Parameters=STACK=(LOGON SAMP4ONE)

I hope the syntax is ok since I do not have much Natural experience.  
😃

I then ran the Ant build job and copied the resulting war file to the internal Tomcat’s webapps folder.  
Tomcat properly unpacked it and created a HelloWorld web context.

I could the enter the URL  
[http://localhost:8080/HelloWorld/start.html](http://localhost:8080/HelloWorld/start.html)  
and it was properly expanded to  
[http://localhost:8080/HelloWorld/servlet/StartCISPage?PAGEURL=/cisnatural/NatLogon.html&xciParameters.natsession=HelloWorld](http://localhost:8080/HelloWorld/servlet/StartCISPage?PAGEURL=/cisnatural/NatLogon.html&xciParameters.natsession=HelloWorld)

But entering my userid and password just produces the message:  
😢

> [@](#):
>
> Connection attempt by an unknown client.

Want went wrong?

By the way, my NaturalONE is 8.2.6. on a Windows PC.  
Any help would be greatly appreciated.

Hubert Kauker

[HelloWorld.pdf](https://techcommunity.softwareag.com/uploads/short-url/phSd8WjjMuuEkHspXZ3tcWSc5S2.pdf) (139 KB)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [May 8, 2013, 5:55pm UTC](https://techcommunity.softwareag.com/t/logon-to-local-natural-runtime/171033/2 "2013-05-08T17:55:09Z")

</div>

You should deploy to an external server, not the internal Tomcat 😉

---

<div class="post-metadata">

**Author:** ![Hubert\_Kauker1](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@Hubert\_Kauker1](https://techcommunity.softwareag.com/u/Hubert_Kauker1)\
**Post date:** [May 13, 2013, 9:51am UTC](https://techcommunity.softwareag.com/t/logon-to-local-natural-runtime/171033/3 "2013-05-13T09:51:32Z")

</div>

Sorry, does not work.

I have my own Tomcat, too, running on port 8081.  
I copied the generated war file to this Tomcat’s own webapps directory. It was automatically unpacked, ok.

Loading [http://localhost:8081/HelloWorld](http://localhost:8081/HelloWorld) has a response and sends a menu with options “Start Application (HTML)”,  
“Start Application (SWT)” and so on.

Selecting “Start Application (HTML)” the Logon screen comes up.  
I type in my userid and password, but only get the Error message:  
“Connection to host localhost failed. Connection refused: no further information”.

See screenshots in the attachment.

Please, can somebody tell me, what session settings (host) are expected by the Natural War Ant Deployment wizard?  
In particular: Session host name (localhost ?), Host session port (2800 ???), Session application name (HELLO-P ?), Session parameters (STACK=(LOGON SAMP4ONE) ???).

Honestly, I have read the NaturalONE docs from end to end and found no clue to these, at least not for this particular practical case.

I would be particularly interested to know: has anyone done this in practice and does it really work? Using the local Natural runtime?

Thanks,  
Hubert

[HelloWorld2.pdf](https://techcommunity.softwareag.com/uploads/short-url/ytN3HrPBwgsRwnCu2dlqt457zOM.pdf) (83 KB)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [May 15, 2013, 3:06pm UTC](https://techcommunity.softwareag.com/t/logon-to-local-natural-runtime/171033/4 "2013-05-15T15:06:59Z")

</div>

Port 2800 is the Web I/O server, did you set one up, too, or just a Tomcat listening on port 8081 ?

---

<div class="post-metadata">

**Author:** ![Hubert\_Kauker1](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@Hubert\_Kauker1](https://techcommunity.softwareag.com/u/Hubert_Kauker1)\
**Post date:** [May 16, 2013, 10:15am UTC](https://techcommunity.softwareag.com/t/logon-to-local-natural-runtime/171033/5 "2013-05-16T10:15:20Z")

</div>

I never did anything explicit so set up or configure port 2800.

I just did the standard setup of the IDE.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [May 16, 2013, 12:41pm UTC](https://techcommunity.softwareag.com/t/logon-to-local-natural-runtime/171033/6 "2013-05-16T12:41:22Z")

</div>

Have a read about the [Web I/O interface](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat6313win/webio/webio-over.htm) then, this is what needs to be set up when you want to run an application “externally”.

---

<div class="post-metadata">

**Author:** ![Hubert\_Kauker1](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@Hubert\_Kauker1](https://techcommunity.softwareag.com/u/Hubert_Kauker1)\
**Post date:** [May 17, 2013, 4:11pm UTC](https://techcommunity.softwareag.com/t/logon-to-local-natural-runtime/171033/7 "2013-05-17T16:11:23Z")

</div>

Quite interesting material. Thank you.

But…  
In NaturalONE Help on page  
Software AG Designer Guides \> NaturalONE Help \> Application Development \> Using NaturalONE \> Working with Natural Projects in Local Mode  
  we have a section named Runtime quite at the bottom, and here we read

> [@](#):
>
> The Use local Natural runtime option button is only visible when the local Natural runtime has been installed. When the local Natural runtime is selected, host name and port number are automatically provided and the corresponding text boxes appear gray.

In my project the option button is visible on the Natural/Runtime tab in the project properties dialog.  
So I conclude the local Natural runtime is installed.  
And as it is promised above, a host name (localhost) and a port number (2800) are provided and the corresponding text boxes do appear gray.

When I build a Natural program or subroutine, say, I can see in the Console view that a connection is made to server localhost(2800), a logon to my library is made, the object is stowed, and then a disconnection from server localhost(2800) is done. All as it should be.

So, does this not indicate that the system is ready for use with a (complete) local Natural runtime?  
Where, in fact, do we learn that something like a Web I/O Interface needs to be installed on my PC in addition?

I still hope that we get it to work and that only some parameter was wrong.

Thanks again.  
Hubert

---

<div class="post-metadata">

**Author:** ![Thomas\_Schwade](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/thomas_schwade/32/131_2.png) [@Thomas\_Schwade](https://techcommunity.softwareag.com/u/Thomas_Schwade)\
**Post date:** [November 21, 2014, 10:49am UTC](https://techcommunity.softwareag.com/t/logon-to-local-natural-runtime/171033/8 "2014-11-21T10:49:17Z")

</div>

> [@Hubert Kauker](#):
>
> Want went wrong?

Hubert,  
I hope my answer to the similar posting [Cannot run Natural application from localhost using local runtime - Adabas-Natural - Software AG Tech Community & Forums](http://tech.forums.softwareag.com/techjforum/posts/list/51518.page) helps clarifying also this issue.  
Regards, Thomas

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:28pm UTC](https://techcommunity.softwareag.com/t/logon-to-local-natural-runtime/171033/9 "2021-04-02T15:28:47Z")

</div>


