Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » General (non-technical) » Eclipse Foundation » Can't change Tomcat ports from Eclipse(It seems to override or ignore the changes I make to server.xml)
Can't change Tomcat ports from Eclipse [message #629010] Sat, 25 September 2010 22:56 Go to next message
Thomas  is currently offline Thomas Friend
Messages: 1
Registered: September 2010
Junior Member
Issue with Tomcat 7.0.2 and Eclipse Helios.

I need to have two instances of Tomcat running, one from within eclipse and one from outside. I would like to change the port of the instance being run from Eclipse, but it seems not to work.

If I change the ports in tomcat/conf/server.xml from 8080, 8005 and 8009 to 8180, 8105 and 8109, and start the instance with ./startup.sh, the server starts, and can serve at 8180.

The server.xml in the Tomcat location, is ignored when the server is started from Eclipse. Instead it uses it's own server.xml located in workspace/SomeServer/server.xml. But if I make the same changes to this file, and try to start the server from Eclipse, it just will not start. The error is:

Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.


This is the console printout:

Sep 26, 2010 12:43:13 AM 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: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/xulrunner-addons:/usr/lib/xulrunner-addons:/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib
Sep 26, 2010 12:43:14 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SWP-dBay-Server' did not find a matching property.
Sep 26, 2010 12:43:14 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SWP-dBay-Client' did not find a matching property.
Sep 26, 2010 12:43:14 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 26, 2010 12:43:14 AM org.apache.coyote.ajp.AjpProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Sep 26, 2010 12:43:14 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1581 ms
Sep 26, 2010 12:43:14 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 26, 2010 12:43:14 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.2
Sep 26, 2010 12:43:23 AM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.0.3 (FCS b03) for context '/SWP-dBay-Client'
Sep 26, 2010 12:43:25 AM com.sun.faces.spi.InjectionProviderFactory createInstance
INFO: JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
Sep 26, 2010 12:43:25 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 26, 2010 12:43:25 AM org.apache.coyote.ajp.AjpProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Sep 26, 2010 12:43:25 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 11027 ms



From the console it is easy to see that it is still "doing something" with the 80XX ports. I don't know where it get's these numbers from. I have grep'ed my entire workspace folder (i.e. both projects and server folders), and there are no occurrences of 8080.

Any ideas?

Sincerely, Thomas

[Updated on: Sat, 25 September 2010 22:58]

Report message to a moderator

Re: Can't change Tomcat ports from Eclipse [message #629256 is a reply to message #629010] Mon, 27 September 2010 15:15 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NOSPAM.ibm.com

Hi,

This isn't the newsgroup for problems. This newsgroup is for discussing
the Eclipse Foundation itself (the legal entity), not any code.


Try using the eclipse.webtools newsgroup instead. I think that handles
servers and such.

Rich
Previous Topic:Feature Request: Split screen
Next Topic:Could not access sources repository
Goto Forum:
  


Current Time: Thu Apr 25 08:45:55 GMT 2024

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

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

Back to the top