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.

After upgrade to Tomcat 7 servlets stopped working

Discussion in 'EasyApache' started by JohnSmith, Aug 26, 2014.

  1. JohnSmith

    JohnSmith Member

    Joined:
    Oct 22, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I recently upgraded through EasyApache Tomcat from 5.5 to 7 and servelts stopped working. The jsp files are working. It seems as if tomcat doesn't see the WEB-INF directory. (It's in /home/username/public_html/WEB-INF )

    I've upgraded because it said that Tomcat 5.5 is no longer supported so I feared of possible vulnerabilities found.

    What should I do about it?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,773
    Likes Received:
    663
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Does the issue persist after restarting Tomcat? Do you notice any particular errors or warnings in the /var/log/easy-tomcat7/catalina.err log file?

    Thank you.
     
  3. ScottTh

    ScottTh Well-Known Member

    Joined:
    Jan 28, 2013
    Messages:
    157
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hello,

    Have you consulted our Tomcat migration documentation?

    That documentation has a section about reinstalling and re-enabling user servlets.

    If you are still having issues after reading the Tomcat documentation, please feel free to open a ticket with our support staff so you can get your sites back up and running.

    Thank you!
     
  4. JohnSmith

    JohnSmith Member

    Joined:
    Oct 22, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Yes the issue persist after restarting Tomcat, also I've reenabled servlets for that user and restarted Tomcat one more time without results.

    In cataline.err there are no significant errors (at least which I observed) but it shows:
    INFO: Deploying web application directory /home/username/public_html/cgi-bin
    ...
    INFO: Deploying web application directory /home/username/public_html/images

    There are no WEB-INF or public_html added. I've tried to move WEB-INF to cgi-bin folder without any results.

    Let's give it a few more tries before opening ticket.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,773
    Likes Received:
    663
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  6. JohnSmith

    JohnSmith Member

    Joined:
    Oct 22, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    The ticket number is 5392127

    BTW: Where should I put the war file so it will be autodeployed by the new Tomcat 7? (in public_html or in root user folder?)
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,773
    Likes Received:
    663
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To update, the index.jsp page and a test JSP page were confirmed as working well, indicating servlets are functioning. It looks like the issue is isolated to the individual script that's uploaded to the account. WAR files are referenced here:

    WAR File Deployment

    Thank you.
     
  8. JohnSmith

    JohnSmith Member

    Joined:
    Oct 22, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    No it doesn't, recently I've found out that servlets work on 8080 port, but don't work through Apache.
     
  9. JohnSmith

    JohnSmith Member

    Joined:
    Oct 22, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Update: it was fixed by CPanel support, by adding:

    SetHandler jakarta-servlet
    SetEnv JK_WORKER_NAME ajp13

    to .htaccess
     
    #9 JohnSmith, Aug 28, 2014
    Last edited: Aug 28, 2014
Loading...

Share This Page