Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Tomcat WEB-INF directory issue

Discussion in 'General Discussion' started by atodea, Apr 28, 2011.

  1. atodea

    atodea Member

    Joined:
    Apr 23, 2011
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    Hi!

    Here is my directory structure:

    /public_html/WEB-INF/lib
    /public_html/WEB-INF/web.xml
    /public_html/index.jsp
    /public_html/some_directory/index.jsp

    The files in public_html root work fine.
    The files in some_directory don't (they can't access the lib jars*).
    If I add the whole WEB-INF directory there, it works but it's very far from clean.
    That would look like (thi works but I'm not happy with it):
    /public_html/WEB-INF/lib
    /public_html/index.jsp
    /public_html/some_directory/WEB-INF/lib
    /public_html/some_directory/WEB-INF/web.xml
    /public_html/some_directory/index.jsp
    /public_html/other_directory/WEB-INF/lib
    /public_html/other_directory/WEB-INF/web.xml
    /public_html/other_directory/index.jsp


    *) I can't put the jars in Tomcat's shared/lib directory because I have different applications that use different versions of the same classes. Also I'm setting some values (e.g. MySQL username, password) in some classes for each application.

    I need to make the subdirectories access the /public_html/WEB-INF/lib for each application.

    Thank you!
     
  2. atodea

    atodea Member

    Joined:
    Apr 23, 2011
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    51
    Just to make it more clear, everything works fine except I have to put the WEB-INF directory in each subdirectory of my application.
     
  3. bmeyns

    bmeyns Registered

    Joined:
    Sep 24, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Website Owner
    Atodea, did you found any solution for this problem?
    Our hosting provider struggles the same problem...
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice