• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Run Two instance of Tomcat 4.1 on one Machine

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to all...

I want to run two instance of Tomcat 4.1 in one Machine.

I did the following step to complete the task but it give error.

Step 1: install tomcat 4.1
tomcat folder : C:\Apache Group\Tomcat 4.1\

Step 2: copy & paste tomcat folder in same parent folder and rename it Tomcat2 4.1
tomcat folder : C:\Apache Group\Tomcat_2 4.1\


Step 3: Download service.bat file.
Put service.bat file in folder : C:\Apache Group\Tomcat_2 4.1\bin\service.bat

Step 4: Change all required port of second instance of Tomcat.
Edit all required port in file server.xml

Path: C:\Apache Group\Tomcat_2 4.1\config\server.xml

(1) Change the port on the root Server element to a different number (e.g. 8006)
(2) Change the port attributes on the Connector elements to a different number (e.g. 8010 instead of 8009, 8081 instead of 8080
and 8444 instead of 8443)

Step 5: To install service of second Tomcat run below command.
C:\Apache Group\Tomcat_2 4.1\bin>service.bat install ApacheTomcat2


It will install service succesful. Add service name also in service list. ie:ApacheTomcat2
But when we run service from it gives error in stdout.log file and tomcat manager does not run (ie: http://localhost:8081/).

Error in stdout.log file
=================================================================
Bootstrap: Create Catalina server
org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:355)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
at org.apache.commons.digester.Digester.<init>(Digester.java:352)
at org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:280)
at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:183)
at org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258)
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:597)
at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231)
at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297)
Caused by: java.lang.NullPointerException
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:543)
... 12 more
Bootstrap: Starting service
Bootstrap: Service started
=================================================================


Step 6: To remove service of second Tomcat run below command.
C:\Apache Group\Tomcat_2 4.1\bin>service.bat remove ApacheTomcat2


Can any one tell, What is Problem? Which step is wrong & where?

Thanks...





 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Satya YYY

Please check your private messages regarding an important administrative matter.

-Andrew
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic