File not found in a project

Posted by Rus Paul-Adrian on 16-Feb-2017 14:22

So I want to run a procedure persistently on an AppServer and I have the following code:

DEFINE VARIABLE lReturn AS LOGICAL NO-UNDO.

CREATE SERVER hAppSrv.
lReturn = hAppSrv:CONNECT("-AppService egovernment -H localhost -S 5162 ").

IF NOT lReturn THEN DO:
DELETE OBJECT hAppSrv NO-ERROR.
message "ERROR Failed to connect to AppServer: " + RETURN-VALUE view-as alert-box.
return.
END.

RUN src/server/si/siUserUser.p on hAppsrv persistent set hSI.

The problem I am getting is: "src/server/si/siUserUser.p" was not found (293).

I have added to the Propath both the src folder, the folder above it and the folder where the file is located.

Any help is appreciated.

All Replies

Posted by Peter Judge on 16-Feb-2017 14:36

Added the PROPATH entries where?

Posted by Rus Paul-Adrian on 16-Feb-2017 14:41

In the Propath Editor. Isn't that the way you show the application where to find a certain file?

Posted by Peter Judge on 16-Feb-2017 14:46

Sorry, should have been clearer.
 
This is for the AppServer?

Posted by Tom Cattigan on 16-Feb-2017 14:46

If you added src the wouldn't it be looking for /src/src?

Posted by Rus Paul-Adrian on 16-Feb-2017 14:50

I have also tried the following variant:

RUN server/si/siUserUser.p on hAppsrv persistent set hSI.

So I don't think the case of looking for "src/src" is the problem.

Posted by Laura Stern on 16-Feb-2017 14:54

The PROPATH that the client uses is not used by the AppServer.  The AppServer bases PROPATH off of the WorkDir directory specified in the ubroker.properties file.  So the .p or .r that runs on the AppServer need to be relative to that directory.  PROPATH is also set in the ubroker.properties file.  

Posted by Rus Paul-Adrian on 16-Feb-2017 14:55

I forgot to add the path to the agent of the AppServer, but I did it now and it didn't seem to solve the problem.

Posted by Laura Stern on 16-Feb-2017 14:57

You need to be more specific.  What do you mean by "Add the path"?

Posted by Scott Dulecki on 16-Feb-2017 15:00

Did you bounce the appserver afterward?
 
Scott
 
==============================================
Scott M. Dulecki                   MPUG 16 Feb
Progress                          WMPUG 16 Feb
616/481-4313                    MWUG 19-21 Mar
sdulecki@progress.com                 SEUG TBD
==============================================
 

Posted by Rus Paul-Adrian on 16-Feb-2017 15:01

This is the agent where I tried to put the PROPATH folder where my sources are:

http://imgur.com/a/EPcXe

And here is the broker:

http://imgur.com/a/EJWru

Posted by Rus Paul-Adrian on 16-Feb-2017 15:12

Whenever I try to add my folder path to the working directory of the broker, I get the 8135 message, which says that the path I just added is wrong. I added the path both by simple copy-paste and in between "".

Posted by hrk on 16-Feb-2017 19:13

The error may be a clue. Error message 8135 may be permissions related. The Kbase link below refers to permissions on a shared network drive but it may apply to local drives/directories.

ERROR MESSAGE 8135 IN THE CONFIGURATIONS PAGE OF THE OPENEDGE EXPLORER

knowledgebase.progress.com/.../000054453

This thread is closed