Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Missing Contents of WEB-INF directory
Missing Contents of WEB-INF directory [message #210497] Tue, 18 March 2008 12:17 Go to next message
Eclipse User
Originally posted by: eclipse.codeclass.co.uk

I've been developing on an Eclipse WTP project for a short while. I'm
using the JBoss Seam/Tools plugins but I believe this to be a WTP issue.

The contents of my WEB-INF directory don't appear in the project explorer.
They are there on the file system and appear in the navigator. Also,
they are picked up when I build the project.

Can anyone speculate what might have caused this, and suggest a possible
fix/hack?

Many thanks.
Re: Missing Contents of WEB-INF directory [message #210535 is a reply to message #210497] Tue, 18 March 2008 18:43 Go to previous messageGo to next message
Eclipse User
Originally posted by: kosta.bea.com

Actually this is a JDT feature (or mis-feature, depending on your
perspective). Any jar or folder that's on the classpath will not appear
at its original location when looking at the Package Explorer or the
Project Explorer views. Instead, it will appear in one of the various
classpath nodes added by JDT to these views. So look for you jars under
the node called "Web App Libraries".

- Konstantin
Re: Missing Contents of WEB-INF directory [message #210549 is a reply to message #210535] Tue, 18 March 2008 22:46 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3231
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

Konstantin Komissarchik wrote:
> Actually this is a JDT feature (or mis-feature, depending on your
> perspective). Any jar or folder that's on the classpath will not appear
> at its original location when looking at the Package Explorer or the
> Project Explorer views. Instead, it will appear in one of the various
> classpath nodes added by JDT to these views. So look for you jars under
> the node called "Web App Libraries".
>
> - Konstantin

So, while we're on this topic, my friend, tell me if I'm doing wrong.

I'm running Eclipse 3.3.2.

Pursuant to advice I'm getting from several tutorials, I try to delete
the classes subdirectory under my Dynamic Web Project and, using Build
Paths..., attempt to redirect the class file resulting from my servlet
source (.java) to fall under WebContent/WEB-INF/classes.

Now, mind you, when I look in the filesystem (I'm running Windows in
this case though I usually develop under Linux), I do indeed see my
class file down under
WEB-INF/classes/org/example/ch03/HelloServlet.class. However, in the
Package Explorer pane, I do not see a classes subdirectory under WEB-INF.

I'm assuming this is okay, but why would it be so?

Thanks,

Russ Bateman
Re: Missing Contents of WEB-INF directory [message #210586 is a reply to message #210549] Wed, 19 March 2008 00:45 Go to previous messageGo to next message
Lawrence Mandel is currently offline Lawrence Mandel
Messages: 486
Registered: July 2009
Senior Member
Hi Russ,

>Now, mind you, when I look in the filesystem (I'm running Windows in
>this case though I usually develop under Linux), I do indeed see my
>class file down under
>WEB-INF/classes/org/example/ch03/HelloServlet.class. However, in the
>Package Explorer pane, I do not see a classes subdirectory under WEB-INF.
>
>I'm assuming this is okay, but why would it be so?

If you want to see all of the files in your project within Eclipse try the
Navigator view (Window->Show View->Navigator). The Navigator view doesn't
hide any files.

Lawrence Mandel
-
Co-author Eclipse Web Tools Platform: Developing Java Web Applications
http://www.eclipsewtp.org
Re: Missing Contents of WEB-INF directory [message #210602 is a reply to message #210535] Wed, 19 March 2008 10:07 Go to previous messageGo to next message
Eclipse User
Originally posted by: eclipse.codeclass.co.uk

Thanks for your help... unfortunately, these are all xml files - e.g.
faces-config.xml, components.xml, pages.xml and I can't see them anywhere
in the package explorer! They ARE there in the navigator. How is the
package explorer configured (I don't know much about Eclipse
configuration)?
Re: Missing Contents of WEB-INF directory [message #210929 is a reply to message #210602] Tue, 25 March 2008 17:17 Go to previous message
Eclipse User
Originally posted by: eclipse.codeclass.co.uk

Anyone, please? My XML files (e.g. faces-config.xml) in WEB-INF no longer
appear in the Package Explorer. If someone could give me some pointers as
to how Eclipse determines what resources appear in the Package Explorer, I
would be most grateful.
Previous Topic:JSPs not compiling
Next Topic:JavaScript debugging not available
Goto Forum:
  


Current Time: Sat Nov 01 02:48:38 GMT 2014

Powered by FUDForum. Page generated in 0.01750 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software