Compiling / deploying a JSP

Ive created a new web project, using all defaults supplied by IDEA (2097 and 2108).

Ive setup and configured Tomcat 4.x and 5.x.
Tomcat runs and stops when I start and stop my debug session, so that seems to be ok.

I then added a simple JSP to my project, a basic hello world JSP. When I hit compile, I see that the JSP gets copied to the "exploded deploy directory", but then I get a compilation error stating:

Error: File "/home/users/dev77/IdeaProjects/TestWeb/build/deploy/web/Test.jsp" not found.


Yet when I look at the directory, both within IDEA and using a terminal, the file is there.

Is this a bug, or do I have some config messed up?
Servlets work fine. They compile and deploy ok, and I can access them through a web browser.


Nick

2 comments
Comment actions Permalink

I would say do not' compile, just package it.

Norris Shelton
Sun Certified Java Programmer




Nick Pratt wrote:

>Ive created a new web project, using all defaults supplied by IDEA (2097 and 2108).
>
>Ive setup and configured Tomcat 4.x and 5.x.
>Tomcat runs and stops when I start and stop my debug session, so that seems to be ok.
>
>I then added a simple JSP to my project, a basic hello world JSP. When I hit compile, I see that the JSP gets copied to the "exploded deploy directory", but then I get a compilation error stating:
>
>Error: File "/home/users/dev77/IdeaProjects/TestWeb/build/deploy/web/Test.jsp" not found.
>
>
>Yet when I look at the directory, both within IDEA and using a terminal, the file is there.
>
>Is this a bug, or do I have some config messed up?
>Servlets work fine. They compile and deploy ok, and I can access them through a web browser.
>
>
>Nick

>

0
Comment actions Permalink

Im not intentionally trying to compile the JSP files. {:-)

Im trying to figure out how to stop IDEA complaining about something that makes no sense to me (at the moment).

The whole JSP/Web module seems a little flaky right now.
Maybe I should rephrase the question:

Why is IDEA telling me there is an error not finding Test.jsp - it is there, its in the directory it says it cant find it in.
What is IDEA trying to do here?


Nick

0

Please sign in to leave a comment.