Skip to main content

Deploy a Java Application?

Comments

4 comments

  • cPanelMichael
    Hello @morten_oelbye, Your forums profile shows your access level as "Website Owner". This indicates a lack of root access to the server. Is that correct? If so, I recommend reporting this to your web hosting provider so they can verify Tomcat is setup properly on the server. Thank you.
    0
  • morten_oelbye
    The provider has made all the nessary changes, they say. I am told to use .htaccess to move on. But I do not where to put this .htaccess and what to put in it. The directory in my cpanel is as follow: /ea-tomcat85/bin/ /ea-tomcat85/conf/ with all the well known files ------------------------------------------------- workers.properties -> worker.list=myworker worker.myworker.type=ajp13 worker.balancer.type=lb worker.balancer.balance_workers=myworker ------------------------------------------------- uriworkermap.properties -> /farum=myworker /ping=myworker /nitz=myworker ------------------------------------------------- /ea-tomcat85/lib/ /ea-tomcat85/logs/ /ea-tomcat85/run/ /ea-tomcat85/webapps/ Containing my servlet's (NO JSP) /ea-tomcat85/work/Catalina/localhost/ /public_ftp/ /public_html/ all my html-files etc /www/ and finally this .htaccess by the administrator Containing: ------------------------------------------------- # php -- BEGIN cPanel-generated handler, do not edit # Set the "ea-php71" package as the default "PHP" programming language. AddHandler application/x-httpd-ea-php71 .php .php7 .phtml # php -- END cPanel-generated handler, do not edit ------------------------------------------------- I guess that an .htaccess in /ea-tomcat85/ should contain: RewriteEngine on SetHandler jakarta-servlet SetEnv JK_WORKER_NAME myworker Result
    $_SERVER['JK_WORKER_NAME'> myworker
    But no SERVLET Kindlist MBO
    0
  • morten_oelbye
    In windows I have this in my httpd.conf file JkWorkersFile "C:/Program Files/Apache Software Foundation/Tomcat 9.0/conf/workers.properties" JkMountFile "C:/Program Files/Apache Software Foundation/Tomcat 9.0/conf/uriworkermap.properties" These are pointing to my Tomcat from my Apache. But in C-PANEL I do not know where to start. It is probadly simple, but please help. Your C-PANEL Tomcat guide does not help me. Br
    0
  • cPanelMichael
    Hello @morten_oelbye, We recently published the following Tomcat guide:
    0

Please sign in to leave a comment.