我在Eclipse中運行GAE。我所做的只是從以下示例說明:http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/252-restlet.pdfRestlet GAE示例不適用於Google App Engine工具包1.4.0
當我嘗試訪問的URL本地主機:8888/resttest我得到一個異常:
javax.servlet.UnavailableException: java.lang.NullPointerException
at org.mortbay.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:415)
... the rest of stack trace
我與不同版本的Restlets的嘗試。任何想法如何得到這個工作?
是的,我在Eclipse中使用GAE。 web.xml:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<servlet>
<servlet-name>RestletServlet</servlet-name>
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
<init-param>
<param-name>org.restlet.application</param-name>
<param-value>secretPackage.FirstTestApplication</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>RestletServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
更新的問題 – LordTwaroog 2011-02-24 11:18:47