Multiple Tomcat Installations?

Questions and answers for all installation-related topics for Servoy products

Multiple Tomcat Installations?

Postby dponti » Mon Apr 26, 2004 9:47 pm

We would like to run Servoy Server on a machine that is also running another small web app in Tomcat (Mac OS 10.3.3). However, we tried launching Server as a standalone service (via command line - not through Developer) and it fails because Tomcat is already running. We changed the port for Servoy Server (to 8081 instead of 8080, which is what our other Tomcat service is running on) but this doesn't solve the problem.

How can we get Servoy Server and its web app to run with another Tomcat service?
dponti
 
Posts: 70
Joined: Wed Apr 14, 2004 9:39 pm
Location: Menlo Park, CA

Postby jcompagner » Mon Apr 26, 2004 10:40 pm

you also must change the warp connector:

<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008"
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby dponti » Tue Apr 27, 2004 7:17 pm

Sorry, but I need more help here - I'm very Tomcat stupid...

From the server.xml file of our existing Tomcat installation, there are two connector directives under a service called Tomcat Standalone - one is an HTTP connector running on port 8080, the other is an AJP connector on port 8009. There is no connector directive for a WARP connector, as there is in the server.xml file contained in the Servoy/server/conf/server.xml file.

What do I change the WARP connector settings to in the Servoy server.xml file? I tried changing the port from the default 8008 to 8007, but I get the same error:

Looking for servoy.properties on /Users/dponti/servoy.properties
Loading servoy.properties from /Applications/Servoy/servoy.properties - Done
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
StandardServer.await: create: java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
at java.net.ServerSocket.bind(ServerSocket.java:318)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:277)
at org.apache.catalina.startup.Catalina.start(Catalina.java:789)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.servoy.j2db.server.b.if(Unknown Source)
at com.servoy.j2db.server.ApplicationServer.startWebServer(Unknown Source)
at com.servoy.j2db.server.ApplicationServer.main(Unknown Source)

What am I doing wrong? Thanks for your help!
dponti
 
Posts: 70
Joined: Wed Apr 14, 2004 9:39 pm
Location: Menlo Park, CA

Postby jcompagner » Tue Apr 27, 2004 9:06 pm

if you change both

so 8080 and 8008 to different values that are not yet used in youre system like

8180 and 8108

then it should work fine.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Postby dponti » Wed Apr 28, 2004 3:18 am

That did the trick! I also changed the shutdown server port as well. I guess I hadn't changed all of the port numbers that needed to be changed...

Thank you for your quick response!
dponti
 
Posts: 70
Joined: Wed Apr 14, 2004 9:39 pm
Location: Menlo Park, CA


Return to Installation

Who is online

Users browsing this forum: No registered users and 17 guests