Tomcat 5 Clustering

Discussion in 'Java' started by Matt Rapoport, Dec 22, 2003.

  1. Hi All,

    I am a Tomcat newbie running Tomcat 5 and I would like to implement
    clustering between 2 servers. I followed the instructions given at
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

    When I uncomment the cluster tag in server.xml and the replication
    valve (as per the instructions) I got the following error upon
    starting up Tomcat. Does anyone know why???

    Thank You,

    Matt

    [ERROR] Digester - -Begin event threw error
    <java.lang.NoClassDefFoundError:
    java/lang/CharSequence>java.lang.NoClassDefFoundError: java/lang/
    CharSequence
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:232)
    at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253)
    at org.apache.commons.digester.Rule.begin(Rule.java:200)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
    at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java:112)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
    Source)
    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
    Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
    Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
    Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
    Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
    Source)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
     
    Matt Rapoport, Dec 22, 2003
    #1
    1. Advertising

  2. "Matt Rapoport" wrote

    > Hi All,
    >
    > I am a Tomcat newbie running Tomcat 5 and I would like to implement
    > clustering between 2 servers. I followed the instructions given at
    > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
    >
    > When I uncomment the cluster tag in server.xml and the replication
    > valve (as per the instructions) I got the following error upon
    > starting up Tomcat. Does anyone know why???
    >
    > Thank You,
    >
    > Matt
    >



    Do you use a JDK/JRE < 1.4 for the tomcat? CharSequence is new in 1.4

    Wolfgang



    > [ERROR] Digester - -Begin event threw error
    > <java.lang.NoClassDefFoundError:
    > java/lang/CharSequence>java.lang.NoClassDefFoundError: java/lang/
    > CharSequence
    > at java.lang.Class.newInstance0(Native Method)
    > at java.lang.Class.newInstance(Class.java:232)
    > at

    org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253
    )
    > at org.apache.commons.digester.Rule.begin(Rule.java:200)
    > at

    org.apache.commons.digester.Digester.startElement(Digester.java:1273)
    > at

    org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java
    :112)
    > at

    org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
    > Source)
    > at

    org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
    > Source)
    > at

    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
    wn
    > Source)
    > at

    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
    her.dispatch(Unknown
    > Source)
    > at

    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    > Source)
    > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    > Source)
    > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
    > Source)
    > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
    > Source)
    > at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    > at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
    > at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
    > at java.lang.reflect.Method.invoke(Native Method)
    > at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
    > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
     
    Wolfgang Vullhorst, Dec 23, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tito

    Clustering and FrameWork.Net

    Tito, Jul 7, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    369
  2. 1992

    Clustering & Tomcat

    1992, Nov 22, 2003, in forum: Java
    Replies:
    0
    Views:
    355
  3. 1992

    Clustering & Tomcat

    1992, Nov 22, 2003, in forum: Java
    Replies:
    0
    Views:
    373
  4. Thenu
    Replies:
    0
    Views:
    467
    Thenu
    Oct 6, 2006
  5. Replies:
    0
    Views:
    1,244
Loading...

Share This Page