tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamil Kukura" <Kamil.Kuk...@sphere-systems.com>
Subject Tomcat4: problem to set up own context listener
Date Tue, 30 Oct 2001 19:18:58 GMT
According to Tomcat 4's config. reference I'm trying to set-up my own
listener for lifecycle of context. In server.xml this looks like:

<Context path="/REP" docBase="REP" debug="0" reloadable="true">
    <Listener className="kamk.cpooling.ContextLCListener"/>
    <Logger className="org.apache.catalina.logger.FileLogger"
        prefix="REP_log." suffix=".txt" timestamp="true"/>
</Context>


My listener implements org.apache.catalina.LifecycleListener. The
instantiation of my bean seems to be okay because it's getting called even
on method setClassName(). Problem is that tomcat's startup won't complete:

ERROR reading /opt/tomcat4/conf/server.xml
At Line 275 /Server/Service/Engine/Host/Context/Listener/

Catalina.start: java.lang.IllegalArgumentException: argument type mismatch
java.lang.IllegalArgumentException: argument type mismatch
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.util.xml.AddChild.end(Unknown Source)
        at org.apache.catalina.util.xml.XmlMapper.matchEnd(Unknown Source)
        at org.apache.catalina.util.xml.XmlMapper.endElement(Unknown Source)
        at
org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java
:347)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1497)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
        at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
        at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:260)
        at org.apache.catalina.util.xml.XmlMapper.readXml(Unknown Source)
        at org.apache.catalina.startup.Catalina.start(Unknown Source)
        at org.apache.catalina.startup.Catalina.execute(Unknown Source)
        at org.apache.catalina.startup.Catalina.process(Unknown Source)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Unknown Source)

--
Kamil Kukura



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message