Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > BOOK: Professional Apache Tomcat
|
BOOK: Professional Apache Tomcat
This is the forum to discuss the Wrox book Professional Apache Tomcat by Chanoch Wiggers, Ben Galbraith, Vivek Chopra, Sing Li, Debashish Bhattacharjee, Amit Bakore, Romin Irani, Sandip Bhattacharya, Chad Fowler; ISBN: 9780764543722
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 14th, 2006, 09:11 AM
Registered User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tomcat Error While Starting Up - Cluster

I am trying to setup a Tomcat cluser on my windows machine, but i get the following error on starting a tomcat server. What could be the problem? (Could it be that my machine is not capable of multicast or any such thing?)

The relevant part of server.xml looks like:

<Cluster className="org.apache.catalina.cluster.tcp.SimpleT cpCluster"
managerClassName="org.apache.catalina.cluster.sess ion.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true">

<Membership
className="org.apache.catalina.cluster.mcast.Mcast Service"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>

<Receiver
className="org.apache.catalina.cluster.tcp.Replica tionListene r"
tcpListenAddress="127.0.0.1"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>

<Sender
className="org.apache.catalina.cluster.tcp.Replica tionTransmi tter"
replicationMode="pooled"/>

<Valve className="org.apache.catalina.cluster.tcp.Replica tionValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.* \.txt;"/>
</Cluster>



The ERROR is:
=============

INFO: Sleeping for 2000 secs to establish cluster membership
Nov 14, 2006 5:53:52 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start
SEVERE: Unable to start cluster.
java.lang.NullPointerException
at java.net.URLClassLoader$1.run(URLClassLoader.java: 190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 89)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 82)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
at org.apache.catalina.cluster.MembershipFactory.getM embershipService(Me
mbershipFactory.java:93)
at org.apache.catalina.cluster.tcp.SimpleTcpCluster.s tart(SimpleTcpClust
er.java:517)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1115)

at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:832)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1125)

at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:518
)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:5
19)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:234
5)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:598)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:398)
Nov 14, 2006 5:53:52 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Nov 14, 2006 5:53:52 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\tomcat\ClusterTest\Tomca
tLoadBalancer\jakarta-tomcat-5.0.18\conf\Catalina\localhost\admin.xml
Nov 14, 2006 5:53:52 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
e





Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat error kaushiksamaddar Apache Tomcat 2 April 4th, 2007 08:55 AM
Starting Tomcat seyyed JSP Basics 3 August 24th, 2006 02:20 PM
tomcat error Mr. Ram Apache Tomcat 0 March 20th, 2006 07:58 AM
Error starting a new web application arun_sunmic Apache Tomcat 0 March 19th, 2006 10:35 AM
Tomcat Connection error venkatachar Servlets 0 December 16th, 2004 06:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.