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.

Tomcat /WEB-INF/lib doesn't load JARs?

Discussion in 'General Discussion' started by jsteel, Sep 27, 2002.

  1. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    I was under the impression that by creating the standard /WEB-INF directory structure, CPanel/WHM's implementaiton of Tomcat would autoload the files under these directories, namely, under the /classes and /lib subdirectories.

    I've gotten servlets to run just fine by uploading them into the /WEB-INF/classes directory under a user's account, as well as JSPs just about anywhere under thri public_html directory.

    My ONLY problem is that JSPs/Servlets can't seem to access any of the JARs placed in /WEB-INF/lib. When you try importing classes from those JARs, Tomcat reports that the package is not found.

    Has anyone gotten JARs to work properly?

    Jaz
     
  2. orca

    orca Well-Known Member

    Joined:
    Sep 23, 2002
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Switzerland
    I have the same problem...tried to upload the .jar files in various folders...no work.
     
  3. masood

    masood Well-Known Member

    Joined:
    Jun 14, 2002
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Yes, same problem here. May be we need to put something in web.xml? :p
     
  4. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    Based on Tomcat docs, the JARs should be autoloaded without the need to enter anything into a web.xml file - it's supposed to be 'drop-and-go'.

    Jaz
     
  5. orca

    orca Well-Known Member

    Joined:
    Sep 23, 2002
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Switzerland
    [quote:3a53742349][i:3a53742349]Originally posted by jsteel[/i:3a53742349]

    Based on Tomcat docs, the JARs should be autoloaded without the need to enter anything into a web.xml file - it's supposed to be 'drop-and-go'.

    Jaz[/quote:3a53742349]

    Well, that could be but here it doesn't do it.
     
  6. xnull

    xnull Well-Known Member

    Joined:
    Sep 9, 2001
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    16
    Ours doesn't do it either. I have tried many different suggested folder structures for the java classes and jars and had my client try many settings in his script's config to point to them. None of this was successful and Burst gave up on my ticket requesting help with this.. We need java servlets, etc. to work properly but they do not. We've tried reinstalling tomcat as well with no luck.
     
  7. daWeazy

    daWeazy Member

    Joined:
    Jan 1, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    California
    I am in the same boat. Mine wont work either Fedora Core 2 Latest Edge build.

    This is starting to irriate me. When someone gets the solution to this problem, please post it.
     
Loading...

Share This Page