Error -21 on Localhost

Author: (jr_naxera)

Hello everybody:
We have experienced a problem while trying to test a USP converted from a Form, in the localhost. The browser (Mozilla Firefox) displays a Error 300, about not being able to reach URouter. The log shows this is due to an Error -21, which refers to not being able to perform a login in the network. However,as stated, we are testing it on the local machine. Has anybody experienced something similar? Or can you provide us with any insights as to what could be the problem?

Thanks and happy holidays


  1. Hi,

    if you run web-applications (USP, DSP), the requests are sent via the browser to an instance of uRouter
    which in turn opens a uniface-environment to handle the request.

    So even for local machines, you have to install a proper uniface server (now combined applicationserver, polyserver, ...).

    Success, Uli.

    P.S: if you have access to the 9.4.beta program, they provide you with a complete installation (Apatche, ...).

    Author: ulrich-merkel (
  2. Greetings, Uli, and thanks for the answer.
    Yes, we use Uniface 9.3 with the default application server, Apache Tomcat. We have launched it, along with checking that the service of Urouter is up and running. Since the test machine is behind a proxy in the LAN,  I have configured the browser to use the local IP for requests made to localhost, as that was causing us some trouble. This last error, however, is quite cryptic, as it refers to login into a network it shouldn't have to go to fetch the page.

    Author: jr_naxera (
  3. Don't agree that you need no network login for localhost:

    As far as uniface is concerned, even "localhost" is a network adress
    and if you want to run a process, you need valid logon information for your PC
    in your asn file.

    Success, Uli

    Author: ulrich-merkel (
  4. Greetings

     Well, to fetch he page, as far as we have dilucidated, Tomcat uses the default WRD settings as established in the web.xml to fetch the page from URouter. However, URouter is not responding to this request. Since we are using every asn as it was created by the installation, we are can't figure what causes URouter to refuse the default login information of  "userver" as username and password.

    Author: jr_naxera (
  5. Hello,

    I have met this issue in 9.4beta, on windows, depending how the urouter service was registered.


    • by registering the service by:

    urouter.exe /inst tcp:localhost+13000

          it was impossible to reach the service outside of the server. 

    • by registering the service by:

           urouter.exe /inst tcp:

           it was impossible to reach the service inside of the server by localhost.

     This issue doesn’t seem to belong in 9.4CR1.



    Author: Philippe (
  6. Hi Philippe,

    the latter depends on the specification of "localhost"
    in your C:\WINNT\system32\drivers\etc\hosts file

    # Copyright (c) 1993-1999 Microsoft Corp.
    #          # Quellserver
    #              # x-Clienthost       localhost

    Success, Uli

    Author: ulrich-merkel (
  7. Not sure if this has been sold or not but here is a solution to try...

    I had the same problem due to having a computer with groups/users set up.... the way I resolved it was to create a new user on my machine with the correct group privilalges and then used this user to connect to urouter.





    Here  is the resolve:-

    I saw a youtube vid ( there are 3 parts to it)
    I created a new user on my computer as is done in the video.

    I then gave it batch privileges.. and every other privilege under the sun
    see the turf viewtopic.php?f=11&t=104&p=262#p262

    Then changed file web.xml and replaced userver|userver with the new user and password

    Author: osie_osie (
  8. ... definitely a USER RESTRICTION problem- as said before by others: you'll need to provide the SERVICE and the USER RUNNING THE SERVICE to have rights to do, whatever it should do:

    Look at you web.xml:






    Place the correct user here. He needs to have those mentioned rights which en detail are  LOG ON AS BATCH JOB and LOG ON AS SERVICE or you wont go anywhere ;)

    If you are working withing a WINDOWS DOMAIN, consider to make a profile, which is knows in the domain:






    Good luck to you,


    Author: -GHAN- (