Hi,
I've been successfully building my project each day. Today I come to
it and attempt to start it in the debugger when I get the above
error. Here is some of the stack trace:
----
org.apache.jasper.JasperException: /kickboxking.jsp(23,28) Unknown
attribute type (com.google.appengine.api.datastore.Key) for attribute
key.
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:
39)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:
409)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:
238)
at org.apache.jasper.compiler.Validator
$ValidateVisitor.checkXmlAttributes(Validator.java:932)
at org.apache.jasper.compiler.Validator
$ValidateVisitor.visit(Validator.java:696)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Validator.validate(Validator.java:1475)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:
214)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
511)
...
----
So, it's when compiling the JSP. I don't know if it's when resolving
the tag or the jsp that it encounters this "unknown", but no matter -
neither has been changed(!) since it was compiling just fine. Also, I
can see the appengine-api jar on the build path (as it was from when
the project was setup under Eclipse).
Here's an extract from the JSP:
----
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.List" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="com.google.appengine.api.datastore.Key" %>
<%@ taglib uri="/WEB-INF/kickboxking.tld" prefix="kbk" %>
<html>
<body>
<div id="header">
<%
UserService userService = UserServiceFactory.getUserService();
if (session.getAttribute("activePlayerId") != null) {
%>
<kbk:playerName key="<%=
(Key)session.getAttribute("activePlayerId") %>"/>! (You can
<a href="signOut.jsp">sign out</a>.)</p>
</div>
...
----
It's falling over on that <kbk:playerName....> tag!!!! Pure bit-rot
as it was fine when I was running it yesterday :-(
Steve
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.