ARCAD-Software / elias-vscode

ARCAD-Elias VSCode extension
Other
2 stars 0 forks source link

Install on iASP #18

Open sebCIL opened 6 months ago

sebCIL commented 6 months ago

I install it on iASP (v2.0.0) but i've got the message "Library JETTY not found" when i try to lanuch strsbs JETTY/JETTY

When i try JETTY/STRJTYSVR :

JETTY_PID data field not found in JETTY.
Object JETTY_PID of JETTY type *DTAARA not found.

Here is the install log:

Executing command CRTUSRPRF USRPRF(JETTY) USRCLS(*PGMR) INLMNU(*SIGNOFF) TEXT('JETTY user') SPCAUT(*ALLOBJ *JOBCTL)...Done
==> Installation iASP [*SYSBAS]: i1GIGC

Setting library.asp to i1GIGC...Done
Setting library.root to /i1GIGC/...Done
Executing command SETASPGRP ASPGRP(i1GIGC)...Done
==> Installation library [JETTY]: 
Check if object *LIBL/JETTY (*LIB) exists...Object *LIBL/JETTY (*LIB) does not exists

Executing command CRTLIB LIB(JETTY) TEXT('JETTY Application Server') ASPDEV(i1GIGC)...Done
Check if /home/jetty exists.../home/jetty does not exist.
Unzipping /tmp/packages/JettyWebServer.zip to /home/jetty...Done

==> Jetty Application Server HTTP port (0 = disabled) [8080]: 

==> Jetty Application Server HTTPS port (0 = disabled) [8443]: 

Replacing ^jetty\.http\.port=.*$ by jetty.http.port=8080 in /home/jetty/start.d/http.ini...Done

Replacing ^jetty\.ssl\.port=.*$ by jetty.ssl.port=8443 in /home/jetty/start.d/https.ini...Done
Replacing ^jetty\.httpConfig\.securePort=.*$ by jetty.httpConfig.securePort=8443 in /home/jetty/start.d/https.ini...Done
Check if object JETTY/JETTY (*JOBD) exists...Object JETTY/JETTY (*JOBD) does not exists

Executing command CRTJOBD JOBD(JETTY/JETTY) TEXT('JETTY job description') JOBQ(JETTY/JETTY) USER(JETTY) RQSDTA('JETTY/STRJTYSVR')...Done
Check if object JETTY/JETTY (*SBSD) exists...Object JETTY/JETTY (*SBSD) does not exists

Executing command CRTSBSD SBSD(JETTY/JETTY) POOLS((1 *BASE)) TEXT('JETTY Sub-system')...Done
Executing command CRTCLS CLS(JETTY/JETTY) RUNPTY(60) TIMESLICE(5000) TEXT('JETTY Class')...Done
Executing command ADDRTGE SBSD(JETTY/JETTY) SEQNBR(9999) CMPVAL(*ANY) PGM(QSYS/QCMD)...Done
Executing command ADDAJE SBSD(JETTY/JETTY) JOB(JETTY) JOBD(JETTY/JETTY)...Done
Check if object JETTY/JETTY (*JOBQ) exists...Object JETTY/JETTY (*JOBQ) does not exists

Executing command CRTJOBQ JOBQ(JETTY/JETTY) TEXT('JETTY Job Queue')...Done
Executing command ADDJOBQE SBSD(JETTY/JETTY) JOBQ(JETTY/JETTY) MAXACT(*NOMAX)...Done
Restoring save file from /tmp/packages/jetty-ibmi-wrapper-02.01.05.savf into JETTY on i1GIGC...Done
Executing command CHGCMD CMD(JETTY/STRJTYSVR) PGM(JETTY/STRJTYSVRR)...Done
Executing command CHGCMD CMD(JETTY/ENDJTYSVR) PGM(JETTY/ENDJTYSVRR)...Done
Creating data area JETTY/JETTYHOME (*CHAR) with value /home/jetty...Done
Executing command CHGOBJOWN OBJ(JETTY/JETTYHOME) OBJTYPE(*DTAARA) NEWOWN(JETTY)...Done
Executing command CHGCMDDFT CMD(JETTY/STRJTYSVR) NEWDFT('USER(JETTY) JOBQ(JETTY/JETTY)')...Done
Saving properties to /home/jetty/quadra.installation.properties...Done
Executing command CHGOWN OBJ('/home/jetty') NEWOWN(JETTY) SUBTREE(*ALL)...Done
Executing command CHGOWN OBJ('/i1GIGC/QSYS.LIB/JETTY.LIB') NEWOWN(JETTY) SUBTREE(*ALL)...Done
ARCAD - Elias - Jetty Application Server successfully installed in JETTY library and /home/jetty folder.

ARCAD - Elias - Jetty Application Server updated

You can now start Jetty Application Server

Everything looks good.

It looks like he's not going to look in the ASP defines.

In the JOBD, the initial ASP is not defined, so I modified it, but this doesn't solve the problem. Maybe there is an other place where it's not define.

Thanks for your help.

sebjulliand commented 6 months ago

Good call about the initial ASP not defined in the JOBD. Does STRJTYSVR stops at this point?! The operations on JETTY_PID are all monitored so that should not stop the command.

If it does, can you get me the from/to program from these message's details? Thanks.

sebCIL commented 6 months ago

STRJTYSVR doesn't stops at this point. But the job is in JOBQ because the subsystem doesn't start.

sebjulliand commented 6 months ago

Even when not installed on an iASP, JETTY_PID never exists the first time the subsystem goes online, that's not the problem here. Let's try this:

CHGSBSD SBSD(JETTY/JETTY) ASPGRP(I1GIGC)

That may help with the autostart job. If not, we'll have to remove the autostart entry, start the subsystem and then run JETTY/STRJTYSVR.

sebCIL commented 6 months ago

Sorry, this does not work:

CHGSBSD SBSD(JETTY/JETTY) ASPGRP(I1GIGC)    
RMVAJE SBSD(JETTY/JETTY) JOB(JETTY)  
ADDLIBLE JETTY
strsbs jetty/jetty             
Library JETTY not found.
sebjulliand commented 6 months ago

The IASP must be in line before starting the subsystem, since it's definition is located on the IASP. Run SETASPGRP ASPGRP(I1GIGC) before STRSBS JETTY/JETTY. And remove the RQSDTA from the JOBD while you are at it: CHGJOBD JOBD (JETTY/JETTY) RQSDTA(*NONE)

sebCIL commented 6 months ago

My profile as the iASP in line, so i don't have to run SETASPGRP ASPGRP(I1GIGC) before. However, i try it:

SETASPGRP ASPGRP(I1GIGC)
STRSBS JETTY/JETTY
Library JETTY not found.
sebjulliand commented 6 months ago

Right. Does CHKOBJ find JETTY at all? (assuming this not found message comes from your interactive job).

sebCIL commented 6 months ago

WRKLIB works: image No problem with CHKOBJ: image Always the same message: image wrksbsd jetty image