Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Help with Hello World on WTP 1.0.2
Help with Hello World on WTP 1.0.2 [message #169534] Thu, 18 May 2006 04:41 Go to next message
Tommy Vercetti is currently offline Tommy Vercetti
Messages: 35
Registered: July 2009
Member
This is with Java 1.5.06

My steps:

Fresh install of Tomcat 5.5.17
Configured CATALINA_HOME
Fresh install of WTP 1.0.2 from the all-in-one distribution.
Create a new Dynamic Web Project named "Test"
Add a single JSP page "test.jsp"
Configure the server within Eclipse
Run the project. I get a 404 "page not found" error at:
http://localhost:8080/Test/test.jsp"
Just testing "http://localhost:8080/", I get a 404 error as well.

If I quit the IDE, and launch Tomcat normally (via startup.bat), it
works. What am I doing wrong? Or what can I do to diagnose?

I've looked on the Eclipse website for starter help. I've found this
tutorial
( http://www.eclipse.org/webtools/community/tutorials/BuildJ2E EWebApp/BuildJ2EEWebApp.html)
but it's really out of date (from 2004; clearly way before WTP 1.0.2)
and doesn't match the GUI that I see.
Re: Help with Hello World on WTP 1.0.2 [message #169585 is a reply to message #169534] Thu, 18 May 2006 12:20 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
What you describe works for me, though I can't say whether what I did
for "Configure the server within Eclipse" and "Run the project" were the
same as what you did. Perhaps you could provide some more detail.

Note that getting 404 for "http://localhost:8080/" is normal, as the
default Tomcat configuration in Eclipse provides an "empty" ROOT webapp
and directory listings are disabled by default in Tomcat 5.5.17. There
may be some other simple reason as to why
"http://localhost:8080/Test/test.jsp" also gave a 404, such as test.jsp
being in the wrong folder or having a case mismatch. However, this info
assumes my guesses about your configuration are correct.

You may find it helpful to double-click on the Tomcat server in the
Servers view, click on the "Open launch configuration" link in the
configuration editor, switch to the Arguments tab and note the value of
"catalina.base" in the VM arguments. It will explain why Tomcat started
within Eclipse may not act the same as when started outside of Eclipse.
Hope that helps.

Cheers,
Larry

Tommy Vercetti wrote:
> This is with Java 1.5.06
>
> My steps:
>
> Fresh install of Tomcat 5.5.17
> Configured CATALINA_HOME
> Fresh install of WTP 1.0.2 from the all-in-one distribution.
> Create a new Dynamic Web Project named "Test"
> Add a single JSP page "test.jsp"
> Configure the server within Eclipse
> Run the project. I get a 404 "page not found" error at:
> http://localhost:8080/Test/test.jsp"
> Just testing "http://localhost:8080/", I get a 404 error as well.
>
> If I quit the IDE, and launch Tomcat normally (via startup.bat), it
> works. What am I doing wrong? Or what can I do to diagnose?
>
> I've looked on the Eclipse website for starter help. I've found this
> tutorial
> ( http://www.eclipse.org/webtools/community/tutorials/BuildJ2E EWebApp/BuildJ2EEWebApp.html)
> but it's really out of date (from 2004; clearly way before WTP 1.0.2)
> and doesn't match the GUI that I see.
Re: Help with Hello World on WTP 1.0.2 [message #171250 is a reply to message #169534] Thu, 15 June 2006 07:30 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
Tommy Vercetti wrote:
> This is with Java 1.5.06
>
> My steps:
>
> Fresh install of Tomcat 5.5.17
> Configured CATALINA_HOME

From the mention of the CATALINA_HOME variable, it almost sounds
like you've installed both the Sysdeo Tomcat plugin and WTP, and may
be using one to configure the server and the other to launch it.

--
- Nitin


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Editing JSP files freezes Eclipse
Next Topic:Drag and drop problem in XML View
Goto Forum:
  


Current Time: Sun Oct 26 04:24:38 GMT 2014

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

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