aspose file tools*
The moose likes Tomcat and the fly likes Tomcat Error While Starting Up - Cluster Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Error While Starting Up - Cluster" Watch "Tomcat Error While Starting Up - Cluster" New topic
Author

Tomcat Error While Starting Up - Cluster

James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
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.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true">

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

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

<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"/>

<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
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.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.apache.catalina.cluster.MembershipFactory.getMembershipService(Me
mbershipFactory.java:93)
at org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpClust
er.java:517)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1115)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518
)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
19)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:234
5)
at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.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
 
Don't get me started about those stupid light bulbs.
 
subject: Tomcat Error While Starting Up - Cluster