Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » dynamic web project
dynamic web project [message #225709] Thu, 25 December 2008 18:09 Go to next message
Anna  is currently offline Anna
Messages: 24
Registered: July 2009
Junior Member
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 #225718 is a reply to message #225709] Thu, 25 December 2008 19:12 Go to previous messageGo to next message
Vadim Dmitriev is currently offline Vadim Dmitriev
Messages: 74
Registered: July 2009
Member
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.
>

Here is short explanation of default buildpath configuration and the way
to reconfigure java builder to use WEB-INF/classes as output folder:
http://dev.eclipse.org/newslists/news.eclipse.webtools/msg11 532.html

Hope that helps!
Re: dynamic web project [message #225723 is a reply to message #225718] Thu, 25 December 2008 22:02 Go to previous messageGo to next message
Anna  is currently offline Anna
Messages: 24
Registered: July 2009
Junior Member
Vadim, thank you so much for your reply.

I've tried to follow the conversation, but not quite sure what's going on.
I don't have much experience with Eclipse but need to learn and use it as
soon as possible.
Would you please give me a step by step instruction on how to reconfigure
Eclipse.

Your help is greatly appreciated.
Re: dynamic web project [message #225748 is a reply to message #225709] Mon, 29 December 2008 07:49 Go to previous messageGo to next message
Eclipse User
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Anna,

could you explain your use case? Why does the default output directory not work?
As it is your first web project, the defaults should be fine ;-).

Best regards

Wolfgang

Anna schrieb:
> 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.
Re: dynamic web project [message #225780 is a reply to message #225709] Mon, 29 December 2008 11:45 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3131
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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
Re: dynamic web project - off topic: why still on Europa? [message #225817 is a reply to message #225780] Tue, 30 December 2008 20:27 Go to previous messageGo to next message
Eclipse User
Originally posted by: david_williams.linux.vnet.ibm.com

Windofkeltia wrote:
>
> We still use Europa, ....
Just curious about the big picture of WTP and Eclipse ... why stay on
Europa? I assume it's some other tools or add-ins that are only on Europa?
Re: dynamic web project - off topic: why still on Europa? [message #225824 is a reply to message #225817] Thu, 01 January 2009 15:52 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3131
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

David Williams wrote:
> Windofkeltia wrote:
>>
>> We still use Europa, ....
> Just curious about the big picture of WTP and Eclipse ... why stay on
> Europa? I assume it's some other tools or add-ins that are only on Europa?
>

I am the sort of person to move to and keep up with the latest thing.
However, my work colleagues are still on Europa (I started my present
employment on 1 August this year only) and I had some trouble getting
our stuff going on Ganymede (although, I think it was more a problem of
openSuSE 11 64-bit and the JRE than Eclipse). So I'm running openSuSE
10.3 32-bit and Europa. My colleagues are all Windoz users.

Anyway, I'm also the sort of person to spend more time in productive
work than hacking and experimenting, so Europa suits me because it
works great.

In another month, we're moving some of our code from Java 1.4 to 1.5/6.
Perhaps this will be the moment to attempt the leap again.

Best to all and to all a happy, productive and EMPLOYED new year!

Russ
Re: dynamic web project [message #226165 is a reply to message #225748] Wed, 07 January 2009 15:09 Go to previous messageGo to next message
Anna  is currently offline Anna
Messages: 24
Registered: July 2009
Junior Member
Wolfgang thanks!

I've changed the source folder under project property, and it works now.

Thanks again,
Anna
Re: dynamic web project [message #226171 is a reply to message #225780] Wed, 07 January 2009 15:12 Go to previous message
Anna  is currently offline Anna
Messages: 24
Registered: July 2009
Junior Member
Russ Bateman thanks, it works!
Previous Topic:Eclipse and Glassfish
Next Topic:JPA, using it, and XML mappings.
Goto Forum:
  


Current Time: Mon Jul 28 08:37:50 EDT 2014

Powered by FUDForum. Page generated in 0.01875 seconds