Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Developing web applications on Debian Etch with Tomcat5 & Eclipse
Developing web applications on Debian Etch with Tomcat5 & Eclipse [message #223788] Thu, 13 November 2008 14:10 Go to next message
Eclipse UserFriend
Originally posted by: csanyipal.gmail.com

Hi,

I have installed on Debian GNU/Linux Etch Tomcat5 & Eclipse.

I followed the advices at:
http://www.ibm.com/developerworks/opensource/library/os-ecli pse-tomcat/

have setup Eclipse and can to create a new Web project.

I can to deploy this project to Tomcat5 server but when I want to open
it in Firefox browser then there I get a blank page with error
message:

HTTP Status 404 - /WebTervezetPelda

type Status report

message /WebTervezetPelda

description The requested resource (/WebTervezetPelda) is not available.
Apache Tomcat/5.0

Why haven't I success?

Any advices will be appreciated!

--
Regards, Paul Csanyi
http://www.freewebs.com/csanyi-pal/index.htm
Re: Developing web applications on Debian Etch with Tomcat5 & Eclipse [message #223795 is a reply to message #223788] Thu, 13 November 2008 14:59 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Paul Csanyi wrote:
> Hi,
>
> I have installed on Debian GNU/Linux Etch Tomcat5 & Eclipse.
>
> I followed the advices at:
> http://www.ibm.com/developerworks/opensource/library/os-ecli pse-tomcat/
>
> have setup Eclipse and can to create a new Web project.
>
> I can to deploy this project to Tomcat5 server but when I want to open
> it in Firefox browser then there I get a blank page with error
> message:
>
> HTTP Status 404 - /WebTervezetPelda
>
> type Status report
>
> message /WebTervezetPelda
>
> description The requested resource (/WebTervezetPelda) is not available.
> Apache Tomcat/5.0
>
> Why haven't I success?
>
> Any advices will be appreciated!
>

There isn't much detail with which to make much of a guess. Assuming
your project is named "WebTervezetPelda" (an thus its context-root
defaulted to "WebTervezetPelda") then the fact that the requested
resource doesn't contain a trailing slash suggests that your project
didn't deploy successfully and Tomcat is looking for the
"WebTervezetPelda" resource in the ROOT/default webapp and not finding
it. You may want to check the Console log for the Tomcat server to see
if anything unusual appears there.

For details about the Tomcat support in WTP, see
http://wiki.eclipse.org/WTP_Tomcat_FAQ.

Cheers,
Larry
Re: Developing web applications on Debian Etch with Tomcat5 & Eclipse [message #223856 is a reply to message #223795] Fri, 14 November 2008 21:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csanyipal.gmail.com

Larry Isaacs írta:
> Paul Csanyi wrote:
>>
>> I have installed on Debian GNU/Linux Etch Tomcat5 & Eclipse.
>>
>> I followed the advices at:
>> http://www.ibm.com/developerworks/opensource/library/os-ecli pse-tomcat/
>>
>> have setup Eclipse and can to create a new Web project.

>> I can to deploy this project to Tomcat5 server but when I want to open

Excuse me, this is not true.

> There isn't much detail with which to make much of a guess. Assuming


Publishing failed
The Tomcat server configuration at /Servers/Tomcat v5.0 Server @
localhost-config is missing. Check the server for errors.
The Tomcat server configuration at /Servers/Tomcat v5.0 Server @
localhost-config is missing. Check the server for errors.

> your project is named "WebTervezetPelda" (an thus its context-root
> defaulted to "WebTervezetPelda") then the fact that the requested
> resource doesn't contain a trailing slash suggests that your project
> didn't deploy successfully and Tomcat is looking for the
> "WebTervezetPelda" resource in the ROOT/default webapp and not finding
> it. You may want to check the Console log for the Tomcat server to see
> if anything unusual appears there.

Where can I find that console log?

I tried to search it in /var/log/tomcat5/catalina_2008-11-14.log

---->
Using CATALINA_BASE: /var/lib/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /var/lib/tomcat5/temp
Using JAVA_HOME: /usr/lib/jvm/java-1.5.0-sun
Using Security Manager
Nov 14, 2008 8:42:37 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Nov 14, 2008 8:42:37 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1873 ms
Nov 14, 2008 8:42:37 PM org.apache.catalina.core.StandardService start
INFO: Starting service Tomcat-Standalone
Nov 14, 2008 8:42:37 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0
Nov 14, 2008 8:42:37 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 14, 2008 8:42:37 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Nov 14, 2008 8:42:37 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/var/lib/tomcat5/conf/Catalina/localhost/manage
r.xml
Nov 14, 2008 8:42:38 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/var/lib/tomcat5/conf/Catalina/localhost/admin.
xml
Nov 14, 2008 8:42:41 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/var/lib/tomcat5/conf/Catalina/localhost/balanc
er.xml
Nov 14, 2008 8:42:41 PM org.apache.commons.beanutils.MethodUtils
getMatchingAccessibleMethod
WARNING: Cannot use JVM pre-1.4 access bug workaround due to restrictive
security manager.
Nov 14, 2008 8:42:41 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/var/lib/tomcat5/conf/Catalina/localhost/tomcat
-docs.xml
Nov 14, 2008 8:42:42 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:/var/lib/tomcat5/webapp
s/jsp-examples
Nov 14, 2008 8:42:42 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path from URL
file:/var/lib/tomcat5/webapps/ROOT
Nov 14, 2008 8:42:42 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:/var/lib/tomcat5/webapps/webd
av
Nov 14, 2008 8:42:42 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from
URL file:/var/lib/tomcat5/w
ebapps/servlets-examples
Nov 14, 2008 8:42:42 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
Nov 14, 2008 8:42:43 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Nov 14, 2008 8:42:43 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=17/56
config=/var/lib/tomcat5/conf/jk2.properties
Nov 14, 2008 8:42:43 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5649 ms
----<

> For details about the Tomcat support in WTP, see
> http://wiki.eclipse.org/WTP_Tomcat_FAQ.

Thanks!
Re: Developing web applications on Debian Etch with Tomcat5 & Eclipse [message #223863 is a reply to message #223856] Sat, 15 November 2008 02:26 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
The purpose of the Servers project is explained in the Tomcat FAQ by
this question:

http://wiki.eclipse.org/WTP_Tomcat_FAQ#When_I_create_my_firs t_Tomcat_server.2C_why_is_a_Servers_project_created_in_my_wo rkspace.3F

Since the server configuration is part of what's published, the Servers
project needs to be open for publishing to succeed. The error you are
seeing is what would occur if the Servers project is closed. Is this
the case?

Note that there is an issue with the Close Unrelated Projects command in
that it undesirably closes the Servers project, which can lead to this
behavior. For details see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149980

Cheers,
Larry

Paul Csanyi wrote:
> Larry Isaacs írta:
>> Paul Csanyi wrote:
>>>
>>> I have installed on Debian GNU/Linux Etch Tomcat5 & Eclipse.
>>>
>>> I followed the advices at:
>>> http://www.ibm.com/developerworks/opensource/library/os-ecli pse-tomcat/
>>>
>>> have setup Eclipse and can to create a new Web project.
>
>>> I can to deploy this project to Tomcat5 server but when I want to open
>
> Excuse me, this is not true.
>
>> There isn't much detail with which to make much of a guess. Assuming
>
>
> Publishing failed
> The Tomcat server configuration at /Servers/Tomcat v5.0 Server @
> localhost-config is missing. Check the server for errors.
> The Tomcat server configuration at /Servers/Tomcat v5.0 Server @
> localhost-config is missing. Check the server for errors.
>
>> your project is named "WebTervezetPelda" (an thus its context-root
>> defaulted to "WebTervezetPelda") then the fact that the requested
>> resource doesn't contain a trailing slash suggests that your project
>> didn't deploy successfully and Tomcat is looking for the
>> "WebTervezetPelda" resource in the ROOT/default webapp and not finding
>> it. You may want to check the Console log for the Tomcat server to
>> see if anything unusual appears there.
>
> Where can I find that console log?

>
> I tried to search it in /var/log/tomcat5/catalina_2008-11-14.log
>
> ---->
> Using CATALINA_BASE: /var/lib/tomcat5
> Using CATALINA_HOME: /usr/share/tomcat5
> Using CATALINA_TMPDIR: /var/lib/tomcat5/temp
> Using JAVA_HOME: /usr/lib/jvm/java-1.5.0-sun
> Using Security Manager
> Nov 14, 2008 8:42:37 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8180
> Nov 14, 2008 8:42:37 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1873 ms
> Nov 14, 2008 8:42:37 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Tomcat-Standalone
> Nov 14, 2008 8:42:37 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.0
> Nov 14, 2008 8:42:37 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Nov 14, 2008 8:42:37 PM org.apache.catalina.core.StandardHost getDeployer
> INFO: Create Host deployer for direct deployment ( non-jmx )
> Nov 14, 2008 8:42:37 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL
> file:/var/lib/tomcat5/conf/Catalina/localhost/manage
> r.xml
> Nov 14, 2008 8:42:38 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL
> file:/var/lib/tomcat5/conf/Catalina/localhost/admin.
> xml
> Nov 14, 2008 8:42:41 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL
> file:/var/lib/tomcat5/conf/Catalina/localhost/balanc
> er.xml
> Nov 14, 2008 8:42:41 PM org.apache.commons.beanutils.MethodUtils
> getMatchingAccessibleMethod
> WARNING: Cannot use JVM pre-1.4 access bug workaround due to restrictive
> security manager.
> Nov 14, 2008 8:42:41 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Processing Context configuration file URL
> file:/var/lib/tomcat5/conf/Catalina/localhost/tomcat
> -docs.xml
> Nov 14, 2008 8:42:42 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /jsp-examples from URL
> file:/var/lib/tomcat5/webapp
> s/jsp-examples
> Nov 14, 2008 8:42:42 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path from URL
> file:/var/lib/tomcat5/webapps/ROOT
> Nov 14, 2008 8:42:42 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /webdav from URL
> file:/var/lib/tomcat5/webapps/webd
> av
> Nov 14, 2008 8:42:42 PM org.apache.catalina.core.StandardHostDeployer
> install
> INFO: Installing web application at context path /servlets-examples from
> URL file:/var/lib/tomcat5/w
> ebapps/servlets-examples
> Nov 14, 2008 8:42:42 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8180
> Nov 14, 2008 8:42:43 PM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8009
> Nov 14, 2008 8:42:43 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=17/56
> config=/var/lib/tomcat5/conf/jk2.properties
> Nov 14, 2008 8:42:43 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 5649 ms
> ----<
>
>> For details about the Tomcat support in WTP, see
>> http://wiki.eclipse.org/WTP_Tomcat_FAQ.
>
> Thanks!
Re: Developing web applications on Debian Etch with Tomcat5 & Eclipse [message #223881 is a reply to message #223863] Mon, 17 November 2008 21:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csanyipal.gmail.com

Larry Isaacs írta:
> The purpose of the Servers project is explained in the Tomcat FAQ by
> this question:
>
> http://wiki.eclipse.org/WTP_Tomcat_FAQ#When_I_create_my_firs t_Tomcat_server.2C_why_is_a_Servers_project_created_in_my_wo rkspace.3F
>
>
> Since the server configuration is part of what's published, the Servers
> project needs to be open for publishing to succeed. The error you are
> seeing is what would occur if the Servers project is closed. Is this
> the case?

Yes, it is.

When I open the Servers project,and try to publish my project, the error
is gone.

So I can now to publish the WebTervezetPelda project but still can't to
see it on tomcat server: http://localhost:8180/WebTervezetPelda/

I get the error message:

HTTP Status 404 - /WebTervezetPelda/

type Status report

message /WebTervezetPelda/

description The requested resource (/WebTervezetPelda/) is not available.
Apache Tomcat/5.0



Well, what do you advice me now, how to solve my problem?

--
Regards,
Paul
Re: Developing web applications on Debian Etch with Tomcat5 & Eclipse [message #223888 is a reply to message #223881] Tue, 18 November 2008 11:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csanyipal.gmail.com

Paul Csanyi írta:
> Larry Isaacs írta:
>> The purpose of the Servers project is explained in the Tomcat FAQ by
>> this question:
>>
>> http://wiki.eclipse.org/WTP_Tomcat_FAQ#When_I_create_my_firs t_Tomcat_server.2C_why_is_a_Servers_project_created_in_my_wo rkspace.3F
>>
>>
>> Since the server configuration is part of what's published, the
>> Servers project needs to be open for publishing to succeed. The error
>> you are seeing is what would occur if the Servers project is closed.
>> Is this the case?
>
> Yes, it is.
>
> When I open the Servers project,and try to publish my project, the error
> is gone.
>
> So I can now to publish the WebTervezetPelda project but still can't to
> see it on tomcat server: http://localhost:8180/WebTervezetPelda/
>
> I get the error message:
>
> HTTP Status 404 - /WebTervezetPelda/
>
> type Status report
>
> message /WebTervezetPelda/
>
> description The requested resource (/WebTervezetPelda/) is not available.
> Apache Tomcat/5.0
>
> Well, what do you advice me now, how to solve my problem?

I get an error message when I try right mouse click on index.jsp file
and Run As --> Run on Server

Several ports (8005, 8180, 8009) required by Tomcat v5.0 Server @
localhost are already in use. The server may already be running in
another process, or a system process may be using the port. To start
this server you will need to stop the other process or change the port
number(s).

Now when I stop Tomcat5 server on my Debian Etch system with command:
sudo /etc/init.d/tomcat5 stop
Stopping Tomcat 5 servlet engine: .tomcat5.

and try to run index.jsp as abowe then I get an error message:
Server Tomcat v5.0 Server @ localhost failed to start.

and get on Eclipse Console the followings:

Bootstrap: Class loader creation threw exception
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.apache.tomcat.util.compat.JdkCompat.<clinit>(JdkCompat.java:55)
at
org.apache.catalina.startup.ClassLoaderFactory.<clinit>(ClassLoaderFactory.java:63)
at
org.apache.catalina.startup.Bootstrap.initClassLoaders(Boots trap.java:103)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:19 6)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:40 2)

So what is the solution for this problem?

--
Regards,
Paul
Re: Developing web applications on Debian Etch with Tomcat5 & Eclipse [message #223902 is a reply to message #223888] Tue, 18 November 2008 14:00 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Paul Csanyi wrote:
> Paul Csanyi írta:
>> Larry Isaacs írta:
>>> The purpose of the Servers project is explained in the Tomcat FAQ by
>>> this question:
>>>
>>> http://wiki.eclipse.org/WTP_Tomcat_FAQ#When_I_create_my_firs t_Tomcat_server.2C_why_is_a_Servers_project_created_in_my_wo rkspace.3F
>>>
>>>
>>> Since the server configuration is part of what's published, the
>>> Servers project needs to be open for publishing to succeed. The
>>> error you are seeing is what would occur if the Servers project is
>>> closed. Is this the case?
>>
>> Yes, it is.
>>
>> When I open the Servers project,and try to publish my project, the
>> error is gone.
>>
>> So I can now to publish the WebTervezetPelda project but still can't
>> to see it on tomcat server: http://localhost:8180/WebTervezetPelda/
>>
>> I get the error message:
>>
>> HTTP Status 404 - /WebTervezetPelda/
>>
>> type Status report
>>
>> message /WebTervezetPelda/
>>
>> description The requested resource (/WebTervezetPelda/) is not available.
>> Apache Tomcat/5.0
>>
>> Well, what do you advice me now, how to solve my problem?
>
> I get an error message when I try right mouse click on index.jsp file
> and Run As --> Run on Server
>
> Several ports (8005, 8180, 8009) required by Tomcat v5.0 Server @
> localhost are already in use. The server may already be running in
> another process, or a system process may be using the port. To start
> this server you will need to stop the other process or change the port
> number(s).
>
> Now when I stop Tomcat5 server on my Debian Etch system with command:
> sudo /etc/init.d/tomcat5 stop
> Stopping Tomcat 5 servlet engine: .tomcat5.

I would review the questions in the Getting Started section of the
Tomcat FAQ: http://wiki.eclipse.org/WTP_Tomcat_FAQ#Getting_Started. The
default WTP behavior is to create a separate instance of a Tomcat
server. As indicated in the FAQ, you can run the Eclipse Tomcat server
simultaneously with the installed Tomcat server provided you change the
ports to not conflict.

>
> and try to run index.jsp as abowe then I get an error message:
> Server Tomcat v5.0 Server @ localhost failed to start.
>
> and get on Eclipse Console the followings:
>
> Bootstrap: Class loader creation threw exception
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
> at org.apache.tomcat.util.compat.JdkCompat.<clinit>(JdkCompat.java:55)
> at
> org.apache.catalina.startup.ClassLoaderFactory.<clinit>(ClassLoaderFactory.java:63)
>
> at
> org.apache.catalina.startup.Bootstrap.initClassLoaders(Boots trap.java:103)
> at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:19 6)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:40 2)
>
> So what is the solution for this problem?

It looks like the fourth paragraph of the following question may apply:
http://wiki.eclipse.org/WTP_Tomcat_FAQ#What_does_it_mean_if_ WTP_says_my_server_.22failed_to_start.22.3F

You may want to consider downloading a tar.gz from the Apache Tomcat
site and using that as was done in the tutorial you cited. When Tomcat
is "packaged", certain packaging decisions must be made. These
decisions tend to favor use of the Tomcat server as a "production"
server and can adversely affect general use. Use of a tar.gz would
avoid these complications.

Cheers,
Larry

>
> --
> Regards,
> Paul
Re: Developing web applications on Debian Etch with Tomcat5 & Eclipse [message #223916 is a reply to message #223902] Tue, 18 November 2008 15:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csanyipal.gmail.com

Larry Isaacs írta:
> Paul Csanyi wrote:
>> Paul Csanyi írta:
>>> Larry Isaacs írta:

>> I get an error message when I try right mouse click on index.jsp file
>> and Run As --> Run on Server
>>
>> Several ports (8005, 8180, 8009) required by Tomcat v5.0 Server @
>> localhost are already in use. The server may already be running in
>> another process, or a system process may be using the port. To start
>> this server you will need to stop the other process or change the port
>> number(s).

> It looks like the fourth paragraph of the following question may apply:
> http://wiki.eclipse.org/WTP_Tomcat_FAQ#What_does_it_mean_if_ WTP_says_my_server_.22failed_to_start.22.3F
>
>
> You may want to consider downloading a tar.gz from the Apache Tomcat
> site and using that as was done in the tutorial you cited. When Tomcat
> is "packaged", certain packaging decisions must be made. These
> decisions tend to favor use of the Tomcat server as a "production"
> server and can adversely affect general use. Use of a tar.gz would
> avoid these complications.

OK
But I have installed
Eclipse Platform Version: 3.4.1 Build id: M20080911-1700, Tomcat6.0

and Iget the similar error on Windows XP too:

'Starting Tomcat v6.0 Server at localhost' has encountered a problem.

Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at
localhost are already in use. The server may already be running in
another process, or a system process may be using the port. To start
this server you will need to stop the other process or change the port
number(s).

Well, I wish only to setup these tools: Eclipse v 3.2 and Tomcat5.0 on
Debian or Tomcat 6.0 and Eclipse v. 3.4.1 on Windows system so I can to
start to develop web applications.

But this is not so easy..

--
Regards, Paul Chanyi
Re: Developing web applications on Debian Etch with Tomcat5 & Eclipse [message #223924 is a reply to message #223916] Tue, 18 November 2008 16:10 Go to previous messageGo to next message
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
Paul Chanyi wrote:
> Larry Isaacs írta:
>> Paul Csanyi wrote:
>>> Paul Csanyi írta:
>>>> Larry Isaacs írta:
>
>>> I get an error message when I try right mouse click on index.jsp file
>>> and Run As --> Run on Server
>>>
>>> Several ports (8005, 8180, 8009) required by Tomcat v5.0 Server @
>>> localhost are already in use. The server may already be running in
>>> another process, or a system process may be using the port. To start
>>> this server you will need to stop the other process or change the
>>> port number(s).
>
>> It looks like the fourth paragraph of the following question may
>> apply:
>> http://wiki.eclipse.org/WTP_Tomcat_FAQ#What_does_it_mean_if_ WTP_says_my_server_.22failed_to_start.22.3F
>>
>>
>> You may want to consider downloading a tar.gz from the Apache Tomcat
>> site and using that as was done in the tutorial you cited. When
>> Tomcat is "packaged", certain packaging decisions must be made. These
>> decisions tend to favor use of the Tomcat server as a "production"
>> server and can adversely affect general use. Use of a tar.gz would
>> avoid these complications.
>
> OK
> But I have installed
> Eclipse Platform Version: 3.4.1 Build id: M20080911-1700, Tomcat6.0
>
> and Iget the similar error on Windows XP too:
>
> 'Starting Tomcat v6.0 Server at localhost' has encountered a problem.
>
> Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at
> localhost are already in use. The server may already be running in
> another process, or a system process may be using the port. To start
> this server you will need to stop the other process or change the port
> number(s).

Under Linux you can use lsof to find out which program has these ports open.

Cheers
Philippe
Re: Developing web applications on Debian Etch with Tomcat5 & Eclipse [message #223941 is a reply to message #223916] Tue, 18 November 2008 18:10 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Paul Chanyi wrote:
> Larry Isaacs írta:
>> Paul Csanyi wrote:
>>> Paul Csanyi írta:
>>>> Larry Isaacs írta:
>
>>> I get an error message when I try right mouse click on index.jsp file
>>> and Run As --> Run on Server
>>>
>>> Several ports (8005, 8180, 8009) required by Tomcat v5.0 Server @
>>> localhost are already in use. The server may already be running in
>>> another process, or a system process may be using the port. To start
>>> this server you will need to stop the other process or change the
>>> port number(s).
>
>> It looks like the fourth paragraph of the following question may
>> apply:
>> http://wiki.eclipse.org/WTP_Tomcat_FAQ#What_does_it_mean_if_ WTP_says_my_server_.22failed_to_start.22.3F
>>
>>
>> You may want to consider downloading a tar.gz from the Apache Tomcat
>> site and using that as was done in the tutorial you cited. When
>> Tomcat is "packaged", certain packaging decisions must be made. These
>> decisions tend to favor use of the Tomcat server as a "production"
>> server and can adversely affect general use. Use of a tar.gz would
>> avoid these complications.
>
> OK
> But I have installed
> Eclipse Platform Version: 3.4.1 Build id: M20080911-1700, Tomcat6.0
>
> and Iget the similar error on Windows XP too:
>
> 'Starting Tomcat v6.0 Server at localhost' has encountered a problem.
>
> Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at
> localhost are already in use. The server may already be running in
> another process, or a system process may be using the port. To start
> this server you will need to stop the other process or change the port
> number(s).

No operating system is going to allow a Tomcat server to use the same
port(s) as another Tomcat server or application. If the conflict is
coming from an installed Tomcat (likely running as a service), then you
can either stop the installed Tomcat or change the Eclipse server to use
different ports. See this Tomcat FAQ question for how to open the
server editor where you can easily change the ports the Eclipse Tomcat
is using:
http://wiki.eclipse.org/WTP_Tomcat_FAQ#How_do_I_modify_the_T omcat_server.27s_configuration.3F

>
> Well, I wish only to setup these tools: Eclipse v 3.2 and Tomcat5.0 on
> Debian or Tomcat 6.0 and Eclipse v. 3.4.1 on Windows system so I can to
> start to develop web applications.

This is why I would recommend not using a packaged Tomcat. It isn't
practical for the WTP Tomcat support to "understand" how a packaged
Tomcat is put together and react appropriately. Instead, if you choose
to use a packaged Tomcat, you may be required to acquire that
"understanding" and do what is necessary to "fix" things so the WTP
Tomcat server is able to run. Typically this means adding to the WTP
Tomcat server additional classpath information that the packager
*removed* from bootstrap.jar, as mentioned in the FAQ.

Another reason to use a tar.gz is that Tomcat 5.0 is no longer a
supported version of Tomcat and hasn't been maintained for a number of
years (this includes not receiving any security fixes). It's
implementation of the servlet spec is likely not to match current Tomcat
5.5 or 6.0 servers in important ways. If you are using Tomcat 6.0 on
Windows XP, it would make sense to use the same Tomcat 6.0 on Linux.

Cheers,
Larry

>
> But this is not so easy..
>
> --
> Regards, Paul Chanyi
Previous Topic:Server output not redirected to console
Next Topic:Extending Axis 2 Webservice Wizards
Goto Forum:
  


Current Time: Tue Mar 19 08:06:56 GMT 2024

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

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

Back to the top