Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18
  1. #1
    Member
    Join Date
    Aug 2001
    Posts
    362

    Default About JSP (Tomcat)

    Hello,

    I installed Tomcat for a user and now he asks me about where his java classpath is.

    I really don't have a clue what he is asking because we don't have any experiences with Tomcat whatsoever so I hope someone can give me the answer.

    Thank you!
    Domenico
    Webhostingtalk.nl :: For all your Dutch (AMS-IX - Amsterdam) and European hosting quotes
    The best and only hosting forum you need in Europe
    You can ask your quotes and questions in English!

  2. #2
    Member
    Join Date
    May 2002
    Posts
    71

    Default

    We just installed a few weeks ago...

    I think you will get what you want if to SSH into the server (as root) and type this:

    echo $CLASSPATH

    Case IS important.
    DPS Systems, Inc.
    www.dpssystems.com

    cPanel Partner NOC

  3. #3
    Member
    Join Date
    Aug 2001
    Posts
    362

    Default

    Hi Portman,

    I will send the output to the client and hope it will be what he needed.

    Thanks for helping!
    Domenico
    Webhostingtalk.nl :: For all your Dutch (AMS-IX - Amsterdam) and European hosting quotes
    The best and only hosting forum you need in Europe
    You can ask your quotes and questions in English!

  4. #4
    Member
    Join Date
    Aug 2001
    Posts
    362

    Default

    I just got a reply from the client and he says that this is the classpath for the Java JRE engine.

    He needs all the info about WEB-INF.
    Does he need to create that himself?
    Webhostingtalk.nl :: For all your Dutch (AMS-IX - Amsterdam) and European hosting quotes
    The best and only hosting forum you need in Europe
    You can ask your quotes and questions in English!

  5. #5
    Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    646

    Default

    Create this directory structure in his /public_html directory:

    /WEB-INF/classes

    Then restart Tomcat. The customer can then put his servlets in the /classes subdirectory and call them like so (assuming you added servlet support to his domain in WHM):

    http://www.hisdomain.com/servlet/NameOfServlet


    Jaz

  6. #6
    Member
    Join Date
    Aug 2001
    Posts
    362

    Default

    Thanks for replying.
    How must I chmod the new directories?
    755?
    Webhostingtalk.nl :: For all your Dutch (AMS-IX - Amsterdam) and European hosting quotes
    The best and only hosting forum you need in Europe
    You can ask your quotes and questions in English!

  7. #7
    Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    646

    Default

    Yes.

  8. #8
    Member
    Join Date
    Aug 2001
    Posts
    362

    Default

    I'm awaiting the clients reply on this and will let you know if it worked for him...
    Webhostingtalk.nl :: For all your Dutch (AMS-IX - Amsterdam) and European hosting quotes
    The best and only hosting forum you need in Europe
    You can ask your quotes and questions in English!

  9. #9
    Member
    Join Date
    Nov 2001
    Posts
    37

    Default

    Here's another very important thing:

    if you have installed Tomcat 4.x Plugin from CPanel, you will need to edit /scripts/gentomcatlist

    find this line in it:

    &Host name=&$nhost&&
    &Context path=&& reloadable=&true& docBase=&$nhosts{$nhost}& debug=&1&/&
    &/Host&

    and change to this:

    &Host name=&$nhost& appBase=&$nhosts{$nhost}&&
    &Context path=&& reloadable=&true& docBase=&$nhosts{$nhost}& debug=&1&/&
    &/Host&

    then execute this file, and restart tomcat.

    Otherwise his JSP pages will work,but he won't be able to run servlets at all.

    Note to CPanel DEV. Team - would you be so kind to include this little mod by default?
    With best regards, Vital
    The Wizards Hosting Support Team
    The magic of your success: http://WWW.WizardsHosting.Com

  10. #10
    Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    646

    Default

    Afraid you are wrong there Vital. We don't have the appBase parameter on any of our accounts and everyone's servlets work just fine.

    Jaz

  11. #11
    Member
    Join Date
    Nov 2001
    Posts
    37

    Default

    Mmm... And war files too? Have you changed anything else after default installation? 'Cause it didn't worked, till i figured out this appBase parameter in server.xml...
    With best regards, Vital
    The Wizards Hosting Support Team
    The magic of your success: http://WWW.WizardsHosting.Com

  12. #12
    Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    646

    Default

    Haven't tried WAR files yet. Do you have them working? If so, how are you calling them from a URL? I'd like to do a test on my machine without the appBase.

    Jaz

  13. #13
    Member
    Join Date
    Nov 2001
    Posts
    37

    Default

    [quote:c9e135e671][i:c9e135e671]Originally posted by jsteel[/i:c9e135e671]
    Haven't tried WAR files yet. Do you have them working? If so, how are you calling them from a URL? I'd like to do a test on my machine without the appBase.
    [/quote:c9e135e671]

    Yeah i do. Here's the deal:

    you put the file into public_html, restart tomcat, and file gets unpacked into directory of it's name.

    then you'll need to add mapping, like:

    JkMount /warname/* ajp13

    into virtualhost...

    And it works just fine. )


    A question to everyone: any idea, why i can't use JkMount through .htaccess? It would be extremely useful thing to have for customers.
    With best regards, Vital
    The Wizards Hosting Support Team
    The magic of your success: http://WWW.WizardsHosting.Com

  14. #14
    Member
    Join Date
    Aug 2001
    Posts
    707

    Default

    [quote:838b6e0e21][i:838b6e0e21]Originally posted by Vital[/i:838b6e0e21]

    you put the file into public_html, restart tomcat, and file gets unpacked into directory of it's name.

    ......
    [/quote:838b6e0e21]
    Does that mean every time the client puts a new WAR file in his web root you have to restart tomcat?

  15. #15
    Member
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    646

    Default

    [/quote]
    Does that mean every time the client puts a new WAR file in his web root you have to restart tomcat?[/quote]

    Yes. Not very effective obviously. I'm also wondering what kind of effect unPack=false would have on Vital's setup. Vital, have you tried this yet? Would this allow new version to be uploaded and read without a restart?

    Jaz

Similar Threads & Tags
Similar threads

  1. Tomcat cannot run JSP
    By yogi73 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-17-2008, 02:15 AM
  2. Tomcat / JSP / JCE
    By BWS in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-29-2004, 01:26 PM
  3. *IMPORTANT* Tomcat JSP 4.0.3
    By Diatone in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 08-10-2003, 06:10 AM
  4. Tomcat JSP
    By casey in forum cPanel and WHM Discussions
    Replies: 18
    Last Post: 04-14-2003, 03:57 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube