|
|
Re: Missing classes in WST Tomcat server execution [message #505696 is a reply to message #505113] |
Mon, 04 January 2010 09:34  |
Eclipse User |
|
|
|
Hacking Bear wrote:
> I know the partial answer. I have to copy over the WEB-INF/classes of my
> project and also I need to add the dependent projects (but not the web
> project itself to the run target.)
>
> Copying classes fodler is obviously not acceptable as i don't know if
> I'm running on the old classes or newly compiled classes when my java
> files are modified.
>
> Any clue on these problems?
>
> Thanks
Eclipse supports and strongly encourages the separation of source and
build artifacts, such as compiled class files. WTP's Dynamic Web
Project fully supports this. By default, Java source is located under
the "src" folder in the project. The Java output folder defaults to
"build/classes". When the web project is published to a server, the
content under "build/classes" will be copied to the "WEB-INF/classes"
folder of the webapp. Thus, you don't need to do anything special to
get your Java classes under "WEB-INF/classes" in the published webapp.
Is there a reason you have redirected the Java output folder to what I
assume is the "WebContent\WEB-INF\classes" folder? There is some
support for this in WTP, called "single root", but if not configured
correctly, you can get the behavior you are seeing. My picture of
exactly what your project currently looks like and its dependencies
isn't clear enough to speculate further.
Cheers,
Larry
|
|
|
Powered by
FUDForum. Page generated in 0.02635 seconds