You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Cittadini <Da...@blackmarble.com> on 2000/04/12 20:14:57 UTC
Tomcat.java and XmlMapper
I changed the setConnectorHelper() method in Tomcat.java so that I can set
the attribute "socketFactory" in the SimpleTcpConnector. However, when I
run it I get the error message " XmlMapper: Can't find method setAttribute
in org.apache.tomcat.service.SimpleTcp
Connector@19e7e2dc CLASS class org.apache.tomcat.service.SimpleTcpConnector"
Does anyone have any suggestions as to why I would get this message. Below
is what my setConnectorHelper() method looks like.
void setConnectorHelper(XmlMapper xh) {
// The rules
xh.addRule("ContextManager/Connector", xh.objectCreate(null,
"className"));
xh.addRule("ContextManager/Connector",
xh.setParent("setContextManager"));
xh.addRule("ContextManager/Connector",
xh.addChild("addServerConnector",
"org.apache.tomcat.core.ServerConnector"));
xh.addRule("ContextManager/Connector/Parameter",
xh.methodSetter("setProperty", 2));
xh.addRule("ContextManager/Connector/Parameter",
xh.methodParam(0, "name"));
xh.addRule("ContextManager/Connector/Parameter",
xh.methodParam(1, "value"));
xh.addRule("ContextManager/Connector/Attribute",
xh.methodSetter("setAttribute", 2));
xh.addRule("ContextManager/Connector/Attribute",
xh.methodParam(0, "name"));
xh.addRule("ContextManager/Connector/Attribute",
xh.methodParam(1, "value"));
}