The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

EasyApache and Tomcat

Discussion in 'cPanel Developers' started by meeven, Jan 14, 2008.

  1. meeven

    meeven Well-Known Member

    Joined:
    May 8, 2007
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    I installed the Tomcat beta that was available in an early version of cPanel 11. For the jsvc, I manually installed it using mtindor's steps since an earlier post by cPanelkenneth said the jsvc version that Apache shipped was severely out of date.

    That latter post also said:
    I checked WHM and it shows Easy::Apache v3.2.0 Build 3634.

    To get a version of Tomcat that is integrated with cPanel, would the following be the right sequence
    • Uninstall Tomcat in WHM at cPanel >> Manage Plugins
    • Remove the /usr/local/jakarta package that contains the jsvc
    • Run the Easy Apache update to automatically install Tomcat along with the right jsvc
    • Install the servlets once again for the domain needing it

    Thanks in advance,
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36

    Theres no reason for your outline not to work.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    EasyApache 3 will upgrade the Tomcat installed via the Plugin system. as long as what you modified are all in the 'default' locations, EasyApache 3 will update everything.
     
  4. meeven

    meeven Well-Known Member

    Joined:
    May 8, 2007
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Thanks, jayh38 and cpanelkenneth.

    Well, I don't know if this was a mistake, but I didn't remove the /usr/local/jakarta/ directory before doing the easy apache update. Now, when I click on 'Install Servlets' for a domain, WHM returns the following error:

    But what's strange is this: At the root of the domain, there's now a file called jsptest.jsp and calling it up in the browser shows a page with the following:

    Yet, when I go to 'Install Servlets' in WHM, I can't see the domain listed as having servlets installed. All I get is the UI for adding servlets. Previously, when I installed Tomcat through cPanel >> Manage Plugins and installed servlets, I would see that domain listed at the Install Servlets section.

    Another odd thing. When I type in http://www.domain.com:8080/ for the domain for which I installed servlets through WHM, I get a directory listing of all files in the web root. I have already denied index listing for the domain's public_html, so I wonder why this should be showing up.

    However, when I do the same for another domain for which I have NOT installed servlets, I get the Apache Tomcat page sure enough!

    Very confused now:confused:

    Thanks in advance for any insights.
     
  5. appservermgr

    appservermgr Member

    Joined:
    Feb 16, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1

    In conf/web.xml verify that your listings entry looks like:

    <servlet>
    <servlet-name>default</servlet-name>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>listings</param-name>
    <param-value>false</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
     
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    If you would, please open a support ticket at https://tickets.cpanel.net/submit/ so we can determine what went wrong and prevent its repetition.

    Thank you.
     
  7. meeven

    meeven Well-Known Member

    Joined:
    May 8, 2007
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    16
    Thank you, everyone.

    It turned out that the payment gateway didn't want Tomcat at all but just JDK 1.3 and above. So, my host installed JDK 1.4.2 for me and all is well at least for now.

    Thanks once again.
     

Share This Page