Web Page in Eclipse

Getting an Error: 404

Page 1 of 1

3 Replies - 6482 Views - Last Post: 09 September 2009 - 03:14 PM

#1 trixt.er  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 52
  • View blog
  • Posts: 428
  • Joined: 28-September 08

Web Page in Eclipse

Posted 06 September 2009 - 08:17 PM

So I am new to this. Do I a need to program a servlet? I could use JSF.
I am attempting to program my first web page through the Eclipse IDE with the use of Apache Tomcat server.
I have created a simple HTML file called index.html
<html>
   <body>
	  <h1>A Heading</h1>
	  <p>A paragraph.</p>
   </body>
</html>


And in the web.xml...
<welcome-file-list>
   <welcome-file>index.html</welcome-file>
</welcome-file-list>


So when http://localhost:8080/ is typed in the URL it should default to the index.html.
However I am getting the following error after starting up tomcat and trying to run in windows vista through IE 7.

HTTP Status 404 - /

--------------------------------------------------------------------------------

type Status report

message /

description The requested resource (/) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.25

I even tried tagging index.html onto the end of the URL. No luck. Please help me.

Apache Tomcat/5.5.25

Is This A Good Question/Topic? 0
  • +

Replies To: Web Page in Eclipse

#2 ccfre  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 27-August 09

Re: Web Page in Eclipse

Posted 07 September 2009 - 02:29 PM

Apache TomCat is for running java things. Example: JSPs and Servelets.
For running WebPages I would suggest Apache HTTPD.
Basically Apache HTTPD is an implementation of an HTTP server.
To learn more about Apache HTTPD, visit these links:
Developer Info
About Apache HTTPD Project - Learn about what Apache HTTPD is all about
About Apache Licenses - What does it mean to be Open Source
Apache FAQ (Frequently Asked Questions) - Especially Read This
Apache HTTPD Documents - Especially read this if you are clueless about how to start or even what to do with Apache HTTPD.

If you are trying to make a web page, I would not suggest using Eclipse IDE as it is mostly for java programmers. I would suggest the following:
Komozer - since you are obviously new to web development/design. Basically, Kompozer Is a WYSIWYG (What You See Is What You Get) Editor so you can visually build webpages.
Komodo Edit - Komodo Edit is basically your every need text editor including for just about every script or language to do with web design. Plus programmers scritpting too.

Oh and for some web development tutorials:
Tizag.com - This is where I started off.

pretty much there you go.
if you need help just post a response or if I didn't answer your question good enough do the same.
Was This Post Helpful? 0
  • +
  • -

#3 trixt.er  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 52
  • View blog
  • Posts: 428
  • Joined: 28-September 08

Re: Web Page in Eclipse

Posted 09 September 2009 - 10:53 AM

View Postccfre, on 7 Sep, 2009 - 01:29 PM, said:

Apache TomCat is for running java things. Example: JSPs and Servelets.

Java is what makes web pages powerful. JSP, JSF, Spring, RichFaces, JPA...
Apache TomCat is the way to go. I want dynamic powerful web pages, not
static kiddie pages.
Was This Post Helpful? 0
  • +
  • -

#4 ccfre  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 27-August 09

Re: Web Page in Eclipse

Posted 09 September 2009 - 03:14 PM

View Posttrixt.er, on 9 Sep, 2009 - 09:53 AM, said:

View Postccfre, on 7 Sep, 2009 - 01:29 PM, said:

Apache TomCat is for running java things. Example: JSPs and Servelets.

Java is what makes web pages powerful. JSP, JSF, Spring, RichFaces, JPA...
Apache TomCat is the way to go. I want dynamic powerful web pages, not
static kiddie pages.


Yes I totally agree... Java Is what makes a web page so powerful. And the only reason I am saying that Apache HTTPD is best for this situation is because obviously you are new to web design but are familiar with Java and so on. I am not judging, it is just that when you say "Simple" Webpage, i would not even qualify it as that... And for a begginer in web design I was just suggesting that you take it slow and go with the easiest option. Because you need to have a nice looking webpage before you can add some java, or at least that's the way i look at it. Oh and I only use Apache TomCat to test my java code. And same with Apache HTTPD to test my webpages as they would look on my server.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1