• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Starting tomcat 4.1.12

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
raghu nandhan
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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"
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
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
at org.apache.catalina.core.StandardServer.start(StandardServer.java:218
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic