Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Why can not tomcat be started from within eclipse ?
Why can not tomcat be started from within eclipse ? [message #226848] Sun, 18 January 2009 06:57 Go to next message
Tom is currently offline Tom
Messages: 4
Registered: July 2009
Junior Member
My environment:
Windows XP, SP3
Eclipse 3.4.1 (and I have also tried with 3.4)
Java JRE configured in eclipse: version 1.6.0_02
Tomcat 6.0.18 (and I have also tried with versions 6.0.14 and 6.0.16)

I have downloaded tomcat (and have even tried with three version 6.0.14,
6.0.16 and 6.0.18) and then configured eclipse (3.4 and have now also
tried with eclipse 3.4.1) to use some of these tomcat servers, but with no
luck.

I have configured them with Window-Preferences-Server-Runtime
Environments, and then pointed to the root directory where I unzipped
tomcat, as described here:
http://www.vogella.de/articles/EclipseWTP/article.html#termi nology
though with the difference that I am using tomcat 6, and also I use
jre1.6.0_02.

When I go to Window-Show View-Servers, and then rightclick some of my
configured tomcat servers (e.g. 6.0.18) then it looks fine, i.e. the state
says "Started" and I see no exceptions in the "Console" view, but it looks
like this:
2009-jan-18 12:20:40 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: D:\Program
Files\Java\jre1.6.0_02\bin;.;D:\WINDOWS\Sun\Java\bin;D:\WIND OWS\system32;D:\WINDOWS;D:/Program
Files/Java/jre1.6.0_02/bin/client;D:/Program
Files/Java/jre1.6.0_02/bin;D:\ruby\bin;D:\PHP\;D:\Perl\site\ bin;D:\Perl\bin;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\Sy stem32\Wbem;D:\Program
Files\ATI
Technologies\ATI.ACE\Core-Static;D:\Sun\SDK\bin;D:\Sun\SDK\j dk\bin;D:\Program
Files\MySQL\MySQL Server 5.0\bin;D:\Program
Files\TortoiseSVN\bin;D:\Program
Files\PostgreSQL\8.3\bin;D:\gtk\bin;D:\Program Files\Common
Files\GTK\2.0\bin;D:\groovy\bin;D:\grails-1.0.3\grails\bin;
2009-jan-18 12:20:42 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
2009-jan-18 12:20:42 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1471 ms
2009-jan-18 12:20:42 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
2009-jan-18 12:20:42 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
2009-jan-18 12:20:42 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
2009-jan-18 12:20:42 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
2009-jan-18 12:20:42 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
2009-jan-18 12:20:42 org.apache.catalina.startup.Catalina start
INFO: Server startup in 169 ms


Then when I try my web browser with the URL
http://localhost:8080/
I get the message
"HTTP Status 404 - /
description The requested resource (/) is not available."

However, when I start the same tomcat (e.g. 6.0.18) by using the command
prompt and executing
"D:\apache-tomcat-6.0.18\bin\startup.bat"
then I can indeed go to
http://localhost:8080/
without a problem...

So, to sum up, my problem is that I can not start tomcat from within
eclipse, while eclipse does not seem to give me any clues about what is
wrong (i.e. no exception message, and it displays a green "Started" state
as everything would be okay... while the web browser message obviously
does not agree...)

/ Tom
Re: Why can not tomcat be started from within eclipse ? [message #226854 is a reply to message #226848] Sun, 18 January 2009 09:55 Go to previous messageGo to next message
Eclipse User
Originally posted by: dcarver.starstandard.org

Have you reviewed the Tomcat FAQ?

http://wiki.eclipse.org/WTP_Tomcat_FAQ

It might have your answer.

Dave

Tom wrote:
> My environment:
> Windows XP, SP3
> Eclipse 3.4.1 (and I have also tried with 3.4)
> Java JRE configured in eclipse: version 1.6.0_02
> Tomcat 6.0.18 (and I have also tried with versions 6.0.14 and 6.0.16)
>
> I have downloaded tomcat (and have even tried with three version 6.0.14,
> 6.0.16 and 6.0.18) and then configured eclipse (3.4 and have now also
> tried with eclipse 3.4.1) to use some of these tomcat servers, but with
> no luck.
>
> I have configured them with Window-Preferences-Server-Runtime
> Environments, and then pointed to the root directory where I unzipped
> tomcat, as described here:
> http://www.vogella.de/articles/EclipseWTP/article.html#termi nology
> though with the difference that I am using tomcat 6, and also I use
> jre1.6.0_02.
>
> When I go to Window-Show View-Servers, and then rightclick some of my
> configured tomcat servers (e.g. 6.0.18) then it looks fine, i.e. the
> state says "Started" and I see no exceptions in the "Console" view, but
> it looks like this:
> 2009-jan-18 12:20:40 org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path: D:\Program
> Files\Java\jre1.6.0_02\bin;.;D:\WINDOWS\Sun\Java\bin;D:\WIND OWS\system32;D:\WINDOWS;D:/Program
> Files/Java/jre1.6.0_02/bin/client;D:/Program
> Files/Java/jre1.6.0_02/bin;D:\ruby\bin;D:\PHP\;D:\Perl\site\ bin;D:\Perl\bin;D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\Sy stem32\Wbem;D:\Program
> Files\ATI
> Technologies\ATI.ACE\Core-Static;D:\Sun\SDK\bin;D:\Sun\SDK\j dk\bin;D:\Program
> Files\MySQL\MySQL Server 5.0\bin;D:\Program
> Files\TortoiseSVN\bin;D:\Program
> Files\PostgreSQL\8.3\bin;D:\gtk\bin;D:\Program Files\Common
> Files\GTK\2.0\bin;D:\groovy\bin;D:\grails-1.0.3\grails\bin;
> 2009-jan-18 12:20:42 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 2009-jan-18 12:20:42 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1471 ms
> 2009-jan-18 12:20:42 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 2009-jan-18 12:20:42 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
> 2009-jan-18 12:20:42 org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 2009-jan-18 12:20:42 org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> 2009-jan-18 12:20:42 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/16 config=null
> 2009-jan-18 12:20:42 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 169 ms
>
>
> Then when I try my web browser with the URL
> http://localhost:8080/
> I get the message
> "HTTP Status 404 - /
> description The requested resource (/) is not available."
>
> However, when I start the same tomcat (e.g. 6.0.18) by using the command
> prompt and executing "D:\apache-tomcat-6.0.18\bin\startup.bat"
> then I can indeed go to http://localhost:8080/
> without a problem...
>
> So, to sum up, my problem is that I can not start tomcat from within
> eclipse, while eclipse does not seem to give me any clues about what is
> wrong (i.e. no exception message, and it displays a green "Started"
> state as everything would be okay... while the web browser message
> obviously does not agree...)
>
> / Tom
>
Re: Why can not tomcat be started from within eclipse ? [message #226861 is a reply to message #226854] Sun, 18 January 2009 16:26 Go to previous message
Tom is currently offline Tom
Messages: 4
Registered: July 2009
Junior Member
Okay, thank you Dave for the link. I found the solution there, and for
those of you who have googled into this thread to find the solution, I can
tell directly how to fix the problem.

When you have configured your server, as I had done, you rightclick it (in
the view "Windows - Show View - Servers") and choose "Open".
Then in the "Overview" tab you can choose (in the section "Server
Locations") the radiobutton saying "Use tomcat installation".

Further details can be found through this FAQ entry:
http://wiki.eclipse.org/WTP_Tomcat_FAQ#If_I_start_my_Tomcat_ server_and_try_to_display_Tomcat.27s_default_page.2C_why_do_ I_see_a_directory_listing_or_404_error_page.3F
Previous Topic:Creating a web project around an existing file structure?
Next Topic:No grammar constraints(DTD or XML schema) detected for the document
Goto Forum:
  


Current Time: Tue Jul 22 07:39:58 EDT 2014

Powered by FUDForum. Page generated in 0.01500 seconds