|Re: Help with Hello World on WTP 1.0.2 [message #169585 is a reply to message #169534]
||Thu, 18 May 2006 12:20
| Larry Isaacs
Registered: July 2009
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.
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:
> 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
> ( 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.
Powered by FUDForum
. Page generated in 0.06931 seconds