WEB-INF/lib jar files in classpath
Hello,
getting started with IDEAS webapp support, I was expecting that, as soon as I enable webapp support for my project all default libraries (servlet.jar, etc), and the jars from WEB-INF/lib would automatically be put into the projects classpath. After all, this is how the appserver behaves as well.
It seems IDEA does not do this, and I have to manually add each one. Is there a technical reason for this?
thanks,
Christian
Please sign in to leave a comment.
One reason could be that there are different versions of the servlet API
and it is up to the developer to decide what version to program for. In
case you will be deploying your webapp on as Servlet 2.2 container it
might be dangerous to develop on 2.3 since you might not be aware that
certain methods are not in the 2.2 API.
This argument only holds for the servlet.jar, It would be nice if IDEA
asked about adding any WEB-INF/lib jars to the class path automatically
when you configure add a new webapp though.
/Fredrik Lindgren
Christian Sell wrote:
Another reason I think is many people seem to have wildly different directory structures from what their final deployed app will look like (although I have yet to find a good reason to do that).
We've been discussing something like this a few days ago and probably will
simplify a lot of this for the next version.
P.S. Would be great to have a request in Tracker :)
Eugene
"Christian Sell" <christian.sell@netcologne.de> wrote in message
news:1744544.1039016964512.JavaMail.jrun@is.intellij.net...
>
as I enable webapp support for my project all default libraries
(servlet.jar, etc), and the jars from WEB-INF/lib would automatically be put
into the projects classpath. After all, this is how the appserver behaves as
well.
>
there a technical reason for this?
>
Submitted as http://www.intellij.net/tracker/idea/viewSCR?publicId=8047