[kaffe] NoSuchMethodError: javax/servlet/ServletContext.setAttribute
Greg Wooledge
greg at wooledge.org
Fri Apr 18 16:50:01 PDT 2003
When I updated my CVS Kaffe source tree today and used it to restart
my Freenet node (stable branch), I got the following errors:
18-Apr-03 7:27:56 PM (freenet.node.Main, main, ERROR): Failed to load service: mainport
java.lang.NoSuchMethodError: javax/servlet/ServletContext.setAttribute(Ljava/lang/String;Ljava/lang/Object;)V
at freenet.interfaces.servlet.ServletContainer.createServletContext(ServletContainer.java:140)
at freenet.interfaces.servlet.MultipleHttpServletContainer.loadContext(MultipleHttpServletContainer.java:183)
at freenet.interfaces.servlet.MultipleHttpServletContainer.init(MultipleHttpServletContainer.java:154)
at freenet.node.Main.loadService(Main.java:1486)
at freenet.node.Main.startNode(Main.java:1404)
at freenet.node.Main.main(Main.java:865)
18-Apr-03 7:27:56 PM (freenet.node.Main, main, ERROR): Failed to load service: distribution
java.lang.NoSuchMethodError: javax/servlet/ServletContext.setAttribute(Ljava/lang/String;Ljava/lang/Object;)V
at freenet.interfaces.servlet.ServletContainer.createServletContext(ServletContainer.java:140)
at freenet.interfaces.servlet.SingleHttpServletContainer.init(SingleHttpServletContainer.java:52)
at freenet.node.Main.loadService(Main.java:1486)
at freenet.node.Main.startNode(Main.java:1404)
at freenet.node.Main.main(Main.java:865)
Since this same Freenet build worked with Kaffe before I updated
CVS, I suspect that a change in Kaffe is the immediate cause, but
I'm writing to both projects' lists just in case there is some
deeper problem in Freenet which is merely being exposed by a more
rigorous Java platform.
javax.servlet.ServletContext is part of the freenet-ext.jar file,
defined thus:
package javax.servlet;
public interface ServletContext {
...
public void setAttribute(String name, Object object);
}
I don't understand why this error is occurring, given this definition.
It certainly looks all right to me. So, being a simple but practical
person, I did a 'cvs -z3 update -dP -D "1 day ago"' (CVS/Tag =
D2003.04.17.23.42.42) and built that and used it. Freenet then
started normally again.
--
Greg Wooledge | "Truth belongs to everybody."
greg at wooledge.org | - The Red Hot Chili Peppers
http://wooledge.org/~greg/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20030418/96203fa4/attachment-0003.pgp
More information about the kaffe
mailing list