classpath for web-application.

Discussion in 'Java' started by George, Nov 13, 2006.

  1. George

    George Guest

    I am working on a web application with a bunch of jsp files using some
    java classes. I am using tomcat 5.5. I have a special class file, say
    a.class, sit in the web-inf/classes. This class import another two
    jars, say b.jar and c.jar. The jsp file will import a and does not
    use b and c. How should I organize them for a war file in server?

    I actually write a.java with the jsp file in a web project in netbean
    5.5. And the created war file put b.jar and c.jar in web-inf/lib. But
    when I deploy the war file, I keep get the
    "java.lang.NoClassDefFoundError: org/kowari/itql/ItqlInterpreterBean"
    (this is a class in b.jar). I test compiling all the jsp in compile
    and it works. I suppose you can specify these classpath related
    information somewhere in web-application directory. How to put
    everything? Thank you.
     
    George, Nov 13, 2006
    #1
    1. Advertising

  2. George wrote:
    > I am working ...


    ...to post to each comp.lang.java hierarchy,
    usenet newsgroup?

    Please refrain from multi-posting.

    (X-post to c.l.j.p./h., w/ f-u to c.l.j.h. only)

    Andrew T.
     
    Andrew Thompson, Nov 13, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Flip
    Replies:
    3
    Views:
    7,339
    Tony Morris
    Feb 9, 2004
  2. Gabe
    Replies:
    3
    Views:
    1,093
  3. Replies:
    3
    Views:
    7,528
    Dave f
    Feb 8, 2006
  4. Replies:
    2
    Views:
    774
  5. Replies:
    2
    Views:
    1,126
    Mike Schilling
    Mar 2, 2008
Loading...

Share This Page