Servlet jar not loaded problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsrinivasan
    New Member
    • Mar 2007
    • 221

    #1

    Servlet jar not loaded problem

    Hi all,
    I am using Apache-topcat as my web server. And i am using Eclipse IDE. When i run the tomcat from Eclipse IDE, i have the following message in my console.

    Code:
    WebappClassLoader: validateJarFile(D:\jakarta-tomcat-4.1.27\webapps\pricing\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    What is this? where i am going wrong?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by rsrinivasan
    Hi all,
    I am using Apache-topcat as my web server. And i am using Eclipse IDE. When i run the tomcat from Eclipse IDE, i have the following message in my console.

    Code:
    WebappClassLoader: validateJarFile(D:\jakarta-tomcat-4.1.27\webapps\pricing\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class



    What is this? where i am going wrong?
    servlet.jar comes with Tomcat. You should not have to put it in your web-inf folders.
    It's probably in [TOMCAT]/common/lib

    Comment

    • rsrinivasan
      New Member
      • Mar 2007
      • 221

      #3
      Originally posted by r035198x
      servlet.jar comes with Tomcat. You should not have to put it in your web-inf folders.
      It's probably in [TOMCAT]/common/lib
      Ok fine. When i remove servlet.jar file from web-inf, it does not through that error. But when i remove the servlet.jar file from Eclipse build path, it throws like this

      Code:
      The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
      .

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by rsrinivasan
        Ok fine. When i remove servlet.jar file from web-inf, it does not through that error. But when i remove the servlet.jar file from Eclipse build path, it throws like this

        Code:
        The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
        .
        Why are you removing it from Eclipse's build path?

        Comment

        • rsrinivasan
          New Member
          • Mar 2007
          • 221

          #5
          Originally posted by r035198x
          Why are you removing it from Eclipse's build path?
          When i deploy my web application, it automaticaly put the file in the web-inf folder. How can i avoid it?

          Comment

          • pavanuec
            New Member
            • Aug 2007
            • 3

            #6
            follow the link for solution

            Comment

            Working...