MyEclipse: Indirectly referenced problem [Closed]

bluefoxy - Aug 28, 2004 - 06:26 AM
Post subject: Indirectly referenced problem [Closed]
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? @@"~
support-rkalla - Aug 28, 2004 - 04:09 PM
Post subject:
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.
bluefoxy - Aug 28, 2004 - 08:53 PM
Post subject:
Ar, thanks o.O" Fixed the problem.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group