Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Red cross next to project???
Red cross next to project??? [message #72565] Wed, 09 February 2005 04:39 Go to next message
Eclipse UserFriend
Hello,

I am just starting to use WTP. I'm migrating a project that was used with
Indeo Tomcat plugin. Everything works fine except that I always have a red
cross with the icon of my project, as if I had an error, but none is
listed. Do you know what could be the problem?

Thank you in advance,
Cristi.
Re: Red cross next to project??? [message #72599 is a reply to message #72565] Wed, 09 February 2005 06:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jrduncans.stephenduncanjr.com

Cristian Spiescu wrote:
> Hello,
>
> I am just starting to use WTP. I'm migrating a project that was used
> with Indeo Tomcat plugin. Everything works fine except that I always
> have a red cross with the icon of my project, as if I had an error, but
> none is listed. Do you know what could be the problem?
>
> Thank you in advance,
> Cristi.
>


When this happened to me, it was because my web.xml file wasn't
referencing the dtd with the full url. If you have the J2EE Project
Explorer View, do you have a Deployment Descriptor section?

Your DOCTYPE line in your web.xml should be something like this:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">


(The URI for the DTD is the important part)

-Stephen Duncan Jr
Re: Red cross next to project??? [message #72795 is a reply to message #72599] Wed, 09 February 2005 16:59 Go to previous message
Eclipse UserFriend
Thank you very much.

I modified the web.xml file BUT, it had exactly the DOCTYPE line that you
wrote. I inspired myself from a sample app, and I deleted the DOCTYPE
section, and added instead:

<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

After restarting Eclipse the J2EE Project Explorer view showed the DD
section.

So now it works. Thank you.

Regards,
Cristian.


Stephen Duncan Jr wrote:

> When this happened to me, it was because my web.xml file wasn't
> referencing the dtd with the full url. If you have the J2EE Project
> Explorer View, do you have a Deployment Descriptor section?

> Your DOCTYPE line in your web.xml should be something like this:

> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">


> (The URI for the DTD is the important part)

> -Stephen Duncan Jr
Previous Topic:Building a School Schedule WTP Tutorial by Lawrence Mandel
Next Topic:JSP & XML Support
Goto Forum:
  


Current Time: Sun Jul 20 08:15:00 EDT 2025

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

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

Back to the top