facebook

Indirectly referenced problem [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #213880 Reply

    bluefoxy
    Member

    Well, my code was able to complie properly with the 3.8.0 GA but now when i updated to 3.8.1, it gives me an weird error to one of the file saying that “The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files” I checked in the WEB-INF/lib files and the jar files are sitting there correctly… I wonder what’s wrong with my code? @@”~

    #213893 Reply

    Riyad Kalla
    Member

    That class is typically provided by your application server’s implementation of the Servlet API, in Tomcat 5 this file is servlet-api.jar in the common/lib dir. You likely need to add this as an external JAR via the Project Properties > Java Build Path > Libraries > Add External… button.

    The reason you typically don’t need to drop these JARs into your project’s WEB-INF/lib JAR is because they are provided by your application server, so you don’t want to be deploying these ‘system-level’ JARs with your app, but you do need them for compile-time requirements… so that’s why we use the External JAR thing to hook them into your project.

    #213904 Reply

    bluefoxy
    Member

    Ar, thanks o.O” Fixed the problem.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Indirectly referenced problem [Closed]

You must be logged in to post in the forum log in