The moose likes Tomcat and the fly likes Starting tomcat 4.1.12 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Starting tomcat 4.1.12" Watch "Starting tomcat 4.1.12" New topic
Author

Starting tomcat 4.1.12

raghu nandhan
Greenhorn

Joined: Oct 30, 2002
Posts: 2
Im trying to configure tomcat 4.1.12 with IIS. I need to run multiple instances of tomcat (and I was doing this fine with tomcat 3.3.1 by using multiple server.xml files and starting each instance with a startup -f <full server.xml path name>
Now with tomcat 4.1.12, I cant seem to start tomcat by giving the server.xml file name as an argument. It just pops up another window and disappers immediately.
Is there a new way of setting contexts in 4.1.12
Why does 4.1.12 start ajp13 at port 8009 even if I configure it to use some other port.
Please help.
Jesse Beaumont
Ranch Hand

Joined: May 30, 2002
Posts: 43
Hi,
As of tomcat 4 you have to define the CATALINA_BASE environment variable to start separate instances. The location you point catalina_base to should have a conf/server.xml file to use as the server configuration and can have a log, work, webapps and any of the other directories as well if you like.
Jesse


---<br />Time flies like an arrow,<br />Fruit flies like a banana
raghu nandhan
Greenhorn

Joined: Oct 30, 2002
Posts: 2
Im not too clear:
1. I have only one installation of tomcat in C:\jakarta-tomcat-4.1.12 and set both CATALINA_BASE and CATALINA_HOME to C:\jakarta-tomcat-4.1.12
2. I have a server.xml in conf directory.
3. Now how do I start multiple instance of this tomcat? In 3.3.1, I could have 2 server.xml (say, server_1.xml and server_2.xml) and start each instance as startup -f server_1.xml and startup -f server_2.xml. I cant seem to be able to do this with 4.1.12
4. Why does tomcat start the apj13 in 8009 even when I have mentioned the following in server.xml
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="9999" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
5. when I set the apj13 port as below:
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="9998" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
why does my tomcat give the following exception during startup
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 9888
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225
)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:369)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:777)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:751)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:339)
at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
verLifecycleListener.java:206)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:218
2)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 9888
[INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009
[INFO] JkMain - -Jk running ID=0 time=16/125 config=C:\jakarta-tomcat-4.1.12\co
nf\jk2.properties
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Starting tomcat 4.1.12
 
Similar Threads
Multiple Tomcat Instances on the same box
jboss-3.0.4 and tomcat-4.1.12 work together?
Can't start Tomcat in Eclipse - Error message indicates required port is busy
Installing Tomcat on Linux
Dynamic Setting of Server Port in Tomcat