Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 30 of 32 FirstFirst ... 20 28 29 30 31 32 LastLast
Results 436 to 450 of 466
  1. #436
    Registered User
    Join Date
    Oct 2002
    Posts
    2

    Default New install

    Hi All,

    This is our very first cpanel server brand new clean install and everything went fine untill we added the tomcat Addon Modules directly from WHM and problem started!

    Currently both Apache and Tomcat are down and wont start, I get the following message when I try to start the apache:

    # service httpd restart
    /etc/init.d/httpd restart: httpd not running, trying to start
    Syntax error on line 1 of /usr/local/apache/conf/jk.conf:
    Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration
    /etc/init.d/httpd restart: httpd could not be started

    any help is appreciated

    Thanks

  2. #437
    Member
    Join Date
    Nov 2003
    Location
    Earth
    Posts
    33

    Default

    Hi.

    Quick fix is to uninstall TomCat. Use Cpanel stable and try to install TomCat again.
    CK

  3. #438
    big
    big is offline
    Member
    Join Date
    Aug 2001
    Location
    Earth
    Posts
    232

    Default

    the bad thing cpanel's tomcat doesn't support freebsd even if u installed java manually...

    any other option for freebsd other than manual installation?

  4. #439
    Member
    Join Date
    Jun 2003
    Posts
    33

    Default

    I have finally got Tomcat to run, but now when I access a page that uses jsp, I get the following error:

    HTTP Status 500 -

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: Unable to compile class for JSP
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    root cause

    java.io.FileNotFoundException: /usr/local/jakarta/jakarta-tomcat-5.5.7/work/Catalina/www.mydomain.com/_/org/apache/jsp/thoughts/test_jsp.java
    java.io.FileOutputStream.open(Native Method)
    java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    java.io.FileOutputStream.<init>(FileOutputStream.java:70)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:131)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs.
    Apache Tomcat/5.5.7


    So I take a look in the mod_jk.log and see this:

    Service returned error-1 with status=500 for worker-ajp13


    Any ideas what could be going on???

  5. #440
    Member
    Join Date
    Jun 2003
    Posts
    33

    Default

    Does anyone have any clues for me to look into my error described above?

  6. #441
    Member
    Join Date
    Feb 2004
    Posts
    17

    Default

    I am having WHM 10.8.0 cPanel 10.8.1-R113 installed on RedHat Enterprise 4 i686, with jakarta-tomcat-5.5.9 installed as an 'Addon Module' installed from WHM, Apache version 1.3.34 (Unix).
    After going through all these posts I would like to ask, isn't there any simple way where the end user can simply upload the .jsp pages and serverlets to the server get going it, just the same way they upload .html files in the public_html folder and .cgi and .pl in the cgi-bin folders?
    I would like to know, what changes are required to be made to the virtualhost block of the domain, so that .jsp pages and the serverlets uploaded to the public_html folder or any folder within it will run successfully.
    The default tomcat installation has installed mod_jk connector.
    presently the url http://domainip:8080 works fine also the sample serverlets work fine, however, when I try to excute http://domainname.com:8080/test.jsp it gives page not found error, however, http://domainname.com:8009/test.jsp yields blank page? The basic question is how to make apache, listening on port 80, to forward the .jsp and servlets requests to port 8009 or whatever port the tomcat is listening?
    or will I have to reinstall everything manually and reconfigure it? which just shows that default cpanel installation is nothing but a flop show.

    Please help to fix this asap.

    Thanks!

  7. #442
    Member
    Join Date
    Oct 2003
    Posts
    327

    Default

    You need to use the "Install serverlets" feature you will find in the Account Functions section of root WHM. That will allow you to specify which domain you want to activate server-side java on. It will make the necessary changes to the httpd.conf file.

  8. #443
    Member
    Join Date
    Feb 2004
    Posts
    17

    Default

    Quote Originally Posted by Aric1
    You need to use the "Install serverlets" feature you will find in the Account Functions section of root WHM. That will allow you to specify which domain you want to activate server-side java on. It will make the necessary changes to the httpd.conf file.
    Thanks! Aric!, That worked as charm, the .jsp pages are now working fine from the public_html folder, it has also created WEB-INF folder containing the 'classess' and 'lib' folder.
    Basically I am trying to migrate the site from the old plesk server to the new cpanel server. on the old server 'tomcat4' was installed at a domain level (I don't know how) but within the domain folder, there's a folder called tomcat1, which has 'webapps' and within the webapps there's a folder named 'dynamic' which contains few .jsp, html and css pages along with the folder WEB-INF and WEB-INF contains the 'config' 'lib' folders and web.xml file. now the question arises how do I run this dynamic on the cpanel server? copy all the contents from dyanamic/WEB-INF to the newly created public_html/WEB-INF?
    Also how do I test the serverlet on this server? there is a ServletsTestPage.class in the newly created WEB-INF/classess folder?

    Thanks!

  9. #444
    Member
    Join Date
    Jul 2004
    Posts
    95

    Default Permission Problem to deploy as tomcat manager user

    Hi,

    When I try undeploy a path from tomcat manager, I receive this message:

    OK - Undeployed application at context path /testando

    But it dont remove anything. And if I try to deploy a war from tomcat manager, I receive a permission denied.

    So, I chmod 777 the /home/account/public_html and work fine, but I think it is not the correct way to do it work.


    I am using WHM 10.8.0 cPanel 10.8.2-C467 with Red Hat ES 4.

    Tomcat Version: Apache Tomcat/5.5.9
    JVM Version: 1.5.0_05-b05

    I talk to my datacenter support and they tell-me this:

    Employee Response - 2006-Aug-18 09:53
    Hello,

    We have understood your issue . In fact this option is not supported by cpanel. This is because to deploy the file as the user , you need right permission for the tomcat . That means you will need to provide write permission for your public_html folder , which is not recommendable.

    So you shall not be able to achieve the task of deploying files from user manager . You can verify the cpanel forums for entries on this topic. In case you provide 777 permission for public_html folder , you can see that your query does happen with no issues.

    We have tried to deploy after providing 777 permission and it was a success . We have now changed it back to 750. Please verify.
    We are sorry to say that we shall not be able to assist you on this issue. You may please contact the support of cpanel for any updates.

    Regards

    Some idea how to resolv this issue?

  10. #445
    Member
    Join Date
    Jul 2004
    Posts
    95

    Default

    noone?

    I cant belive noone is having this issue too. Or noone are using tomcat manager as user?

    There are someone here that could giveme some help about this issue please? I will pay, I need help very fast or I will lost a good costumer.

    Thank you,

    André.

  11. #446
    Member FeeL's Avatar
    Join Date
    Apr 2004
    Location
    Rio de janeiro
    Posts
    142
    cPanel/Enkompass Access Level

    Reseller Owner

    Default found it?

    Quote Originally Posted by IRCBrasil View Post
    noone?

    I cant belive noone is having this issue too. Or noone are using tomcat manager as user?

    There are someone here that could giveme some help about this issue please? I will pay, I need help very fast or I will lost a good costumer.

    Thank you,

    André.
    Olá Andre!

    Encontrou a solucao?

    sds
    -----------
    FeeL Buarque
    SysAdmin.

  12. #447
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by IRCBrasil View Post
    noone?

    I cant belive noone is having this issue too. Or noone are using tomcat manager as user?

    There are someone here that could giveme some help about this issue please? I will pay, I need help very fast or I will lost a good costumer.

    Thank you,

    André.
    Logging into the Tomcat Manager as a user does not run Tomcat Manager in the context of the user. Tomcat runs as the Tomcat user (or root). This means in order to write to, delete from or read from directories and files under /home/username/public_html the proper permissions need put in place.

    The particular permissions depend upon how your webhost provider has configured both tomcat and their server, but it could be 0777 or 0770 permissions on /home/username/public_html and any directory therein that tomcat needs to access

    That does not mean Tomcat (or Resin) cannot be setup to run as the logged in user, but is not undertaken lightly. This is because Application Servers like Tomcat and Resin are not designed to be operated in a multi-user environment.

  13. #448
    Member
    Join Date
    Feb 2004
    Posts
    17

    Thumbs up

    Hello FeeL,
    Tomcat will generally run as root and as standalone server, it does not matter how the server is running as far as you have set the correct mappings to serve the jsp pages and the end user is able to update the files through ftp. To do this just create WEBAPPS folder in the public_html folder, change the owner ship to user:tomcat4 (or to what ever group tomcat user belongs to) and set the permissions as 777 to be safe try first with 755 and then make appopriate changes to tomcat config file in th catalina home folder to map the context to the WEAPPS in public_html, put in the test.jsp and see if its working fine. If everything is working fine just upload your java stuff to WEBAPPS using any ftp client, that's all. This approch has helped me to bypass the use of tomcat manager for deploying .war files as well as there is no need to change the permissions for home folder or public_html. Hope this help you. If you find this complicated PM me.

  14. #449
    Member
    Join Date
    Feb 2004
    Posts
    17

    Default

    Sorry Feel, the last post was for "IRCBrasil", windows cut, copy, paste mistake

    Thanks!

  15. #450
    Member
    Join Date
    Oct 2003
    Posts
    132

    Default cPanel 11 Tomcat issue

    Since release of cPanel 11 the "install servlets" command is incomplete.

    In server.xml it generates only

    </Host>
    <Host name="domain.com...

    but no longer the

    </Host>
    <Host name="www.domain.com...

    entries.

    No idea why.

Similar Threads & Tags
Similar threads

  1. Tomcat or Resin Installer Problems
    By ramorse in forum cPanel Developers
    Replies: 0
    Last Post: 07-08-2005, 11:29 AM
  2. Tomcat Installer gets Stuck????
    By scapeweb in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-16-2005, 04:37 AM
  3. ** New Tomcat 4.0.3 Installer **
    By dgbaker in forum cPanel and WHM Discussions
    Replies: 91
    Last Post: 06-30-2004, 06:08 PM
  4. New Tomcat 4.1.30 installer
    By dgbaker in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-09-2004, 05:04 PM
  5. ** New Tomcat 4.0.3 Installer **
    By dgbaker in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-05-2003, 02:23 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube