|
Re: Help with Hello World on WTP 1.0.2 [message #169585 is a reply to message #169534] |
Thu, 18 May 2006 08:20   |
Eclipse User |
|
|
|
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 03:30  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04454 seconds