dynamic web project [message #225709] |
Thu, 25 December 2008 18:09  |
Eclipse User |
|
|
|
Hi!
This is my first web project.
When creating a dynamic web project there is no /classes subfolder under
/web-inf folder. My .Java source files are under /src. After compiling
them .classes files get placed into build/classes folder. And this is the
problem, because the system is looking for them in /web-inf/classes folder
that does not exist.
Is there some type of Eclipse configuration I can change to make it work
properly?
I'll really appreciate your help.
|
|
|
|
|
|
Re: dynamic web project [message #225780 is a reply to message #225709] |
Mon, 29 December 2008 11:45   |
Eclipse User |
|
|
|
Anna wrote:
> Hi!
>
> This is my first web project.
> When creating a dynamic web project there is no /classes subfolder under
> /web-inf folder. My .Java source files are under /src. After compiling
> them .classes files get placed into build/classes folder. And this is
> the problem, because the system is looking for them in /web-inf/classes
> folder that does not exist.
> Is there some type of Eclipse configuration I can change to make it work
> properly?
> I'll really appreciate your help.
>
Anna,
I'm no expert, but when you run with a Tomcat server within Eclipse
(setting up a server with the project), the deployment works just fine.
However, on my projects, we do force the class files to the
WEB-INF/classes subdirectory. This is to correct formal deployment later on.
We still use Europa, so be warned about what I'm saying here.
We have to create the classes subdirectory. Then, right-click on WEB-INF
in your project, choose New->Folder, type in "classes" as the name, then
click Advanced and Link to Folder in the file system, navigate to the
classes folder you created and click OK.
Russ Bateman
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.35605 seconds