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.

JSP not serving after Apache upgrade

Discussion in 'EasyApache' started by blueshift, Jul 14, 2003.

  1. blueshift

    blueshift Active Member

    Joined:
    Aug 26, 2001
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Hello everyone,

    My server's Tomcat server is having problems after Apache is being upgraded using /scripts/easyapache.

    Tomcat is able to start; however JSP files are unable to be served despite it's running properly. JSP scripts return a Page cannot be displayed error instead of the usual 500 INternal server error. Anyone have any ideas?

    I can give out server information upon request. This message is also forwarded to Cpanel's support.

    Thanks.

    Vincent

    cPanel.net Support Ticket Number:
     
  2. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Also on my server.

    Also onmy server the same problem.

    After run /scripts/easyapache sites with TOMCAT don't work.

    cPanel.net Support Ticket Number:
     
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    291
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Solution

    Add this linea, because after compiling easyapche this line it's erased.

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  4. reggie

    reggie Member

    Joined:
    Apr 10, 2002
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    tomcat not working after latest apache upgrade

    Hello
    I am having the same problem, I have just searched httpd.conf and AddType text/html .jsp is still intact.
    It seems to me that somehow this new build is interfering with the operation of mod_jk or the port that it uses.

    reggie.:mad:

    cPanel.net Support Ticket Number:
     
  5. MichaelShanks

    MichaelShanks Well-Known Member
    PartnerNOC

    Joined:
    Aug 20, 2001
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    reinstall tomcat it will fix it

    cPanel.net Support Ticket Number:
     
  6. acetate

    acetate Active Member

    Joined:
    Aug 16, 2001
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Hmm. Reinstalled but doesn't bring up the default jsp page.. Would get an error 403..

    example:
    http://www.domain.com - 403 Forbidden
    http://www.domain.com/index.jsp - works..

    Checked the DirectoryIndex.. index.jsp is in there.. help?

    [Mon Jul 14 23:59:02 2003] ( info) [mod_jk2.c (451)]: mod_jk.translate(): uriMap /index.jsp ajp13:localhost:8009
    [Mon Jul 14 23:59:12 2003] ( info) [mod_jk2.c (451)]: mod_jk.translate(): uriMap /index.jsp ajp13:localhost:8009

    cPanel.net Support Ticket Number:
     
  7. blueshift

    blueshift Active Member

    Joined:
    Aug 26, 2001
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    OMG I couldn't even reinstall Tomcat. Tons of errors:

    wrote 86 bytes read 6902 bytes 13976.00 bytes/sec
    total size is 2718580 speedup is 389.04
    Error: JAVA_HOME is not defined correctly.
    We cannot execute /usr/local/jdk/bin/java
    ln: `./ant.jar': File exists
    ln: `./optional.jar': File exists
    ln: `./bin': File exists
    ./jk/jk_jni_worker.c:770:6: warning: #warning -------------------------------------------------------
    ../jk/jk_jni_worker.c:771:6: warning: #warning NO JAVA 2 HEADERS! SUPPORT FOR JAVA 2 FEATURES DISABLED
    ../jk/jk_jni_worker.c:772:6: warning: #warning -------------------------------------------------------
    apxs:Break: Command failed with rc=1
    make: *** [mod_jk.so] Error 1
    [activating module `jk' in /usr/local/apache/conf/httpd.conf]
    cp mod_jk.so /usr/local/apache/libexec/mod_jk.so
    cp: cannot stat `mod_jk.so': No such file or directory
    apxs:Break: Command failed with rc=1
    Scanning httpd.conf...X.X.X..X..X..X..X..X..X..X..

    Please help!

    cPanel.net Support Ticket Number:
     
  8. blueshift

    blueshift Active Member

    Joined:
    Aug 26, 2001
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    And I can't believe CPanel Support is being this helpless in this situation. They don't even tell me how to fix it, and just stated they are not responsible for anything.

    At the end of the JSP install, /usr/local/jdk and /usr/local/jakarta are removed. This is so problematic.

    cPanel.net Support Ticket Number:
     
  9. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    That just happened to me, too! After upgrading apache all of a sudden .jsp pages and servlets come up as not found. What in buildapache would cause the java port to stop responding?

    cPanel.net Support Ticket Number:
     
  10. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
  11. Sash

    Sash Well-Known Member

    Joined:
    Feb 18, 2003
    Messages:
    252
    Likes Received:
    0
    Trophy Points:
    16
    Same problem, JSP pages give an internal server error after running easyapache. We've tried all of the fixes listed in this thread.

    Has anyone else run into this same problem?

    Thanks
    Mike

    cPanel.net Support Ticket Number:
     
  12. blueshift

    blueshift Active Member

    Joined:
    Aug 26, 2001
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Well I got it fixed by reinstalling from Tomcat 3 to Tomcat 4. But JDBC now doesn't work. Error is:

    javax.servlet.ServletException: org.gjt.mm.mysql.Driver
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
    at org.apache.jsp.myTest_jsp._jspService(myTest_jsp.java:73)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:536)



    Anyone knows why?

    cPanel.net Support Ticket Number:
     
  13. Diatone

    Diatone Well-Known Member

    Joined:
    Aug 22, 2001
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    these apache upgrades should really be tested more before they are released to us.

    cPanel.net Support Ticket Number:
     
  14. Sash

    Sash Well-Known Member

    Joined:
    Feb 18, 2003
    Messages:
    252
    Likes Received:
    0
    Trophy Points:
    16
    Does anyone know what in the Apache upgrade killed Tomcat?

    Mike

    cPanel.net Support Ticket Number:
     
  15. pfmartin

    pfmartin Well-Known Member

    Joined:
    Aug 18, 2001
    Messages:
    167
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    Any external module needs to be rebuilt and the library file built against the new apxs.

    I had to rebuild PHP (I build my own) and mod_jk after the easyapache upgrade because of this. It's really not that bad, just remember that you have to rebuild. I hope this helps.

    cPanel.net Support Ticket Number:
     
  16. Sash

    Sash Well-Known Member

    Joined:
    Feb 18, 2003
    Messages:
    252
    Likes Received:
    0
    Trophy Points:
    16
    Doesn't the mod_jk module get rebuilt when you perform the install again?

    Mike

    cPanel.net Support Ticket Number:
     
  17. kamau

    kamau Member

    Joined:
    Jan 20, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    pfmartin,

    How did you rebuild your PHP & mod_jk?? Pl'se give some steps or quick reference one can follow to rebuild.

    It then appears that Tomcat does not need to be re-installed and only the re-building.

    cPanel.net Support Ticket Number:
     
  18. JohnH

    JohnH Member

    Joined:
    Jun 28, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Having the same problem here - seems like the mysql drivers for it are missing? Anyone can lend a hand in solving this problem?

    cPanel.net Support Ticket Number:
     
  19. blueshift

    blueshift Active Member

    Joined:
    Aug 26, 2001
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Please help us fix the problem, someone?

    cPanel.net Support Ticket Number:
     
  20. Atomix

    Atomix Registered

    Joined:
    Jun 29, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Same problem here...

    EDIT: Fixed problem by completely removing and installing Tomcat.

    cPanel.net Support Ticket Number:
     
    #20 Atomix, Jul 17, 2003
    Last edited: Jul 17, 2003
Loading...

Share This Page