ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to start tomcat on the 400?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to start tomcat on the 400?

    Hello,

    Im setting up JSF on our 400.

    Isnt there a way to start tomcat from the 400 command line?

    I remember seeing something about it, but cant find it now.

  • #2
    Re: How to start tomcat on the 400?

    Hi davisty:

    I found this:
    Code:
    Create a starter CL program. I called mine STRTOMCAT and it      looks like this. 
     PGM 
     MONMSG CPF0000 
     SBMJOB CMD(QSH CMD('cd /Apache/Tomcat-5.0.28;      ./startup.sh')) + 
     JOB(ENDHTTP) JOBD(QGPL/T528P80) USER(*JOBD) 
     SBMJOB CMD(QSH CMD('cd /Apache/Tomcat-5.0.28-ssl;      ./startup.sh')) + 
     JOB(ENDHTTPS) JOBD(QGPL/T528P443) USER(*JOBD) 
     STRSBS SBSD(QGPL/TOMCAT) 
     ENDPGM
     
    Create an ender CL program. I called mine ENDTOMCAT and it      looks like this. 
     PGM 
     MONMSG CPF0000 
     SBMJOB CMD(QSH CMD('cd /Apache/Tomcat-5.0.28;      ./shutdown.sh')) + 
     JOB(ENDHTTP) JOBD(QGPL/T528P80) USER(*JOBD) 
     SBMJOB CMD(QSH CMD('cd /Apache/Tomcat-5.0.28-ssl;      ./shutdown.sh')) + 
     JOB(ENDHTTPS) JOBD(QGPL/T528P443) USER(*JOBD) 
     ENDSBS TOMCAT 
     ENDPGM
    here:


    Best of Luck
    gls
    The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

    Comment


    • #3
      Re: How to start tomcat on the 400?

      Originally posted by GLS400 View Post
      Hi davisty:

      I found this:
      Code:
      Create a starter CL program. I called mine STRTOMCAT and it      looks like this. 
       PGM 
       MONMSG CPF0000 
       SBMJOB CMD(QSH CMD('cd /Apache/Tomcat-5.0.28;      ./startup.sh')) + 
       JOB(ENDHTTP) JOBD(QGPL/T528P80) USER(*JOBD) 
       SBMJOB CMD(QSH CMD('cd /Apache/Tomcat-5.0.28-ssl;      ./startup.sh')) + 
       JOB(ENDHTTPS) JOBD(QGPL/T528P443) USER(*JOBD) 
       STRSBS SBSD(QGPL/TOMCAT) 
       ENDPGM
       
      Create an ender CL program. I called mine ENDTOMCAT and it      looks like this. 
       PGM 
       MONMSG CPF0000 
       SBMJOB CMD(QSH CMD('cd /Apache/Tomcat-5.0.28;      ./shutdown.sh')) + 
       JOB(ENDHTTP) JOBD(QGPL/T528P80) USER(*JOBD) 
       SBMJOB CMD(QSH CMD('cd /Apache/Tomcat-5.0.28-ssl;      ./shutdown.sh')) + 
       JOB(ENDHTTPS) JOBD(QGPL/T528P443) USER(*JOBD) 
       ENDSBS TOMCAT 
       ENDPGM
      here:


      Best of Luck
      gls

      Thank You,

      I know Ive seen some kind of cmd that is part of a strtcpsvr *http or something to that effect.

      Now Im going crazy(short trip for me) ...cause I cant remember it.

      Comment


      • #4
        Re: How to start tomcat on the 400?

        STRTCPSVR SERVER(*HTTP) INSTANCE(name of the server instance)
        Michael Catalani
        IS Director, eCommerce & Web Development
        Acceptance Insurance Corporation
        www.AcceptanceInsurance.com
        www.ProvatoSys.com

        Comment


        • #5
          Re: How to start tomcat on the 400?

          Thank You for your reply.

          By server instance, is that where tomcat goes?

          Can you give an example please.

          Thank You

          Comment


          • #6
            Re: How to start tomcat on the 400?

            Which OS version are you on? It hasnt been Tomcat since maybe V5R3, and I want to ensure youre not really running Apache.

            You can start up the tomcat with that command as well, but its been years since I've done it. The default instance name for the tomcat server I believe was TOMCATSVR. But it may not necessarily be that name.
            Michael Catalani
            IS Director, eCommerce & Web Development
            Acceptance Insurance Corporation
            www.AcceptanceInsurance.com
            www.ProvatoSys.com

            Comment


            • #7
              Re: How to start tomcat on the 400?

              In part it depends on what release of IBM i you are running. Tomcat was only supported by IBM up until V5R4 - this web page talks to the options if you are on V6 or V7. http://www.mysamplecode.com/2011/09/...he-tomcat.html

              Paul Holm has uploaded a video to YouTube (http://www.youtube.com/watch?v=N11fXnFIE1g) that shows you how to instal Tomcat etc. along with the Community Edition of WOW - I would suggest that perhaps downloading WOW to get their install script etc. might not be a bad idea.

              Comment

              Working...
              X